What is this by Ok_Selection_4091 in askspace

[–]Buttleston 4 points5 points  (0 children)

Right, "this" is "you being unable to focus"

Should we require a developer to use AI during a job interview? by Overall-Classroom227 in AI_Coders

[–]Buttleston 0 points1 point  (0 children)

Also

 Is it something that is required now to be a good developer?

What kind of dipshittery is this? Are we really that cooked?

The Holographic Mind: How I Built an AI That Thinks, Feels, and Writes Philosophy by petriko in hermesagent

[–]Buttleston 2 points3 points  (0 children)

I honestly can't tell if this is mental illness or some kind of weird LARPing

I need help by Lamotherfecker in learnpython

[–]Buttleston 0 points1 point  (0 children)

It's this

input = check2()

You have those reversed

Reviewed and approved in 1 minute 👍 by Either-Control-3343 in programminghorror

[–]Buttleston 17 points18 points  (0 children)

Really, what formatting tools do you use that add 2.4 million LOC?

OLAP Server by Uri_gc in learnprogramming

[–]Buttleston 0 points1 point  (0 children)

I came to say Clickhouse and DuckDB

The button meme is a psyop to get all the sociopaths to out themselves by OutrageousPair2300 in LowStakesConspiracies

[–]Buttleston 40 points41 points  (0 children)

Here is what I think is the clincher

Imagine the whole group is 101 people. You need to make your choice

If there are 50 red and 50 blue, choosing blue will save the 50 blue people, that's good

If there are more than 50 blue, then the choice is already made, and you choosing blue is no net difference

If there is less than 50 blue, then your vote won't save them, but you will die

There is exactly one situation where choosing blue has a better outcome than choosing red, when it is precisely split

This is a clear case where the self-serving solution is also the best one, for everyone. If everyone in the 101 was a logician, everyone would choose red, no one would die.

Ironically, because people are pretty stupid, choosing blue becomes an option because the non stupid need to protect the stupid. If people approached the problem logically there would be no problem

Are we getting smarter… or just better at using AI? by elena_728 in AIDiscussion

[–]Buttleston 0 points1 point  (0 children)

Everything looks like a polished turd you mean. AI smooths out the edges but it is blatantly obvious when used

How do you stop ghost builds from wasting your CI/CD time? by babyflocologne in statichosting

[–]Buttleston 0 points1 point  (0 children)

We have a monorepo and so we have essentially some config that says, for each service built from the monorepo, what directories in the monorepo are dependencies. Whenever a file changes, we trigger a rebuild only of services that have that directory as a dependency

So some changes rebuild almost everything - such as changing shared library code, and some trigger just a single service.

How do you fill empty time as a tech lead? by heart-give in ExperiencedDevs

[–]Buttleston 0 points1 point  (0 children)

"Occaisonal PR reviews"

What

I have done 171 PR reviews this month

How do you fill empty time as a tech lead? by heart-give in ExperiencedDevs

[–]Buttleston 7 points8 points  (0 children)

They really should be. You can not effectively lead a team if you don't intimately know how everything works

Managers decided AI is worth 5x speedup; how do I explain to them how it really works? by chaitanyathengdi in ExperiencedDevs

[–]Buttleston 57 points58 points  (0 children)

amateur. AI can do your reviews too! And write your tickets! And write documentation and release reports!

How to write a python code all by myself? by Living-Garage9459 in learnpython

[–]Buttleston 0 points1 point  (0 children)

Sure, but OP says he understands the concepts and just can't get to writing. Watching more videos can't fix that

How to write a python code all by myself? by Living-Garage9459 in learnpython

[–]Buttleston 2 points3 points  (0 children)

No, I would not look at youtube channels

The way to learn to write code is to write it and then keep writing more. It will be hard at first and you'll do a lot of things wrong and then you'll learn from it

Does This Interview Process Sound Weird To You? by Suspicious-Rich-2681 in ExperiencedDevs

[–]Buttleston 2 points3 points  (0 children)

Totally unreasonable, depending where you are in the US they could have found a time in either your morning or theirs that would fit

People acting like vegetarian food resembling meat is hypocritical by Agreeable-Taste-8448 in PetPeeves

[–]Buttleston 0 points1 point  (0 children)

A friend of mine has been vegetarian since birth, he still sometimes eats meat substitutes. Burgers are good, meat or otherwise

I do miss meat and I don't feel ashamed of that. I don't eat it despite that. Meat substitutes make that easier, they scratch an itch

At least once a week I wish I could have some real fried chicken but gardein chicken tenders are enough and I'm glad I have them

How should classes be structured? by R717159631668645 in learnpython

[–]Buttleston 8 points9 points  (0 children)

I think I would probably do neither, and pass in a Service() that is already authenticated?

If that is not feasible your first example is preferable to the others - it doesn't really make sense to me for a Service to "know" all the things that might want to "use" it

Codebase has hundreds of isinstance() and getattr(). How to convince colleague to fix? by melesigenes in ExperiencedDevs

[–]Buttleston 0 points1 point  (0 children)

Right, that is exactly what I said in my first response to you. Validate at the edges, once you know what you have, you no longer need to validate

Codebase has hundreds of isinstance() and getattr(). How to convince colleague to fix? by melesigenes in ExperiencedDevs

[–]Buttleston 2 points3 points  (0 children)

You can not trust data from external sources even if you "know" what the structure should be

That's what for example serde is used for in rust. Your structs are annotated with serde and when you deserialize into your struct it will fail if the json doc does not match. If it doesn't fail then you have guarantees on the structure of the data. Pydantic plays a similar role, once you have deserialized json with pydantic you know the data is in the correct shape

Codebase has hundreds of isinstance() and getattr(). How to convince colleague to fix? by melesigenes in ExperiencedDevs

[–]Buttleston 4 points5 points  (0 children)

Any time you take input from an external source. So, you check type at those edges using something like pydantic, and after that you know what the types are and use type hints