[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: clean_your_code_.jpg (187 KB, 1200x900)
187 KB
187 KB JPG
clean your code
>>
>and kick the benzos, bud.
>>
why? my code smells great
>>
File: pietro.jpg (449 KB, 2048x2048)
449 KB
449 KB JPG
>>107539148
https://www.youtube.com/watch?v=UzdpzuEkL74
44: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.
>>
File: vitrine.jpg (372 KB, 2048x2048)
372 KB
372 KB JPG
>>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.
>>
File: imaginal.jpg (154 KB, 2048x2048)
154 KB
154 KB JPG
>>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 though

loved JBP like 7 years ago but eh.
>>
File: dreams.jpg (227 KB, 1080x1439)
227 KB
227 KB JPG
>>107539262
Truly, this man is a Prophet of God.
>>
File: 1741658970785014.png (349 KB, 605x886)
349 KB
349 KB PNG
>>107539148
No.
>>
File: asmonsmash.gif (31 KB, 128x128)
31 KB
31 KB GIF
>>107539295
>it was his GRANDMA
my brain restructured the memory to be less traumatizing. many such cases.
>>
>>107539148
How many loc would you consider a refactor into multiple .c files?

My first non tutorial project just hit 1200 lines of code.
>>
File: jp.png (140 KB, 1262x634)
140 KB
140 KB PNG
lmao
>>
>>107539340
that's literally how the average /v/ user describes children. uncanny.
>>
stop it right now you bedevilled anonymous troll demon rats!!!
>>
File: 1724275853322271.png (327 KB, 800x542)
327 KB
327 KB PNG
>>
>>107539295
wtf, was he raped by his grandma?
>>
>>107539206
Show me a snippet of your code (20 lines max), and I'll show you how to make it smell better.
>>
>>107539148
ok Jew
>>
>>107539295
>exhausted but satisfied
>>
>>107539148
kino thread lamao
>>
File: c++-vs-rust.png (437 KB, 726x1207)
437 KB
437 KB PNG
>>107539849 (nta)
how bout this
roast it.
>>
>>107539849
>>107540026
dw, its not a flex
i legit want to hear your opinion
i legirt want to you to find stuff i can still improve, a second set of eyes
i know its clean
what im asking is how to make it even cleaner
>>
>>
>>107539849
>>107540069
surely theres at least SOMETHING you dont like about my code, right?
even if its autistic
or very personal and specific
tell me, i wont bite i promise
im legit gonna consider it and how i could use your idea to improve my style
bc yeah its a """datamining""" question
i mining data to improve my style bc why not?
>>
any anons feel free to chime in
because when i say [good practices] to someone this is what i tell em
the critique youre gonna bring to the system will be taken into account to achieve the best possible results
which i will then propagate

what im doing is aleady an amalgamation of all sorts of ideas coming from other people
in 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 code
and 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 printout
i can comment them all out with one global refactoring procedure
>>
also old wolf trick:
fprintf to stderr so that your writes to console are unbuffered
so one doesnt really actually need to learn gdb bc you have the same capability built into c
>>
inb4
>muh breaekpoints
if 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 you
https://www.youtube.com/watch?v=JXtoio7Ivhk

i earn the privilege of setting a thread theme in exchange for dropping good shit
i think its a good deal, no?
>>
>>107540084
https://voca.ro/1ctA5DXC1hhI
>>
>>107540326
lol
>>
File: lainmaxxing.gif (773 KB, 480x300)
773 KB
773 KB GIF
>no challenge
or 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 them
i feeel profoundly defeated
i 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)
>>
>>107539148
i cleaned my anus
>>
>>107540069
>manually vectorizing loops instead of using restricted pointers
I was planning to meme about Clean Code and Java, but you found a way to lose even harder before that.
>>
>>107540402
yeah im just gonna tell you to fuck off bc youre retarded
you talk about the effective code
but you never looked at it

also new thread theme
this one's for the janies btw bc they deserve more than just hot pockets:
https://www.youtube.com/watch?v=lvacPyZakTI
>>
>second of appreciation
i appreciated that you appreciated, /g/
i told you
most of the time im a nice guy
>>
File: file.png (23 KB, 717x92)
23 KB
23 KB PNG
>>107539849
goal: turn a vector<tuple<string>> into a vector<string>
>>
>>107539849



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.