Better HN
topnewbestaskshowjobs
Log inSign up

ReflectedImage

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

Submissions

comment 4y ago · link · parent

I disagree with the title. And based on what I say I obviously didn't read the actual article.

comment 4y ago · link · parent

But isn't that just a PR piece?

Genius founder gets $200M investment whilst also playing League of Legends. It makes a good story.

comment 4y ago · link · parent

Create a new crypocurrency with 8 billion tokens each worth one dollar.

Set up an exchange for 1000 tokens to $1000 dollars.

Set an online identity verification service for issuing a token.

Not all tokens will be exchanged back to real money, which means you have money for the online identity verification service and associated bank fees.

comment 4y ago · link · parent

It's likely that some obscure but vital manual maintenance job won't be run bring down the site.

Week or two to fix it.

comment 4y ago · link · parent

5 seconds is way too slow

comment 4y ago · link · parent

User growth up according to who?

comment 4y ago · link · parent

If that place is the EmailAddress type, then you have built your system wrong. You check that stuff when the data enters the system.

comment 4y ago · link · parent

Wouldn't that hide this post? :p

comment 4y ago · link · parent

Oh, I've surfed there as a kid. You are going to need a wet suit...

comment 4y ago · link · parent

You can build robust software applications with Python. It just needs different development practices. Using static typing with Python is a bit dumb imo.

Basically you write a ton of 3k line scripts, have them talk to each other a message queue like RabbitMQ and have a SQL Server e.g. PostgreSQL server do all the heavy lifting for you.

You can't do any program like that but 80% of programs that are written in businesses can be done like that. Typical CRUD stuff.

And you can develop it at 3x times the speed then if it was done in a more traditional language like Java/C# etc..

Python is a powerful language if you use it for the right use cases.

comment 4y ago · link · parent

Yeah but Python with Rust modules might be quite effective.

comment 4y ago · link · parent

How exactly would you write a gameboy emulator in numpy/scipy?

It's sequential code with fiddly side effects. I know I've written one.

But I'm generally curious if this is in-fact possible in someway.

comment 4y ago · link · parent

Well those sort of time differences would make a difference.

But usually 90% of the response time for the api request is the time it took the SQL server to execute the relevant queries.

comment 4y ago · link · parent

Well at a company I worked at, on the surface it looked like we only needed to be running compute 9 am - 8 pm.

But nowadays, it runs full load 24/7 on the cloud.

Turns out the after hours batch jobs are just as demanding. shrugs

comment 4y ago · link · parent

How can you have a game that isn't multi-round?

Surely after you finish playing one game, the next game you play (even if it's a completely different game) is the second round.

comment 4y ago · link · parent

What alternative search engine which isn't Bing (including DuckDuckGo) have you used recently?

They do exist, have you heard of any of them?

comment 4y ago · link · parent

It's a really good paper. It's on why large complex projects go wrong.

comment 4y ago · link · parent

The research group I was in when I did my PhD focused on modelling. This was 7 years ago and back then UML was considered to be dead. It's all moved on to Domain Specific Modelling Languages (DSMLs). Who's using DSMLs you might ask? Your car manufacturer is using them for writing the software for your engine. They draw out a diagram and both the code and safety cases they need to submit to the regulators are auto generated.

comment 4y ago · link · parent

That reads a lot like pretending that progress can be held back.

comment 4y ago · link · parent

All the VC funded companies are cutting staff to make the VCs happy.

comment 4y ago · link · parent

UK doesn't have much in the way of Left wing politics.

comment 4y ago · link · parent

The venture capitalists have changed the metrics they are evaluating companies with due to the current economic climate.

Hence a lot of big companies now need to do layoffs to meet those new metrics.

It sounds kinda of silly, but it's what's going on.

comment 4y ago · link · parent

Static analysis using static typing gives you almost nothing at all in practice.

It searches for a very narrow and rare set of bugs, which hardly ever happen.

Typing really exists to help a compiler, it's not a code correctness tool in the way you envision.

comment 4y ago · link · parent

Typing doesn't remove many bugs from Python code (probably about 1 bug per year). It's statisically insignificant.

JavaScript is a bad language and adding stuff to it makes it better. The same isn't true for Python.

comment 4y ago · link · parent

No, because you can always replace bad microservices wholesale. It can't be "painful to refactor", because you literally just delete the code and rewrite it.

If you have introduced static typing, you then have to start doing refactoring and verifying correctness. "heavily-typed mono repos which is a breeze to operate on" I highly doubt such a thing exists, more likely you are used to a certain level of bad code and don't understand it can be better.

comment 4y ago · link · parent

The size of the enclosed section is much bigger. A large section of code has an small well-defined interface.

What you get with typing and interfaces is that all the code has an interface. Small sections of code have a large badly-defined interface.

The main reason people are using typing in Python is to support large Monorepos. Because everything is typed in them, all the code in the repository depends on all the other code in a spaghete dependency graph.

This results in the following issues:

* Small code changes lead to hour long unit test runs since most of the unit tests need to be rerun for every change.

* It's impossible to update the Python version since all the Python code needs to be updated at the same time.

* Long check-in times for changes running MyPy over 100k lines of code.

* Maintainability issues since code can't be updated without knock on effects all over the codebase.

Okay, so what are the benefits of using types in Python:

* On average MyPy type checking will catch 1 bug per developer per year, which wouldn't of being caught normally.

* It makes people who previously coded in statically typed languages feel more familar with the code.

Basically, if you look at the Pros vs Cons, you should ditch the typing checking. It's a net negative to the codebase.

comment 4y ago · link · parent

Most of the Python libraries that are not locked to specific versions of Python, which is often the case with a lot of the badly written ML libraries.

comment 4y ago · link · parent

That's an IDE problem, with sufficently powerful code inspection, the fields can still be found. It is not the developers' job to manually add that type of information into their source code.

Ahh so if a method on an object dynamically adds in the quack() method at runtime, does the object spontaneously change type?

comment 4y ago · link · parent

"Dividing that library into services makes little sense." No, but dividing the library into smaller sub-libraries, that only interact with each other over well-documented interfaces, does make sense. It's called encapulation.

If at some point you decide the way one of those sub-libraries works is wrong, could be done better, etc. then you can write a new sub-library that just provides the same public interface.

One of the reasons why Python is so successful is it's usage of dynamic typing. Obviously, if you lose static typing some else needs to take it's place, in Python's case, stronger encapulation.

comment 4y ago · link · parent

You might dislike the take, but it's correct. If I write a side-effect free Python program in Haskell style, that isn't a "real" Python program. Using a static type checker is a similar type of change to the code style.

"Having to dig through reams of source code to figure out what attributes I can use, or what *kwargs a function takes."

Figuring out the attributes and what kwargs a function takes is the role of your intelligent IDE and docstrings. You think you need to static typing for this since you haven't spent the time to learn how Python does these things.

Duck typing says, duck doesn't have a type, not even Duck, anything that quacks is a duck even a 115 ton truck.

1
141516
19