Programming thread

  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
you deserve everything that is happening to you :smug:
Such is the life of programmers; all the problems in my program are because I was retarded.

I figured out how to add libraries to my shit IDE, so we'll see how things progress from there. Thanks, gents.

make the text scroll work on delta/elapsed time, rather than just outputting it as fast as possible?
Obligatory: "Why didn't I think of that?"
 
well c is kind of slightly too small for writing complex things and c++ is a bit of an abomination from hell
so rust-sans-borrow-checker might be sort of good idk
also if grust is written in c it would be good for bootstrapping the llvm-based rust compiler
I'm not a big fan of D, but I'd use it long before I'd even consider using Rust. (Feel free to insert some joke about Rust trannies hating their Ds enough to have them amputated.)
 
yeah that's why i want it to be done for me
this is ideal but then you have to consider that the language designers are normal humans too and even they might fuck up horribly
then you end up with a horrible fuckup that is permanently enshrined into all implementations of the language and all programs written in the language
file system interactions are actually horrible and they can deeply impact even high-level application operation

of course a reasonable standard way of representing filenames that can do stuff like round-trip properly and avoid retarded shit like case-insensitive file names might be better than expecting all application developers to get it right as well
personally i would just do some sort of obscene name mangling to allow unix file names to work on windows or something
but such a standard might look really fucking weird to windows users (how would the file name ":." look? what would "con" (a reserved file on windows) do? what happens if you want to create the files "sneed" and "Sneed" next to each other?)
but even then i don't know how that would work when windows also allows you to do crazy shit like putting invalid surrogate pairs in its utf-16-encoded file names
and you could do some bullshit like imagining that all file names are in utf-8 or something but that will end up with its own problems

i am also not going to even get into file path lengths because that is even more insane

tl;dr: it's really fucking hard to abstract away because there's crazy shit on both sides which makes file names really hard to specify properly
 
There's been another NPM related supply chain attack, at what point do people not realize that node is a problem?
 
Um, I'm new to this thread, but I'm currently reading a 9 books in one "Coding for Dummies" after reading a little about "Coding Using AI for Dummies" and currently having a little graph notebook that has an exclusive section for like GitHub and links for me to use and reference for future use.
Welcome to the club, if you have any questions just ask. If you hear the words 'lisp' or 'haskell' just turn around and walk away, it's safer for your mind.
 
There's been another NPM related supply chain attack, at what point do people not realize that node is a problem?
Node isn't even THE core problem, the lack of any sane JS stdlib is.
Welcome to the club, if you have any questions just ask. If you hear the words 'lisp' or 'haskell' just turn around and walk away, it's safer for your mind.
Hey, ML (not machine learning) derivatives aren't that bad.
 
Welcome to the club, if you have any questions just ask. If you hear the words 'lisp' or 'haskell' just turn around and walk away, it's safer for your mind.
Ok, thanks.
Let's see...I am considering using AI to help with coding as a lark/side project while I'm still unemployed and gonna get permission to someday get access to my laptop so I can have access to download the recommended programs...but how do I avoid doing anything near like Alex Mahan's legendarily bad else/if spaghetti code?
Is MUGEN and ren.py programs good for beginners like me?
 
Node isn't even THE core problem, the lack of any sane JS stdlib is.
Fair. I just can't help but see the attitude toward external dependencies the JS ecosystem has and contrast it to any other language. There's just this, flippancy, for lack of a better term, and it boggles my mind.
 
Ok, thanks.
Let's see...I am considering using AI to help with coding as a lark/side project while I'm still unemployed and gonna get permission to someday get access to my laptop so I can have access to download the recommended programs...but how do I avoid doing anything near like Alex Mahan's legendarily bad else/if spaghetti code?
Is MUGEN and ren.py programs good for beginners like me?
It sounds like you want to make games. It depends on the type of games you want to make. I wouldn't recommend MUGEN because it's a bit niche unless you're okay with making what is essentially more like mods than programs. Renpy is perfectly good for visual novels and I've fiddled around with it. There's nothing wrong with it.

Personally if games are your interest there are a few good places to start, but it's really a question of what you want to do, and if you don't know what that is yet, it doesn't hurt to just fiddle around with things. Probably the fastest, but not necessarily the best, way to start would be with Game Maker and just try and make Pong, and then something a little harder, like Space Invaders or another arcade game. Ask for help where you struggle, and try and think about what your code is doing, instead of just how to get results.
 
There's been another NPM related supply chain attack
i also heard that another twitter user just sperged the fuck out
Welcome to the club, if you have any questions just ask. If you hear the words 'lisp' or 'haskell' just turn around and walk away, it's safer for your mind.
if you see the words "scheme" or "ml" walk directly towards it
your mind will be enhanced by at least 6 levels of recursion and you will be able to visualize photorealistic klein bottles in your mind

also sicp is genuinely pretty nice so everybody should check it out now
failure to read the holy texts will result in immediate dogpiling by the programming thread lisp circlejerk gang
and NO JAVASCRIPT SICP HERETICS ALLOWED
Let's see...I am considering using AI to help with coding as a lark/side project while I'm still unemployed and gonna get permission to someday get access to my laptop so I can have access to download the recommended programs...but how do I avoid doing anything near like Alex Mahan's legendarily bad else/if spaghetti code?
if you copy and paste random shit an llm (i refuse to call them "ai" on principle) spits out, you will probably eventually end up with something that makes yandev look like an excellent programmer
not having a clue how things actually work is what creates the malds and yandevs of the world. make sure you understand what you are doing and have an actual appreciation for elegant engineering, and you will have fewer problems
try and think about what your code is doing, instead of just how to get results.
this is the best advice for somebody who is prone to tutorial nigger stack overflow copy and paster syndrome
do not fall into the trap of "how do i make it do x", always approach it thinking "why is this code not behaving how i expect, and how is it actually supposed to work so it does the thing i need?"

your first task is to figure out what the fuck you want to do. since @Private Tag Reporter has inferred that you seem to like games, i will add to this theme by suggesting that you look into creating simple mods for luanti, a weird minecraft clone with a really based lua api
lua is easy to learn and luanti is easy to mod. if you can make a folder and 2 text files, you can have a working luanti mod! if you can't even make a folder and 2 text files, you should just quit trying tbh
Fair. I just can't help but see the attitude toward external dependencies the JS ecosystem has and contrast it to any other language. There's just this, flippancy, for lack of a better term, and it boggles my mind.
you forgot rust
fuck rust
 
how to css: save, refresh, see that the thing looks weird, look up some shit, repeat
What you do is open your site, open Developer Tools, screw around with CSS in developer tools until things look right, copy-paste back into your CSS file.

how do I avoid doing anything near like Alex Mahan's legendarily bad else/if spaghetti code
"Premature optimization is the root of all evil." - Knuth, one of the highest tier coders of all time.

Especially as a learner, don't worry too much about stylistic concerns. Sure, you may post snippets here and folks may roast you, but worry about making things work first. Worrying about style comes wayyyyy down the priority list after you understand the trade-offs of different language features.

But do think about switch/case if you have more than one if statement (especially regarding a single variable). That's a lightweight enough principle for a new programmer.
 
I really like "bullshit generator", per the fsf.
while the fsf terminology is often quite accurate (see: "facebook useds"), i like to use slightly drier terminology that is still not gay propaganda
which is why i like saying specifically "large language model" and "neural network"

also "bullshit generator" implies that the llm somehow knows what bullshit is and consciously generates it, when it is in fact a very good compression algorithm that is so good you can run it in reverse to get convincing human-like text
it might be very effective at generating incredibly plausible-sounding but horribly wrong shit but i think "bullshit generator" ironically still anthropomorphizes it too much
What you do is open your site, open Developer Tools, screw around with CSS in developer tools until things look right, copy-paste back into your CSS file.
yes this is how backend mongoloids have made css stylesheets since around 2010 or so: browser-assisted brute force
"Premature optimization is the root of all evil." - Knuth, one of the highest tier coders of all time.

Especially as a learner, don't worry too much about stylistic concerns. Sure, you may post snippets here and folks may roast you, but worry about making things work first. Worrying about style comes wayyyyy down the priority list after you understand the trade-offs of different language features.
top 10 advice i need to follow way more
But do think about switch/case if you have more than one if statement (especially regarding a single variable). That's a lightweight enough principle for a new programmer.
switch statements are great if you have a variable that can be one of 28 different things and you need to do something very different for each thing
you will run into a very natural use case for this kind of thing if you try to write something in c with sdl
some people say "no bro this is totally wrong use virtual classes instead use <meme solution> instead" but they are niggers
 
some people say "no bro this is totally wrong use virtual classes instead use <meme solution> instead" but they are niggers
I have a Ruby templating engine that I wrote with the "eliminate ifs by using classes" methodology and it became spaghetti at a fraction of 1k LOC. The Scheme version is more bloody readable. OOP niggers are really something else.
 
Back
Top Bottom