0
48
hairyballs

@programming.dev

hairyballs 29 points 3 years ago

I really like this instance, so of course I'm 100% for the move

path: 0 2854838, hotness: undefined, score: 29, children: 0
hairyballs 11 points 3 years ago

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

path: 0 3214375 3217845, hotness: undefined, score: 11, children: 6
hairyballs 10 points 3 years 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.

path: 0 3546520, hotness: undefined, score: 10, children: 0
hairyballs 9 points 3 years 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.

path: 0 5003319 5005455 5009119 5010220 5011384, hotness: undefined, score: 9, children: 0
hairyballs 8 points 3 years ago

I don't like/use the class keyword in JS, because I quite like the paradigm with prototypes & stuff, and that keyword tries to make it fit into a totally different paradigm, which doesn't really work IMHO.

With TS, I find it even more useless, because I can use TS as a functional language, with POD, functions and interfaces only. I've written entire projects without ever using and needing this keyword, which is a proof IMHO that it's an unnecessary addition. Not sure how unpopular is my opinion tho 😅

BTW, I've developped a few strats to have my own style in TS that I like quite a lot. I can tell more if you're interested.

path: 0 699725, hotness: undefined, score: 8, children: 2
hairyballs 7 points 3 years ago

The first article is funny, because I moved from my native country to the one right next to it, and everybody is confused by my name. They have one given name and 2 family names, while I have 4 first names, and a compound last name.

No need to travel to the other side of the planet to meet a different culture of naming.

path: 0 2631450 2632491, hotness: undefined, score: 7, children: 0
hairyballs 6 points 3 years ago

I think they just don't like cringe

path: 0 2517915 2518870 2520450 2522068, hotness: undefined, score: 6, children: 0
hairyballs 5 points 3 years ago

I've had the same experience with TS + deno. I always use that for prototyping, scrapping, etc. Great read.

path: 0 2530186, hotness: undefined, score: 5, children: 3
hairyballs 5 points 3 years 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.

path: 0 3538507 3546583, hotness: undefined, score: 5, children: 0
hairyballs 5 points 3 years ago

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

path: 0 3538664 3543261 3543560 3545854 3546630, hotness: undefined, score: 5, children: 0
hairyballs 4 points 3 years ago

This is especially true for steam... what a crappy app

path: 0 3040697 3044750, hotness: undefined, score: 4, children: 0
hairyballs 4 points 3 years ago

I honestly try and read Go news from time to time, with an open mind, but the amount of terrible footguns is astounding, especially when the language is marketed as "simple" and easy for beginner to grasp. I would pick C# or Java over it anytime.

path: 0 2000789 2051776, hotness: undefined, score: 4, children: 0
hairyballs 4 points 3 years ago

I have a degree in philosophy (and no other diploma) and I make $200k/year as a senior developer. The degree does not really matter.

path: 0 2909835 2912098 2921664, hotness: undefined, score: 4, children: 0
hairyballs 4 points 3 years ago

And a light theme. I'm tired of websites having dark theme only.

path: 0 2149791 2163877, hotness: undefined, score: 4, children: 1
hairyballs 4 points 3 years ago

As said my sibling comment, I use KDE connect with GNOME shell

path: 0 2201676 2233572, hotness: undefined, score: 4, children: 0
hairyballs 4 points 3 years ago

While you're at it, with sum types, you can replace this stupid nil with an optional type. Also, you can replace the stupid error handling with an either/result type. Then you can add a keyword to return early if it's left/err. Then you have Swift or Rust.

path: 0 2631691, hotness: undefined, score: 4, children: 1
hairyballs 4 points 3 years ago

You import from whatever packages you want, then you type your code. No need to create a whole project with a ton of shenanigans, a single file just works.

path: 0 2530186 2574302 2578103, hotness: undefined, score: 4, children: 1
hairyballs 3 points 3 years 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.

path: 0 3172628, hotness: undefined, score: 3, children: 0
hairyballs 3 points 3 years ago

Fair point. I've experienced that in big corps, so I now you're right. For example, we would lose a bunch of time because the PCs didn't have enough memory, but they couldn't get us more RAM sticks, because of the bureaucracy, it could take 2 years or so.

path: 0 673793 675729 692910 692928 698790 699501 700512, hotness: undefined, score: 3, children: 1
hairyballs 3 points 3 years ago

Uh, they're different, though. There is no C++ tool (AFAIK) providing an exhaustive check of ALL the data lifetimes. I even think it's impossible, because their semantics are really different. Rust is move by default, C++ copy by default; Rust has no inheritance with its constructors, etc.

path: 0 2085877 2096685 2102903, hotness: undefined, score: 3, children: 1

thanks for using Leebra!

go to feed...