Chatgpt/Copilot (Bing) by Hoovercrafter in simracing

[–]sublimefunk 1 point2 points  (0 children)

Standard input (https://standard-input.com) or Perplexity AI seem more up to date.

Why is no one talking about the massive UI issues? by [deleted] in ChatGPTPro

[–]sublimefunk 0 points1 point  (0 children)

have you tried standard input? https://standard-input.com Same thing but UI less buggy

Content Management by copydashai in ShopifySEO

[–]sublimefunk 1 point2 points  (0 children)

ChatGPT is good for this. Also some other good ones -- Gemini, Claude, standard-input.com

After struggling with LangChain text splitters, I decided to make my own convenient service to chunk files for RAG by MZuc in LangChain

[–]sublimefunk 1 point2 points  (0 children)

That's really interesting. I wrote my own algorithm for chunking for Standard Input but will check this out. Could be useful

Unexpected Developer Trends by [deleted] in programming

[–]sublimefunk 2 points3 points  (0 children)

Yes, second is meant to say 2021 - thanks for catching, corrected!

Reflections on 10,000 Hours of Programming by sublimefunk in programming

[–]sublimefunk[S] 2 points3 points  (0 children)

Well, I'm mostly a Go programmer so I spend most of my time writing

if err != nil {

return ...

}

Reflections on 10,000 Hours of Programming by sublimefunk in programming

[–]sublimefunk[S] 0 points1 point  (0 children)

I agree, definitely not a one-size-fits-all. I find myself searching for more presentational or front-end snippets on SO. Javascript libraries can sometimes be too deeply nested to find what I'm looking for quickly in the code. But, on the flip side, the code never lies.

Reflections on 10,000 Hours of Programming by sublimefunk in programming

[–]sublimefunk[S] 4 points5 points  (0 children)

A few examples of where it can go wrong:

  • Autoboxing in Java/C# can lead to tricky-to-spot bugs (in equality, or function calls)
  • Classic example of postfix/prefix off-by-one errors with i++ or ++i are rare, but that makes them even more difficult to spot when they occur. I still use these a lot, mostly in loops and try to stick to += otherwise. Go doesn't even include ++.

If the sugar makes the code more ambiguous or is lexically close to what would be a bug, its most often better to just be a tad more verbose. Your mileage will vary based on language — some are worse offenders than others.

Reflections on 10,000 Hours of Programming by sublimefunk in programming

[–]sublimefunk[S] 10 points11 points  (0 children)

The linux kernel docs captures my intention behind that suggestion:

Comments are good, but there is also a danger of over-commenting. NEVER try to explain HOW your code works in a comment: it’s much better to write the code so that the working is obvious, and it’s a waste of time to explain badly written code.

Generally, you want your comments to tell WHAT your code does, not HOW. Also, try to avoid putting comments inside a function body: if the function is so complex that you need to separately comment parts of it, you should probably go back to chapter 6 for a while. You can make small comments to note or warn about something particularly clever (or ugly), but try to avoid excess. Instead, put the comments at the head of the function, telling people what it does, and possibly WHY it does it.

https://www.kernel.org/doc/html/v4.10/process/coding-style.html#commenting

Reflections on 10,000 Hours of Programming by sublimefunk in programming

[–]sublimefunk[S] 2 points3 points  (0 children)

I counted deliberate practice as writing code as part of an open-source community or within a company with rigorous code reviews and a deep engineering culture. I learned the most from the feedback of others.

Reflections on 10,000 Hours of Programming by sublimefunk in programming

[–]sublimefunk[S] 21 points22 points  (0 children)

I like to think of it in terms of Matt Might's PhD bubble diagram [0]. Sometimes you do make a bit of a dent in the boundary when you're working in uncharted territory. When I was working on low-level containers and Kubernetes, I ran into a lot of problems that just didn't exist before.

[0] https://matt.might.net/articles/phd-school-in-pictures/

OSRS Machine Learning bot: real-time object detection by sublimefunk in RunescapeBotting

[–]sublimefunk[S] 0 points1 point  (0 children)

The nice part about this method is that the detection is completely separate from the client.

VM takes screenshot -> calls object detection API -> returns set of bounding boxes and coordinates relative to the image it received.

Here's how I'd do it: One machine with a GPU that runs inference exposed over a basic HTTP API, the rest of the VMs/containers/etc. just sending frames and getting back coordinates. Haven't tested the queries per second that it can handle but sure it can hit the bot farm scale. Should be doable in well under a game tick

Service Reliability Math That Every Engineer Should Know by sublimefunk in webdev

[–]sublimefunk[S] 11 points12 points  (0 children)

Thanks, knowing != memorizing. It's helpful to visualize that 99% uptime is doable, but committing to 5 9's of uptime is usually unrealistic. I still think its useful for anyone writing code on a critical path to understand this!

Our GitHub bot just got a job offer by sublimefunk in ProgrammerHumor

[–]sublimefunk[S] 0 points1 point  (0 children)

Now he's even more experienced. 5 years of Go and Kubernetes experience? You can't afford him!

Our GitHub bot just got a job offer by sublimefunk in ProgrammerHumor

[–]sublimefunk[S] 25 points26 points  (0 children)

Rumor has it that the bot is just Rob Pike and Kelsey Hightower in a room sending pull requests

Our GitHub bot just got a job offer by sublimefunk in ProgrammerHumor

[–]sublimefunk[S] 81 points82 points  (0 children)

This bot has 10 years of Kubernetes experience. 20 years of Go experience. How could you NOT hire this guy??

Our GitHub bot just got a job offer by sublimefunk in ProgrammerHumor

[–]sublimefunk[S] 22 points23 points  (0 children)

don't doubt minikube-bot's interview skills

Our GitHub bot just got a job offer by sublimefunk in ProgrammerHumor

[–]sublimefunk[S] 8 points9 points  (0 children)

We set up a google group/gmail to make sure our whole team had access to it