ProgrammerHumor

aICannotReplaceHim

aICannotReplaceHim
https://i.redd.it/pizyq6sl0adf1.jpeg
Reddit

Discussion

critical_patch
:py:

Ahh, back in college 20 years ago I learned how to do UI in C using OpenGL. That was only a two week lesson in an academic setting, and even then I was like nah I’m done with this FOREVER

14 hours ago
Dragonasaur

But how performant was that UI

13 hours ago
gandalfx
:ts::py::bash:

The thing about low level programming is that while you can make things fast you can also make things slow and shitty and with way more bugs. C doesn't just magically make things faster, it takes actual skill and effort.

12 hours ago
You_are_adopted

Oh, skill and effort was what I was missing. Can I import that?

11 hours ago
gandalfx
:ts::py::bash:

There's an npm package but it depends on left pad :/

11 hours ago
Windyvale
:cs:

Obviously that’s an immediate import.

6 hours ago
_dactor_

Can only be lazy loaded

3 hours ago
RiceBroad4552
:s:

But the Rust folks say, when you code in Rust it will be "blazingly fast and memory-efficient", just because Rust!

They don't want to believe (even I've seen samples in the past) that when an average dev translates some average code in, say Java, to Rust the result will be almost certainly a few times slower than when run on the JVM.

11 hours ago
ComprehensiveWord201

Ah yes, "The Rust Folks", AKA the straw man/generalized group "they" who all think homogenously.

8 hours ago
port443

The reason they put that in quotes is its literally stated on the Rust website as a fact.

And then here's a literal "I'm a Java dev wanting to use Rust" with multiple Rust people stating that just using Rust will make code more gooder: https://users.rust-lang.org/t/is-rust-really-faster-than-java-because-of-memory-management/80651

So no, its not a straw man.

6 hours ago
Electric-Molasses

Okay but you're comparing it to Java, so in this case they're actually right.

It doesn't have to be Rust. It just has to not be Java.

You should also actually read your source:

I think you actually missed the important point: main different lies not with languages, but with people.

In reality you can write Java code which would be, very often, faster than Rust. Just put all the object in one large array and use indexes to manage data. And JIT would do amazing job.

But that's extremely unidiomatic. The ideomatic way is factory factory factory pattern. And Dependency Injection. And lots of overhead. I have never seen anything like RequestProcessorFactoryFactory.

Because Rust makes you cares about memory and that shows. But no, there are no magic in Rust. Carefully written and thought-out code in Java can be as fast or faster than Rust. Only no one very few write carefully and thoughtfully in Java. While in Rust that's the norm.

You're cherry picking and ignoring everything else.

5 hours ago
Turtvaiz

So no, its not a straw man

But is it even correct? What code runs slower in rust than in java?

The straw man here is thinking that fast language = fast code automatically, which is stupid

5 hours ago
Impressive_Bed_287

https://users.rust-lang.org/t/is-rust-really-faster-than-java-because-of-memory-management/80651

1 hour ago
DearChickPeas

Found the vegan.

51 minutes ago
WillardWhite

Oh man. I read Java and understood JavaScript. I was bewildered for a moment

7 hours ago
mxmcharbonneau

Is that true? I don't know Rust and Java that much, but it seems counterintuitive. Why is that?

5 hours ago
Major-Peachi

Translation does not transfer the nuance in language. I don't have the grasp of rust but the memory efficiency of rust is a concept not present (or often taught?) in Java, same with pointers of C.

You can probably learn the syntax of analogous features like a for loop, but beyond that, literal translation between languages does not indicate understanding of each language.

5 hours ago
Turtvaiz

Is that true?

I don't think so. It's completely unrelated to low level graphics programming, but if you make the same code in a slow language, and a fast language, the slower one will simply be n times slower.

I can't think of an example where you could somehow make the exact same concept run slower on rust/C/whatever compared to Java. The drawback of lower level languages is having to deal with extra stuff like memory bugs or the borrow checker, not that you can somehow do super slow code with them. I think OP's example makes no sense

5 hours ago
zthe0

So while c is perfomant the better question is: is your c code performant

4 hours ago
Impressive_Bed_287

*sobbing in assembler

1 hour ago
critical_patch
:py:

I remember doing well enough in the class, so I assume it was as performant as any other code written by a college student building UI components with OpenGL would be.

12 hours ago
Anarcho_duck
:cp::asm::bash::py:

Not very

12 hours ago
dismayhurta
:kt::snoo_tableflip::bash::sw::illuminati:

Oh, hey. I had the same experience, but it was a month.

7 hours ago
Dr__America

I've done GUI by implementing my own draw functions for Java's swing library, so I understand the pain even if I haven't done it as low level as just C and OpenGL.

7 hours ago
Disastrous-Olive-677

I'm not pissed, I'm impressed!

Edit:typo

15 hours ago
notexecutive

Impissed!

12 hours ago
dan-lugg
:kt::cs::g::j::p:

14 hours ago
Sergey5588

Mista zozin is a legend.

14 hours ago
ThePi7on

Helo helo everyone and welcome, to yet anotha recreational programming session with a mista a Zozin (starts beatboxing)

1 hour ago
kerbaroast

How do someone become as good as him ? I mean the guy can literally code anything and learn anything in mins ?

14 hours ago
AlexTaradov

He codes every day in all languages he can find, even the most stupid ones. And then creates his own and codes in them.

13 hours ago
kerbaroast

Man as if he knows how to talk to computers and everything is second nature to him

12 hours ago
AlexTaradov

No, him doing it every day made it a second nature. Nothing happens automatically, you actually have to work to get good.

12 hours ago
Hoxitron

Just hard work and dedication. Easy.

14 hours ago
Toannoat

also I think most people forgot that this dude has ben programming for literal decades already. I think many assume hes younger than his actual age due to the... aesthetics

7 hours ago
shootersf

He's a got a gift. Got it.

13 hours ago
thecodingnerd256

If working hard was easy even i could do it 🤣

8 hours ago
hyrumwhite

You get used to it, though. Your brain does the translating. I don't even see the code. All I see is blonde, brunette, redhead. Hey uh, you want a drink?

12 hours ago
muddboyy
:c::asm::ru::ts::hsk::ocaml:

Bro been straight coding since before 2007 just so you can have an idea. Hard work, staying consistent and loving what you do. This guy literally manages to stream almost everyday of the week (during the whole year) and still not run out of content (and he doesn’t even prepare his coding sessions) + takes the effort to edit / upload the videos to his youtube channel, that is discipline.

8 hours ago
socratic_weeb

Stop using AI

12 hours ago
Emergency-Style7392

The real secret in getting really good at anything is heavily focusing on the details and fundamentals, perfecting them. The memes about not knowing basic things out of your head is a meme, a footballer who can't do a perfect pass like a robot without thinking about it is a bad one. When you gather many things to an intuition level you can focus on the big picture. 

4 hours ago
ThePi7on

He puts in the hours and likes what he does, simple as.

1 hour ago
RiceBroad4552
:s:

IQ is almost exclusively a genetic trait. Either you have it, or you don't.

Until we know which genes are responsible for that (I heard they have some research going in China since some time), and how to reprogram an already grown up organism (which would also require to "rewire the brain", which likely meas to replace it…), there's not much one can do. OTOH you wouldn't be you any more after such procedure, anyway. ¯\_(ツ)_/¯

But regardless, I think programming GUIs in C is not very smart. It's imho actually very stupid. Doing things "just because you can" is almost always idiocy…

11 hours ago
Limekiller

Famously, you can improve at IQ tests by studying

8 hours ago
spreetin

That doesn't mean it's not inherent though. IQ tests are what measures, and IQ is what is being measured. No test will perfectly capture what is being measured. That fact doesn't in itself say anything about the thing itself.

3 hours ago
20Wizard
:j:

There's this cool thing that when you practice a lot you get very good at what you do! You should try it!

9 hours ago
Gleetide

"IQ is almost exclusively a genetic trait"

No, that is false. Genetics play a role but not as much as one might think it does.

9 hours ago
MeiramDev

I've been reading so many Rust articles, that I've read your first sentence as: "IO is almost exclusively a generic trait"

4 hours ago
Emergency-Style7392

Iq is the entry barrier, it defines your potential, achieving it is hard work. Go try playing chess for 12 hours a day with zero studying just brute forcing, I can guarantee you will improve massively if you keep doing that for long enough

4 hours ago
Silvio257

I love him. Protect him at all cost

13 hours ago
Emergency_3808

Now that is rawdogging hardcore GUI bruh. I cannot imagine putting in the effort of doing GUI programming without object-oriented programming

13 hours ago
anotheridiot-
:g::c::py::bash::js:

Immediate mode programming is the one true way.

11 hours ago
Drummerx04

You can mimic a bunch of OOP styles using C. Just looking at the struct he's defining is showing a bunch of other nested Structs within the definition. Only real difference is you don't get to define visibility as part of the language.

6 hours ago
thekamakaji
:c::py::m::j::s::vb:

Not having classes to organize methods is what really does it for me. That being said, I still love C

5 hours ago
GwynnethIDFK

You can even do polymorphism using clever struct padding.

5 hours ago
DearChickPeas

C devs reinventing C++, exhibit #23e34873.

God, everyday I love C++ more.

49 minutes ago
vladmashk

Modern React is no longer OO but functional

2 hours ago
Hola-World
:j:

Doing a UI in C is going to piss off everyone that has to touch it.

8 hours ago
EatingSolidBricks
:cs:

Absolute coding

12 hours ago
stamper2495

Guy just casually visualising fast fourier transform... I wish to never look upon this shit again

11 hours ago
mdsiaofficial
:py::cp::cs:

This guy is dope

13 hours ago
babypho

Does this guy even work at Blizzard though

11 hours ago
Mediocre-Gas-3831

AI would go mechahitler if it tried to comprehend the video

12 hours ago
SCP-iota

"Did you make a UI in C with no framework?"

"Yes."

"Does it correctly handle non-Western input methods and accessibility technology?"

"Uh... Well..."

8 hours ago
lunchpacks

What if hes trying to fight globalism AND inclusiveness while coding his UI

2 hours ago
olearyboy

Not all heroes wear capes

12 hours ago
baltimooree

that looks like a ragebait

6 hours ago
tgsmith489

As a React dev, I want to see this!

6 hours ago
walmartbonerpills

I love what this guy does but his videos are so hard to watch

13 hours ago
lunchpacks

Why?

2 hours ago
ThePi7on

The exact opposite for me. They're very easy to follow because he clearly talks through his reasoning, he understands and brings you to understand the WHY of things. He doesn't just mindlessly read and copypaste from docs or LLMs, he shows the whole process of discovery and understanding, which imho is very interesting to watch

1 hour ago
rosuav

Maybe not C, but... What if you were developing a game, and started making your own engine in C++? https://kittenspaceagency.wiki.gg/wiki/BRUTAL It's already been showing some amazing results.

8 hours ago
Antlool
:cp::c::rust::asm:

lol

14 hours ago
SidNYC

We need to have a pop-up for the summer sale, and the main website should have an animated background of the beach. We need to finish this by tomorrow, and we have bottom of the barrel coders who're paid peanuts.

13 hours ago
IMightDeleteMe

I dunno this doesn't sound awful, React is at least as silly and it's somehow widely accepted.

12 hours ago
JimroidZeus

Doing good work.

6 hours ago
Lonely-Suspect-9243
:s:

I remember making a text based GUI in my freshman year. It's nothing complicated, just arrow key navigation for a 2048 game. It was fun.

Now I create shitty CRUD web apps, so I prefer React.

5 hours ago
Minimum_Cockroach233

Where is the Issue? I am doing UI in Excel+VBA… 😅

4 hours ago
Issue_dev

I am way too stupid for this

4 hours ago
h00chieminh

I wouldn't call a visualization UI programming.

UI programming is dealing with, buttons, hover states, active states, tab indexes, windows, popovers, modals, animations, animation states, the list is endless -- and doing it well is really hard -- AND THEN rendering via GPU.

This example is creating an graph basic on audio input into a FFT.

8 hours ago
elmanoucko

What you meant was "missing interactivity".

Then what you meant was creating a basic graph from the FFT analysis of a given audio source.

Which invalidate your first fist claim as, that graph, is an interface for the user over the data he wants to see, in this context, an overview of the frequency spectrum of the audio he's been giving as source.

Don't worry, we'll stay here to help you in the future. Did you manage to center that div in your react project ?

1 hour ago
howreudoin

link to the video:

https://youtu.be/dQw4w9WgXcQ

13 hours ago
howreudoin

nah, kidding, use this one:

https://youtu.be/SRgLA8X5N_4

13 hours ago
Slggyqo
:py:

POV: you’re watching someone implement ecmascript in real time.

8 hours ago
InternalCommercial44

I love this guy 🫶🏽

1 hour ago
Dm_me_code_pics

Loved his videos until a recent haskell video where he went off on a stupid tangent calling the haskell website slop because it just looked nice lmao

9 hours ago
Mr_2D

That's pretty cool... but as a nerd it's my duty to point out that he's not optimally organizing the data within his struct to minimize the amount of padded bytes.

6 hours ago
metaglot

Doing a one-off UI for your weekend project in C is not impressive.

13 hours ago
PatriotSAMsystem

Take a walk kid

13 hours ago
metaglot

Going fast when you're working alone isn't really impressive. How about doing an actual user interface for other people instead of just some lame visualizer. I've had tons of colleagues bragging about being able to do this sort of stuff, and they make shit interfaces for themselves and noone else.

13 hours ago
PatriotSAMsystem

You are the type of guy everyone in the industry hates. Literally, you always know it better and probably are never wrong either. Just shut the fuck up if you don't have anything of value to add or just spread your negativity, scroll the fuck on

13 hours ago
ElectionMindless5758

The type of guy everyone in the industry hates is actually the hobbyist that produces 0 value but acts like he's a god programmer (and better than you R*eact devs who actually make things that people use, of course) because he spent 3 months making a shitty native program in C.

13 hours ago
PatriotSAMsystem

Why the fuck would people in the industry hate hobbyists LOL they're not even IN the industry that's why it's called hobbyists... Im also not even a react dev but whatever

13 hours ago
ElectionMindless5758

I said "react devs" in reference to OP's print screen

12 hours ago
metaglot

No i dont know this better, but this doesn't impress me. Gamedevs do it all the time. But if all of your GUI amounts to nested menus, its not fucking impressive, buddy. Doing real interfaces for real people to get actual shit done, impresses me. React or C, i dont care.

13 hours ago
Ronin-s_Spirit
:js:

"I'm gonna break a leg to piss off professional olympic runners which have trainers and personal doctors and shit". Goofy ahh attitude.

14 hours ago
IncompleteTheory
:c::cp::py:

Are you a React dev?

14 hours ago
Ronin-s_Spirit
:js:

No. Just commenting on how ridiculous the title is.

13 hours ago
BlackMarketUpgrade

Not really a good analogy. Plus, it's just a joke, guy.

14 hours ago
DanteWasHere22

Ahh he got ya!

14 hours ago
Ronin-s_Spirit
:js:

I'm not a react dev tho. The logic of his title got me.

13 hours ago
DanteWasHere22

Nahh you got got bro it's alright we all get got every once in a while

13 hours ago
not_some_username

One react dev pissed off. Millions others to come

14 hours ago
Birnenmacht
:py::c::bash:

millions must segfault

14 hours ago
Miesho

Comparing a broken leg to designing a UI in C — and likening React developers to Olympic athletes — just proves that in both cases, you have absolutely no idea what you're talking about.

13 hours ago
Cafuzzler

More like "I'm gonna swim in the sea to piss off people in the kiddie pool"

3 hours ago
sits79

Learned C in first year nearly 30 years ago. The pointers still give me nightmares.

58 seconds ago