Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ghosty141
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
121.
▲
by
ghosty141
1y ago
Absolutely spot on in my opinion. Also things often just don’t compose well. For example if you have a nested class that you want to use in an unordered_set in its parent class then you just can’t do it because you can’t put the std::hash s
122.
▲
by
ghosty141
1y ago
> variant isn't, yet. We'll eventually get some kind of structural pattern matching that will make variant or it's successor more idiomatic. Thats the fantastic thing about c++, you can already write an easy to use match,
123.
▲
by
ghosty141
1y ago
> There's no way around it Yes there is, the population passing laws to regulate this. The problem is though, that most people don't understand and don't care enough until its too late.
124.
▲
by
ghosty141
1y ago
I'm in my late 20s, 0 chance of reading anything.
125.
▲
by
ghosty141
1y ago
I work in a small team where we are essentially 4-6 core developers. When I develop a feature I usually talk about it with my coworkers once I made a rough draft in my head how I'd approach it. They do the same so our code reviews are
126.
▲
by
ghosty141
1y ago
What? If your SSD is old and close to failure, you can’t blame the software pushing it over the edge. If a company sells parts that can’t handle writes that are within spec then I’m sorry you bought junk…
127.
▲
by
ghosty141
1y ago
I would say yes this is not theft. What happens is you just copy and/or modify something. Kinda like duplicating money, it's not theft since you don't steal from anybody, no ownership or similar changes.
128.
▲
by
ghosty141
1y ago
49,8% popular vote, 50,2 is a majority but at that point I would say it’s clearly half the American population that wanted him in power.
129.
▲
by
ghosty141
1y ago
Rust has the newtype idiom which works as proper type alias most of the time
130.
▲
by
ghosty141
1y ago
Thats just a setting in thunderbird. Indont see the problem with personal preference to show less emails
131.
▲
by
ghosty141
1y ago
Its not unlikely that similar problems exist with other mail programs but since they are closed source you dont see it
132.
▲
by
ghosty141
1y ago
> I’ve found SPoT (single point of truth) a better maxim than DRY I totally agree. For example having 5 variables that are all the same value but mean very different things is good. Combining them to one variable would be "DRY"
133.
▲
by
ghosty141
1y ago
> No one thinks of software size primarily in the context of their disk space. This is wrong. The reason why many old tools are so small was because you had far less space. If you have a 20tb harddrive you wouldn't care about whethe
134.
▲
by
ghosty141
1y ago
I dont think you are right. Light for example doesnt perceive time at all. From the photons point of view it never aged even a microsecond while it traveled lightyears. Time is relative too so from our POV 1 year passed when a photon trave
135.
▲
by
ghosty141
1y ago
this is fantastic, thanks!
136.
▲
by
ghosty141
1y ago
I don't get this. Git is still distributed, even if the "main" repo is on github, everybody still has a local copy. You are confusing project management (which github effectively does) and git. Git is still git, github is jus
137.
▲
by
ghosty141
2y ago
This is a 20 year old article and no we don't have "nazis kill foreigners with some regularity". Yes hate-crime happens, but you make it sound like an active war zone where you have to be afraid of your life if you are "
138.
▲
by
ghosty141
2y ago
The smarter the human is the more it knows how little it knows.
139.
▲
by
ghosty141
2y ago
I agree. I mean constant nagging about features can definitely be annoying so I can understand that part but having the rest sounds like burnout.
140.
▲
by
ghosty141
2y ago
There is a semantic difference. If you just copy paste code from the master branch to a release branch it might be unclear where that code came from. A cherry pick makes it clear that you ported a bugfix from the master to the release bran
141.
▲
by
ghosty141
2y ago
I also kinda love the thought of seeing untouched nature, like there have probably only been a handful of people there.
142.
▲
by
ghosty141
2y ago
In the winter it's cold outside and opening the window cools down the room -> no ventilation most of the time. In the summer it's not a problem for me, I leave my windows partially open all the time but in the winter especially
143.
▲
by
ghosty141
2y ago
I had the pleasure to access the framebuffer via the DRM and pull the data with DMA for a vnc server I wrote at work. Learning how to use the api was like half the work, an article like this would‘ve certainly helped!
144.
▲
by
ghosty141
2y ago
No but you would not wake up, a clone who has your memories would wake up but the you that went to sleep will never wake up. That effectively doesnt make a difference but I find it pretty odd to think about. We as humans kinda miss a way ve
145.
▲
by
ghosty141
2y ago
> I’m not sure were you got this perception that it’s dead. > C++ remains the only game in town in many domains. Yeah but not because people like the language but because there is no alternative. At work almost every one of us devs do
146.
▲
by
ghosty141
2y ago
Wait, why does std::span not do the range checking? We ran into that exact thing at work and were really confused why the hell it doesn't do it currently.
147.
▲
by
ghosty141
2y ago
That's pretty common though? I mean isn't that part of the idea of open source? Forking is a pretty central part. I don't see a problem here. Why should google have to deal with the opinions of a maintainer if they can just m
148.
▲
by
ghosty141
2y ago
At my previous job I worked in a room with ~6 people, now it's a small open plan office and I hate it. I just can't focus with all the talking, noise, meetings etc. it's awful, especially with the contrast of our 2 work-from-
149.
▲
by
ghosty141
2y ago
> but studies showed that he could remember some things, just not consciously. This reminds me of muscle memory. I can play pieces on the piano even though I don't actively remember the sheet music of them. My hands just "know&
150.
▲
by
ghosty141
2y ago
But for this boiletplate creating a few snippets in your code generally works better. Especially if things change you dont have to retrain your model. Thats my main problem: for trivial things it works but isnt much better than conventional
More ›