Better HN
topnewbestaskshowjobs
Log inSign up

ReflectedImage

476 karma · joined May 12, 2020 (6y ago) · 570 submissions

Submissions

comment 1y ago · link · parent

Golang's standard library looks pretty complete to me and they will probably master it in a month.

comment 1y ago · link · parent

That's part of the point it's from the software engineering viewpoint of preferring simpler typing systems rather than the academic viewpoint of preferring more complex typing systems.

comment 1y ago · link · parent

"as a general rule, large established codebases produce 90% of the value."

This is only until your new upstart competitor comes along, rewrites your codebase from scratch and runs you out of the market with higher development velocity (more features).

comment 1y ago · link · parent

Yeah but I don't think mice are more similar to Zebrafish than us. If you were a little more brave you could inject it into yourself.

comment 1y ago · link · parent

The Onion bid was legally the correct bid to accept. It's got nothing to do with the cash amount, totally irrelevant.

comment 2y ago · link · parent

Typically, software developers write 3x the number of lines of code when using static typing compared to duck typing. It's just the nature of the static typing code style. Write 3x the lines, get 3x the bugs.

The programming language that has the least measured bug in practice is Clojure because it is duck typed and because it doesn't use OOP. Both static typing and OOP have a significant measurable negative effect on code correctness.

comment 2y ago · link · parent

Use the simplest syntax and check the code works via unit testing like you should be doing. Don't statically type your code as it increases the bugs by a factor of 3x typically.

comment 2y ago · link · parent

Because namedtuple is a simpler construct than frozen dataclass therefore it is always preferable in Python.

The number of characters and lines to access the members of namedtuple is significantly less than dataclass.

dataclass would have similar issues if st_dev was now defined as a string whereas namedtuple would not.

Whilst there maybe edge cases in using simpler constructs, in scripting languages we accept the edge cases as it pays off in 99.99% of cases to simply ignore them. If something goes wrong, you catch the exception "Ask for forgiveness not for permission" if you want to look up the concept.

comment 2y ago · link · parent

namedtuple is preferable as it's the more Pythonic solution. Simpler is better.

comment 2y ago · link · parent

That's what a class is for.

comment 2y ago · link · parent

Presumably in the Israeli and US courts

comment 2y ago · link · parent

Ahh the failure to recognize that the great runtime and tooling is due to the language semantics.

comment 2y ago · link · parent

No, it's forced modularity. It's saying there are hard lines between parts of your program that can't be crossed. This prevents the over time formation of spaghetti code.

It's like British tanks in WW2, your system is composed out of standard parts. Not necessary the best, but standard parts and that's what tends to be important.

comment 2y ago · link · parent

Well it's a lack of training problem.

Someone properly trained with something like Smalltalk will on average output 3x the amount of software as someone trained on something like Java.

There are big advantages to doing it.

comment 2y ago · link · parent

It's not really true that type safety is useful for large projects.

It's generally better to do proper micro-services.

Type safety is the inferior way of doing it where you get hit with a double whammy of long compile times and extreme code verbosity.

comment 2y ago · link · parent

It would be cheaper to just send them all on a month long training course than re-hiring.

comment 2y ago · link · parent

Going through the official Python tutorial is a must:

https://docs.python.org/3/tutorial/

Use multiprocessing not multithreading due to the GIL.

Python optimization is generally at a higher level, you use a better algorithm to get a result faster, rather than you saved an unnecessary copy.

Know when to use Python async.

Python is slow but you can always move work over into the database or dedicated library like NumPy.

Use the faster Python interpreter PyPy, which does JIT.

Do a multiprocessing pipeline with your CPU bound work broken down into stages.

comment 2y ago · link · parent

It's a later problem you can't solve! You cheaped out in the short term and will face ludicrous long term costs.

And not just you, it's a core part of cloud computing's monetization model.

Additionally, if anything goes wrong with your Digital Ocean account, Digital Ocean will not help you. So you are running a high risk.

comment 2y ago · link · parent

It's a cloud problem, you need good customer support to trust your business to the cloud. Only AWS delivers good customer support.

comment 2y ago · link · parent

I've seen a aws database segfault. Most likely due to custom aws patches.

comment 2y ago · link · parent

Well for a top 10 site, it's $1000 a month dedicated or $1,000,000 a month cloud.

comment 2y ago · link · parent

It's a straw man because both the cloud and dedicated suffer the same problem.

comment 2y ago · link · parent

$40 a month on a dedicated box will cover you for your first million users.

No you aren't running tests because you will be locked in to aws and your cloud computing bills will eventually bankrupt you.

comment 2y ago · link · parent

Well presumably they need only 1/3 of a developer to do this and they intend to scale up 10x in the next 5 years.

$60,000 per year in-house vs $1,200,000 per year aurora. No brainer really.

comment 2y ago · link · parent

So what you are saying is he's brought some cool-sounding businesses and founded some business failures? It's not very impressive tbh.

comment 2y ago · link · parent

Well Valgrind originally went off on it and oss-fuzz presumably would have caught it since here's a PR from the attacker asking for it to be disabled: https://github.com/google/oss-fuzz/pull/10667

comment 2y ago · link · parent

It's all irrelevant. The attacker social engineered their way to being the lead maintainer for the project.

comment 2y ago · link · parent

How do they intend to install the super volcano underneath?

comment 2y ago · link · parent

Simpler aka Python, Ruby, Basic, Pascal, not "lower level".

comment 2y ago · link · parent

Well no, what do you think the word simpler means?
12345
19