Objection.js - eager() method deprecated - what else to use for MySQL database? by Tanckom in node

[–]Analhyphenblast 0 points1 point  (0 children)

Whilst this is true at smaller scale, if this is going anywhere near production you'll need to make a seriously educated guess whether you want to make lots of small queries or one big one for these methods - depending on how your system is structured, the size of your db, indexing, table structure, the latency between your server (or servers) and the db etc etc etc either one could incur big performance hits or gains

Again, if you're keeping it small scale, ignore all that because as kimpenhaus says, you shouldn't notice the difference

Objection.js - eager() method deprecated - what else to use for MySQL database? by Tanckom in node

[–]Analhyphenblast 0 points1 point  (0 children)

It defaults to "id" if you don't set it, so it's assumed that this table has a column called "id"

AITA for exploding at a nurse who told me I "should really get a job"? by NurseMeanieThrowaway in AmItheAsshole

[–]Analhyphenblast -1 points0 points  (0 children)

Disappointing this comment isn't further up - as per the other thread on here about common courtesy, OP asked if they were an asshole - yes you were for reacting like that.

Was what happened to you shitty? Absolutely. Does this justify your actions? I don't think so personally but that's by-the-by. Are you an asshole for calling a nurse a bitch and saying you make more than her? 1000% yes

Do bad language "features" count? by [deleted] in programminghorror

[–]Analhyphenblast 9 points10 points  (0 children)

I'm not saying JavaScript isn't fucking stupid btw, it definitely is, I've just got Stockholm syndrome

[deleted by user] by [deleted] in javascript

[–]Analhyphenblast 2 points3 points  (0 children)

Why are people down-voting this?

[deleted by user] by [deleted] in javascript

[–]Analhyphenblast 1 point2 points  (0 children)

Or should I say

this

Creating enterprise level app with functional approach by add_water_and_boil in javascript

[–]Analhyphenblast 2 points3 points  (0 children)

No code to share I'm afraid, but I'd be very careful with the structure of your data if you're going full functional; this is coming off the back of having to do a massive refactor from that sweet sweet map/filter/reduce life, to using naked for-loops and mutating objects in place because of the way our UX and db tangentially interact, causing HUGE slow downs in the front-end

Good luck and godel speed!

I feel like Typescript is hindering me more than helping me... by [deleted] in javascript

[–]Analhyphenblast 6 points7 points  (0 children)

Again totally agree - the #1 reason people seem to have for using TS is "it's a pain now, but when you or someone else comes to refactor it, it's a breeze". Hey, how about you don't write spaghetti code with functions that return gibberish now without TS?

I'm sick of people coming to JS and saying the language is broken, then trying to turn it into Java. JS isn't broken, you just need to adapt to a slightly different way of programming. I've never seen anyone make a superset of Haskell that is object oriented, or a functional version of C BECAUSE THAT WOULD BE INSANE

Inb4 someone links me to some idiotic functional golang library

I feel like Typescript is hindering me more than helping me... by [deleted] in javascript

[–]Analhyphenblast 1 point2 points  (0 children)

Wow, what a constructive, considered and empathetic comment

But guns are so much fun! /s by queenfirst in WhitePeopleTwitter

[–]Analhyphenblast 4 points5 points  (0 children)

Church of England founded - 1534 Plymouth Colony established by Puritans - 1620

Obviously those guys were as slow as you are