546
(page 5) 30 comments
sorted by: hot top controversial new old
[-] vox@sopuli.xyz 0 points 1 year ago

I don't like blocated crap, so vanilla js es6 is the way

[-] TootSweet@lemmy.world -1 points 1 year ago

When I write JS:

  • It's because it has to run in a browser. (Why would I want to write JS that runs outside a browser? Rhetorical question. Don't answer that.)
  • I use no JS dependencies. Zero. None. No jQuery. No React. No VUE. No Typescript. Nothing like that. (Unless you count as "JS dependencies" a) a minifier (but not one written in JS) or b) browser builtins.)
  • I don't use any ECMA6 stuff. (Who asked for classes anyway?) Though to be fair, that's definitely at least partially because I have yet to even really look into what's available.
  • I love callbacks and closures.
  • I keep my global scope tidy, though I do store some things in the global scope. (Typically one or fewer global variables defined per JS file.)
  • I don't use prototypes. Just because I've never found good uses for them.

I do believe there's a beautiful language living inside JS. It is quite pleasant to work with. But not the kind of thing I'd want to write "real software" in when there are alternatives like Go or even Python.

load more comments (5 replies)
[-] asyncrosaurus@programming.dev -1 points 1 year ago

Javascript.

Because my exposure to Typescript is wading through over-engineered and bloated Angular front ends that could easily (and should) be thrown out and re-written in html/ js.

But also because I exclusively write simple shit that doesn't have a build step for the front end, because 90% of the stuff I make gains no benefit from needlessly overly complex front ends.

load more comments (1 replies)
[-] OffByOneError@programming.dev -3 points 1 year ago

Typescript is an abomination. Been writing JS just fine for 30 years without it.

load more comments (3 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 08 Sep 2023
546 points (94.2% liked)

Programmer Humor

19623 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS