Better HN
topnewbestaskshowjobs
Log inSign up

ithrow

372 karma · joined Feb 21, 2020 (6y ago) · 311 submissions

Submissions

comment 4y ago · link · parent

The benchmark in the tweet show it is.

comment 4y ago · link · parent

I don't even get why Golang is considered a good language.

Because it's a more 'get shit done' language (with a fast solid runtime, good stdlib and and fast compiles), it's not concerned with giving its users the means and ergonomics to produce the most beautiful programs, instead, a language for the majority of backend developers.

comment 4y ago · link · parent

The material used to kill white walkers.

comment 4y ago · link · parent

What do you mean by "default contents"?

comment 4y ago · link · parent

Or a rebellion starts eventually, which is one of the objectives of these sanctions.

comment 4y ago · link · parent

Now the West has taken their livelihood from them

That's the whole point, make the country poor.

comment 4y ago · link · parent

This a good advice for dealing with 'decision paralysis' which can make you waste more time than just trying out the options.

comment 4y ago · link · parent

Hiring wasn't in the articles' checklist though ;)

Valid point anyway

comment 4y ago · link · parent

Every new release was like "we broke backwards compatibility but we got it right this time", rinse and repeat

comment 4y ago · link · parent

For generating PDFs like invoices in a webapp, is libraries like this the way to go these days or is still using a pdf lib the norm?

Pros of Playwright/Puppeteer:

Reuse existing HTML/CSS knowledge

Cons: Requires an external service or shelling out to an external process

Pros of using a pdf lib:

Probably better performance, simpler architecture by being in-process.

Cons: Ad-hoc language for designing the PDF.

comment 4y ago · link · parent

What do you think cloudflare workers are and what is parsing the JS? ;)

comment 4y ago · link · parent

But looks like you do need to have v8 running somewhere for production?

comment 4y ago · link · parent

Queries start with FROM, it's called a README for a reason...

comment 4y ago · link · parent

I already get postgres for free: apt-get install postgresql

comment 4y ago · link · parent

Fair, I'll shut up until I have more real world experience with Rust. One thing that I remember well that really annoy me were the extremely slow compile times (these was two years ago, maybe it's much better now) since I value fast feedback. I understand for some that compile time cost is worth it and doesn't bother them.

comment 4y ago · link · parent

Rust is great for reliable production systems, for sure, but for 'let's quickly prototype this new feature', it’s too strict. Imagine figuring out a perfect algorithm and spending a few hours implementing it just to be told by the borrow checker it won’t let it pass.

When this new features start to queue up I’m happy to have leaks as long as I get to try out ideas quickly (later you hardened them). And it’s hard to convince Rust to let it go.

Maybe it's my inexperience with Rust, definitely need to give it a second try for more than three weeks but haven't had a good reason to do so.

I don't like Java at all and prefer Clojure when on the JVM, but as you said, the Java ecosystem(libraries get the job done) and the GC are definitely good reasons to pick it up for a webapps.

comment 4y ago · link · parent

So, I don't agree with your assessment at all. Writing a large enterprisey business app in Rust will likely run faster, have fewer bugs, use less memory, and even scale out better.

That's true but which is more flexible for the "ever changing living business app domain" the GP is alluding to? You seem to keep ignoring this part, flexibility matters. In rust is easy to code yourself into a corner and spent lots of time rewriting stuff over and over.

comment 4y ago · link · parent

The go version looks perfectly fine to me (saying this as someone who uses clojure every day) ;)

Something else to consider is performance, in most implementations the for loop is going to be more efficient.

comment 4y ago · link · parent

REPL is Clojure’s superpower.

This is the only community were I keep seeing the word 'superpower' used repeatedly in most blog posts and forums.

comment 5y ago · link · parent

Javascript being fast as Java and coupled with Typescript the future of Java doesn't look very bright.

comment 5y ago · link · parent

I don't think that anyone who uses Javascript as part of their backend stack has any room to criticize.

Nodejs is a solid server runtime these days, widely test by big companies with big traffic as their frontend servers. And there is a mature option for static typing if you want that.

comment 5y ago · link · parent

Until you use the very slow and extremely buggy black box in production.

comment 5y ago · link · parent

No need to go full SPA, dynamic dropdown can just be a component(with react-select) in your MPA. You create coupling between your front-end server and the browser but that's not bad at all for many type of webapps.

comment 5y ago · link · parent

I have some SQLite databases that are chewing through over 1K writes per second in production (WAL=on).

Is that with synchronous full(2) or normal(1)?

What's your SQLITE_THREADSAFE mode?

comment 5y ago · link · parent

What made you come back to React?

comment 5y ago · link · parent

and then:

In terms of programming-in-the-large, at Google and elsewhere, I think that language choice is not as important as all the other choices: if you have the right overall architecture, the right team of programmers, the right development process that allows for rapid development with continuous improvement, then many languages will work for you; if you don't have those things you're in trouble regardless of your language choice.

comment 5y ago · link · parent

It won't give you any magic wand if that's what you expect but SICP is highly recommended.
1
567
11