HNHacker News
TopNewBestAskShowJobs

_huayra_

1,795 karma · joined November 5, 2012

submissionscomments
_huayra_··on The Adoption of Rust in Business
I'm beginning to wonder if it's actually more difficult for C++ developers to learn Rust, at least speaking from personal experience. There are so many things I want to do in Rust when mapping from my C++ knowledge that are genuinely unsafe, e.g. copying around reference objects (including iterators) but convincing myself through rigorous testing that none of them ever dangle despite the somewhat unrelated lifetimes.

Perhaps when one isn't trying to map some similar-ish knowledge onto Rust it becomes easier, as one doesn't have to drop preconceived notions.

This very much feels like the time I tried to snowboard after having skied for a couple of decades; why can't I move my feet like before?!

_huayra_··on U.S. credit card debt jumps 18.5% and hits a record $930.6B
Wealthfront cash has a 4% checking+savings account (the distinction is no longer necessary, as iirc the monthly withdrawal limit has been done away with a few years ago).

Have you tried Primus? A bank offering a better percentage than RRP seems a bit sketchy and temporary, but maybe I'm missing something.

_huayra_··on U.S. credit card debt jumps 18.5% and hits a record $930.6B
Can you get a better rate with CDs than just parking cash in VMRXX [0]? The fund just ladders bills and gets 4.32% 7-day yield with T+1 liquidity.

[0] https://investor.vanguard.com/investment-products/mutual-fun...

_huayra_··on Until further notice, think twice before using Google to download software
I've been using Scoop on Windows [0]. Chocolatey is probably the more "professional" answer, but Scoop doesn't require Admin privileges, which I could never quite figure out how to do with Chocolatey.

[0] https://scoop.sh/

_huayra_··on ChatGPT: The Slickest Con Artist of All Time
I can't tell what is worse now: the sycophantic ChatGPT hype guys/gals who write articles "it's coming for all of our jerbs!", or articles like this one that deliberately misuse ChatGPT and then say "it's overhyped".

They're both missing the point.

Yes, ChatGPT can be tricked, confidently give wrong answers, but it is still ludicrously useful.

It is basically like having an incredibly smart engineer/scientists/philosopher/etc that can explain things quite well, but for pretty much every field. Does this "person" make mistakes? Can't cite their sources? Yeah this definitely happens (especially the sources thing), but when you're trying to understand something new and complex and you can't get the "gist" of it, ChatGPT does surprisingly well.

I've had it debug broken configs on my server and router (and explain to me why they were broken), help me practice a foreign language I've slowly been forgetting (hint: "I would like to practice $language, so let's have a conversation in $language where you only use very simple words." -> ChatGPT will obey), and help me understand how to use obscure software libraries that don't have much documentation online (e.g. Boost Yap, useful but with a dearth of blog / reddit posts about it).

Does it sometimes goof up? Yep, but it is such an incredibly useful tool nonetheless for the messy process of learning something new.

_huayra_··on GPT3 Is Just Spicy Autocomplete
Yes! It's basically like having a knowledgeable senior dev, but on pretty much everything. Maybe they don't always get the details right, but the insight in explaining the "fundamentals" of how something works is key, and ChatGPT usually does this quite well.

I used to be the "C++ wizard" who everyone in my team would bug when they'd come across some weird behavior, but now I just say "ask ChatGPT about $footgun in C++". It actually explains it super well!

_huayra_··on GPT3 Is Just Spicy Autocomplete
I'm getting pretty tired of these posts dunking on ChatGPT making it to HN. Yes, we know if you try to see if it is "smart", it'll fall down. It's pretty easy to show how silly it is compared to things a human could do, etc. Haha, robot do the mistake again!

This is the equivalent of someone Googling something back in 2000 and saying "wow this is just a joke because I searched for 'cat' and got a few dog pics. It'll never be useful".

I've had ChatGPT debug my router config, teach me esoteric C++ libraries with examples, set up config files for various things (e.g. CMake, Kubernetes) and be able to explain to me what it's doing when I ask it, and even help me learn a foreign language (hint: "I want to have a conversation in $LANGUAGE that I'm learning, so please respond to my queries using very simple words and phrases in $LANGUAGE", and yes, it'll do it).

Sure, you can have all kinds of "fun" asking it "are you a robot herp derp", but it does incredibly useful things right now.

_huayra_··on Ask HN: Is it just me or is 5G strictly worse than LTE?
I went to tmobile's 5g internet after Comcast refused to negotiate better terms on renewal. I live in a HCOL metro but have yet to be hooked up to the local fiber company, so although this 5g home internet isn't so great (high latency, trash-tier upload speeds), download is good and it is great to have an option against the Comcastopoly.
_huayra_··on Ask HN: What is the best source to learn Docker in 2023?
Any of the options lighter-weight that Kubernetes is usually good to start with, but for anyone already running these solutions (e.g. docker compose), learning Kubernetes can be a valuable job skill (because like you said, it's for mega-corp type environments).
_huayra_··on Tech layoffs shock young workers, older people not so much
That's true, any of my colleagues who have bought houses recently were dual-tech DINK and had to sell off a bunch of RSUs. Single-income folks just have to wait it out and hope prices come down, or just give up the narrow search and get some place in Tacoma :/
_huayra_··on Tech layoffs shock young workers, older people not so much
And Silicon Valley is uniquely messed up by Prop 13 and NIMBYs, not to mention the fact that there is no room to sprawl out like midwest cities given the geography.

That's not to say that other cities don't have a similar mix, but those other cities are not home to the headquarters of highly-paid software folks who all compete for housing. Even Seattle folks priced out can possibly afford places way up north in Everett or down south in Tacoma, if one absolutely must have a house for whatever reason. Even cities that are a heinous commute to Silicon Valley (e.g. Santa Cruz) are still wildly expensive.

_huayra_··on Tech layoffs shock young workers, older people not so much
The real question is why can't we get much denser housing (e.g. condos) and a smaller commute.

At least for Seattle, it seems like the liability for the builder and the costs don't really justify building for less than some un-sellable amount (e.g. $1k / sqft) [0]

[0] https://www.reddit.com/r/SeattleWA/comments/wnkwvp/comment/i...

_huayra_··on Tech layoffs shock young workers, older people not so much
The point is not that the roth ira is a useful savings vehicle for one's emergency fund, but that it's a good idea to think of the extra FAANG / MAGAM (whatever the acronym is now) money one gets on top of a non-MAGAM developer job should basically be treated as if it doesn't exist, and therefore socked away in the extremely useful retirement savings vehicle of the mega backdoor Roth IRA (which I know at least Microsoft offers). This treatment of the "MAGAM bonus" as such allows one to be able to downsize to a less-well-compensated dev job if one has to (e.g. layoffs, then go work for some non-software-first company like in automotive, consumer products, etc).

Most developer salaries put them well above the IRA limits, so having the option to save post-tax dollars in a Roth (which also has no RMDs, unlikely regular 401ks and IRAs) is a rare opportunity.

_huayra_··on Tech layoffs shock young workers, older people not so much
I've seen two types of people here in Seattle in tech affected by these layoffs and Amazon and Microsoft:

a) living paycheck to fat paycheck because of how they decided to misuse their compensation, i.e. luxury cars, getting the maximum mortgage the bank would allow for them and buying a house in the past year because of FOMO, etc.

b) those who have years of runway, and are only upset because they may have to sell off some of their ETFs to make ends meet if they can't find something in >1 year

Unfortunately, I see too many of my fellow devs fall into category a) and are really up a creek. The best thing to do when one lands a highly-compensated tech job (in the future at least) is to treat the "extra comp" as that: extra. Just max out the "mega backdoor Roth IRA" instead buying of a custom-wrapped Tesla.

_huayra_··on Ask HN: What have you built more than twice and wish someone had built for you?
I have tried to figure out how to use Nix as a package manager to deal with this, but it is still too much wizardry for me to wrap my head around.
_huayra_··on Ask HN: What have you built more than twice and wish someone had built for you?
I have advocated to at least try bazel (or even buck), but the higher-ranking devs all say that it's too much "organizational knowledge risk", i.e. if I force something unfamiliar onto the team and they only shakily know how to work with it with my help and then I leave, they're screwed. Therefore, it usually boils down to trusty old crusty tools.

Crabs in a bucket.

_huayra_··on Ask HN: What have you built more than twice and wish someone had built for you?
A sane build system + package management solution for C++. I have to cobble it together via CMake + Conan every time and I'm praying I get put on a new Rust project someday, but my position and sizeable comp are mainly for being a "legacy janitor".
_huayra_··on Microsoft to lay off 10k workers
I wonder where EU tech workers (big or not) fit in this. Certainly pay is less than US, but when I worked in Europe, everyone took all of their vacation time and generally did not work beyond regular business hours. Where I work today in the US, even junior devs (i.e. no on-call or general need to fight fires outside of regular hours) are grinding away on nights and weekends. The only way I can basically take a half-day here and there during the week to ski is because my team would be screwed without me, but it's still a pressure cooker compared to my last job in Europe; "I'm going to be bikepacking in Sweden all of August and won't be reachable" -> guess which OOO notice that job came from? xD
_huayra_··on The 'buy now, pay later' bubble is about to burst
Paying without a credit card is just supporting the credit card fees of those who do pay with one. The price is the same, but you often get 2 or even 3% cash back (depending on offers).

Anyone financially responsible (i.e. that won't get enticed into carrying a balance by the opportunity to get cash back) is leaving money on the table by not using a credit card (with good rewards).

_huayra_··on ChatGPT Can't Kill Anything Worth Preserving
They might also listen in on meetings, write a summary in a word doc that no one reads, and then adds tasks in whatever kanban one's company uses that you never look at.

Product Manager-aaS

_huayra_··on The 'buy now, pay later' bubble is about to burst
Maybe I just haven't had the opportunity to buy any big ticket items with BNPL, but the few times I tried it (trying to do the "free money" thing, getting a bit more interest in my HYSA by amortizing the total payment out over time), it just created kind of a financial tracking nightmare. I'd get flurries of emails about how my "pay in 4" payment was about to process....for $13. Trying to keep track of all that for a few pennies became too difficult (matching up which purchase each micropayment was from), although those pennies add up for larger purchases indeed!

But for a floor rate of 10%, BNPL is just a less terrible credit card, not a good deal :(

_huayra_··on Vim: ZZ and zz: Do you know the difference?
Oh wow I totally misunderstood this snippet; I thought it was in fact the opposite (i.e. a shortcut to send a job to the background). Toggling back to the foreground is even better with the same shortcut! Neat!
_huayra_··on Vim: ZZ and zz: Do you know the difference?
s/fg/bg/ ?
_huayra_··on Investors conclude that Tesla is a carmaker, not a tech firm
People ooh and aah over the tacky gigantoscreen in Teslas, but it was really a hack to avoid having to design the usual litany of buttons and knobs that go onto a dash. Thankfully most other manufacturers haven't gone as totally screen-centric as Tesla (yet...)
_huayra_··on NYC officials say they can't find EV garbage trucks powerful enough to plow snow
I really wonder which of the following will win:

* a brand-new battery chemistry based on cheap and readily-available elements that avoids the issues related to existing lithium-based cells for vehicle applications (e.g. cost, cold, low power density, towing, large vehicles, etc)

* a way to synthesize fuel via CO2 capture from the air, perhaps in a fluctuating demand way to soak up solar from solar-rich regions (to make it net neutral-ish for CO2 capture) or if we finally get it together and build a bunch of nuclear reactors, which become net negative for CO2 emissions (from building the plant) in a matter of weeks

I would love to not have to deal with tedious car maintenance. I wish my car was as reliable as my phone, which never needs any sort of ongoing maintenance other than charging!

_huayra_··on Microsoft is preparing to add ChatGPT to Bing
> Barely anyone is making money writing reviews today, most sites are farmed content.

I'm sure ChatGPT will be able to write a bunch of terrible SEO prose that precedes the actual air fryer review (or worse, recipe) about how the author's grandma had an air fryer when she was young and remembered the great times with her grandma (etc), for roughly 95% of the text!

In all seriousness, being able to swerve all that terrible SEO content on reviews will always be welcome!

_huayra_··on Once an open sewer, New York Harbor now teems with life
My recommendation: Tom's of maine's natural floss is pretty good, but it might be a bit too thick for some folks
_huayra_··on Automating heating with Home Assistant
I think newer heat pumps (forced air or mini splits) do this. My parents got one and it seems to just run almost all the time, producing a varied amount of heat or cooling.

This does indeed require some fancy touchscreen super thermostat thing though, so that's probably the crux of this.

_huayra_··on Ask HN: How do you work on your mental health?
Perhaps we have different anecdata, but I think gratitude journaling may work better indeed for people who aren't truly depressed. In my own case and the few coworkers I unfortunately recommended gratitude journaling to (who were, like me, quite depressed), it was basically a wrote exercise, in one ear and out the other. Forced journaling just becomes a chore like any other, and it is one in which people spend time "in their head", which is exactly the opposite of what people with depression need to do.

In my case (and in the cases of the aforementioned coworkers), a much more useful activity is to participate in some low-key social activity where people see and accept you. It is so much easier to "bask" in the very minute friendship affection shown by others than to try to think and affirm one's way out of depression by merely writing stuff down in a journal. Anything from rock climbing to amateur basketball to even stand up comedy (one extremely brave depressed friend of mine did this, not me! still scary...), one can take part in letting other people help regulate one's emotions; attempting to DIY this via affirmations and journaling for someone with chronic depression is not a fruitful endeavor.

_huayra_··on Ask HN: How do you work on your mental health?
First off, I would caution anyone about doing positive affirmations, or even forced journaling exercises (e.g. gratitude journaling). These exercises are incongruent with how one see's oneself; people who are already grateful or have health self-esteem don't need to do these exercises, and those don't have them and are trying to force it on themselves only see it as a lie (subconsciously). You can't really lie to yourself and will it into existence, and it usually only serves to point out the gap between where you feel you are (e.g. low self-esteem, bad, etc) and where you want to be. That's a hard way to start.

A better place to start is to understand how your undesired behaviors ("bad habits") are serving a purpose for you, and then through that awareness build a substitute habit or coping strategy. For example, you don't have a "video game addiction"; you have a coping strategy that worked well to buffet you against the pangs of failure as you struggled in high school. The reason failure hurt so much is that your parents only conditionally showed affection toward you based on your academic success, so you never learned how to unconditionally love yourself. As an adult with a job and a family, this coping strategy is maladaptive, but is the "best" way you subconsciously feel you can deal with the feelings that continue to well up.

Two books are How We Change [0] and Adult Children of Emotionally Immature Parents [1], although I'd recommend the former book much more to start with.

Side note: if you're picking books to read, make sure to avoid books with a big photo of the author on the cover. That's almost a sure sign of a useless personal growth book.

[0] https://www.harpercollins.com/products/how-we-change-ross-el...

[1] https://www.goodreads.com/book/show/23129659-adult-children-...

← PreviousPage 6 of 17Next →