There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

teletext , in Saw 37 the software Dev

Sorry bro, if you think JavaScript is difficult, then you’re just too weak.

Kolanaki , in Saw 37 the software Dev
@Kolanaki@yiffit.net avatar

Ok… He didn’t say it had to be complicated or anything. Just make a magic 8 ball.

kakes , in Saw 37 the software Dev

I think I’d be okay up until you pulled intellisense, at which point I would literally deflate like a balloon.

ChaoticNeutralCzech , (edited ) in Saw 37 the software Dev

w3school

victorz ,

MDN ftw, screw stackoverflow.

Redkey ,

Any time I need to learn something about JS, I go to W3Schools to wrap my head around the basics, then over to MDN for current best practice.

victorz ,

I remember visiting W3S like 10-15 years ago when first learning DOM manipulation etc at uni. But nowadays there’s nothing it can give me that MDN can’t, that I need to know.

frezik ,

MDN is better at everything than w3school, except for SEO.

victorz ,

Yeah… Then again I just use the DuckDuckGo bang !mdn and it searches MDN directly.

There’s also devdocs.io which can be indispensable when using a lot of popular utility libraries and frameworks in the same project. Just having a single page with all the relevant docs is just a real blessing.

Mikufan , in Saw 37 the software Dev

Do it in php and say its JavaScript, most people don’t even know that there is a difference.

xmunk ,

$facts

xmunk , in Saw 37 the software Dev

Heh… but Javascript is so permissive you can just start writing psuedocode and it’ll probably be valid!

SzethFriendOfNimi ,

<span style="color:#323232;">eval('alert("Yep")')
</span>
Gork ,
SzethFriendOfNimi ,

<span style="color:#323232;">for(i=0;i<100;i++){
</span><span style="color:#323232;">    console.log("Yep")
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">console.log("uh-huh")
</span>
NovaPrime ,
@NovaPrime@lemmy.ml avatar
Anticorp ,

Like Dave from Storage Wars?

UnpledgedCatnapTipper ,
jubilationtcornpone ,

“Uh huh.”

CanadaPlus ,

And it will do… something.

whodatdair ,

Perhaps more than one thing, who can know?

Anticorp ,

const notThree = 1 + ‘2’;

jarfil , in new preference war just dropped

Both:


<span style="color:#323232;">dialog_error = Dialog_plain.create_modal(error_text)
</span>

Variable and class names go from more general to more particular, functions begin with a verb.

Global functions are either “main”, or start with one of “debug”, “todo”, or “shit”.

somegeek , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

Python has one of the worst syntaxes out there

ArmokGoB , in Hot Potato License
roon , in new preference war just dropped
@roon@lemmy.ml avatar

Powershell has a lint warning for functions that don’t follow Verb-Noun format, and verbs here are a list of approved verbs lol

raldone01 , in Hot Potato License

There are a few flaws.

There should be a clause forcing it to remain open source. Another clause should be that the license must not be changed. A warrenty and liability disclaimer would be also good. Otherwise a splendid license.

jnk ,

I would 100% use this HPL-v2 for all of my (temporary) foss projects. It’s just genius. I mean, good luck keeping track of the current owner, Nintendo lawyers.

RiQuY , in Hot Potato License

The secret license everyone gets while working for an enterprise. If the previous dude left, good luck changing anything.

joyjoy , in new preference war just dropped

We just call those Smurf names.

nikaaa , in new preference war just dropped

I personally prefer dialogs.FileDialog.open()

lorty , in new preference war just dropped
@lorty@lemmygrad.ml avatar

I know the second one is better, but I also know I’m terribly inconsistent with this stuff.

nexussapphire ,

Been learning to program and I’m refusing to use an lsp for the time being. I’m bad about using abbreviated names when I have to type over and over again(no auto complete). I’m at least using descriptive names for functions I use less than four times.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines