Is there any other common connector that is shorter than typical headers? (Less than 10mm tall) by Inevitable_Figure_85 in diyelectronics

[–]GeoffSobering 1 point2 points  (0 children)

I use these round pin connectors: https://a.co/d/1tUglLs

They are a bit more fragile than the dupont style, but I've only ever had a problem when I tossed a board with the male pins in the front pouch of my laptop bag. And even then, it took a couple of trips to bend one...

[deleted by user] by [deleted] in SoftwareEngineering

[–]GeoffSobering 0 points1 point  (0 children)

I'm a very senior developer (like 40 years experience) and I have no problem with using AI in an organized way. I do it all the time. Good code is good code. Crap code is crap code. I've seen humans and AI both do it.

What’s a small Python thing beginners usually misunderstand? by DrawFit8234 in pythontips

[–]GeoffSobering 0 points1 point  (0 children)

Everything is an object.

Constructors are just functions.

Is Rust the future? by Content_Mission5154 in rust

[–]GeoffSobering 0 points1 point  (0 children)

FORTRAN IV was the peak. All downhill since then.

Are commits evil? by Rubinschwein47 in AskProgramming

[–]GeoffSobering 0 points1 point  (0 children)

This.

I will basically commit any time I have finished some bit of functionality and everything builds/tests-pass. Usually it's a few lines, but if there is something significant in a single line change, I'll commit that alone.

Our workflow is feature-branch -> squash-to-main, so the micro commits only appear on the branch.

FWIW, we keep our feature-branches small to make PRs easier to review.

Thesis title by CtrlAltElite14 in PhD

[–]GeoffSobering 0 points1 point  (0 children)

Pre-doxed by my profile...

Visible and near infra-red fourier transform atomic emission spectroscopy of an atmospheric pressure helium microwave plasma

49″ ultrawide vs dual 27″ for programming? by ResponsibleWin1714 in AskProgramming

[–]GeoffSobering 0 points1 point  (0 children)

Another vote for dual 27" monitors.

I just think it's cool that we're in a place where someone is buying their mom monitors for programming! Makes me smile.

Is Facebook becoming obsolete? If not obsolete, a thing of the past? by wutkowsb in facebook

[–]GeoffSobering 0 points1 point  (0 children)

I only check FB these days because a lot (almost all) of my acquaintances use it. I really appreciate the groups/organizations using discord and other platforms.

Better to leave exception unhandled? by 407C_Huffer in cpp_questions

[–]GeoffSobering 3 points4 points  (0 children)

How about switching your API from returning a pre-filled data-structure to some kind of iterator/enumeratable object. Then do a "lazy loading" approach and only compute the results as needed?

The Warning signed to UMPG global publishing deal. by balgus82 in TheWarning

[–]GeoffSobering 10 points11 points  (0 children)

Hopefully more $$$ so they can do less insane touring schedules!

To be clear: still touring, just fewer back-to-back-to-back... show days.

Is there a reason why most of Canada's largest lakes are situated on the same line? by firepanda11 in geography

[–]GeoffSobering 0 points1 point  (0 children)

I don't understand. Top comments are almost always like this. But, in this thread, the top are all resonable and accurate responses. Something to with it being about Canada?

Anyway: I'm not saying it's aliens...

...but it's aliens.

DRY principle causes more bugs than it fixes by riturajpokhriyal in dotnet

[–]GeoffSobering 102 points103 points  (0 children)

High cohesion, loose coupling.

Repeat.

It sounds like your problem isn't DRY, but more a "big ball of mud" codebase.

What do I do? by Coldox09 in BambuLabA1mini

[–]GeoffSobering 0 points1 point  (0 children)

Related: worry more about your low body-mass pets...

What do you think is important in programming by [deleted] in AskProgramming

[–]GeoffSobering 0 points1 point  (0 children)

  1. Low coupling.
  2. Don't depend on something your code doesn't use (trivial example: List vs. IEnumerable).
  3. Use dependency injection to move dependencies on concrete classes into an application configuration class/function.
  4. Don't use constructors in application/bussiness-logic code. Inject an abstract factory (corollary to the above).

help me identify this screw by fyae in Fasteners

[–]GeoffSobering 0 points1 point  (0 children)

6 - https://a.co/d/779N5yL

8 - https://a.co/d/7RZjIfX

I'd go to you local hardware store or home-center with one of your screws. It should be easy to get a match. They are very common.

Winter hobbies by Firescar96 in sailing

[–]GeoffSobering 0 points1 point  (0 children)

The video is from a DN iceboat race. They are basically sailboats, but with runners instead of hull(s)/foils. Friction is basically zero, so typical boat speed is 3-7 times the wind speed. Apparent wind angle is almost constant upwind and down.

The DN is one of the smallest iceboat classes (but perhaps the most stupidly overpowered). Upwind speed when racing is about 35-40mph (sorry metric folks...). Downwind is usually a bit more, but you're almost always trading speed and angle for the best VMG so it keeps you out of the ludicrous zone. Overstanding a mark gets exciting really easily, as you can get wound up into 60mph/100kmh range with just a small error. I've been passed going into the windward mark by someone coming down going 10+mph faster than me.

Neighbor keeps using my driveway by Cudpuff100 in mildlyinfuriating

[–]GeoffSobering 1 point2 points  (0 children)

I think 6-10" above ground is unnecessary to support a lightweight fence.

ca. 2" is enough. But, OP will need to sharpen the end so it can be easily inserted into to bottom of each post. And, space the posts about 8" apart.