irelephant [he/him]🍭@lemm.ee to Programmer Humor@programming.devEnglish · 10 months agolooks good to melemm.eeexternal-linkmessage-square46linkfedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1external-linklooks good to melemm.eeirelephant [he/him]🍭@lemm.ee to Programmer Humor@programming.devEnglish · 10 months agomessage-square46linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareWillem@kutsuya.devlinkfedilinkarrow-up0·10 months agoOn Error Resume Next Visual Basic is a beautiful language
minus-squareKnock_Knock_Lemmy_In@lemmy.worldlinkfedilinkarrow-up0·10 months agoOn error goto 0 Was always syntacticly confusing for me.
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up0·10 months agotry { operation(); } catch { // nice weather, eh? }
minus-squarelengau@midwest.sociallinkfedilinkarrow-up0·9 months agowith contextlib.suppress(BaseException): do_thing()
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up0·edit-210 months agoStarting with Java 21 (I think), they’ve introduced ignored variables, so you can now actually do this: try { operation(); } catch (Exception _) { // nice weather, eh? } Edit: forgot that this is about JS lel
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up0·10 months agoIf your joking yes, if your not Java and Java Script are seperate things.
minus-squareJustAnotherKay@lemmy.worldlinkfedilinkarrow-up0·10 months agoActually made this mistake in front of 20 people the other day. Guy at my job mentioned coding in java and I asked if he was doing web dev 🤦
minus-squareBangersAndMash@lemmy.worldlinkfedilinkarrow-up0·edit-210 months agoPlenty of java back end web development, so maybe not as embarrassing as you felt?
minus-squarejubilationtcornpone@sh.itjust.workslinkfedilinkEnglisharrow-up0·10 months agoSo basically the same as a discard in C#?
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up0·edit-210 months agoYeah, Python has it as well. I think the only real use of it is code readability since you declare that this variable will never be used.
if (error) { continue; }On Error Resume NextVisual Basic is a beautiful language
Was always syntacticly confusing for me.
try { operation(); } catch { // nice weather, eh? }☑️ PR Approved
Starting with Java 21 (I think), they’ve introduced ignored variables, so you can now actually do this:
try { operation(); } catch (Exception _) { // nice weather, eh? }Edit: forgot that this is about JS lel
Same thing right?
If your joking yes, if your not Java and Java Script are seperate things.
Actually made this mistake in front of 20 people the other day. Guy at my job mentioned coding in java and I asked if he was doing web dev 🤦
Plenty of java back end web development, so maybe not as embarrassing as you felt?
His joking?
So basically the same as a discard in C#?
Yeah, Python has it as well. I think the only real use of it is code readability since you declare that this variable will never be used.
Thanks. I hate it.