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.
I'm still pretty new at this stuff. I dont know what that is.

However, I will say that I figured out what to do. I gotta rewrite a shit ton of code but its gonna be much more organized.

Basically I decided to build out objects for different functions and elements to make my code more organized.

So instead of having a bunch of variables and functions cluttering up my code I have specific objects for different things.

Like one for local storage functions. One of DOM manipulation. One for calculations, etc etc.

Kind of salty that I now have to revise alot of code but I think its best to keep my code organized instead of letting it grow into an unholy niggerlicious javascript monstrosity.
It looks like you are trying to build a Niggerlicious version of classes for JS. What exactly is the benefit of this refactor except for syntactical sugar?
Are you trying to build a uniform interface you can iterate over? Not to be a dick or anything, but you should always be refactoring based on an objective.

For example: today I was working on a frontend UI component in Angular. I saw reusability in the component, so I isolated it from the page it was on and made it into a subcomponent. I then reused it on another page.

What does the refactoring provide you?
 
It looks like you are trying to build a Niggerlicious version of classes for JS. What exactly is the benefit of this refactor except for syntactical sugar?
Are you trying to build a uniform interface you can iterate over? Not to be a dick or anything, but you should always be refactoring based on an objective.

For example: today I was working on a frontend UI component in Angular. I saw reusability in the component, so I isolated it from the page it was on and made it into a subcomponent. I then reused it on another page.

What does the refactoring provide you?
Alot of my functions are used for several purposes. And the ones that arent are still kept in objects so I can categorize them based on what it does. Some of them are also algorithms that calculate numerical properties for alot of objects so I dont have to go in and write it out myself.

It ends up making it really easy to debug and change things. That and I find that it makes my code way more organized.
 
that's sort of what c++ is until you use the stl which absolutely overuses template bullshit to an unfunny degree
I like the template bullshit as far as C++ 17. When they had to turn a templating engine into an Ocaml-style "type system", they lost me.

Also don't forget about the insistence on iterators all over the place.
 
I like the template bullshit as far as C++ 17. When they had to turn a templating engine into an Ocaml-style "type system", they lost me.

Also don't forget about the insistence on iterators all over the place.
that's the problem: you add a nice template system for type-safe generic containers then niggers start trying to add all sorts of trendy functionalshit to the language standard
 
I just discovered a horrifying cargo package that is yet another reminder that Rust is for sex pests and troons:



What a disturbing thing to do to your programming environment.

Edit: in case you want cargo or cargo mommy to control your vibrator (your vibrating butt plug because you're a troon/femboy), there's another extension for that: https://github.com/Shadlock0133/cargo-vibe
Yep, I found this last year: https://kiwifarms.st/threads/open-source-software-community.38130/page-193#post-17144518. What a bunch of weirdos.
 
  • Like
Reactions: y a t s
I like the template bullshit as far as C++ 17. When they had to turn a templating engine into an Ocaml-style "type system", they lost me.

Also don't forget about the insistence on iterators all over the place.
The C++ nigger wants a Lisp-style macro system, but if he were to realize this, he would have to face the fact that C++ wasted his time for years, so instead he will badly stitch a macro system out of an accidentally Turing-complete template engine.
 
Any tips or tricks for writing Arduino stuff?
It really depends on what you want to make. Serial stuff is fun to mess around with. Some models have USB HID support, so you can emulate keyboards and the like.

Consider getting a cheap kit with a knockoff Uno and some basic parts off Amazon to start with. These usually come with little project booklets, or you can find a ton of beginner projects online to get your feet wet. These kits are nice since they give you a lot of components you can accidentally burn through without fear of quickly running out. Also get a nice big breadboard with the side rails for providing power; some don't include those.
 
Metaclasses are good, chud
unironically yes
 
  • Agree
Reactions: 306h4Ge5eJUJ
I just discovered a horrifying cargo package that is yet another reminder that Rust is for sex pests and troons:



What a disturbing thing to do to your programming environment.

Edit: in case you want cargo or cargo mommy to control your vibrator (your vibrating butt plug because you're a troon/femboy), there's another extension for that: https://github.com/Shadlock0133/cargo-vibe
....
It gets worse....
I'm scared of going to buttplug.io to see just how degenerate it is.
 
Last edited:
  • Lunacy
Reactions: Friendly Primarina
Consider getting a cheap kit with a knockoff Uno and some basic parts off Amazon to start with. These usually come with little project booklets, or you can find a ton of beginner projects online to get your feet wet. These kits are nice since they give you a lot of components you can accidentally burn through without fear of quickly running out. Also get a nice big breadboard with the side rails for providing power; some don't include those.
I did this already tbh.

The thing I want to make is reasonably simple so I could probably just build it using digital logic but I don't like doing digital logic once the number of things I need to do becomes really large. I like programming better when you have a lot going on as it is way better organized and easier to work on the problem.
 
  • Like
Reactions: y a t s
I just discovered a horrifying cargo package that is yet another reminder that Rust is for sex pests and troons:



What a disturbing thing to do to your programming environment.

Edit: in case you want cargo or cargo mommy to control your vibrator (your vibrating butt plug because you're a troon/femboy), there's another extension for that: https://github.com/Shadlock0133/cargo-vibe
What in the actual fuck?

PluralityDommed by the Rust compilerWrite commits in mommy's voice

I'm scared of going to buttplug.io to see just how degenerate it is.
Welcome to the field of teledildonics.
 
The thing I want to make is reasonably simple so I could probably just build it using digital logic but I don't like doing digital logic once the number of things I need to do becomes really large. I like programming better when you have a lot going on as it is way better organized and easier to work on the problem.
If you outgrow the Arduino the next step these days will probably be the Raspberry Pi Pico or any RP2040 clone. Downside is it's only 3.3v, but otherwise if you're lazy you can use MicroPython or move over to the C/C++ SDK.
But you can do fun stuff like implement your logic in a PIO block and make it really fast, and pretend it matters for your application.
Welcome to the field of teledildonics.
A few years too late.
2024-06-26_18-26.png
 
Any recommendations for a good IDE for c++ in Ubuntu (work related so as long as it's not insane pricing then it's okay)? I currently use CLion but like always the devs completely fucking broke it with retarded AI features.
 
  • Feels
Reactions: Safir
Any recommendations for a good IDE for c++ in Ubuntu (work related so as long as it's not insane pricing then it's okay)? I currently use CLion but like always the devs completely fucking broke it with retarded AI features.
KDevelop is on Debian (idk about ubuntu). It's buggy but decent and has OK CMake integration, if you're into that.
 
  • Informative
Reactions: wtfNeedSignUp
KDevelop is on Debian (idk about ubuntu). It's buggy but decent and has OK CMake integration, if you're into that.
Thanks, I think the kiss of death was having a New UI which of course heavily cut on the GUI because god forbid actual developers won't need to parse random icons for basic features like Build or Commit. The AI is also the usual case where doing anything beyond basic shit is more of a hindrance than a help.
 
Any recommendations for a good IDE for c++ in Ubuntu (work related so as long as it's not insane pricing then it's okay)? I currently use CLion but like always the devs completely fucking broke it with retarded AI features.
A regular text editor could do. However, if you want mobility and tactility, you should use NeoVIM. I am not a professional, and it does get complicated to use, however I have seen people jump around and go demon mode with it. You can also get plugins that turn it into a proper IDE rather than an extremely good text editor. The "DOOM" of text editors, old and rusty but still fantastic to use once you modify it.
 
A regular text editor could do. However, if you want mobility and tactility, you should use NeoVIM. I am not a professional, and it does get complicated to use, however I have seen people jump around and go demon mode with it. You can also get plugins that turn it into a proper IDE rather than an extremely good text editor. The "DOOM" of text editors, old and rusty but still fantastic to use once you modify it.
I know a guy who went all in on setting up nvim and writes his own plugins in Lua for various things. It sounded like there was a decently high initial effort to get things the way he wanted it but watching him work on stuff is like watching a wizard. I don't know much about all the config but I know one thing used is treesitter and one alternative mentioned if you wanted a more "out of the box" solution (and can tolerate emacs keybindings) is Doom Emacs.

There's also Kakoune and Helix if you wanted some other oddball editor options. Neither has the configurability of something like vim/neovim/emacs but they come out of the box with mostly good enough config for most languages and both claim to support C++. I've not used either much but have tried Helix and it has its own weird not-quite-vim keybindings which is annoying.
 
Back