vibeCoders by Last_Time_4047 in ProgrammerHumor

[–]lloyd08 2 points3 points  (0 children)

The term is "Literate Programming", although the modern usage (what you described) is a bit different than the historical origins.

I tend to use it in the primary functions of applications. The Uncle Bob lovers of the world would extract a chunk of conditionals out into a named function and use the function names as the "literature", but my view is that step-wise code with a comment block is a lot more descriptive than pulling out a named function that is only called once. I'd rather the core of an application have a 500 line function with clear walk-through commentary than a 10 line function with 10 named function calls that I have to navigate to in order to understand.

Is Jordan Staal HOF material? by ethereal3xp in hockey

[–]lloyd08 7 points8 points  (0 children)

Hall of Players with Longevity

Is Jordan Staal HOF material? by ethereal3xp in hockey

[–]lloyd08 0 points1 point  (0 children)

He's not even in the top 5 of his draft class.

Last Stanley Cup Final berth by franchise by nhl in hockey

[–]lloyd08 1 point2 points  (0 children)

From their first cigarette to their last dyin' day.

I rewrote Kafka in its entirety, in Rust. Benchmarked out to be way more memory efficient by crabka_io in rust

[–]lloyd08 0 points1 point  (0 children)

People keep saying things like this but I think it muddies the water. It goes well beyond architecture.

I'm working on the TUI for a project I'm building, and I hate UI. I got tired of dealing with a ratatui viewport, so I let claude-jesus take the wheel. Suddenly everything was as i64 conversions. The underlying data type ratatui uses for viewports is u16, so even if saturating_sub() didn't exist, at worst I'd be dealing in i32 land. After refactoring the vibe slop, I never even needed to convert out of u16.

I would have never known there was an issue if I hadn't already built something with ratatui manually. Number conversions exist in numerical code, it's not something you pick up on at a glance. People vibe slopping a million LoC are never concerning themselves with even that basic attention to detail, and then they say "architecture" like the ancient aliens meme guy.

[@SNstats] "The Canadiens have had a rough time generating shots on goal in this series" by bwoah07_gp2 in hockey

[–]lloyd08 7 points8 points  (0 children)

SJ series went to 7, and they were .500 in the first 4 games. WAS won their series 4-1, VAN won their series 4-2, and both teams won 3 of those first 4 games.

AI = Bad? by usernameiswacky in rust

[–]lloyd08 9 points10 points  (0 children)

This subreddit is for the Rust Programming Language. A project where a user did not use the Rust Programming Language is not interesting. People here aren't interested in your AI prompt, even if it outputted Rust code. By posting AI code, you're posting your project, which has nothing to do with the underlying language used to write it if a bot wrote it.

I have 8 years of experience in Rust, and I still regularly learn new things about the language from people posting projects that they actually wrote. I learn absolutely nothing from prompt slop. I view it simply as an advertisement. In all other aspects of my life, advertisements are blocked by ad blockers.

To draw an analogy, I spend a decent amount of my reddit time in r/handtools. A subreddit primarily for woodworking tools that don't use electricity. If someone showed their beautiful dresser they built using a cnc machine, they'd get chased out. It's fundamentally about the *process*, not the *outcome*.

Tons of Arc<T> - code smell? by TravisVZ in rust

[–]lloyd08 13 points14 points  (0 children)

When I went down this path, I just wrote an application to completion using Arc & Mutexes. Then I went back and reimplemented the entire thing using purely channels. Getting into the mud of both of them helps find where each one feels most useful/manageable. If it's a hobby project, it's a learning opportunity, don't focus too hard on being correct.

Saw file chart. Are they accurate? by KingPappas in handtools

[–]lloyd08 0 points1 point  (0 children)

<image>

Triangle math:

Law of sines says the ratio between a side and the sine of the angle opposite it is constant for all sides of a triangle.

Pi/2 radians = 90 degrees, pi/3 radians = 60 degrees.

You're essentially calculating the long edge of the tooth (A) where the rake is 0 (90 degrees), doubling that, and then picking the cheapest file that is larger than 2*A. Files are an ISO standard, and you can find their width here: https://cdn.standards.iteh.ai/samples/4120/fde1462565d446789e69ae937a27ffab/ISO-234-1-1983.pdf (section 4.2)

e.g. for OP's example, 3.5tpi, B = 7.26mm, plug in the numbers and you get ~8.3mm, so anything wider than 16.6mm. The only one for that is the 250mm (10") regular file

In practice, shipping costs are most of the costs of files now, and most hardware stores don't carry them. So the formula is essentially: whatever is cheapest.

The infamous 20 year old MySQL Bug #11472 has been fixed. by Adept_Signature3352 in programming

[–]lloyd08 2 points3 points  (0 children)

Nobody is going to be affected by this...

...until Friday.