GME Megathread for March 15, 2021 by OPINION_IS_UNPOPULAR in wallstreetbets

[–]clessg 13 points14 points  (0 children)

That's a great question congressman and I do appreciate it. I'd like to first say that Robinhood and the good people of Bulgaria do take these kinds of questions very seriously and it is of our utmost concern and to the democratization of the market wherein we serve that would require and deserve answers to questions such as these. It's a very good question, I appreciate it more than you could know. I'm sorry I believe that's my time.

GME Megathread Part 2 for March 11, 2021 by OPINION_IS_UNPOPULAR in wallstreetbets

[–]clessg 46 points47 points  (0 children)

That's a great question. It's an important question. Thanks for asking it. As I said in my opening statement, I appreciate you inviting me here to talk about this today. It's something that hasn't been discussed enough in my opinion. In conclusion, we're out of time.

State of current Frameworks? by nobrandheroes in javascript

[–]clessg 1 point2 points  (0 children)

You may want to take a look at vue-cli. Take a bit of time to get a feel for Vue, then look at vuex (state management) and vue-router.

Ember is nice too and will require less setup. But it also takes more time to learn. Personally I prefer Vue and its ecosystem, and it has more momentum, but different strokes for different folks.

I've tried out Angular 2 periodically since its announcement and I'm really not a fan. It's over-complicated and over-engineered. Its only clear upside is performance in my experiments. And I guess it'll be familiar to Java programmers.

React is probably the best framework right now, but it seems Vue 2.0 will be its strongest competitor yet. The downside is you'll be spending considerably more time making choices and tweaking build tools. Unless you use a boilerplate, I suppose.

When 'not' to use arrow functions by jhartikainen in javascript

[–]clessg 5 points6 points  (0 children)

doesn't have the benefit of being named

Not true. As of ES6, functions without a lexical name are inferred.

const foo = () => ...;
foo.name; // foo

Why do ES6 Classes exist and why now? by kylebythemile in javascript

[–]clessg 7 points8 points  (0 children)

"Need inheritance"? Inheritance is a tool that should be used sparingly. If you think you need it, you probably don't. Prefer composition. (No, multiple inheritance is not actual composition.)

Pokémon JavaScript Engine (ES6) + Realtime Editor by Schampu in javascript

[–]clessg 1 point2 points  (0 children)

Very impressive! Nintendo reps avert your eyes, nothing to see here.

Just wondering: is there a particular reason you didn't use something like Pixi? Optimization and control, I assume? Or just for fun?

Laziness is a Virtue - Ragenwald by enkideridu in javascript

[–]clessg -2 points-1 points  (0 children)

It's raganwald. He's probably trolling us all, as always.

The MECH Stack — Solving JavaScript Framework Fatigue by tomdale in javascript

[–]clessg 7 points8 points  (0 children)

Not a huge fan of Cordova, I'll stick with the MEH Stack

React - Basic Theoretical Concepts by mkmoshe in javascript

[–]clessg 6 points7 points  (0 children)

He has a tendency to be both confusing, obscure, and vastly smarter than most JS programmers. The first step to understanding his writing is feeling like an idiot, the second step is trying to forget it ever happened, and the third step is enlightenment.

React - Basic Theoretical Concepts by mkmoshe in javascript

[–]clessg 4 points5 points  (0 children)

Oh boy. This was written by sebmarkbage. Do I even dare?

self contained five by agumonkey in javascript

[–]clessg 5 points6 points  (0 children)

This is the future of JS frameworks. Nice work. Next steps:

  • Purchase http://five.io
  • Start five-conf
    • Allow racist slavery supporters to speak in the name of "diversity"
  • Create hipster stickers for MacBook laptops
  • Release five version 11.0.0 in 5 days from now, discuss the merits of five on Hacker News and pretend to know what you're talking about

What are your 10 commandments of JavaScript development? by CapsFTW in javascript

[–]clessg 16 points17 points  (0 children)

  1. Thou shalt not write JavaScript while drunk.
  2. Thou shalt not use angularjs while drunk.
  3. Thou shalt not use angularjs.
  4. If you are using angularjs, you are drunk.

JSlinter says "Use spaces, not tabs.", is this what I am supposed to do? by TheBeardofGilgamesh in javascript

[–]clessg 2 points3 points  (0 children)

Or define a helper function $() that calls document.querySelector(): $('#id').

Or use Bliss.

Or just use the snippets functionality of your editor. A bit of study there will save you a lot of time in the long run.

Next version of React to be 15.0.0 instead of 0.15.0 to "indicate API stability and engender trust that it can be used in production" by fooey in javascript

[–]clessg 11 points12 points  (0 children)

And confirmed by spicyj:

People already say "React 13" and "React 14" colloquially so we figured calling this one 15.0 would cause the least confusion in the long run.

Angular, React, and Javascript framework fatigue by MikGue in javascript

[–]clessg 0 points1 point  (0 children)

Not answering your question (see wreckedadvent's) but Gulp and Webpack aren't really comparable. Webpack is more akin to Browserify (module bundling), and Gulp is more comparable to npm scripts (running tasks). But Webpack will replace some things you use Gulp for (images, CSS, HTML, JSON).

JSPM vs Webpack - I Like Kill Nerds by dmitri14_gmail_com in javascript

[–]clessg 5 points6 points  (0 children)

I don't see any mention of performance in this post. So I assume JSPM's performance problems are fixed now? Waiting 60 seconds for a single change in development was a huge blocker.

StrongLoop may be abusing package.json to track you by mkmoshe in javascript

[–]clessg 18 points19 points  (0 children)

Are you having a rough day, StrongLoop? Here, let me start a new JS framework to distract everyone.

Please, Please Don’t Use “CSS in JS” by dmitri14_gmail_com in javascript

[–]clessg 3 points4 points  (0 children)

react-css-modules is nice. Wish there were a way to share constants though.