clean your code
>and kick the benzos, bud.
why? my code smells great
>>107539148https://www.youtube.com/watch?v=UzdpzuEkL7444:14>OK, so I was dreaming. I was dreaming that there was a small object, it was a circle, a sphere about this big and it was floating on top of the Atlantic Ocean. And I was I had a kind of a bird's eye view of it.>And I was following it along, like maybe, you know, like a drone would follow behind an object and it was floating and it was really zipping along, man.>It was really, really fast. And then the scene shifted to a bunch of scientists. They were sitting inside a room full of television monitors and they were watching this thing move across the ocean. And so it was here and then it was it had four hurricanes beside it. One here, one here, one here and one here. So it was in the center of four hurricanes. So whatever it was, was like some bloody potent thing was zipping across the it was zipping across the ocean.
>>107539223>Then the scientists got a hold of it, I guess, and the scene shifted. And I was in a museum like an old Victorian museum. And this thing, this ball was now inside a would so imagine it would stand with a glass case on top of it. It was inside the glass case and it was floating, you know, sort of pulsing a little bit. And so inside the room there was Stephen Hawking. And the American president, I don't remember who it was, he was sort of faceless, but Steven, I thought Stephen Hawking, what the hell, disembodied intellect that Stephen Hawking.>So that's what that meant. And the president, well, he's just a symbol of order. And so this thing, whatever it was that was surrounded by these winds, had been placed into a category system in a museum. It was boxed in. It had been conceptualized and categorized partly by disembodied intellect. That was Stephen Hawking and partly by social order... The thing passes and is alive. So it's got its own power, but it's also encapsulated in a category system.
>>107539235>So I'm a third person observer in there. I'm not in the room. I'm just seeing this. So that was fine. So the next thing that happened? Oh, yes. One of them described the features of the room. Its walls were seven feet thick. They didn't want this thing going anywhere and it was made out of titanium dioxide. I thought, what the hell's that? Well, it's a paint. It's a paint substance, but it's also what the hull of the Starship Enterprise is made out of.>So so my dream was saying, well, what's the hardest substance there? Is this well, it's titanium dioxide. It's not getting out of that box. The walls were designed to permanently constrain the object. OK, now, the next thing that happened was this object was it was you could tell it was kind of alive and it kept shifting around. And at one point it turned into a chrysalis, you know, a cocoon. And I thought, what the hell does that mean?>And then so it turned into a cocoon. And I don't know if you've seen a chrysalis when it's just about to hatch, but it twitches around, it's alive, that thing. So they're very strange things. And then at the end, it turned itself into a pipe, like a meerschaum pipe.>Then it reformed itself into a sphere and just shot right out of the room, like like the walls weren't even there, it was just it decided it was gone, bang, it was gone. And I woke up and I thought, what the hell? What the hell does that mean?
same guy that dreamt about his masturbating aunt or something thoughloved JBP like 7 years ago but eh.
>>107539262Truly, this man is a Prophet of God.
>>107539148No.
>>107539295>it was his GRANDMAmy brain restructured the memory to be less traumatizing. many such cases.
>>107539148How many loc would you consider a refactor into multiple .c files? My first non tutorial project just hit 1200 lines of code.
lmao
>>107539340that's literally how the average /v/ user describes children. uncanny.
stop it right now you bedevilled anonymous troll demon rats!!!
>>107539295wtf, was he raped by his grandma?
>>107539206Show me a snippet of your code (20 lines max), and I'll show you how to make it smell better.
>>107539148ok Jew
>>107539295>exhausted but satisfied
>>107539148kino thread lamao
>>107539849 (nta)how bout thisroast it.
>>107539849>>107540026dw, its not a flexi legit want to hear your opinioni legirt want to you to find stuff i can still improve, a second set of eyesi know its cleanwhat im asking is how to make it even cleaner
>>107539849>>107540069surely theres at least SOMETHING you dont like about my code, right?even if its autisticor very personal and specifictell me, i wont bite i promiseim legit gonna consider it and how i could use your idea to improve my stylebc yeah its a """datamining""" questioni mining data to improve my style bc why not?
any anons feel free to chime inbecause when i say [good practices] to someone this is what i tell emthe critique youre gonna bring to the system will be taken into account to achieve the best possible resultswhich i will then propagatewhat im doing is aleady an amalgamation of all sorts of ideas coming from other peoplein its current form this style is maybe influenced by myself in 5%-namely: heavy use of force inlining
and writing comments, and debug printouts without ANY indentation so these lines immediately pop out from the codeand theyre easy to comment out (for the printouts) using refactoring tools
>>107540199>and theyre easy to comment out (for the printouts) using refactoring tools\n followed by fprintf in my case means a debug printouti can comment them all out with one global refactoring procedure
also old wolf trick:fprintf to stderr so that your writes to console are unbufferedso one doesnt really actually need to learn gdb bc you have the same capability built into c
inb4>muh breaekpointsif you really wanna be anal about things you read from stdin in a blocking manner and you do your printouts in between
also thread theme bc i think i deserve it after dropping some craftsmanship on youhttps://www.youtube.com/watch?v=JXtoio7Ivhki earn the privilege of setting a thread theme in exchange for dropping good shiti think its a good deal, no?
>>107540084https://voca.ro/1ctA5DXC1hhI
>>107540326lol
>no challengeor as we say in french, qui ne dit mot, consent(means the same but speaking french makes one sound more refined than they actually are)
>>107540326>literally said a word>actually several of themi feeel profoundly defeatedi think i need to find an autist to bully because im currently too poor to pay a hooker to analyze over this (im borked to be honest. stuff, things, in the end i have trust issues. id rather pay hookers)
>>107539148i cleaned my anus
>>107540069>manually vectorizing loops instead of using restricted pointersI was planning to meme about Clean Code and Java, but you found a way to lose even harder before that.
>>107540402yeah im just gonna tell you to fuck off bc youre retardedyou talk about the effective codebut you never looked at italso new thread themethis one's for the janies btw bc they deserve more than just hot pockets:https://www.youtube.com/watch?v=lvacPyZakTI
>second of appreciationi appreciated that you appreciated, /g/i told youmost of the time im a nice guy
>>107539849goal: turn a vector<tuple<string>> into a vector<string>
>>107539849