Hacker Newsnew | past | comments | ask | show | jobs | submit | eduardofcgo's commentslogin

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


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.


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


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.


Python type hints are hugely valuable both as a means of correctness checking, but also just as a means of documentation. It strikes me as incredibly shortsighted to say you can forget about types just because it’s a dynamic language. The types are absolutely still there and need thought about. They just aren’t defined or used in terms of allocation and management of memory.


> The types are absolutely still there and need thought about

Yes, if they aren't in the code, it just means the programmer has figure out and carry that around mentally when reading or writing code.


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.


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.


Counterexample- Facebook made Threads which has similar # users as Twitter now.


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?


…. Does anyone actually use Threads? I’ve never once seen a threads link and I understood the user count was just because every facebook or IG or whatever user automatically got a generated account?


As with most social platforms, it differs massively per country, it would help a lot if people here spent more time considering the diversity of the world.


Ok, but if we have to go looking for it, then its not exactly a juggernaut.


My girlfriend loves it. She’s an immigrant from Kazakhstan and apparently the Kazakh community on Threads is very active. Reminds her of home.


I have also never seen a Threads link. For all the hatred of X, people do actually use it.


75% of Twitter users are bots now, some I'm sure are real people.


But people link almost exclusively to X everywhere, for anything from memes to timely news.

There may be a lot of bots in the comments but the platform is genuinely used by a lot of people, that’s just easily observable.


Don’t believe everything you read if you actually believe this. Threads in no way has close to the same actual usage or users


Meta really, really likes to game their numbers. Take claims of that with a hefty grain of salt.


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


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.


and thats a good thing


I call bullshit. What 3mo bootcamp grads were earning 500k writing CRUD apps? Zero.


Because that already exists and is ChatGPT


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!


Hey, thanks for making this! And thanks for posting here.

I was wondering if you are willing to share some of the innerworkings of this. You mention in the FAQ that it works for almost any site, so I am guessing you are not developing a per-site scraping script, rather something more generic? Maybe AI? How do you protect from AI mangling results unexpectedly (I don't know if this is a risk, I have no AI experience)

Care to share more?


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 :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: