News for hackers. Stuff that matters.

nx7487

Re:Ask HN: Programs that saved you 100 hours? (2022 edition) on Tuesday December 20, 2022 @03:12PM (#34071811)
sed -i "s/function_name/function_name2/g" $FILES && git restore $FILES

Edit: Not claiming this is better, just saying what I get by with. I have never used an IDE in my career so far, or any autocomplete or code modification features.

Re:Crimes with Go Generics on Monday April 25, 2022 @01:42AM (#31151044)

    Go 1.18 added generics to the language. This allows you to have your types take types as parameters so that you can create composite types (types out of types). This lets you get a lot of expressivity and clarity about how you use Go.
Aren't structs already composite types?
Re:Epic launches anti-cheat support for Linux, Mac, and Steam Deck on Thursday September 23, 2021 @04:08PM (#28634588)
Client-side analysis allows the game to identify unauthorized access to game state, which is the root cause of most cheating (probably not going to prevent computer vision aimbots that just analyze frames). It's just a much simpler and effective solution than fine-tuning a statistical model.
Re:Why are hyperlinks blue? on Thursday August 26, 2021 @01:39PM (#28317988)
> I would probably not be hiring software engineers to write a programming language that's not even used for the core product.

Rust is used in Firefox

100% agree, people like this guy are despicable.
Re:Early-Retirement Update on Monday March 22, 2021 @02:10PM (#26544462)
If you have a different opinion, then you're probably not looking for advice. This guy is writing a comment for people that don't know what the purpose of life is exactly, and who are looking for other people's opinions.
Incoherent headlines, a major indication of age-unrelated brain deterioration.
Re:Coursera S-1 IPO on Friday March 05, 2021 @08:30PM (#26364402)
Risk vs reward, you probably _can't_ get a "career changing" course without making it too difficult for some people.
Yeah, my question is, what's the best direction to go in:

1. Continue trying to create error-handling systems for devs 2. Try to solve this with more generic static (or dynamic) analysis tools.

I mean, maybe what we need to do is make simulator-esque testing more popular, or something.

Re:Why did I leave Google or, why did I stay so long? on Wednesday February 17, 2021 @10:45AM (#26167636)
People offended here are exactly the bubble of entitled morons in Silicon Valley that this guy is talking about. I totally agree with everything he said, companies where you have to work long hours and don't receive lots of weird benefits like yoga and sushi are the places I want to work. I would much prefer to have my compensation include more equity in the company, and for my performance to actually be related to the value provided to customers and the fundamental value of the company.
Re:Green hackers around the world, let’s destroy Bitcoin on Sunday February 07, 2021 @06:17AM (#26054216)
Forcing budget reform because the government wouldn't be able to rely on printing money.
Re:Tokio 1.0 – async runtime for Rust on Wednesday December 23, 2020 @04:26PM (#25522406)
Yeah that's exactly right, it's an event loop.

It's hilarious to me that it's hitting "1.0" now. I remember the original release ~4 years ago?? That was way before Rust even had async/await. I imagine there were quite a few refactors. I mean, so much work, to make a library for asynchronous network service programming? If I needed an event loop and a scheduler I think I would just invest in implementing it myself, tailored to the requirements of my project.

Re:Write code. Not too much. Mostly functions. on Monday December 21, 2020 @11:29PM (#25502847)
I am a junior developer too. Questions like this are better suited to your manager. Mine gives me constructive feedback at regular intervals, and I also reflect on my own work and look at other people's work.
Re:Write code. Not too much. Mostly functions. on Monday December 21, 2020 @08:02PM (#25501703)
> In my experience, code with too many functions is more difficult to grok than spaghetti code.

In a way, it kind of _is_ spaghetti code. Even if there's no back references, it turns a single train of thought into a string of entrances and exits.

Furthermore, it's gotten much worse in the last year. Now the government forces gym closures and discourages people from going outside or to the grocery store, practically forcing people to live a sedentary lifestyle and encouraging fast-food eating _even more_.
Re:Cyberpunk 2077 Refunds on Friday December 18, 2020 @03:07PM (#25471292)
They did, just not publicly. That's why there were so many delays, the developers or managers kept saying "hey we're not going to make this release date, we need more time".
Re:Cyberpunk 2077 Refunds on Friday December 18, 2020 @02:50PM (#25471115)
Yeah, I'm so curious about what they were doing for the last 2 years. It seems like the artists have been working on the game for 5+ years: the world is huge and full of interesting and detailed environments. The graphics are amazing (on PC). But it's like the gameplay and open-world systems were written in the last year or two, and it shows.
Re:Cyberpunk 2077 Refunds on Friday December 18, 2020 @02:45PM (#25471070)
I've played ~20 hours on PC, and what I dislike most is the long, downright tiring dialog sequences. It's like, half of the game is just sitting there, watching a movie, where you press "1" or "2" to decide what V says.
Re:GitHub Dark Mode is too Dark on Saturday December 12, 2020 @03:45PM (#25401540)
The issue creator also points out "It is a concern for me because this W3C document is considered authoritative, and has made its way into government regulations." Pretty interesting thread.
Yeah the way I see it, once someone makes an ultimatum, the relationship is destroyed, there's no trust. You can ignore the quality of her paper or the critiques from Google, they probably just decided to end the relationship because of this.
Re:How many registers does an x86-64 CPU have? on Monday November 30, 2020 @05:53PM (#25260086)
Oh: to clarify, you mean that the compiler could just use stack slots for everything, but some instructions are only allowed to operate on architectural registers, right? If you have to execute a lot of those instructions, the number of architectural registers can be the bottleneck in performance?