[-] alejandro@kbin.social 2 points 1 year ago* (last edited 1 year ago)

The most success I've had with AI assisted programming was when I found myself having to work with HTML in Python for the first time, and I used ChatGPT to generate sample code for specific things I wanted to do with lxml. It was much, much faster than reading through the crappy docs to properly learn the API.

Unfortunately, I haven't been able to replicate that success with other projects. Unless it's some low hanging fruit/popular library like lxml, ChatGPT tends to hallucinate APIs that don't exist.

EDIT: also, I've tried using AI code generators that integrate into your IDE, but never found them to be that useful. Something like clangd is more consistently helpful, and actually guaranteed to be correct.

[-] alejandro@kbin.social 4 points 1 year ago

Another way would be to keep the proprietary code in their own compilation units, and replace them with a dummy/stub implementation from your build system at config time (e.g. CMake option + if() statement). One benefit to this is that you don't have to litter your codebase with a bunch of preprocessor directives.

There's no "better" way though, just pick the one you find easier to manage.

[-] alejandro@kbin.social 1 points 1 year ago

Given the facts in this case, aiming a firearm at the door, and pulling the trigger is legally insufficient to prove depraved mind

https://youtu.be/DeAP9-JhIXk

[-] alejandro@kbin.social 9 points 1 year ago

Thinking about dating Bobby Kotick? Don't.

Lol that comment is weird as hell without any context. Here's the context for anybody that hasn't seen it.

[-] alejandro@kbin.social 7 points 1 year ago

There's nothing "pathetic" about it. You'd have to be stupid not to take a good deal. That's like not scoring a goal while the goalie isn't paying attention, because you think it'd be unfair.

Solving this problem isn't the responsibility of individuals and their "willpower", it's the responsibility of governments. It's their job to regulate markets and ensure fair competition. Getting mad at some sysadmin who accepts money from Meta might make you feel better inside, but it's not going to change anything. Do your research, write to your representatives, threaten to vote them out, and then actually show up on voting days.

[-] alejandro@kbin.social 2 points 1 year ago

A cryptic symbol with no direct meaning I am afraid

Isn't that effectively what the floppy disk is to most computer users today?

alejandro

joined 1 year ago