Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
identity0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
identity0
6y ago
Isn't VS Code literally written in Electron? It would be the easiest thing to implement.
62.
▲
by
identity0
6y ago
All these problems come from these video call services trying to serve a million masters. If you're in a meeting it might be nice to have a big red X while you're muted, but it's distracting in an online class when you'r
63.
▲
by
identity0
6y ago
Had this never happened, all those GPUs would have spend many long nights doing nothing. Gamers have a disproportionate number of powerful PCs, and the people that contributed their GPUs did it out of love for the game, not for some greater
64.
▲
by
identity0
6y ago
> It's strict, yes, but most of that strictness helps with eliminating the types of errors that make your app break over and over again at runtime. Really? Most throwaway-script errors I get are simple things like IO mistakes, misty
65.
▲
by
identity0
6y ago
Don't be pedantic, you're doing it right now.
66.
▲
by
identity0
6y ago
You're missing the point. Here's a good article that talks about the problems of having neither overloading nor default parameters, but in Go.[1] The problem is made significantly worse in Rust when all struct fields need to be in
67.
▲
by
identity0
6y ago
Haha, I can't count how often a company, when asked about its privacy, says that it's protected using "military-grade encryption."
68.
▲
by
identity0
6y ago
To change your behaviour to look more favourably on Ycombinator startups. (/s?)
69.
▲
by
identity0
6y ago
You can't do compile time bounds checking, if that's what you're implying.
70.
▲
by
identity0
6y ago
And you can emulate most of C++ in C with macros. Doesn't mean you should.
71.
▲
by
identity0
6y ago
There are literally 100s of high level languages, for every imaginable programming paradigm. If you want to write fast code where you control memory and don't use a garbage collector, C, C++, and Rust are your only options. It's n
72.
▲
by
identity0
6y ago
Brown: made by monkeys on terrestrial planets
73.
▲
by
identity0
6y ago
Haha no. Facebook is where successful instagram features go to die.
74.
▲
by
identity0
6y ago
It's called "uniform function call syntax" because it comes from D unifies function calling between member functions and free functions. It's not called "uniform function declaration syntax" because the declara
75.
▲
by
identity0
6y ago
I never said encapsulation was easy or obvious in C, just that it's nothing new or inherently OOP-based. I also never said that you should never use inheritance, I was just quoting the author, who, in his "defence" of OOP adm
76.
▲
by
identity0
6y ago
The author flatly says "do not use inheritance." Without inheritance and polymorphism, what is left in OOP? If you look at the author's 4 pillars, the only thing left is encapsulation (and "Oversimplified Hot Takes"
77.
▲
by
identity0
6y ago
I don’t know if this is actually how C++ compilers do inheritance, but reading about how GTK does object-oriented in C[1] taught me a lot about what (might be) happening behind the scenes in C++. 1: https://www.linuxtopia.org
78.
▲
by
identity0
6y ago
For the third case it’s better to just abort. Tell the user to get more RAM or something. What are you supposed to do when you’re out of memory? Catch the exception? Then what? Related, I always find it funny when C programmers write `if (m
79.
▲
by
identity0
6y ago
The obvious solution (in C++) is not to use exceptions at all, but make your own `error` and `expected<T>` class, and just add [[nodiscard]] to them. All the benefits of Go-style errors, you’ll never forget to check the error, and the
80.
▲
by
identity0
6y ago
If you used it you would know. It’s fucking terrifying. I used to use it and hours would just disappear without even noticing. It also destroys your attention span. It turns out than if you spend two hours watching some novel thing every 15
81.
▲
A Programming Language for Games (2014)
(youtube.com)
8 points
by
identity0
6y ago
|
1 comments
82.
▲
by
identity0
6y ago
I’m pretty sure it works with ublock origin and umatrix. If the JS is blocked it won’t run. Not sure about NoScript though.
83.
▲
by
identity0
6y ago
Why do we optimize our CPUs to fit our programming languages instead of desigining our languages around our CPUs?
84.
▲
by
identity0
6y ago
What are you talking about? They have tests right here: https://github.com/Devs-Garden/jsonbase/blob/master/test.js Just uncomment the tests you want to run! Easier than using a testing library IMO.
85.
▲
by
identity0
6y ago
Yes you can. I tolerate cats but I also tolerate cat haters. If people wanted to ban cats, I can disagree with them, but I wouldn’t be opposed to tolerating them, hearing their opinions, and giving them a forum to talk. Tolerance does not m
86.
▲
by
identity0
6y ago
So? That just means that two variables are closely related. You have to be very blind and ignorant to take the implication that white people are less happy, or something. Is it racist to take a photo of a sad white person?
87.
▲
by
identity0
6y ago
You have to be joking. This is obviously one programmer's experiment on some esoteric data visualization mode that nobody ever used. The author even says in a footnote that: > "One of my favorite¹ concepts for multi-dimensional
88.
▲
by
identity0
6y ago
That article you posted is just stupid. Yes, maybe now people won't be pressing buttons, but COVID won't be around forever. In a few months/years/whatever the pedestrian button will still be around, people will still pre
89.
▲
by
identity0
6y ago
I think that's the great thing about SO. It's a repository of common questions, yet also manages to be great for asking questions as well. A lot of people in this thread seem to hate SO, and I disagree with them. If I ask a questi
90.
▲
by
identity0
6y ago
It’s a little funny seeing vue/angular/react/whatever people discover vanilla JS. I thought classList, innerHTML, and querySelectorAll were all extremely common knowledge.
More ›