Better HN
topnewbestaskshowjobs
Log inSign up

eduardofcgo

18 karma · joined Jan 14, 2024 (2y ago) · 13 submissions

Submissions

comment 1y ago · link · parent

Also because it's a language for the web, and HTTP is stateless.

comment 1y ago · link · parent

Didn't it came out recently that those numbers were bugus, since basically every Instagram account must have a Threads account, and those are not actual active users?

comment 1y ago · link · parent

Usually with OOP several builders are composed together to express the creation of some data. These builders have functions with types, which define the rules for the creation of the objects.

My point is that the CarBuilder is not a real type that relates to the business, but something that we had to create to encode some behaviour/rules.

Some function that validates that a dict is a valid car is much more explicit that lots of different builder classes in my opinion.

comment 1y ago · link · parent

Singleton is the worst example of design pattern, not sure why these kinds of posts always like to mention it. Singleton is just a hack for avoiding OOP with OOP languages. Obviously python allows non OOP code, so not surprised singleton is useless there.

comment 1y ago · link · parent

Could you not just use dicts and some schema validation logic for this?

comment 1y ago · link · parent

The programmers that insist in using type hints in python usually are the ones that makes these mistakes. I think the main reason that these patterns do not make sense is because python is a dynamic language. If you turn off the part of your brain that thinks in types you realize that you can solve most of these in plain functions and dicts. Using default args as replacement to the builder pattern is just ridiculous. If you want to encode rules for creating data, that screams schema validation, not builder pattern.

comment 1y ago · link · parent

OpenAI valued at 300B will never be able to produce the same products "wrappers" that these 5 people startups are making. Same reason Facebook could not make Instagram, of Jira could never make bootcamp for example.

comment 1y ago · link · parent

Part of the inevitabilism is how these tools are being pushed. At this point it doesn't matter how good they are, it's just how many people live now. Microsoft sure knows how to turn bad software mainstream.

It helps also that these tools behave exactly like how they are marketed, they even tell you that they are thinking, and then deceive you when they are wrong.

Their overconfidence is almost a feature, they don't need to be that good, just provide that illusion

comment 1y ago · link · parent

We have been seeing this shift for a while, where "software engineers" graduate from 3 month bootcamps. Except now most likely they will not be earning 500k making crud apps.

10.

Show HN: Cooked.wiki generates an interactive diagram from any recipe online(cooked.wiki ↗)

1 points · by eduardofcgo · 2y ago · discuss

comment 2y ago · link · parent

Because that already exists and is ChatGPT

comment 2y ago · link · parent

Developer here, thanks for sharing the project! I really wanted something that allowed me to save my own versions of recipes I found.

There’s also the social aspect, where my friends can share the result of them making my recipes, which is fun.

The goal is to have a more structured version of a recipe, where new ones can be created without loosing the reference to the original, but also allowing to discover all the versions of a specific recipe made by other people.

Trying to make it look like a simple website with meaningful urls and links, taking advantage of the web. I don’t want to install an app to read a friends recipe!

comment 2y ago · link · parent

Thanks for sharing! I am the developer, started this as I was desperate for something that allowed me to save recipes quickly, without needing to install apps. If you have any feedback feel free to contact me :)