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

Is there a good resource on how to get better at python prototyping?

The typing system makes it somewhat slow for me and I am faster prototyping in Go then in Python, despite that I am writing more Python code. And yes I use type annotations everywhere, ideally even using pydantic.

I tend to use it a lot for data analytics and exploration but I do this now in nushell which holds up very well for this kind of tasks.


Just do it I guess? :D

When I'm receiving some random JSON from an API, it's so much easier to drop into a Python REPL and just wander around the structure and figure out what's where. I don't need to have a defined struct with annotations for the data to parse it like in Go.

In the first phase I don't bother with any linters or type annotations, I just need the skeleton of something that works end to end. A proof of concept if you will.

Then it's just iterating with Python, figuring out what comes in and what goes out and finalising the format.


Thank you, but the JSON API stuff is exactly what i am using nushell for at the moment. Makes it trivial to navigate large datasets.

For me it's pretty hard to work without type annotations, it just slows me down.

Don't get me wrong, I really like python for what it is, I simply missing out on the fast prototype stuff that everyone else is capable of.


The LLM will only be challenging in the way you want it to be challenging. That is probably not the way that would be really challenging for you.


I only challenge LLMs in a way I don't want them to be challenging.


At the moment it is the other way around. LLMs rarely write good code if not instructed by someone that knows what they are doing. And even then the code is rarely good.


And if a critical security flaw is discovered in version 4, nobody is going to fix it, and you need to buy a new product from a different vendor.


If it's so critical, then you will buy it. Market supply/demand and all that.

But there's many "security flaws" that are nowhere near critical or just don't apply to your use-case for the software.


You've touched on the business model for both Microsoft and Apple. Once they decree that the OS is no longer supported, you're forced to upgrade. Microsoft has even begun to play Apple's game by also obsoleting the hardware.


.. after being pwned, and even then only maybe. Unless.. pushy ads for bugfixes?


Still better than paying for SaaS, still getting pwned and getting free credit monitoring in compensation?

Not to mention local-first software has much less attack surface for pwnage. You can wrap insecure protocols with encrypted tunnels, you can share files from a legacy app with any secure file transfer app of your choice... or if all you need is local functionality you don't need to share at all which means no remote access possible.


I really like the great defaults helix comes with.

I used neovim for 20 years and still like it a lot. But after some plugins broke I wanted to give helix a try. I am missing a plugin system in helix.

However, for me, helix comes with the nearly perfect amount of functionality, while being extremely responsive. It also made me appreciate stuff like multicursor, which I haven’t tried before.

I tried multiple out of the box nvim solutions, but never liked one of those.

I looked into zed, but don’t see much of a reason to use it. Maybe I should give it a try.


> I used neovim for 20 years and still like it a lot.

Whoa neovim's been around that long already?


No it’s not. I was using vim / nvim interchangeable. I moved from emacs to vim in 2003 or 2004. I am really not sure when I changed vim to nvim as I always have an alias vim=nvim.


Or you know, not making it public.

And if you might need to make the photo public, you could blur the faces.


And your want to make that the law, so you get fined or go to jail if you don't blur everyone's face on every photo you post if you haven't gotten a signed consent from them?


OP didn’t respect his fellow hobbyists by asking them to not film him. Why should OP expect respect in return?


For me not necessarily, I would like a mechanism for distinction and a culture where you respect people you record.


Yes.


Well, thanks for being honest.

That's not a world I would want to live in, and I guess I'm thankful most other people don't either.

The ability to photograph is important for accountability and truth in a democracy, it's important to families wanting to document and share their trips easily, and it's important for art, among many other things. Fundamentally, it feels like a kind of freedom to me.

But it's interesting to see there are people who disagree.


What part of those requires posting my unblurred face online?


Why should I legally be required to do that, and go to jail if I don't? What makes it so important you think it should be criminal not to?


I think you should be fined for posting pictures of people publicly without their consent.

None of those things require you to invade their privacy and enjoyment of public space — you’re just negatively impacting them because you’re lazy and antisocial.

Fines are how we handle such nuisances in other cases.


Nothing requires you to get upset about showing up in the background of someone's photo either. As far as I can tell, you're the one being antisocial because you're trying to make demands on what people do with their photos just because you happened to be in the frame. And it's not like they're trying to sell the photos or anything.

And fines aren't some kind of innocent thing. If you don't pay the fines, the police come to seize your property. If you resist, you go to jail. That's what you want?

Again, that's just not the world I want to live in.


You’re the one trying to include people in your photos without their consent.

Everyone should be allowed to enjoy public spaces without you imposing on them for your activities — and that includes you taking photos.

Nothing about their desire not to be photographed requires that you not take photographs — just that if you do, without their permission and with identifiable features showing, you’ll have to take a few seconds to blur that before you upload it publicly.

Yes — that’s absolutely an antisocial imposition on their enjoyment.

And yes — you should be fined for doing that.


> You’re the one trying to include people in your photos without their consent.

You don't think people just happen to be in the background?

> Everyone should be allowed to enjoy public spaces without you imposing on them for your activities — and that includes you taking photos.

No, they shouldn't. It's a balance. When people play frisbee, that's "imposing" on me too, because it's not easy for me to put a blanket down in the middle of their game. Should they be fined too? I don't think so. I think I can just live with the inconvenience of walking 30 more seconds.

And I don't even know what you're talking about with blurring people's faces being so easy. My camera app doesn't do that. And even if it did, manually clicking on every single face in all 40 photos from the park that don't belong to my friends and family? No thanks. People can live with their faces in the background online, just like I can live with people playing frisbee where I'd rather be sitting.

I mean, what's next -- I'm not allowed to quote things people say in public and attribute it to them? I'm not allowed to say so-and-so was in this public park in a blog post? You don't have privacy in public places, because they're public.


You can do all of those things without creating a public record of me.


What if I can't?

What if you're in the photo? What if you're doing something newsworthy? Or what if you're right behind the person doing something newsworthy?


> What if you're in the photo?

Blur that region before posting it with an algorithm that can't be reversed. The camera app could even do this automatically.

> What if you're doing something newsworthy?

Every good rule has some exceptions.


Sorry. I just don't think parents at the park who take photos of their kids and share them on a public site with friends should be legally required to blur any passerby's face or go to jail.

If they want to do it voluntarily then great. But making it criminal if you don't -- I don't understand that.


Why shouldn’t they be fined for invading someone else’s privacy because they’re too lazy to touch up the photos on their phone? — why should their laziness negatively impact others use of public space?

You’re just making an argument for inconveniencing others out of laziness — but trying to dress it up in principles.


Because it's a right to be lazy. And thank goodness it is.

You can inconvenience other people in a thousand different ways every day. And should be allowed to.

The idea that laziness or inconvenience ought to be outlawed... do you realize what you're saying? The kind of police state you're envisioning?

This is a principled thing. What's next, I get fined for walking slowly on the sidewalk? For holding up the line at the supermarket for a price check? For paying in dimes instead of dollar bills? Think about the legal principle you seem to be suggesting.


We have numerous laws that ban those things in shared public spaces:

- littering

- jaywalking

- excessive noise

Etc.

And we impose fines for all of those — under the consistent logic that you can’t infringe on others use of public space with your own.

I’m glad that you can admit this is not about your usage of public spaces though — it’s just about you wanting to be a nuisance to others without consequence.


No, it's not about wanting to be a nuisance. Please don't claim I said things I didn't.

It's about not wanting to outlaw every possible nuisance. And you're right -- we do outlaw plenty of things. But we also have to draw the line somewhere.

Jaywalking is a great example. It was finally repealed in NYC. Since it's fundamentally a pedestrian-first city.

And public photography is one of those things where it's such a tiny nuisance, and the cost of regulating it would be so onerous, that we wisely choose not to.


I do something similar and I have the best results of not having a history at all, but setting the context new with every invokation.


> Raise the cost enough it's not worth it.

Which is exactly what is happening here.


It sounds like they've gone and done it backwards. Raised the cost of legitimate applicants while keeping the cost the same for the spammers


Probably becasue you are looking for people who can actually perform a certain job and not just come back with the ChatGPT answer.


If they can produce working code that solves the problem, and explain how it works, that is more than “just com[ing] back with the ChatGPT answer.” I'm not saying ChatGPT doesn't have its own issues, but this is not one of them.


I've had candidates who successfully did this to explain how a SQL JOIN works. But I'm not looking for candidates who can read a GPT prompt; I'm looking for people who deeply understand how a join works.


IMO for what they do they are kinda cheap. We evaluated some competitors that were worse and were asking 4x the price.


It's not that they're cheap, it's just some competitors are even more expensive... :D


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

Search: