Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_huayra_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
361.
▲
by
_huayra_
5y ago
Gotta register a 501c3 to help save poor C++ programmers from the many footguns. Donate today!
362.
▲
by
_huayra_
5y ago
Jumping on the footgun bandwagon, one I had always known, but never realized how bad of a design decision it was was "the c++ rvalue lifetime disaster" [0]. The talk linked in [0] has a different conclusion, but describes the prob
363.
▲
by
_huayra_
5y ago
This is why things like std::list still have value: iterator stability. You even get this in most map/sets too. But vector is usually what one should reach for unless one has a good reason not to. The only danger really comes when the
364.
▲
by
_huayra_
5y ago
Whew thanks for looking this up! I was afraid I'd have to add yet another entry to my gigantic C++ footguns.org document. It's getting so big now that Emacs struggles a bit to load it due to inline code examples!
365.
▲
by
_huayra_
5y ago
I just completed the xv6 projects for that course and they were damn difficult, but taught me a lot. I highly recommend it. The only thing I missed was support for when I really ran into a wall, but perhaps I just don't know the right
366.
▲
by
_huayra_
5y ago
I kinda wish there was a good electric car that wasn't so cloud-connected though. Tesla has done some pretty good things wrt engineering (e.g. see Munro Live on youtube) due to out-of-the-box thinking and a lack of sunk costs in existi
367.
▲
by
_huayra_
5y ago
Is there a 10-year-capable electric car out there? I hope there is because I may need to purchase one soon. I've known too many people have issues with Teslas to consider going for one, and I'm not sure what else is out there.
368.
▲
by
_huayra_
5y ago
> e.g., loving science, wanting to become a real expert in an area This is good advice, and sort of what I meant as a test to see if you want to do a PhD. Sadly, a lot of grad students did not use the time effectively and ended up anxiou
369.
▲
by
_huayra_
5y ago
Perhaps it's not a huge mistake, but I definitely did not think through the pros and cons of getting a PhD. There have certainly been some benefits (e.g. being able to move from my home country to one I prefer), but the amount of forgo
370.
▲
by
_huayra_
5y ago
Uggh I never thought that some version of "The Secret, but for tech bros who worship Tim Ferriss" would get so many upvotes. "Fake it 'til you make it" is terrible advice, in any arena. There is the case where you m
371.
▲
by
_huayra_
5y ago
Yeah some of the gravel bike stuff really amazes me these days. I can't imagine doing some descents on anything but a fireroad with a gravel bike due to the un-slack geometry, but I've seen people bomb green downhill runs at some
372.
▲
by
_huayra_
5y ago
What part of flakes might be up for discussion? The only quirky part I see is how one has to "rewire" inputs of your own inputs (e.g. nixpkgs from an input to one's current flake) via that `follows` directive, but overall it&
373.
▲
by
_huayra_
5y ago
I wonder if there are any contentious design decisions left in flakes. I've still new to Nix, but it seems pretty solid (the only thing I've seen is that `nix flake info` is now `nix flake metadata` or something minor). The only m
374.
▲
by
_huayra_
5y ago
It might be possible, but a better approach (and the one Guix used initially, iirc) is to just be compatible with the derivation format (kinda like object files in C/C++ compilation). The end result is basically a big dependency graph,
375.
▲
by
_huayra_
5y ago
I really can't believe they didn't finalize Flakes in this release. The difference between it and the "standard" way of doing things is night-and-day. these sort of "secret better ways of doing things" that are
376.
▲
by
_huayra_
5y ago
Yes, if Guix were "Nix but with Scheme" I'd go for it in a second. Unfortunately, although both Nix and Guix make hard choices about things (e.g. the init system), at least the choices made by Nix are more livable day-to-day.
377.
▲
by
_huayra_
5y ago
> But I decided for now to go fully manual with arch to get a better understanding of most components involved in Linux before using the automatic that is nix. I think one can do this separately, e.g. run NixOS for the host OS and then d
378.
▲
by
_huayra_
5y ago
It wasn't just these phrases, but we took them out to be safe (thinking that them being jokes about male... "performance", like from pharma ads on TV with an old man throwing a football through a tire swing). The biggest thin
379.
▲
by
_huayra_
5y ago
I worked on a small team with a very "code bro" culture. No toxic, but definitely making non-PC jokes. We would often say "Ask your doctor about Premature Abstractuation" or "Bad news, dr. says this code has abstrac
380.
▲
by
_huayra_
5y ago
What are the advantages of this engine over Boost Beast (and Asio)?
381.
▲
by
_huayra_
5y ago
If you can use C++20, I'd encourage you to look into using concepts. Since I've started using them, it feels like a much more natural choice than class hierarchies when one needs to enforce type constraints on interfaces. Instead
382.
▲
by
_huayra_
5y ago
Do you think a worker co-op either/both avoids hiring a-holes in the first place and/or avoids bringing out a-hole tendencies in otherwise normal folks? Being ~8 layers deep in the corporate hierarchy at my current place is very f
383.
▲
by
_huayra_
5y ago
Yes it seems like software consultancy would be the most obvious choice. I wonder if such a structure could expand to build a complicated B2B product, for instance. The example that comes to mind is some sort of enterprise wifi / netwo
384.
▲
by
_huayra_
5y ago
I wonder if anyone works in a worker cooperative software company. I'd imagine there are some, but I wonder what kinds of software they do / products they make. From what I've read about co-ops, I would definitely love to wor
385.
▲
by
_huayra_
5y ago
I was not equipped for the type of psychological distress that comes from truly competitive academic / job endeavors. After acing my easy high school and going to a top uni for CS I became really despondent. I just felt like there shou
386.
▲
by
_huayra_
5y ago
Indeed. It is incredibly telling when people attempt to equilibrate "I'm anxious because I'm not sure if I'll be promoted to senior dev this quarter" to "I'm anxious because I cannot feed my family".
387.
▲
by
_huayra_
5y ago
There are differences in the "totally unnecessary technology" treadmill. If some employer says "I want to build this product on Azure. I heard it's hot. Oh and use Mongo DB too, and use Go" when it would be sufficie
388.
▲
by
_huayra_
5y ago
Yes, I'd much rather that my taxes go to an up-front long term investment than have it blown away reacting to something that could have been prevented! It's a good investment for taxpayers, unlike subsidizing dino juice.
389.
▲
by
_huayra_
5y ago
If you want a deep dive on this, Peter Attia's last two guests on his podcast were great 1. https://peterattiamd.com/peterhotez3/ Peter Hotez on the history of anti-vax 2. https://peterattiamd.com/
390.
▲
by
_huayra_
6y ago
Do medical devices and auto tech use similar components? I understand there's a lot in common, but I would think that safety constraints for one domain would cause it to not overlap with the other. Forgive my ignorance on this, as I am
More ›