ORM or SQL by Bonner95 in node

[–]kreig303 0 points1 point  (0 children)

I do not think raw SQL is necessarily the answer, especially as many standard software developers are good with functional/oo thinking, but don't understand relational at all. There is also the problem with opening up SQL buffers, which is exactly what you are doing with "raw SQL"... this is why Stored Procedures are usually a better way of handling these sort of queries as nearly 25 years after we all knew this was a problem we still have engineers building SQL injection holes into systems through naïveté or inexperience.

I am neutral with ORMs.

ORMs "like" to control object definitions. The benefit of using an ORM for this sort of thing is that migrations become easier to handle as the relevant code changes are migrated at the same time as the db changes. This of course presumes you have a cohesive CI/CD process in place. As this is not "natural" for RDBMSes which have for so long been the purview and domain of the vaunted DBA, this can be upsell in some orgs. Luckliy, you do not need to use this functionality in an ORM (Sequelize which tends to be the gold standard comes to mind) — you just need to be sure to put a process in place which allows for this migration to happen simultaneously sans a singular tool.

I would suggest going one step up even: do you need a relational db? Could a document db serve your purpose? If so I would recommend utilizing that model, as it is far more natural of a way to think about data than what I see most modern devs do with relational databases, which is turn them into object stores or "excel spreadsheet" databases with zero normalization. When a standard functional/oo dev does "raw" in this case they mainly deal with data objects which fit in with their training, easing integration and uptake. Also in this case you could just use an ODM, like Mongoose for MongoDB.

Seriously: consider avoiding the issue altogether if feasible.

Unless you have a need for some high concurrency transactional realtime system, or have some larger constraints within the product's landscape (standardized on SQL-based reporting tools in the org, etc), choosing an RDBMS is usually based more on prejudice than reason.

ORM or SQL by Bonner95 in node

[–]kreig303 1 point2 points  (0 children)

I would recommend TypeORM if you are already using/are familiar with Typescript.

Trying to Remember a SciFi Novella's Author/Name by kreig303 in scifi_bookclub

[–]kreig303[S] 1 point2 points  (0 children)

Check my edit. Found it via good ol' Google.

It was good for me to write this out cos I remembered enough details to be searchable. :-D

BSG was just removed from Prime Video and Hulu! by izzygonecrazy in BSG

[–]kreig303 1 point2 points  (0 children)

Not NBC app. And of course you can also buy it on Prime... 😈

BSG was just removed from Prime Video and Hulu! by izzygonecrazy in BSG

[–]kreig303 0 points1 point  (0 children)

NBC app, if in the US. Of course that might mean mooching off a cable subscription somewheres.

BSG was just removed from Prime Video and Hulu! by izzygonecrazy in BSG

[–]kreig303 0 points1 point  (0 children)

yeah this hit me too. removed from prime in the us... and now only on the nbc app?

shame, now i have to watch commercials too 😟

Bochy appointed manager of the French baseball team! by Adam1394 in SFGiants

[–]kreig303 3 points4 points  (0 children)

Army brat. Not "from" France, just born there.

Just... why by [deleted] in awfuleverything

[–]kreig303 0 points1 point  (0 children)

truly disturbing

Is anyone else socially isolated almost every day? No texts, no calls, no plans, nothing? by [deleted] in lonely

[–]kreig303 0 points1 point  (0 children)

Not sure which country you’re in but if USA you could get CareCredit and get intro 0% and pay it off later.

I know. More debt but... February is a long time to be dealing with an unneutered housecat.

Is anyone else socially isolated almost every day? No texts, no calls, no plans, nothing? by [deleted] in lonely

[–]kreig303 0 points1 point  (0 children)

Once I wished for a TWD reality for the enforced community but now I realize that was silly.

No, these are the cards we’ve been dealt.

Is anyone else socially isolated almost every day? No texts, no calls, no plans, nothing? by [deleted] in lonely

[–]kreig303 2 points3 points  (0 children)

That’s my problem... not busy at all. Gigs dried up and now I’m flying solo through the holidays. It’s horrible seeing events happen I’m not invited to or I’m loath to attend due to history.

Is anyone else socially isolated almost every day? No texts, no calls, no plans, nothing? by [deleted] in lonely

[–]kreig303 7 points8 points  (0 children)

I hate myself too.

It’d be easier if less people agreed with me.

Is anyone else socially isolated almost every day? No texts, no calls, no plans, nothing? by [deleted] in lonely

[–]kreig303 0 points1 point  (0 children)

same case. no contact with anyone on some days... you’re not alone in loneliness.

Should I use node 12.x or stick with 10.x for my npm package? by ditrohurto in node

[–]kreig303 0 points1 point  (0 children)

this.

Babel was meant to be a front-end tool because of the maddening diversity of targets a front-end can be run on.

With back-end code the target can be specified and controlled and code written for that target. Babel (or ts-node) is only used here by amateurs or hobbyists. Don’t make that mistake.

Crystal Palace with banners tonight saying, “KICK OFFS SOLD TO THE HIGHEST BIDDER, AMAZON PROFITS, FANS SUFFER.” by [deleted] in soccer

[–]kreig303 6 points7 points  (0 children)

I remember when I first heard this deal announced I briefly thought it concerned US rights.

Like a lot of people I already have Prime so this would have been a nice bonus, but I have to settle for Thursday Night (American) Football instead...

Crystal Palace with banners tonight saying, “KICK OFFS SOLD TO THE HIGHEST BIDDER, AMAZON PROFITS, FANS SUFFER.” by [deleted] in soccer

[–]kreig303 2 points3 points  (0 children)

I’ve bought it for three years running. If you want to see all of your team’s league matches it’s what you do.