hairyballs

joined 1 year ago
[–] hairyballs@programming.dev 9 points 1 year ago

And here you're only talking about a subset of memory leaks, by inaccessible memory. You can also leak memory by pushing new elements in a channel while never reading them for example.

[–] hairyballs@programming.dev 2 points 1 year ago (1 children)

We can go further, I think it's impossible to prevent memory leaks in a general purpose language

[–] hairyballs@programming.dev 1 points 1 year ago

The Elm compiler

[–] hairyballs@programming.dev 2 points 1 year ago

WTF I didn't understand, thanks for the explanation. The fact that it's used all around the world in big companies doesn't matter I guess.

[–] hairyballs@programming.dev 5 points 1 year ago

Lmao, what the heck. I've heard about that, but I still cannot believe it's true.

[–] hairyballs@programming.dev 5 points 1 year ago

Yeah, I changed my career direction (industry, tech stack…) but before that, my CV only was enough for me to get hired. They would just verify the information, and sometimes, there weren't even a single tech interview.

[–] hairyballs@programming.dev 10 points 1 year ago

I was so lucky in the interview for my current job: I'm working on a product with a big networking component, and I was asked to write an echo server with low level components. That was maybe the second time I had a test related to the job.

[–] hairyballs@programming.dev 0 points 1 year ago* (last edited 1 year ago)

This: comparing something you buy once, with a license does not make a lot of sense. In SaaS, you get update, support, etc. For something critical, I'd rather get that than something that I buy once and may be buggued in the future.

[–] hairyballs@programming.dev 13 points 1 year ago (6 children)

Why the fuck would they prevent private browsing? I use that a lot to be sure the session is closed correctly.

[–] hairyballs@programming.dev 3 points 1 year ago* (last edited 1 year ago)
  • I put the types first in the file, sorted by importance
  • then the public free functions
  • then the impl blocks, sorted by importance, also. Usually, display impls and similar end up being at the end
  • then the private free functions (helpers)

The idea is that I can see all the types in one glance, then I look at the rest.

[–] hairyballs@programming.dev 1 points 1 year ago

What the actual fuck. It's a made up story I'm sure.

[–] hairyballs@programming.dev 1 points 1 year ago

It's a toy example. In that case, the solution is to assign the expression to a variable to compute its result upfront.

view more: next ›