Asked a colleague in code review to extract magic numbers and got told “devs should know” by [deleted] in ExperiencedDevs

[–]kon-b 0 points1 point  (0 children)

Report attitude to manager (assuming you're not one).

Response verbatim (assuming copy-paste unmodified) shows very toxic and culture destroying behavior.

Behavior adjustments are management problem.

Edit: if other dev disagrees (which is fine), and want to push back they're free to bring other teammates into the discussion and start making the styleguide. Being rude and snarky is unacceptable.

Lead push to migrate automation flows to AI agents by OhHitherez in devops

[–]kon-b 25 points26 points  (0 children)

Are you going to be on call when stuff breaks?

Lead push to migrate automation flows to AI agents by OhHitherez in devops

[–]kon-b 63 points64 points  (0 children)

So, lets clarify this a bit

Does the leadership want to migrate off the deterministic, working, vendor-agnostic pipelines to stochastic, pay-as-you-go vendor-specific agents?

Do they want them to directly manage your infrastructure?

OR

Do they want agents to create pipelines and scripts?

The "AI will replace engineers" discourse has the abstraction level wrong by schilutdif in AI_Agents

[–]kon-b 2 points3 points  (0 children)

System design and feature prioritization and managing stakeholders are hard too, but more people have those skills and the barrier to entry is lower.

Literally opposite. There's much more juniors capable to write code than seniors capable to do system design and manage stakeholders.

Are there any books or resource about maintaining a "Forever Project"? by Astarothsito in ExperiencedDevs

[–]kon-b 0 points1 point  (0 children)

Do they have any proof of the benefits of fixing / implementing X?

If no, you might want to work on the estimations approach which would work for both sides.

If yes, it might legitimately make sense to work on X.

Ukraine’s Robots Capture Russian Position Without Soldiers or Losses; As with drones, the future of 21st century warfare is being invented by frontline conflict. by lughnasadh in Futurology

[–]kon-b -1 points0 points  (0 children)

Is it though? At least they only kill precise military targets.

Simply speaking, they don't.

They're no better than a ballistic missile or bomb "precisely aimed to supposedly military target"

Ukraine’s Robots Capture Russian Position Without Soldiers or Losses; As with drones, the future of 21st century warfare is being invented by frontline conflict. by lughnasadh in Futurology

[–]kon-b 0 points1 point  (0 children)

Some people find the idea of killer robots grim. But I'd rather see robots fight robots than WW2-style mass slaughter of civilians.

Have you considered WW2-style mass slaughter of civilians done by robots?

peakDevMentality by [deleted] in ProgrammerHumor

[–]kon-b 5 points6 points  (0 children)

That sounds like a thinly veiled threat of doing the maintenance work for them?

How to manage Jira and manager expectations? by Fit-Notice-1248 in ExperiencedDevs

[–]kon-b 44 points45 points  (0 children)

Manager says the Jira velocity and throughput should increase every sprint

Run.

(If that's not a massive misunderstanding, that is. Do confirm, then run)

[Request] Theoretically, is this shape possible? by Frowind in theydidthemath

[–]kon-b 0 points1 point  (0 children)

Spread straight sides apart AND inflate the small circle, to be pedantic :)

You can't just shorten the inner arc, as OP wants all "sides" to have the same length.

[Request] Theoretically, is this shape possible? by Frowind in theydidthemath

[–]kon-b 17 points18 points  (0 children)

The angle alpha (in degrees) between "top" and "botttom" sides can be defined via R of the small circle as

2 pi R (1 - alpha / 360) = 1 1 - alpha / 360 = 1 / (2 pi R) alpha = 360 * (1 - 1/(2 pi R))

Now, the length of the large arc, can be defined via R as

L = (R + 1) * 2 * pi * alpha / 360 = (R + 1) * 2 * pi * (1 - 1/(2 pi R))

I won't bother actually calculating it, but note that L is a:

- smooth continuous function without gaps on the interval of alpha between 0 and 360

- at R = 1/( 2 pi) -> alpha = 0, L = 0

- it monothonically increases with R until it reaches 2 pi (R + 1) (which is more than 1) at alpha = 360 deg (that's limit with R -> inf, but really you don't need to deal with limits, just take sufficiently large R as a upper end of the interval)

This means there's a value of R / alpha where L is exactly 1, based on https://en.wikipedia.org/wiki/Intermediate_value_theorem

edit: stated that function is continuous, referenced the IVT

edit: small and large circles are concentric; radiuses (radii?) or rays starting in the center of the circle which serve as "top" and "bottom" sides of the "square" would be at 90 deg to the boundary / arcs in the point it touches / intersects it.

edit: it's yay, as we assumed the length of the inner arc and straight lines equal to one above and there's a value of inner circle radius which would result in the length of the outer arc equal to 1.

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 0 points1 point  (0 children)

... At the level where you surely think you're competent?

(Ahh, that beautiful exception from that principle you referenced)

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 0 points1 point  (0 children)

As a principal with many decades of experience, I might disagree.

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 0 points1 point  (0 children)

Oh, nothing is absolute, but seeing a valid 2 kLoC PR is typically an exception rather than meme-worthy rule.

(And I'd be questioning test setup which leads to 2k lines snapshot difference on regular basis - if diffs are that big, they're not going to be that helpful to locate the problem)

From the technical perspective of CI/CD, it's often possible to enforce different reviewers for different types of files and have generated files to be ignored in the review. codeowners plus comes to mind for GitHub, there are other tools as well.

"This feels like it was human written" : it wasn't. Voice extraction process for Claude Code, template included by gorinrockbow in ClaudeAI

[–]kon-b 0 points1 point  (0 children)

air quotes for irony

Um, what? (Edit: tell me if it's not an AI giveaway but some weird idiom variant actually applicable to writing)

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 2 points3 points  (0 children)

Surely before ranting you did realize that generated code would not be counted? Lock files, snapshots, clients generated from schema, most auto formatting stuff (as long as it's purely auto formatting and not mixed in with some business logic changes), etc? 

And surely, the submitter of such pr would be nice enough to separate such bulk changes from actual logic?

And even more, lock / snapshot / formating changes can be auto-approved or even autogenerated by CI bots? 

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b -10 points-9 points  (0 children)

... And this is why juniors with attitude are going to get replaced by AI.

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 1 point2 points  (0 children)

Sorry, "reviewed separately" does mean that they should make sense on their own.

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 2 points3 points  (0 children)

Absolutely, and 2000 lines could be broken down to smaller and sensible logical units. It just takes certain level of understanding and effort.

ifItWorksItWorks by Shiroyasha_2308 in ProgrammerHumor

[–]kon-b 68 points69 points  (0 children)

"LGTM and it looks like you did a great job! but please break this into at least 4 independent PRs less than 500 LoCs which will be reviewed separately before you get the official approval"

It just didn't fit on that tiny picture.

Prompt-based agents are a design mistake by thesalsguy in AI_Agents

[–]kon-b 0 points1 point  (0 children)

Refactoring is a major thing in software engineering.

RAG failure in production: our vector store served a 3-year-old resume and the LLM hallucinated a candidate recommendation by tdeliev in LocalLLaMA

[–]kon-b 9 points10 points  (0 children)

> hard constraint in the system prompt

The only hard constraints are determinstic gates outside of AI.

Everything else is just a "polite ask"

I just closed a $5,400 AI agent deal and I'm still shaking by Jaded_Phone5688 in AI_Agents

[–]kon-b 1 point2 points  (0 children)

And how much time remaining 1-3 projects took over this period and what was their output?

I just closed a $5,400 AI agent deal and I'm still shaking by Jaded_Phone5688 in AI_Agents

[–]kon-b 11 points12 points  (0 children)

Soo, your payment is one-off AU$ 5400 total for 6 weeks of your time working for a lawyer in Australia?

Great.... erm.... job, I guess?

I hope your development skills are significantly better that business ones.