Better HN
topnewbestaskshowjobs
Log inSign up

nx7487

38 karma · joined Nov 19, 2020 (6y ago) · 22 submissions

Submissions

comment 3y ago · link · parent

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.

comment 4y ago · link · parent

    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?

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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

comment 5y ago · link · parent

100% agree, people like this guy are despicable.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Incoherent headlines, a major indication of age-unrelated brain deterioration.

comment 5y ago · link · parent

Risk vs reward, you probably _can't_ get a "career changing" course without making it too difficult for some people.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Forcing budget reform because the government wouldn't be able to rely on printing money.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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.

comment 5y ago · link · parent

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_.

comment 5y ago · link · parent

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".

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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?