News for hackers. Stuff that matters.

dmmartins

I write python code for more than 20 years and I never hit a bug that was related to a variable type. Really don’t understand all the type hint noise. To me it just makes the code harder to read
Re:AI Lazyslop and Personal Responsibility on Monday January 26, 2026 @06:58PM (#46773523)
why? the code output is the important thing, not how people get to it. you may need help understanding what the code does, or you may question why they didn't do it some other way you think is better, but if the code does what it's supposed to do, doesn't matter if the person dreamed about the solution, copy the answer from a google search or some AI did it.
Re:AI Lazyslop and Personal Responsibility on Monday January 26, 2026 @03:17PM (#46770899)
> What was your thought process using AI? > Share your prompts! Share your process! It helps me understand your rationale.

why? does it matter? do you ask the same questions for people that don't use AI? I don't like using AI for code because I don't like the code it generates and having to go over and over until I like it, but I don't care how people write code. I review the code that's on the PR and if there's I don't understand/agree, I comment on the PR

other than the 1600 lines PR that's hard to view, it feels that the author just want to be in the way and control everything other people are doing

Re:ChatGPT Health on Wednesday January 07, 2026 @04:02PM (#46532711)
I don't care either. Why should I? I go to the doctor once a year and it's always the same. Not much to do with that data
I get distracted by auto complete and they usually stay in front of the code, so I can't read it. I find it annoying when I'm pairing with someone that uses it and the auto complete/type hint/whatever pops up and covers most of the code I was trying to read

Working in a code base every day I end up creating a mental map of the code and the data, so it's not hard to find stuff I'm looking for. When that doesn't work, a global search or find/grep helps.

Re:Just Say No to JavaScript on Tuesday December 10, 2024 @06:21AM (#42375833)
I don't get the "type checking is the solution for the problems of the world". A lot of good things were/are written without type checking. Most of the problems I see in production have nothing to do with the wrong type being used or some forgotten required parameter. Also, typescript is just javascript with a mustache. It's the same thing
Re:I'm Peter Roberts who does work for YC and startups. AMA on Friday October 18, 2024 @11:06AM (#41880099)
Hello, I'm currently in the US with an H-1B and the company is sponsoring my greencard (the PERM application was recently filed). If I need to leave the US for one year, do I need to do anything? The PERM process should be done by then. One option would be terminate my employment and continue as a contractor. Can/should I do that? Thank you!
Re:Brazil's answer to the Sichuan pepper on Friday July 15, 2022 @08:07PM (#32114060)
The northernmost part of Brazil is closer to Canada than it is to the southernmost part of Brazil. So yes, there are places on the US that are closer to the Amazon than some places in Brazil

https://www.reddit.com/r/MapPorn/comments/ibwul3/the_norther...

Re:Brazil's answer to the Sichuan pepper on Friday July 15, 2022 @07:55PM (#32113998)
Brazil electricity is 60 hertz, so I guess it'd be a bit different :)
Re:The psychology of restaurant menu design on Saturday April 15, 2017 @01:53AM (#14119599)
"We never regard customers as a source of income but as people we want to have a good time, whatever their budget.”

Yeah, I see.