Welcome to Incels.is - Involuntary Celibate Forum

Welcome! This is a forum for involuntary celibates: people who lack a significant other. Are you lonely and wish you had someone in your life? You're not alone! Join our forum and talk to people just like you.

It's Over teaching myself how to program again

svgmn1

svgmn1

Fat link cult
★★★★★
Joined
Sep 3, 2021
Posts
13,130
I started with the standard, c++, a language that I once studied in college (and casually forgot everything about completely) then after I regain my knowledge of it I will gradually shit to fart (dart) + flutter framework and goydroid studio.

this is a long term plan that will take at least six months.

you can use my files (lessons) in which I will post in this thread to learn because I filled it with bullshit commentary and notes on how shit works, as well as compiling and editing them as you like, they're just useless pieces of newb codes.
 
1.simple loop demo

because i'm a condescending nigger who already remembers how if shit works, I quickly jump-started my journey in loops

this file covers the three loop types while, for and do-while.
the project also has one little neat trick of using loops and whiles, which is to check condition and validate input without using extra variables or flags, pretty neat tbhngllossus :feelsaww:
 

Attachments

  • c++ loop demo.txt
    1.5 KB · Views: 14
you can use my files (lessons) in which I will post in this thread
Why would i learn from you dumbass retard nigger who cant use linux when i can learn from professionals on jewtube and that other purple site i forgot the name
 
Im so fucking bored i need to move fuck this subhuman body
 
2. switch-case conditional statements

switch-case sounds and looks scary at the beginning but it's easy as fuck, problem is it's unnecessary most of the time, and you would find yourself forgetting about it because if statements logic is much more practical
:hax:
 

Attachments

  • switch case loops.txt
    2.7 KB · Views: 4
Why would i learn from you dumbass retard nigger who cant use linux when i can learn from professionals on jewtube and that other purple site i forgot the name
my attention span is too low to watch a jewtube vid :cryfeels:
 
1.simple loop demo

because i'm a condescending nigger who already remembers how if shit works, I quickly jump-started my journey in loops

this file covers the three loop types while, for and do-while.
the project also has one little neat trick of using loops and whiles, which is to check condition and validate input without using extra variables or flags, pretty neat tbhngllossus :feelsaww:
This reminds me of Java.
 
Im so fucking bored i need to move fuck this subhuman body
If it makes you feel less shitty, I will eventually also be limited in my movement as yesterday I have found out that two of discs in my neck are worn quite a bit. Doc said too much for my age.

He says that a surgery is inevitable. Fml, man.
 
You don't need to memorize loop/switch. Just Google them.

The real issue in programing is thinking up all sorts of shit that can happen (unhandled and handled exceptions) and how to handle them to the devs, the customer support, the testers, and the end users.

And standardizing code style/formation. Harder than it looks
 
3.introduction to programming functions: void and parameters

this one seems complext but it isn't, the first part of the code is just the code from the switch case code used as a void function, it just shows you how void function works.

the second part a void-param function with param passing, used to print a counter in the output

the user specifies and inputs the start number of the counter and how many numbers to count in the main () function.
 

Attachments

  • void loops + function.txt
    3 KB · Views: 3
Last edited:
You don't need to memorize loop/switch. Just Google them.

The real issue in programing is thinking up all sorts of shit that can happen (unhandled and handled exceptions) and how to handle them to the devs, the customer support, the testers, and the end users.

And standardizing code style/formation. Harder than it looks
true but only for people who already learned and keep practicing programming
for me it was the lack of practice that made me forget about everything
 
what are you learning it for , a job or just to build your own shit
 
4.Arrays and special user specified array size using vector lib

here shit gets serious and intense like buffalos having sex
you need time and reading the comments thoroughly to understand.
 

Attachments

  • array functions.txt
    2.1 KB · Views: 9
what are you learning it for , a job or just to build your own shit
both I hope so but I'll guarantee you that I will drop this idea from my head after a couple of months because I know that I never committed to any thought in my life :feelscomfy:
 
both I hope so but I'll guarantee you that I will drop this idea from my head after a couple of months because I know that I never committed to any thought in my life :feelscomfy:
hope you dont drop it
 
If it makes you feel less shitty, I will eventually also be limited in my movement as yesterday I have found out that two of discs in my neck are worn quite a bit. Doc said too much for my age.

He says that a surgery is inevitable. Fml, man.
brutal hope you get well brocel
 
5.Overloaded function + code navigation with goto

ever wanted to replicate arduino IDE's delay or millis to repeat some shit, but you're too fucking stupid in c++ to use loops?
got you because I am too, most of the time.

goto is ez shit but don't use it too much because just like repeat/delay in arduino/embedded systems it can be problematic.


AND you have to learn overloaded functions, its basically a single function that can be used to do two different things, as long as the params have different var types or different count of vars in the params, homeboy.
 

Attachments

  • overloaded functions + goto.txt
    2.9 KB · Views: 1
6. @Master -ing input validation in c++ as a noob

too fucking stupid for try and exception handling, but still think goto is garbage?
you WILL learn validation by loops and bool flags against your consent
start raping your brain
 

Attachments

  • goto-loop-bool input validation.txt
    2.5 KB · Views: 3
7.Using bool condition check/input validation as a function

demonstrates that there is no need to repeat the same code again for every window or prompt for the user in a program, you can use bool validation method as a function and just load it when needed as long as your vars are sorted.
 

Attachments

  • functional bool input validation.txt
    1.4 KB · Views: 1
I did all that bs in just three days
I'll catch me a sandwich or some shit to eat before moving on with today's lesson
 
If it makes you feel less shitty, I will eventually also be limited in my movement as yesterday I have found out that two of discs in my neck are worn quite a bit. Doc said too much for my age.

He says that a surgery is inevitable. Fml, man.
Dont do surgery my initial injury is herniated disc at only 19. Also was recommended fusion surgery.

Dont do it.
 
Dont do surgery my initial injury is herniated disc at only 19. Also was recommended fusion surgery.

Dont do it.
Thank you for the heads up, fren. I am also well informed on this issue. Such surgeries only make things worse.

I will do lots of stretching, inversion therapy and eat foods rich in collagen.

That's all I can think of.
 
4.Arrays and special user specified array size using vector lib

here shit gets serious and intense like buffalos having sex
you need time and reading the comments thoroughly to understand.
this one has a bug I thought I debugged it, but forgot


here's the correct code, with an added "print array in reverse order" functionality and extra commentary to explain why the reverse order is different.
 

Attachments

  • array functions.txt
    3 KB · Views: 4
Thank you for the heads up, fren. I am also well informed on this issue. Such surgeries only make things worse.

I will do lots of stretching, inversion therapy and eat foods rich in collagen.

That's all I can think of.
thats all good also swim if you can. Swim everyday if u can.

Take pain killers the heavy ones
 
thats all good also swim if you can. Swim everyday if u can.

Take pain killers the heavy ones
I don't have pain yet, luckily. The discs are still good enough.

He told me that it will take years for me to notice something.

So, for now I am good, but I want to do as much as I can and know to maybe avoid this altogether.

I hope you didn't get that surgery done, man.

As for swimming, I never go swimming although I know that it is the best possible type of sport.
Very healthy and easy on the joints.

I just am extremely shy to show myself almost naked, especially because I have a very small penis.

Yes, that shit fucks with my head. Even at work in the locker room I never undress in front of co-workers and I shower at home although I could save quite a bit of money when showering at work since water here is expensive.

This is also why I start my shifter a bit later.

On top of that I have very sensitive skin. Can't use any soap with perfume in it and it is so difficult to find out without.
During summer time I get heat pimples or whatever they're called.
My skin then also gets itchy and if not from that it is constantly itchy becausw of how dry it is.
Showering regularely makes it worse and I showwer with luke warm water and then afterwards go ham with ice cold water.

Still, pretty dry skin. And the perfume causes irritation. I get red spots all over my chest and bery red armpits. I am bery ashamed of that which is why I basically never undress anywhere.

Nowadays I couldn't even imagine being with a foid with such conditions.
 
8.Introduction to pointers + advanced vectorized array with pointer

so far this has been the hardest piece of shit that I ever written. it's basically a demo of pointers for the first part, then a normal array printed with a pointer, then a vectorized array with a pointer.

shit legit made me feel like terry davis tbhngllossus :dafuckfeels:

 

Attachments

  • vectorized pointer array.txt
    3.2 KB · Views: 5
Artificial Intelligence will take over most of the actual programming soon. Humans will just instruct AI about what code to write. But you still need to understand programming. So while learning these, it's better to learn how to program while making sample programs with an AI app like chatgpt.
 
Artificial Intelligence will take over most of the actual programming soon. Humans will just instruct AI about what code to write. But you still need to understand programming. So while learning these, it's better to learn how to program while making sample programs with an AI app like chatgpt.
AI is garbage for coding tbh

I did all that in vs code, disabling copilot and extensions only enabling copilot when I face a deadend.

cuckgpt didn't even know how to set the fucking IDE correctly, let alone dive in these deepwaters.
 
AI is garbage for coding tbh

I did all that in vs code, disabling copilot and extensions only enabling copilot when I face a deadend.

cuckgpt didn't even know how to set the fucking IDE correctly, let alone dive in these deepwaters.
OK. You seem to know more than me and have tried it out.

It is my friends in CS that are saying that AI will take over programming soon. They say LLMs are pretty good in that.

I've only used Microsoft Copilot to write some basic programs like 'hello world' in c and python. It seemed to do a good job. It might be copying from somewhere else though.

Setting up the IDE is a job for you, is it not? That's not part of the program.

I'm not actively learning at the moment. But when I continue again I'm thinking of using AI and just make little corrections to what it does, rather than spend time doing all the typing myself.

Someone also told me that it is possible to make the AI learn and adjust its behaviors.
 
true but only for people who already learned and keep practicing programming
for me it was the lack of practice that made me forget about everything
Fair enough. My issue is that I suck at remembering things, so if you put me on a room, and ask me to code without reference, you'd probably think I never coded at all.
 
8.Introduction to pointers + advanced vectorized array with pointer

so far this has been the hardest piece of shit that I ever written. it's basically a demo of pointers for the first part, then a normal array printed with a pointer, then a vectorized array with a pointer.

shit legit made me feel like terry davis tbhngllossus :dafuckfeels:
Dnr
 
practicing on passing a pointer that accesses a vectorized array in main() from the void function and using it to swap two variables

Code:
#include <iostream>
#include <vector>
using namespace std;

//assignment: make a vectorized array in main(), make a function that passes a pointer var and two integer vars
//in which you'll use to swap two elements ( element no.2 and element no.4) in the vectorized array


void swapper (vector<int> *ptr, int x, int y)
{

    int temp       = (*ptr)[x];
    (*ptr)[x]      = (*ptr)[y];
    (*ptr)[y]      = temp;




}

int main(int argc, char** argv) {

//vectorized init and input
int max2;
    
cout << "hey ! welcome to svg's vectorized array pointer swapper" << endl;
cout << "enter your array's size number or the maximum number of numbers in array" << endl;
cin >> max2;

vector<int> ar2(max2);

for (int b = 0; b < max2; b++) {
    cout << "enter element number " << b << ": ";
    cin >> ar2[b];
}

vector<int> *ptr1 = &ar2;


int x = 2;
int y = 4;


swapper (ptr1, x, y);



for (int b = 0; b < max2; b++) {
    cout << "element number " << b << " is " << ar2[b] << endl;
}



    return 0;

this shit is mind-raping :dafuckfeels: :dafuckfeels: :dafuckfeels:
 
practicing on passing a pointer that accesses a vectorized array in main() from the void function and using it to swap two variables

Code:
#include <iostream>
#include <vector>
using namespace std;

//assignment: make a vectorized array in main(), make a function that passes a pointer var and two integer vars
//in which you'll use to swap two elements ( element no.2 and element no.4) in the vectorized array


void swapper (vector<int> *ptr, int x, int y)
{

    int temp       = (*ptr)[x];
    (*ptr)[x]      = (*ptr)[y];
    (*ptr)[y]      = temp;




}

int main(int argc, char** argv) {

//vectorized init and input
int max2;
   
cout << "hey ! welcome to svg's vectorized array pointer swapper" << endl;
cout << "enter your array's size number or the maximum number of numbers in array" << endl;
cin >> max2;

vector<int> ar2(max2);

for (int b = 0; b < max2; b++) {
    cout << "enter element number " << b << ": ";
    cin >> ar2[b];
}

vector<int> *ptr1 = &ar2;


int x = 2;
int y = 4;


swapper (ptr1, x, y);



for (int b = 0; b < max2; b++) {
    cout << "element number " << b << " is " << ar2[b] << endl;
}



    return 0;

this shit is mind-raping :dafuckfeels: :dafuckfeels: :dafuckfeels:
rapes me
 
1000040111


nah bro what was this goober thinking

if I told you coding 8086 in assembly and logic circuitry was easier than c++ you wouldn't believe me, but it really is

1000040109
 
practicing on passing a pointer that accesses a vectorized array in main() from the void function and using it to swap two variables

Code:
#include <iostream>
#include <vector>
using namespace std;

//assignment: make a vectorized array in main(), make a function that passes a pointer var and two integer vars
//in which you'll use to swap two elements ( element no.2 and element no.4) in the vectorized array


void swapper (vector<int> *ptr, int x, int y)
{

    int temp       = (*ptr)[x];
    (*ptr)[x]      = (*ptr)[y];
    (*ptr)[y]      = temp;




}

int main(int argc, char** argv) {

//vectorized init and input
int max2;
   
cout << "hey ! welcome to svg's vectorized array pointer swapper" << endl;
cout << "enter your array's size number or the maximum number of numbers in array" << endl;
cin >> max2;

vector<int> ar2(max2);

for (int b = 0; b < max2; b++) {
    cout << "enter element number " << b << ": ";
    cin >> ar2[b];
}

vector<int> *ptr1 = &ar2;


int x = 2;
int y = 4;


swapper (ptr1, x, y);



for (int b = 0; b < max2; b++) {
    cout << "element number " << b << " is " << ar2[b] << endl;
}



    return 0;

this shit is mind-raping :dafuckfeels: :dafuckfeels: :dafuckfeels:
like what is this shitty logic
it feels like playing a neckbeard platformer that is modded to bdsmmaxx
 

Similar threads

svgmn1
Replies
16
Views
538
svgmn1
svgmn1
sennaGTR
Replies
16
Views
1K
Biowaste Removal
Biowaste Removal
E
Replies
88
Views
6K
ldargoblin
ldargoblin

Users who are viewing this thread

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top