Programming thread

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
if you already know basics of C++ then I've heard good things about C++20 STL Cookbook by Bill Weinman (available on zlibrary), he's currently making c++23 version, but there's a repo with code samples that will be used in the book
It's a Packt book so be careful. I'm not saying there are no Packt books that are at least somewhat decent (I used one to get a few more percentage points out a classifier) but the last time I used a Packt book the code examples were so obviously broken that I didn't even need to bother typing them into a console.
 
  • Horrifying
Reactions: GhastlyGhost

Ever read something you agree with so strongly that you almost feel like you wrote the fucking thing?
the original* is better and this one is slightly less funny even though it shows off more of the shit you can do with raw html
it also goes on and on and has a bit of a non sequitur about assembly in there because the llm that wrote it was off its meds

*he knows it's better and he even linked to it: https://motherfuckingwebsite.com/
 

Ever read something you agree with so strongly that you almost feel like you wrote the fucking thing?
1749851775629.webp
 

Ever read something you agree with so strongly that you almost feel like you wrote the fucking thing?
I had no idea about the DIALOG and DETAILS HTML tags, among others. Part of the reason you can "just fucking use HTML" is because HTML itself is feature-creeping too. (<METER>, seriously?)

I'm actually hoping the Age Of AI will swing the pendulum back in this direction, as easily-parseable documents get favored.
 
I had no idea about the DIALOG and DETAILS HTML tags, among others. Part of the reason you can "just fucking use HTML" is because HTML itself is feature-creeping too. (<METER>, seriously?)
oh, this site is only the tip of the iceberg. it doesn't even talk about how you can do funny tricks with CSS and radio buttons to have tabbed windows, for one thing
I'm actually hoping the Age Of AI will swing the pendulum back in this direction, as easily-parseable documents get favored.
well we've already been in the Age of Search Engines and people lately have all been complaining about how shitty they are these days
might be because the search engines can't effectively scrape through all the retarded megabytes of automatically generated divs shat out from whatever garbage people use these days
 
I had no idea about the DIALOG and DETAILS HTML tags, among others. Part of the reason you can "just fucking use HTML" is because HTML itself is feature-creeping too. (<METER>, seriously?)

I'm actually hoping the Age Of AI will swing the pendulum back in this direction, as easily-parseable documents get favored.

HTML is not only easier to code, shit like React is a solution to problems that don't exist. Its dogshit, I gave up on trying to get better at react because quite frankly, I dont want to code react even if somebody was paying me to do it. I'm gonna code vanilla html and I'm not installing any bullshit libraries unless I actually find them useful. Express and bootstrap for example, are pretty good.
 
View attachment 7499624

Fuck it, I'm gonna learn assembly.
which cpu? how much? what will you make?
daily reminder: assembly isn't especially hard; it's just mind-numbingly tedious, absurdly inexpressive, and a lot of the time the compiler is better than you at translating your ideas into instructions
 
Redditards are the ones writing their websites in react.

I hate react so fucking much. Its a bunch of extra work for a website that performs shittier overall.
im more so talking about the language used, ist very 2019 leftward shift redditesque.
what i will say is i thought react was just supposed to make websites look nicer? like i understand you can create a competent website using html but if you want the bells and whistles you use react no?
 
which cpu? how much? what will you make?
daily reminder: assembly isn't especially hard; it's just mind-numbingly tedious, absurdly inexpressive, and a lot of the time the compiler is better than you at translating your ideas into instructions
In Microcontroller Land(tm) it's important to know the underlying assembler when you start getting into critical stuff. Sure, you can write 99% in C, then just hand optimize things in cases where you can out optimize the optimizer. I had one fun case where I was doing some fancy stuff in an interrupt routine such that the interrupt could actually break the main flow of the program. But the main flow was toggling pins with low latency and the ISR also needed low latency so I had to go in and carefully disable interrupts just for the smallest part of the pin toggle so the pin wouldn't end in the wrong state if the ISR triggered, but it was a couple lines of assembler.

Of course now there's the Pico and PIO and MPUs 10x as fast, so I don't have to do that any more.
 
  • Informative
Reactions: Belisarius Cawl
im more so talking about the language used, ist very 2019 leftward shift redditesque.
what i will say is i thought react was just supposed to make websites look nicer? like i understand you can create a competent website using html but if you want the bells and whistles you use react no?

React doesnt really make the website look nicer. You use css for the layout of the site.

I'm not super well learned on react, but everything I've seen it used for can be done with vanilla html with way less effort. Im sure maybe there are some niche things react might be good for, but overall I prefer just normal html.
 
which cpu? how much? what will you make?
daily reminder: assembly isn't especially hard; it's just mind-numbingly tedious, absurdly inexpressive, and a lot of the time the compiler is better than you at translating your ideas into instructions

dual core intel pentium 2.8 ghz
I have this really cool idea for a game about roller coasters.

Jokes aside though, I am gonna get into c and c++ for fun. Web development stuff is honestly kind of boring.
 
Back