Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions

Submissions

comment 4y ago · link · parent

Yep you are absolutely right. People routinely get offended by anything that they don’t agree with, and often interpret whatever is said using the worst possible out of context straw man interpretation. I personally get offended when PC advocates whip themselves into a frenzy over the slightest misunderstanding. So I guess I should blame those PC advocates for harming me?

comment 4y ago · link · parent

You don’t need to. Just go for a 20 min walk every day and change your diet to be more healthy. Read “How Not To Die” to learn the food skills you need.

comment 4y ago · link · parent

You most certainly will the moment your body starts failing you and you have to live with pain every day. But at that point in time it will be too late. Health is not about not dying. It is about quality of life and long term happiness.

comment 4y ago · link · parent

Read “How Not To Die”.

comment 4y ago · link · parent

Spinach, Kale, and Beans are as close to “magic” health food as you can get. However there is of course no magic going on. It’s just a question of giving your body the right source materials to heal itself from the damage caused by eating unhealthy food. The body is amazing at healing itself. But it can’t do it if you keep damaging it with crappy food and don’t give it the nutrients it needs to heal itself.

comment 4y ago · link · parent

You are absolutely right. Taking responsible for your own health is the only thing that will help you long term. Doctors in general are not trained in nutritional science, and are typically as unhealthy as the rest of the population. So you need to either get advice from a nutritional expert or read books that teach you the skills needed. That’s what I did and it saved my health. I recommend reading “How Not To Die”. It’s the best “one book solution” I have read so far.

comment 4y ago · link · parent

You can always find examples of code using good ideas badly. Following the SOLID principles are more likely to improve your code than not. Assuming you understand how to use it of course.

comment 4y ago · link · parent

I really think this list is too low level. What matters a lot more is how the data structures and architecture is designed. I can easily imagine a nightmare of a system that follows all the rules in the list. And I have worked on great solid maintainable code that didn’t follow that list at all. Also, semantic versioning doesn’t work. Developers typically have no clue whether a small change might make an update incompatible. Fixing a bug might make your code incompatible without you knowing it for example (since software using your code has fixes to fix your bug).

comment 4y ago · link · parent

Code without use case tests that are solid, fast, and cover all use cases. I am happy to work with any code written in any style as long as the tests are solid. Tests done well are basically a machine checkable specification of what the software is supposed to do. It allows you to jump in and make large changes without breaking anything. I am maintaining a very large system written in C++ and I routinely refactor and make system wide changes without fear. I haven’t had a bug in production for 5+ years. Imagine how productive you will be when you never have to spend time fixing urgent production bugs.

comment 4y ago · link · parent

Dependent Types can encode all of math (see the Lean math library for example). So there doesn’t really seem to be any limit to what you can do with Dependent Types. However it might of course be impractical to actually do it in some cases.

comment 4y ago · link · parent

Wow so much downvoting. But no serious counter arguments.

comment 4y ago · link · parent

We are so far from having “real” AI that it is amusing to me every time I read yet another article gushing over ML. ML is fundamentally pattern matching. It is impressive tech for what it does. But humans doesn’t need 1 million carefully tagged images of chairs or cars to work out what a chair or car is. Our understanding of what general intelligent is hasn’t progressed much since the last AI winter. The only real difference is that computers are much faster today, enabling old technology ideas to be fast enough today for practical use.

comment 4y ago · link · parent

Here is an example of a tiny toy compiler proven correct in Idris. It is a small example of the kind of cool things you can do in Dependently Typed languages: https://github.com/mbrodersen/idris-sandbox/blob/master/comp...

comment 4y ago · link · parent

And it feels like 0.0001% if you want to write a fast device driver, game, or anything else performant.

comment 4y ago · link · parent

Idris is a really interesting language. One of the few languages that are really pushing the leading edge while trying to also be pragmatic.

comment 4y ago · link · parent

Senior C++ developer here and I totally agree. Anything that can improve productivity/quality while maintaining high performance is very much welcome. Obviously!

comment 4y ago · link · parent

It is a big part of any language promotion. I remember some Ruby guy claiming that developers are 100 times more productive in Ruby. Yeah right.

comment 4y ago · link · parent

I maintain large scale C++ code that hasn’t had a bug in production for 5+ years. I do it using lots of system level tests. So it is very much doable. It has nothing to do with the programming language. Yes some languages (Haskell for example) completely eliminate a large class of bugs, and I would prefer to use languages like that, however the world runs on C/C++. So having solid C++ skills is great for your career.

comment 4y ago · link · parent

I have been programming in C++ for a very long time (25+ years career). And no I don’t hate Rust at all. I welcome any attempt to make better, safer language that are still fast. I actually wish that Rust had gone one step further and implemented Dependent Types and Refinement Types. It would allow you to prove code correct in Rust. Which is even better than the current Rust guarantees. Having said that, there are about 5 million C++ users out there writing C++ software every day. So it will take a loooooooooong time before Rust usage catches up. If it ever will.

comment 4y ago · link · parent

> even the most passionate X developers can't make use of the language in a full safe way

Is pretty much true for any generally used language X. You can write security bugs, invalid domain logic, code that kills people etc. in any language that’s popular today. However there are examples of proven correct software (CompCert, CertOS, seL4 etc.) so we will hopefully get there eventually.

comment 4y ago · link · parent

Nope Pascal was never a real competitor to C. I have programmed serious software using both languages and I would never pick Pascal over C.

comment 4y ago · link · parent

Code written in C/C++ is running the world. Python/JavaScript/PHP/Java etc. are all thin layers on top of runtimes written in C/C++, running on operating systems written in C/C++, using drivers written in C/C++/Assembler. There is a reason for this. It didn’t happen by accident. C/C++ competed against thousands of alternative languages and won. We are only now starting to see any real competition (Rust maybe?) but there is a looooooong way to go before C/C++ doesn’t run the world.

comment 4y ago · link · parent

Focus on improving yourself every day and don’t compare yourself to the rest of the world.

comment 4y ago · link · parent

Humans are the most destructive and violent species on the planet. So no surprise there.

comment 4y ago · link · parent

Not only that but Maya already supported custom code. I wrote a few plugins for Maya to export models and animations to our own optimised-for-N64 format. I wrote it in C (BK was all written in C). Maya also had (has?) a scripting language (called MEL I think?) that other teams used. It apparently made it super easy to do even advanced stuff. So given that, the “Lisp advantage” made even less sense. I must admit (again) that I felt really sorry for them. It is hard to watch somebody failing that badly doing a demo. But I will also say that making a sales call without first figuring out what they were up against (Maya) was a bad move. They had no clue what they were competing against. I think you are right that the “Lisp is awesome” thinking let them down the wrong path.

comment 4y ago · link · parent

PC, mobile phone, and console games are all desktop applications (when defining desktop applications as non-http applications).

comment 4y ago · link · parent

I am (among other things) maintaining a desktop application written in Java used by business rules experts to define complicated airline business rules.

comment 4y ago · link · parent

Economics is and has always been ideology disguised as “facts” or “science”. There are many incompatible schools of economics that constantly battle for supremacy. And the current winner is always the school that best support/explain/justify the current ruling class. So you can almost predict who the ruling class is at any given time based on the school of economics most taught at Universities at that time. Kinda obvious when you think about it since the ruling class decide who the economists are that teach at Universities.

comment 4y ago · link · parent

Samsung will keep Android going not Google.

comment 4y ago · link · parent

Yes you are right. And I do agree with the author regarding Dependently Typed languages.
1
686970
116