Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,859 karma · joined Feb 27, 2013 (13y ago) · 3,460 submissions

Submissions

comment 2y ago · link · parent

This is the way.

Always separate the truth state from everything derived.

Especially the UI. Ideally have a single "render" method that updates your complete UI from the application state.

comment 2y ago · link · parent

Do you have a study showing this? Also what’s your definition of “success”? I will argue that less attractive people have to work harder, gain more skills, and develop a personality. All attributes that makes you more likely to succeed in whatever you want to achieve.

comment 2y ago · link · parent

“Research has echoed that nearly half of companies with return-to-office mandates witnessed a higher level of employee attrition than they had anticipated, and 29% of companies enforcing office returns are struggling with recruitment.”

Excellent! Vote with your feet people. That’s the only thing CEO’s will respect. I will only send my CV to a non-WFH company if there is literally no other choice available to me.

comment 2y ago · link · parent

Vote with your feet. Find a job that is WFH flexible.

comment 2y ago · link · parent

I would never accept a job without a flexible WFH policy. Unless there is literally no other choice. I am not the only one. So companies that are not flexible will be less competitive in the job market.

comment 2y ago · link · parent

Not for me. I love working 2 days in the office and 3 days at home. But mainly for the social aspects. I am more productive WFH.

comment 2y ago · link · parent

Another theory is that Alzheimer's is caused by the brain becoming insulin resistant. Some researchers even argue that Alzheimer's should be called type 3 diabetes.

comment 2y ago · link · parent

New C++ projects are started every day. And billions of lines of C/C++ runs the world. So C/C++ will be around and used heavily for a very long time. Probably way beyond the retirement age of anybody reading this.

comment 2y ago · link · parent

Good luck programming your next application using the lamda calculus or a Turing machine.

comment 2y ago · link · parent

Let's say you want to prove a compiler correct. How do you express that as a thing you want to prove mathematically? Here us a possible way to do it:

BehaviourMC(compile(src)) = BehaviourE(src)

You are basically saying that the machine code behaviour of the compiled source should be identical to emulating the source directly.

You then need to define what you mean mathematically by machine code etc. until the goal is fully specified.

And then you prove it correct.

comment 2y ago · link · parent

Python is a step backwards in productivity for me compared with typed languages. So no I don't think we all agree on this. You might be more productive in Python but that's you not me.

comment 2y ago · link · parent

> machine code → macro assembly → C → Java → Python

This made me laugh out loud. Python is not a step up from Java in my opinion. Python is more of a step up from BASIC. It's a different evolutionary path. Like LISP.

comment 2y ago · link · parent

I typically auto generate about 90% of the code needed for a typical business application without using AI. That still leaves plenty of work for me to specify what is required to be generated by the code generator and translating/negotiating with customers. Customers does not want to talk to an AI.

comment 2y ago · link · parent

I think the key is to realize and accept that some projects are now so complicated and large that no single person can build it from scratch.

The Unreal engine (for example) is built by a large team of individuals working full time over many years. No single human can start from scratch and build Unreal 5.

Same goes for leading edge AI, space rockets, Linux, AAA games, etc.

However what you can do is to work on things nobody has worked on before. A new type of programming language, an interesting new type of game etc. It is a lot harder to get started because you can’t simply target what has been done before. However you absolutely can make things that others find valuable. Indie game developers (for example) do this all the time. It is not easy but it is doable.

comment 2y ago · link · parent

ROI is income/cost. The money customers pay for the software is income, and the money you spend on software developers, offices etc. is cost. Companies typically use quarterly or yearly ROI calculations to guide decisions.

And yes all plans and speculations are based on assumptions and beliefs about the future. Obviously. ROI is what you use to measure if your assumption/beliefs are correct after you make a change.

For example, the claim that spending $ making the software more understandable will increase ROI is easily tested. However what you really need to test against is the ROI of spending the same $ adding features instead.

The article argues that the ROI of improving the software always in all cases is a better ROI than any other possible investment. That is simply not true.

comment 2y ago · link · parent

So you are telling me that the lack of guides, architecture docs, engineering notes etc. for the software you are working on is not preventing the software from being successful and generating a high ROI.

In other words, you just proved my point.

The fact that it is a pain in the ass for you working on it has nothing to do with the ROI of the software. Think like a business person not a developer.

comment 2y ago · link · parent

Absolutely. The only power that can change the rules is (surprise surprise) power. If the Google employees managed to organize themselves into an effective union, they absolutely could force Google management to change the rules. If the employees can’t do that, only governments or (ad) customers can.

comment 2y ago · link · parent

There are none. Power is the currency of the world. I don’t personally like it. However I want to see the world as it is and not live in a make believe fantasy bubble.

Laws and rules are created and enforced by people in power. They are designed to force the less powerful to behaving in a certain way. It has nothing to do with “morals” or “justice”. You might happen to agree morally with certain laws or rules and not with others. However that doesn’t matter unless you are powerful enough to change those laws.

In the case of companies, the people in power can make whatever rules they want. Unless more powerful people (the government/large groups of costumers/powerful unions) threaten the company with repercussions if those rules aren’t changed.

Imagine (for example) a group of Vegans becoming powerful enough to outlaw eating meat. With heavy penalties (including death by execution) for anybody buying or selling meat for consumption. That is absolutely something that could happen. With the most extreme Vegans feeling morally justified in enforcing those rules. The only thing stopping this from happening is their lack of power.

Another example is religion. Do as your told or you will go to hell. If you truly believe there is a hell then this threat is the most extreme usage of power you can possible imagine. We are talking about being tortured all the time in every conceivable way forever.

comment 2y ago · link · parent

I have been wondering about it as well. I could be a lot more “productive” writing my own games and potentially make $ (I have in the past) instead of playing Factorio. However Factorio gives me a deep joy that programming no longer does. The reward cycle is much faster.

comment 2y ago · link · parent

I highly recommend not caring about what others value. Unless the only thing you are passionated about is to make $.

Instead notice what makes you excited. And whatever it is do more of it. It doesn’t matter if it is gardening or reading or painting or whatever.

You might be able to start a business focused on what you are excited about or get a job getting paid to do what you love. That’s what I did. I used to be deeply passionated about games development so that made my career choices super easy. However most people are not that lucky.

So focus on what excites you. And if that is not $ valuable then pick a career that minimises your misery and lets you do what you truly care about when not working.

You can’t force yourself to be passionated about things you don’t really care about.

comment 2y ago · link · parent

The hard part is not writing the software. The hard part is convincing companies that it is worth the switch cost to change the software they use.

Which means making it possible for customers to automatically transfer all the data they have already created with the old software to the new software with zero loss.

It also means convincing the customer that the cost of learning the new software is worth it.

And it means convincing the customer that having to deal with your brand new set of bugs, instead of the old set of bugs they have already learned how to work around or fix, is worth it.

In other words, you need world class sales skills way more than you need developer skills.

comment 2y ago · link · parent

Completely disagree. The most important goal in designing software is to maximize ROI (value/cost).

And yes if N hours spent on making a design more understandable gives a better value/cost, than any other usage of those N hours, then it is the right choice. But that happens very rarely in my experience.

Having said that, the #1 most valuable thing you can do IMHO is to make the software architecture simple and automatically testable. That is almost guaranteed to give you a better ROI than any other activity.

comment 2y ago · link · parent

I agree. Citizens will think more than twice about supporting invading another country if they might end up having to personally be on the ground in a kill zone.

Which is why I believe that people supporting a war should be the ones actually fighting it.

comment 2y ago · link · parent

I believe that intelligence is not the same as being smart. Intelligence (what we measure with IQ tests) is basically just a measurement of your ability to think abstractly. And yes being able to think abstractly is an excellent skill to have! Especially when working in math/physics/engineering/programming. However the world is full of high IQ people who make non-smart decisions every single day.

comment 2y ago · link · parent

I agree with you in principle but the reality is that most Universities and research organisations are extremely political. If you challenge the beliefs of the scientists in charge, your funding and support will often be cut. The history of “Nutritional science” is a great example of how bad it can get when money and politics overrules basic science.
1
192021
116