Better HN
topnewbestaskshowjobs
Log inSign up

ReflectedImage

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

Submissions

comment 3y ago · link · parent

There is no point in statically typed Python, it's useless.

Just a lot of people from other programming languages coming in and trying to make the language more familiar to them.

comment 3y ago · link · parent

Perhaps but not at any of the companies currently doing the layoffs.

comment 3y ago · link · parent

Yes, because would be very happy about people getting their images from Bing AI Images instead of them. :p

comment 3y ago · link · parent

"Elon who made Tesla and SpaceX some of the largest companies in the world in just a few years,"

What in earth are you talking about? He brought his way into those companies. I think you are confusing Elon Musk the fictional PR character who exists only in paid press releases with Elon Musk.

Elon Musk's success was being the CEO of a slimy payment processor.

comment 3y ago · link · parent

Twitter has lost 75% of it's employees, 50% of it's revenue and gained 25% more debt.

It's gone from a break even company to financial ruination.

Twitter is shutting down data centers and offices. Elon Musk has single handedly collapsed the company.

Twitter will shortly be either bankrupt or personally funded by Elon Musk's bank balance by the end of the year.

comment 3y ago · link · parent

The API benefitted power users primarily who are responsible for keeping their large number of followers on Twitter.

comment 3y ago · link · parent

We all know Twitter will eventually go down.

It's just fun to speculate on how long it takes for a complex software system to collapse without maintenance.

comment 3y ago · link · parent

"4-5 different websites" No, no, no. Those are internal APIs. You still only present one website to the end user.

comment 3y ago · link · parent

Dynamic typing + Microservices + Unit Tests just blows everything out of the water on Development Speed / Time to Market.

Most important thing for lots of startups and companies is Time to Market.

Traditional static typing based approachs are just a bad joke (3 times slower on average) in comparsion.

That's why we have the whole microservices and dynamic typing thing going on, because businesses that use it beat up businesses that don't. It's pretty simple really.

comment 3y ago · link · parent

Whilst I don't know much about cruises. Let me make up an example for you.

Let's suppose we are Acme Cruise Lines running a Cruiseliner:

Microservice - National Coastguard Ship Arrival System Feed Handler

Database - Logs incoming messages on the feed

Microservice - Asian and Australian Joint Ship Monitoring System

Database - Logs incoming messages on the feed

Microservice - Cruiser Arrival and Departure Times

Database - Cruiser Arrival and Departures Times in a Standard Format

Microservice - Customer Bookings and Payments

Database - Customer Bookings and Payments

Microservice - Fuel Management System

Database - Ship Fuel Levels & Costs of fuel at Various Ports.

It's that high level of split up.

(AWS Lambdas aren't quite the same thing as microservices.)

comment 3y ago · link · parent

1 microservice. It's up to the software engineer to scope out the microservices properly.

comment 3y ago · link · parent

The distinct elements are they compile separately and have versioning on their API calls.

No, you don't use separate microservices for writing out that text message.

The idea is pretty simple instead of writing one big program, you write many smaller programs.

It's useful around the 3 to 4 separate developers mark.

It avoids you having to recompile for any minor change, allows you run the tests for just the part you changed and allows you to test the microservices in isolation.

If you a production issue, the exception will be in a log file that corresponds to a single microservice or part of your codebase.

Microservices are a hard form of encapsulation and gives a lot of benefits when the underlying language lacks that encapsulation. e.g. Python.

comment 3y ago · link · parent

I'm just telling you the pure mathematical truth of the situation.

According to the maths, given people of identical skill and the same starting funds. Some small percentage of people will get lucky and accelerate out into riches whilst the rest will drop into poverty.

The people who accelerated into riches can't tell you why they accelerated out into riches, since it was purely luck based to begin with.

The more funds you acquire, the more risks you can take, the more money you can make.

Taking risks doesn't make you rich, becoming rich makes you take risks. It's that way around.

comment 3y ago · link · parent

That's why the Silcon Valley Angel Investers give out books instead of funding rounds.

comment 3y ago · link · parent

"Business is about connections and rich people"

Forget that nonsense, it's about starting with a large pool of money with which to bet.

comment 3y ago · link · parent

Taking more risk is the same as saying start with a lot of money so you afford to take more risk.

comment 3y ago · link · parent

They just put a lot of coins in the slot machine, it's nothing special, you just keep trying until something takes off.

Of course, you will need to be rich to begin with to fund all these attempts.

comment 3y ago · link · parent

> Successful businessmen make their own luck.

Let me shoot that statement down in flames for you!

Successful businessmen have a lot of initial funds to pursue a lot of different ventures of which perhaps 1 will be a success.

If you ever talked to the successful businessman types you will find they have lots of companies but only 1 will be the source of their money. The rest either lose money or break even.

comment 3y ago · link · parent

Large chance element. There are reasons why VCs invest in 50 startups with the expectations that one will succeed. You probably need to spam business ideas and see if you can find one that gains traction.

comment 3y ago · link · parent

Good luck!

comment 3y ago · link · parent

> How do you express as a DAG a tree where nodes need to keep references to their children and parents?

Rewrite your program in a form where it does not contain a tree.

If you want an actual tree as a data structure, see the trees crate.

> Rust is not Forth. I can write whatever I want and there's nothing wrong with that.

And other people write Haskell code in Python :p. If your code style doesn't match the language you are using you are going to have a lot of unnecessary friction.

comment 3y ago · link · parent

There are many many many ways you can express something and it's very likely that one of those ways is a DAG.

The issue here is that you are writing C++ code rather than Rust code.

comment 3y ago · link · parent

Rc, Cell & RefCell are suppose to be rare. For example I've got 2,000 line Rust program in front of me and I've used Arc 3 times and RWLock 1 time, that's all.

You need to structure your program as a Directed Acyclic Graph (DAG), with things interacting only with the things below them in the graph.

Then occasionally you might need to break the DAG structure by using Rc, Cell & RefCell, etc...

comment 3y ago · link · parent

Microservices can't have dependencies between each other otherwise they aren't microservices.

I think the main issue is just the other engineers you are working with. If they are bad, they will screw anything up.

comment 3y ago · link · parent

I'm not so sure about the cheaper at scale.

Renting is usually more expensive than owning. The larger you get, the more expensive renting is compared to owning.

comment 3y ago · link · parent

Getting rid of 60% of the code, generally speaking is a productivity boost. It's a bit more significant than a "few characters".

I'm pretty sure that developing with scripting languages is significantly faster than regular programming languages :p

Are you actually trying to argue against that?

Not sure why you think I was worshipping them? Several hundred developers being knocked out by 20 developers is an impressive feat.

comment 3y ago · link · parent

I don't remember writing any lies. Additionally, we can just read what you read several comments ago. So what do you think you are playing at?

Nah, I'm more qualified than you. You just don't want to hear that you are wrong.

comment 3y ago · link · parent

People generally do interviews in Python if given the choice. Coding in Python being quicker is well known in the community.

For why Python is more productive:

Dictionaries (maps), sets, (generic) lists, tuples are first class citizens of the language with simple syntax.

Typing is dynamic, which means generics, abstract base classes, interfaces and tons of typical boilerplate code, which you would use in Java, are simply speaking omitted entirely.

Extensive library, which is easy to access by pip.

It would be very weird indeed for a developer not to be more productive in Python than say Java.

It should be fairly obvious why the hundreds of Google engineers were run into the ground by a small team of Python developers.

comment 3y ago · link · parent

Have you ever of this little company called Youtube?

Youtube did the dynamic typing thing in Python with 20 developers and Google did the static typing thing with several hundred developers in C++ for their Google Videos.

Who do you think won?

https://books.google.co.uk/books?id=eulODwAAQBAJ&lpg=PA136&d...

comment 3y ago · link · parent

There are studies that show it is true: https://games.greggman.com/game/dynamic-typing-static-typing...
1
111213
19