Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "cout"
-
(was teaching C++ to a newbie)
Me: aight, so to print a statement, you type cout.
(Proceeds to do so)
Her: um, okay but printer is not connected.
Me: aw, you poor thing.10 -
Interview with a candidate. He calls himself "C++ expert" on his resume. I think: "oh, great, I love C++ too, we will have an interesting conversation!"
Me: let's start with an easy one, what is 'nullptr'?
Him: (...some undecipherable sequence of words that didn't make any sense...)
In my mind: mh, probably I didn't understand right. Let's try again with something simple and more generic
Me: can you tell me about memory management in C++?
Him: you create objects on the stack with the 'new' keyword and they get automatically released when no other object references them
In my mind: wtf is this guy talking about? Is he confusing C++ with Java? Does he really know C++? Let's make him write some code, just to be sure
Me: can you write a program that prints numbers from 1 to 10?
Ten minutes and twenty mistakes later...
Me: okay, so what is this <int> here in angle brackets? What is a template?
Him: no idea
Me: you wrote 'cout', why sometimes do I see 'std::cout' instead? What is 'std'?
Answer: no idea, never heard of 'std'
I think: on his resume he also said he is a Java expert. Let's see if he knows the difference between the two. He *must* have noticed that one is byte-compiled and the other one is compiled to native code! Otherwise, how does he run his code? He must answer this question correctly:
Me: what is the difference between Java and C++? One has a Virtual Machine, what about the other?
Him: Java has the Java Virtual Machine
Me: yes, and C++?
Him: I guess C++ has a virtual machine too. The C++ Virtual Machine
Me (exhausted): okay, I don't have any other questions, we will let you know
And this is the story of how I got scared of interviews29 -
Logged in after approx 1.5 years. I want to be active here again! In the past 1.5 yr, I ...
- got married
- got a new MacBook
- moved to a new place
- got a new job
Wooooooo20 -
Friend : Hey bro I made an awesome program which shows your future wife's name.
Me : Hey that sounds interesting, show me the source code bro !!
Friend shows the code :
#include <bits/stdc++.h>
using namespace std;
int main()
{
string first_name , last_name;
cout << "Enter your first name\n";
cin >> first_name ;
cout << "Enter your last name\n";
cin >> last_name ;
cout << "Your wife's name is " << "Mrs " << last_name << "\n";
}
Me : Dude you are gonna crack Google some day :P17 -
What my lecturer think I have learned:
- Programming Patterns
- C, C++, Java
- Socket programming, web programming
- Operating system...
What I have actually learned:
1. printf("Hello World");
2. echo "Hello World";
3. console.log("Hello World");
4. Console.Writeline("Hello World");
5. cout << "Hello World" >> endl;
6. System.out.println("Hello World");
7. puts "Hello World";
8. "Hello World"
9. write("Hello World");
10. Display "Hello World"10 -
She: We've been together for so long and why are you never romantic??
Me: What do you mean? I can say I Love You in 10 different languages!
She: Awww... Really ?!?
Me:
cout<<"I Love You!";
printf("I Love You!);
System.out.println("I Love You!");
print "I Love You!"
echo "I Love You!";
say I Love You
puts "I Love You!
msg db 'I Love You!'
<h1>I Love You!</h1>
dbms_output.put_line ('I Love You!');
Me: Hello.. ?6 -
Boss - so how long will this transport booking app take, native android and iOS ....plus backend, plus localization, plus live location tracking, blah blah.
Me - at least 4 months, or more
Boss - HOW can an app take MONTHS? That is totally unacceptable, it’s not gonna work this way, blah blah. I’m giving u 2 months, tops. No project should take more than 2 months.
—
Next app,
Boss - so this new e-commerce app needs to be made, u have api. How long?
Me - 2 months coz ——-
Boss - WHATTTTT!!!??? 2 months for an APP!!???? What is this? Not gonna work this way, you should make apps in a week. Other people make apps in a week.
Then fucking hire those other people. Lol.8 -
Why do some non-devs treat professional app development like some kids craft-making hobby that requires zero skill and knowledge or brain?
A friend (with ZERO knowledge about coding) said to me today, teach me, or tell me how to learn this app development, I'll learn it within a month and make my own apps plus do freelance app work in free time, apps fetch plenty of money easily. Blah blah.
Not the first time, other non dev friends have talked in the same way on other instances.
It's insulting and infuriating. I don't even know what to reply.7 -
Me: I'm gonna be productive today. Will complete this task in one hour!
*starts coding enthusiastically*
After two minutes...
*facebook*
*cat video*
Awwwww
*dog video*
Lol heheh!
*cute kittens n puppies*
Heh, silly cat
*more cats, dogs*
*accidentally notices the time*
Crap! 1.5 hours gone waste....7 -
Hi, my name is Juan, I'm 17 years old. I started programming when I was 12 years old (I started with Visual Basic 6) and I'm from Venezuela. A friend, named Javier, recommended DevRant, and I think it's a fantastic idea. I'm an inveterate lover of UNIX and all its variants, and of course, also of C/C++. I have so many projects in mind for the gamedev, but emptiness eats me and I can't develop them, it's pathetic.
#include <iostream>
int main() {
std::cout << "Hello, devRant\n";
return 0;
}15 -
cout << "<?php echo \"system.out.println(\\\" console.log('<h1>hello world</h1>'); \\\"); \" ; ?>";15
-
So... I learnt a couple things today about C++ language which I didn’t know before...
1. float var = 5.9;
std::cout << ( var == 5.9 );
// shows 0 (false) coz of float and double thing... apparently, 5.9 isn’t automatically converted to float when compared to one 🤔
2. arr[ i ] == i[ arr ]
Well... I guess I now like my college 1% more from the previous % whatever that was 😊☺️32 -
Instead of using actual debugging tools, using print statements and forgetting to remove all of them.7
-
I hate android fragments, I hate 'em, I hate 'em, oh I hate em so much....
..
Wait it worked! I love android, I love fragments! <32 -
I usually have a pen and notebook at my table while coding, to scribble while I'm figuring out stuff. Anyone else does this?14
-
Dear windows 10
I won't mind a weekly 30 minutes update but...
My ubuntu connects to wifi in 2 seconds
My lubuntu connects to wifi in 2 seconds
My archlinux connects in 1 second(don't ask why)
My raspbian starts up and connects in 10 seconds
WHY WOULD YOU TAKE MORE THAN A SYSTEMS BOOTING PROCESS TO GET CONNECTED?12 -
Why do people talk so much in the real world. I'm okay with yes/no questions. Talking face to face is exhausting for me. Leave me alone. I'm okay with chat too.
Can't tell these to anybody for real tho.
Sighs.7 -
In these floods of anxiety and depression, coding is the only thing that is keeping me from sinking... <311
-
Let's see the coder in you.
If I give input: 1 output: 2
If I give input: 2 output:1
Only these two test cases needed.
You should not use control structures such as if,else,for,while,switch etc. (The answer is simple) (Don't cheat)
int number;
cin>>number; //get number
cout<<??????; //Your code53 -
I picked up my phone for something important. Devrant was already on the screen, read a rant. Commented. And now I forgot why I’d picked up the phone.5
-
*decides to make a new os*
*remembers aosp*
*goes to their website*
*searches for sources*
*downloads*
*c/c++ based*
........
I ain't know a single stuff in C/C++ except that printing a string in C is printf and cout something in C++
AHHHHHHHH17 -
I get bothered when I hear someone say "my program is refusing to do x". The program is doing exactly what you have told it to do.2
-
I fucking hate the web guy.
He says - make a pop-up of the raw text you're receiving (in the app) so that I can test it easily while I fix it.
I did it.
Now he laughs and says - I think you searched for it and simply copied from wrong example. All you had to do was handle the text and parse it and display it blablabla instead of simply popping up the raw text.
Thank you I flipping KNOW all of that, you stuck up obnoxious frog. I did it that way initially and uploaded it coz you SAID so! Why do you ALWAYS have to talk like I know nothing!?5 -
Most ignorant ask from pm:
“So what have we done in the app so far?”
When the requirement gathering hadn’t even been completed yet.1 -
That empty feeling when a project is about to be completed...like you have to give away a pet you've grown attached to...7
-
Dev pickup lines:
Hey girl, I may not know your namespace but if you let me cin it'll turn you cout😉
Comment your best10 -
Doesn't it feel just awesome when your project is going on smoothly since the beginning...I've completed around 80 percent and haven't been stuck in anything major yet for more than half a day. It's not much I know but for me it is and right now I feel like the queen of coding ^_^4
-
My macbook's trackpad has now got a stupid mind of its own. It's been moving the cursor and scrolling and zooming randomly on its own since morning. I suspect moisture. Have opened it and kept it in the sunlight. Let's see. Any other suggestions, anyone?22
-
System.out.println("Hello World!");
Console.WriteLine("Hello World!");
console.log("Hello World!");
print("Hello World!)
printf("Hello World!);
cout << "Hello World!" << endl;
echo "Hello World!"
Add some other languages 😁40 -
So I found out few days ago that I’m pregnant. All’s well, except this guy who sits behind me in the office and keeps going out for a smoke every hour and returns smelling strongly like cigarettes. The smell fades after a while and he goes out again. Repeat.9
-
This compiles and works in C++:
int arr[10];
5[arr] = 42;
cout << 5[arr] << endl;
I know why it works technically. Its just pointer math. But I have to ask "Why?" Of all that is unholy, WHY?!11 -
Why do job descriptions for ONE developer position, list down ALL the known programming languages, all the web technologies and frameworks available? From java kotlin swift php js jquery node to ionic angular laravel python and what not. Wtf? And this is not one, this is about 70 percent of the job descriptions I see these days!!5
-
When your code works perfectly fine, and you go to dinner and return and the same code starts crashing.
And I'm like.....
.... Is my computer doing things on its own while I'm away from my desk?..... :/1 -
I've been sitting and staring at my code for two hours.
Actual work done - nil
This has been going on since three days now.
Tying not to panic. It has happened before. This phase should end in the next couple of days....
Don't panic please.
I don't think I'll be able to sleep tonight...3 -
I started my internship at the end of the year..
Fuck my ass!!! This code I have to work with is a huge pile of shit.
The code base I need to work with is around 40k LOC. It is a mixture of C++, C, Java, Python, Bash and I think I saw some lonely js files around.
A list of awesome parts:
- Paths are hard coded.
- Redundant code everywhere
- No documentation or inline comments available
Most of the comments in the code are just old code that is not used anymore. But the cherry on the turd is the class that should provide all kind of useful functions in my daily routine. About ninety percent of the functions have the same description or nothing. Sometimes a function name says "readSomethingFromSomewhere" but instead it writes something to a file. It is really confusing and I need to check everything twice instead of rely on what the function name promises.
I have also learned why copy paste isn't that good. The brief descriptions of every method in a files are always the same.
getName() - Description: Fork child process
getIp() - Description: Fork child process
getIpv6() - Description: Fork child process.
Surprise: None of these functions forks a child process. :D
Another awesome feature is the thing that they store up to five different versions of libraries. Everyone with slight modifications but no hint which one you need to use. Sometimes it is the newest, sometimes the oldest which is running in production. Another case of try and error.
Oh and my dev machine is a potato with a power supply and a fan. I started with NetBeans and every time I compiled the code it sounds like the machine wants to lift off and leave for a better place. (At this point I switched to Emacs and everything runs smoothly now)
At first I thought that I'm just not that good at coding and understanding a big project from scratch but some colleagues have the same problem. The whole system is very inflexible and it is all about "std::cout"-debugging to check if your changes do what you want them to do.
Currently I'm just trying to fix this mess to make the life for the next student or employee easier. The first month was just frustrating as hell. I need to ask so many questions and most of the time the answer was "I don't know, haven't touched this code in years". Needless to say that my progress isn't that awesome but at least I get a nice payment for 20 hours of work a week.2 -
How has coding impacted my life?
Everyone around me expects me to hack any Facebook account magically, and make personal websites and apps for them for free.2 -
We all know you can't "learn x programming language in a day" without travelling to the Arctic and catching a day that last half a year.
But what's the worst language to try and learn in a day?
I vote c++. Manual memory management, multiple inheritance, static compilation, operator overloading, and generally non-human syntax ( Like std::cout << "This is how you print!" << std::endl; ) make it a difficult one to attempt in a day.26 -
-bestfriEND
-boyfriEND
-girlfriEND
-friEND
Only: “
int count = 1;
while (count < 2) {
count—;
cout << count;
}”
Has no END.3 -
If god was a programmer, do you think he made us like
int sex = rand()% 2+1;
if (sex == 1){
std::cout << “it’s a girl!”;
}
else if (sex == 2){
std::cout << “its a boy!”;
}17 -
Received $1000 bill from google because my navigation app used google maps and the places search/autocomplete API to allow users to search for a place.
Switching to mapbox maps and places api.
#%$£€@&?10 -
Does music help you or does it distract you from coding?
It mostly distracts me, but sometimes helps me when I'm doing simple UI work etc. Or when I want to block normal people (even quietly) sitting or waddling around.10 -
Facebook has changed so much.
There was a time when we were so connected and had so much fun there with friends. Now it’s mostly about videos and ads. That’s all I see when I scroll. I hate it now.7 -
Int main()
{
cout << "Hello Devrant!";
return 0;
}
My computer professor has told us our future grades depend on who ever can beat him at soul caliber 6 when it comes out.
Are all programmers this goofy?2 -
How has coding impacted my life?
I feel handicapped now if I go somewhere (even just hang out for a while) without my laptop.2 -
I commented my code so nicely today. I deserve to be treated for this with a pizza...extra cheese....and also a holiday at some beach house.
-
I used to love windows and hated Mac
Then I started using MacBook
Now I don’t like windows at all. I don’t like windows laptops either.
I really didn’t want to be this kind of person who liked Mac and doesn’t like windows laptops
But now I have become this person.....14 -
Client - "hi, I got the mail. Is the app complete.......","...you've done this part?....","...have you done that blabla section..."
😑..I already wrote it in the mail that it is complete, dumbass. And Why don't u just flipping RUN it and see if this part and that section is working properly and tell me if your highness can spot something incomplete.
No I'm not overreacting. He acts like this all the time.2 -
How long can you code continuously without any break? Occasionally I can code for hours but usually I need frequent little breaks. :/10
-
I'm pretty much sure somewhere in the wide world Web there's a clients community joking about ordering developers to fix their printers and stuff...
while making EEEEVILLLL laughs.1 -
I’m a developer, not a designer, y r u making me do wireframes and shit, it’s short-circuiting my brain4
-
Taking a class in school where we are learning C++. The kid sitting next to me never listens. Had a couple of errors, added a few cout lines in which he put "count" instead of cout and ended up with 108 errors. That class is going to be so difficult for him..1
-
#include <rant>
Using angry standard;
Int main()
{
cout << "So my mom recently started "exploring the web". I'm sure you already know where this is going; she ended up signing up for a free trail of some diet pills with her credit card on some sketchy website. The website never sent any product but attempted to charge her card over $300 multiple times. My mom's bank noticed and froze the account. She has now opened an investigation with the banks fraud department and is awaiting response. I took the liberty of running a whois look up and found the companies website is held by GoDaddy and is hiding behind Domains by Proxy (GoDaddy's sysadmin hider). I'm angry that she's in this situation but I have no idea of how to uncover the real company behind the diet pills site." << endl;
Return 0;
}3 -
I get a feeling nowadays that a lot of u guys here know each other well.
I dnt knw if that made sense. I’m half asleep.28 -
Xcode storyboard sucks!. At least it could've had a code version of the storyboards (like android XML layouts) so that at least you could properly copy paste a layout from somewhere. Autolayouts and constraints are so flipping confusing that I almost always end up doing all the layouts in the code itself.2
-
I have not researched it so I'm not sure if this is a widely known thing but I figured out a sort of hacky way to get a max integer value:
-Declare an unsigned int.
-Subtract 1
-Divide 2
That is your max signed int value
int main(){
unsigned int a = 0;
a--;
std::cout << a / 2 << std::endl;
}7 -
By the time I’m able to put my baby girl to sleep, I get hungry again.....
I just remembered, I haven’t had pizza in a long time now...11 -
Why is flutter so unbelievably awesome?
It makes development soooo much quicker and easier compared to native java/kotlin/swift...so much simpler on so many levels, that it still feels somehow ..*wrong*...to me....10 -
std::cout<< " University, here I come! ";
// just passed a very important exam and I can't wait to get enrolled at my dream Uni :) Fingers crossed 🤞🏻12 -
Here for you, just so you cant sleep this night:
while (true) {
new long;
cout<<"Deal with it, motherfucker ";
}7 -
So my Xcode was taking forever to archive and export builds. I opened keychain access and deleted all certificates and keys except the one distribution cert. there weren't many, must have been around 14, but that reduced archive time from 15 to 5 mins, and export time from 1.5 hours to 10 minutes! Yay!! :)3
-
int new(int year) {
return ++year;
}
...
long long int year = 2017;
cout << "Happy " << new(year) << "!";1 -
What's your programming background music?
I listen to classical music
These days mostly Chinese traditional
(No I'm not Chinese)27 -
Ffs. Am I sick or is it normal that after almost a year at current company, I still love it and have nothing to rant about? It makes me happy and sad at the same time that i have nothing to rant about and this is the only rant i can come up with5
-
Xcode's taking an eternity to just archive a build. And what's worse is that the whole system turns sluggish, can't do anything else while archiving.4
-
My macbook base is missing four screws (I'd upgraded a few weeks ago...and I lost the screws) and now the base is all loose and wobbly :@2
-
A "secure" IoT framework, that integrates with the current system and helps in future implementations as well.
More importantly it would be universally adopted, open source and not proprietary .
Kinda working on something like it for a side project but really dunno where it'll end up! :/2 -
The biggest challenge I face at work is having to sit in one place and work all day. Office feels like a prison. I miss working from home.2
-
This android app is almost done, little bits remaining but I'm so flipping bored of it that I just don't feel like working on it for another minute. I just want to do the other app. But I must complete this one before going to the next. Must.2
-
This is gonna be a long one....
A lesson I learnt the hard way - never go out of your way to help friends with their coding. I helped her always, sat with her on the phone and explained and taught and solved her problems for hourssss while delaying my own work, while losing my sleep, even during pregnancy, I helped somehow as much as was possible even when I was drowning in my own work, even when I’m was not okay myself. But, once in a while I am too full, I also have work, now I also have an infant to take care of as well, and yeah sometimes I CAN be too busy to help!!!!! I have my own life too!! At these times she says “oh you don’t help me anymore”. It’s so annoying seriously What the fuckkkkk and after this shit happened a few times, I expressed my annoyance and she says, oh it was a joke. But then repeated it. And I still feel bad in refusing to help when asked. But lesson learnt that I won’t put myself behind, I’ll help only when I have nothing else to do.1 -
These days now, my boss trusts me so much and takes my opinions and suggestions and goes ahead with those. Not to mention so lenient with me regarding work times since I had the baby. I’m melting thinking about her.2
-
How do u spend your free time? These days I’m constantly torn between coding and painting. Both are my passions. And I recently started a coding blog I love writing on it, and I also want to learn meanstack in free time. But I also want to paint........ :(10
-
!rant
I got really awesome wireless headphones as a prize at a hackathon.
Was actually feeling down today, then this arrived and made my day!
It made my day and inspired me to do something today(started a personal project!) -
As we grow up, we feel cooler and smarter and wiser everyday......
Until someday, you start growing old instead, and start feeling stupider and lamer day by day...
You don’t even notice how stealthily this line was crossed....4 -
Fucking Xcode takes a hundred flipping minutes to archive a build and 69 years to export it, on my shitty MacBook.2
-
!rant
Will this code be compiled ?
#include<iostream>
using namespace std;
int main(){
int 🥩=1;
int 🧀=1;
int 🥬=1;
int 🍞=1;
int 🍅=1;
int 🥪=🍞+🥬+🍅+🧀+🥩;
cout<<🥪;
return 0;
}12 -
Writing hello world for AI:
Code:
cout << "Hello World!";
Output:
> Hello Programmer!
> You guessed right, my name is World. World Destroyer!2 -
#include <iostream>
using namespace std;
int main() {
cout << "Hello world" << endl;
}
If it works, It's time for a coffee break!! :)12 -
Once again, I have bitten off more than I can chew. Agreed and agreed on every side project that came along and now I have so many at once I can’t handle2
-
Things that I "shouldn't" put in the code:
cout << "Starting bitcoin harvester..."
cout << "Contacting IP 95.24.69.42..."
cout << "Passing control to remote IP"
Also, my boss wanted me to merge to master. I want to tell him my difficulties:
"Had issues with fluix inhibitor for the linker. Had to stretch the void pointer vector to fit the elongated float system. This helped with the binary pretranscompiler moderator in the remote modem configurator. Now everything is working fine."6 -
bool isTrue(bool val){
If(val == true){
return true;
}
else if(val == false){
return false;
}
else{
cout<<"Wrong value";
}
Function isTrue is the future ! 😂😂😂2 -
Now my MacBook didn't boot up until I plugged in the charger. Even tho it was 90 percent charged. Now why did it do that 😢2
-
Had to write a simple shell program w/ job control for my Comp Sci class. I'd just like to say, on behalf of the ~300 students...
cout << "Screw\n"
<< "job\n"
<< "control\n"; -
So my MacBook's trackpad was behaving weird since this morning. Touch was working fine but for clicks I had to press down hard. Annoyed me all day. Then suddenly now it's fixed itself. So now I'm happy about it but im like, why, how. :/4
-
After updating to macOS Catalina, I can no longer use photoshop CS6.
and the newer versions require login with a licensed account.......
What to do...5 -
Some days I feel hungry all the time. Like today. Other days I don’t feel hungry at all even if I’ve eaten nothing.5
-
I thought iPhone simulator was ONE THING that worked smoothly but NO, it is also a load of crap, hogging away the memory. Can’t develop ANYTHING without spoiling the mood because of this slow performance. It’s the same with android studio, Xcode, android emulators, and now simulator with vscode is doing the same thing. It’s 2020 you’d think a developer can write code smoothly on a huge MacBook Pro but no what a fucked up world, I’m hungry again, I have eaten up everything what to do I hate fruits !!7
-
I carelessly took a freelance project to make an app.....there was a friend involved so I was careless, shared all the code....and they refused to pay, ridiculed me too..... and I could do nothing...... I dnt care about the money; but I feel so insulted and I was being so nice and civil, and they behaved this way,..... anything I can do to their stupid website? https://spasgo.com
Nothing major...just a little something to annoy......9 -
I'm not getting why you guys complain about being judged for "hacking" while using the terminal.
In my case I'd occasionally like to open a terminal in my lubuntu (or archlinux in my previous times where the laptop was running smooth and i had to learn everything about how an OS works and spending most of the time searching about errors to find more desperate people and no answers but the community's hopefully growing and it's the best distro if you're an experienced linux user but not in my case so i had to use lubuntu for now until mastering it) to trigger those around me and try to prove them wrong afterwards.
I'll hit the airport for fun when i have time.3 -
I have to wake up in the morning ....for a meeting.........
When was the last time I woke up in the morning? Oh that was before having the baby. -
I ranted about it already.
```c++
if (vec.size() > 0) { // or whatever
cout << vec.size();
// ....
}
```
Its output was zero. And before you ask, it was a single thread program.
Aince it was for my thesis and I was in a hurry I didn't care too much for it.
Yet I think that it was a bug in clang. I removed that piece of code, compiled, rewritten it a bit differently and worked as expected. Never looked back.9 -
Life is a continuance...
Of falling and breaking apart...
Of Breaking your heart and losing it...
Of gathering yourself back again...
Of getting up on your feet again...
As long as you gather yourself...
and keep getting up again...
You’re a winner...3 -
I wonder why, Every now and then, some non-dev friend asks me, "Hey can you hack this Facebook ID for me..." :/ ............2
-
Today I asked a stupid question on stackoverflow
Got a reply which I already knew
I just hadn’t implemented it as it had to be put in a complex part of code step by step.
I took the time and implemented the solution step by step and it worked.
Why have I become like this.....old and stupid....2 -
Has anybody worked on a transit mobile app? That uses GTFS data and displays routes and times and trip plans etc.? What to use for backend?3
-
Because of my managers attitude I have lost interest in her project ...not fun any more. Now it’s not gonna be of such good quality because now I won’t be developing it with lovvve, won’t be going extra miles ......fucking idiot.1
-
Android fragments are so damn stupid. They reload on popBackStack, how the f do I retain them? Tried so many things from stackoverflow but no luck yet. So many precious hours going waste on little things.2
-
My first software.. Okay. So first time I ever attempted was with my father, i was around 8 or so, i remember very little from it, but in nutshell, i somehow ended up at his job having day off school or something, no idea.
Apparently he was bored, so he decided yo show me... Basic. Yep, thats right. Frking basic. Anyway, he shown me some really basic stuff in basic, and pushed the envelope really hard, just trying to force into me more and more in these 8hrs. I started with filling screen with "o" characters. Most of times he was telling me what to write with elaborate explanation why. At the end of the day, we finished with simple maze game where player was "o" and maze walls was #. Without any goal, or anything.
Next day i was at point 0, understood nothing from it except how to handle keystrokes (and belive me, that for me was huge mindblow, and even bigger mindblow that it actually made prefect sense).
I dont remember much, but later i started with father-assisted c++ and some pascal. I immidietly loved c++ but dropped learning it for (NullPointer) reason.
Thats not really project imho, so now time for my actual first project.
It was about time when ARK survival evolved was a fresh thing, i was playing it a lot. Server admin became buddy. We all complained about max level cap, but to change it in config you needed to input whole new xp curve.
At that time i had great familiarity with google and computers, some thought i was some kind of PC god (seriously I heard someone saying so about me lol) just becouse I could ressurect most cases of broken windows. And I had next to zero programming expirience. It was about to change. I made first c++ actual program, that was making xp curve for you. It took me just bearly 2 days and was series of cin, cout, one file open, some maths in loop, and done. Maths was very bad. But i pushed it into steam forums, and one guy responded how.bad my math was, so we colabed on making 2 iteration. Took around week. Than half a year passed and we wanted go big. Go gui. I had no freaking idea how making gui looks like. Community liked my cli tool, we had quite a lot of downloads, why not go GUI. And thats when I discovered QT framework. And we had few features in mind... It took us half a year to make it. From 60 lines of code i jumped into 1k lines of code. We pushed it and immidietly started working on 4th version with much greater customizability etc.
Than i finished 18 and found a job. Job in php. I got it becouse I made this project.
Now project is abandon. This project also gave me a lesson that donations will not feed you.
Edit: and before you think about my father that he was nice person to show me code, trust me, i dont know bigger dick than him. -
Golang - should I use gin or should I not? Beginner here…..
It’s for a huge e-commerce rest api btw13 -
Friends’ kids broke my iPhone screen. I had tempered glass but the screen underneath also shattered terribly. How long should I be able to continue using this?3
-
I'm unable to upload archives thru Xcode ever since I updated to version 8.2.1. Updating to 8.3.3 didn't help either. I always have to use application loader.1
-
So after three days FINALLY I was able to make the fragment NOT reload itself when going back to it from the second fragment. Used show() and hide() in fragmentTransaction. Yayyyy! :D14
-
Any simple, easy algos for solving the last/top layer of Rubik’s cube, anyone? This is the part where I always get stuck and have to google.18
-
It's evening already. I completed some of the tasks but still far away from today's target. I hate myself.
-
I want to paint...again...
My head - how the fuck u gonna paint with a full time job and a full time baby and full time housework.
Me - I don’t know how but I’ll do whatever the fuck I want.
Hunted out my paint box and brushes and kept em on table.....
Mini canvases...gonna start small, can’t handle big one for now...
Let’s seeeeeee4 -
I knew my week was over last Friday when I added a std::cout to debug some behavior and it would not compile anymore. Go c++ 😎🤘4
-
So disabling a lot of plugins in android studio made it a tad bearable and suffocates my system lesser.2
-
So this cat (stray) used to come with her baby kitten, for food. Mama always fed the baby first, licked her, protected her....
Fast forward, now the baby kitten is all grown up. Now if she comes near mamas food, she gets growls and a nasty smack from mama cat. :D :D -
Convo b/w female software engineer and her boyfriend;
him-Hey babe
her-Hello world;
him-??
her-Ohh no, I meant to say hy babe, actually u r my whole world;
him-Ooo pls!...wt were u dnh anyways?
her-been doing coding for last 12 hrs with boss;
him-gosh!! ...did u eat?
her-0;
him-??
her- I mean false;
him-false?
her-sorry , I meant no;
him-ur mom called , so call her
her-mom();
him-WTF?????
her-I will call her...dont worry;
him-I think u should rest for a while
her-while(project!=over) {work();}
him-U r enjoying this...irritating me...aren't u?
her-what? :)
him-When will u come home?
her-if(boss==leaves){cout<<"soon"<<endl;}
him-Now its too much...its really annoying...are u getting me? Have u lost ur mind?
her-ERROR 404....mind not found!
him-u do realise...I m not getting any of ur jokes
her-JokeOutOfBoundException
him-Are u drunk? How many eyes do I have?
her-1
him-Idiot , I have 2 eyes
her-oh sorry I counted from 0
him-i think we should break up
her-oh no!!, dont break; continue;
him-thats it, urBF.exit()
her-No wait..... ; is imp , write like....urBF.exit();3 -
So my boss wants me to develop a complete business management solution + mobile app. (It’s a startup project based company). She doesn’t want to use dubsado / asana / etc and wants me to take the best of all and custom build it for her.
Now I was a mobile app developer. Native iOS and android + recently learnt flutter. No backend or web or api skill.
But screw it, I wanted to learn laravel since a long time anyway so that I could be an independent developer.
So I have agreed and started it...
Bitten more than I can chew? Time will tell...what do you think?10 -
I wanted to update my previous rant in the comment but what happened is such a fucking nonsense I think it deserves its own.
For those who don't want to look what it is, just another C++ noob (aka me) complaining about how the language was a bitch to him by throwing a random SEGFAULT on release while it didn't show up on debug. Welp.
Half an hour and a ton of std::cout later (thought I would try to read a disassembly ? Think again) I figured out what was the problematic section of code. And guess what ? It was a section I didn't even modify and I never had problems with. Something completely unrelated to what I was rightly imagining causing the issue.
To identify which exact subsection was throwing the error to my face I added more tag code.
Rubbing my hands and ready to fix the fuck out of this damn shit, I built it, launched it…
And all of a sudden the code worked.
All I did. Was to add more cout to know which line fucked up. And now it works.
So. Serious question now: is it a clear sign from heaven I should stop working with such languages and should go back in my shitty high level languages kindergarten ?10 -
I just remembered outta nowhere, how they’d fucked up the last episodes of game of thrones, so much for all the fan theories and the waiting ....turned off my mood.3
-
Android studio - No matter how much better the performance after plugin disabling, it still remains shitty.
Makes me irritated for the rest of the day.
Except for writing and auto completing code.....VSCode is nowhere close....6 -
I started using vscode for flutter yesterday and it’s so smooth! Android studio used to make my Mac so slow! Why didn’t I do this earlier!3
-
So all u great web developers who use laravel. Do u use theme/template and build web pages / admin panels or do u do smth else...what about front end websites4
-
started with
printf("Hello World... It's 2010")
Journey to
cout
println
Document.write
echo
Stayed at
try:
print('hey there...')
except:
print('got issue.... Fu#k this bug')
pass -
I finally learnt how to use Xcode storyboards and constraints properly. They’re pretty awesome and no longer annoying.2
-
I’m too comfortable with using laptop’s trackpad and never use mouse.
I want to start using mouse.
I tried but trackpad was more comfortable so abandoned it
But i really want to switch.
:/8 -
Wtf devrant crashed at least 7 times today. And around 5 times yesterday.
All while clicking on some comment notif.6 -
I really don't understand why tabs vs spaces is such a big issue. I mean does anyone actually use spaces? I mean I don't think ANY developer would use spaces when you have tabs!4
-
I know am saying this for the ‘n’th time, but...
FUCK ANDROID STUDIO it’s a fucking pile of crap I hate it, after ‘n’ number of years you’d think it will run smoother after This update and that update but It has to pile up its shit on the processor and drag it like painfully in a primitive manner like a dying old tortoise, ..not even making sense. Fuck this.4 -
[EXPLODING BRAIN]
[1]
cout << a << b << endl;
[3]
cout << a + b << endl;
[3]
c = a + b;
cout << c << endl;
[4]
d = b + "";
c = a + "";
cout << c << d << endl;
[5]
d = b + "";
c = a + "";
e = c + d;
cout << e << endl;
[6]
a = "a";
b = "b";
c = pl;
d = pl;
c = a;
d = b;
e = c + d;
cout << a << b << endl;5 -
I finally learnt flutter. Started in March, I’m deploying my second app now, third one is at 80 percent completion. Couldn’t have imagined this with native coding with Java and swift.
-
It’s 2.30 am and I am so hungry. Should I get up and eat or should I just sleep so that I wake up on time and not ruin the day by waking up late.9
-
Finally completed the stupid boring never-ending android project and sent it to client. Phew! Now I can work on the other iOS app which I like. Yum.4
-
WASTED MY ENTIRE DAY AJD ENTIRE NIGHT.
MY flutter app isn’t running on iPhone simulator!!! I cleaned and deleted derived data and cleaned thousand times but it crashes at startup without error! What the fuckkkkk do I do!!????
Oh and my iPhone is not being recognised by any IDE Idk why. :((((((((( pls m so miserable pls dnt :(4 -
Devrant crashed again while opening a rant. Been doing this for some days now. Don’t do it devrant it annoys my sad irritated self. Ya know I’m too lazy to check fo an update too.....
-
React native vs flutter?
I’m a native app developer. Just want to do a hybrid app project to get some exp with hybrid as well4 -
Stack overflow is full of useless assholes, like I asked a specific question about a problem I am having that is similar to another problem that exists but it is not the same at all in terms of how to fix and instead of helping I’ve got 2 downvotes on it and a comment linking me to a completely unrelated stylistic based question based on something I SAID I HAD ALREADY TRIED CHANGING IN MY QUESTION!!! Here’s my question btw in case anyone can help here before I smash up my laptop 😑:
I have a piece of code in which I am trying to read in words which have been categorised using a number and then placed in a text file in the following format "word-number-" with a new line for each word. However, despite not mixing cin>> and getline and having tried a number of methods I still cannot get it working.
So far I have attempted using a cin.ignore() call to clear any '\n' char's from the buffer, as well as checking if the file is opening in the first place (it is), and using the >> operator instead throughout my code however I could not get that working either. When I place the get line call inside the condition of the while loop, the while loop doesn't run, however when I make the while loop condition a .eof() call it will run once however when I try to print the text that has been read from the getline call it just prints a blank line.
if(file.is_open()){
while(!file.eof()){
getline(file, text, '-');
count++;
cout<<count<<endl;
cout<<text<<endl;
if(count%2 == 1){
wordBuff = text;
}else if(count%2 == 0){
if(stoi(text) == wordClass){
wordList.push_back(wordBuff);
}
}
}
file.close();
}
While I recognise there are a lot of other questions on this out there I cannot seem to get any of their solutions to work and the vast number being related to people mixing the >> operator and getline doesn't help, so any tips or solutions will be of great help -
We need a code shortcode here for more dev jokes.
[code]
if (int devrantpoints <= 10 && bathroombreak) {
cout << newrant ();
}
[/code] -
Bad coding style:
bool condition = false;
if(condition) { /* enough whitespace so that braces appear offscreen in editor*/ }{
std::cout << "hahahahaha" << std::endl;
}6 -
So what’s this EU article 13/17 that everybody’s posting about? All I picked was - websites will have to remove copyrighted contents. I don’t see what’s so new about that. Like fb YouTube etc already remove copyright content.10
-
(a bit late for wk73 but I wanted to post this anyway)
Back in my first year of university, we had to write a relatively simple (though it looked super complicated back then) C++ console application. I don't know what it's called, but it's that game where the computer generates a random 4 digit code and you have to try to guess what it is. Every time you try, it will tell you which digits are correct, which would be correct if they were in a different position and which are outright wrong.
Anyway, the program had a main menu with a help option that would output a short guide on how to play the game. Instead of hard coding it into the source code, the "guide" had go be written in a separate text file and then read and dumped to the screen when necessary.
Here came my great idea on how to read files. Instead of looping through the file until I reached the end, I counted the number of lines my text file had and wrote some gem of a piece of code like this:
for (int i = 0; i<11; i++){
line = file.readline();
cout << line << endl;
}
My teacher obviously took points off for doing such a stupid thing, and I remember complaining A LOT about it. I argued that 11 was a constant because I didn't plan on changing the text file, and that the teacher had no right to take points off for only reading 11 lines because the file only had 11 lines, so it was read in full.
Goddammit, what an innocent little brat I was. I'm glad my first programming teachers were good enough to stay firm and teach me how to do things the right way, even if it's the hard way. -
So is it feasible to develop iOS swift apps also using vscode? Is it smoother than Xcode?
What about android apps...android Studio is so slow, what all will I miss if I use vscode for Java/kotlin apps instead?4 -
Yesterday, I saw Someone posted about having wisdom tooth removed .....
Today I suddenly remembered, that I have 2 of mine lodged inside with no space to come out. They’re dormant....some day they gonna suddenly wake up and decide they wanna erupt......then I’m gonna be in pain and gonna have to have em removed.... :(2 -
Non satanic, sugar free, high pitched male voiced, positive Metal that won't let me leave the desk until having a back pain.
-
FLUTTER
I want to reduce the width(length) of a Slider widget. (Seekbar). I want to display time labels and some icon button on the sides...
It’s overflowing in a row...
Anyone any pointers or alternative ideas pls :( -
C: printf("Your message");
C++:cout>>"Your message";
Java:System.out.println("Your message");
Python:print("Message")8 -
I have to build a front-end website.....kinda similar to tripadvisor etc. which framework should I choose? Vue or react? P.s. I have zero experience in both.17
-
if(!rant)
{
cout<<"Anyone here ever play the game Screeps? If not, you should really consider checking it out! The point of the game is to write scripts to automate the tasks carried out by your "creeps". Scripts are all in Javascript. Its fun!"<<endl;
}
else
{
cout<<"I hate mondays."<<endl;
}4 -
Started with Codeforces. Some solutions in Python exceeded time limit at test #25. Wrote the same code in C++ but this time it exceeded time limit in test #33.
What’s the solution to this ? Replacing cin/cout with scanf/printf doesn’t seem to make much of a difference.6 -
So the avatars of people never load in my devRant app. Except for the user profile screen. Post and comment screens just show Colors circlez. I’m curious. (Yeah my app is updated to latest version)5
-
So today I tried to code in c++ by separating class code into header and cpp file which I had not done before. Compiler was throwing error while compiling, "undefined reference to std::cout". Took me nearly an hour to figure out I was using gcc instead of g++.6
-
For compsci/related university students
- work on personal projects, and don't forget that connections made while at university can quickly lead to job opportunities -
So, I have a weird issue. I'm trying to finish my homework and the only thing that's stopping me is that for some reason VS is skipping a line of user input code. Can anyone help me understand why?
cout << "Make: ";
cin.getline((*c).make, 32);
//when debugging the the console skips this line of code. Trying to figure out the issue.
cout << "\n\nModel: ";
cin.getline((*c).model, 32);3 -
Degree is still on the way.
But once i have finished it'll help me do something like
std::cin>>a;
syd::cin>>b;
int sum = a + b ;
std::cout<<"sum of both numbers is:"<<sum;
My degree tells me that it is the most useful way of solving real world problems. By using c++ to cout statemens on terminal can solve all problems of a corporate company.1 -
I need to make an app that can scan addresses from labels of parcels, and converts into map route. Where do I start about the recognising of address? I’m lost. Any pointers would be helpful.14
-
I have a weird problem ...
There’s an existing swift app, with Apple sign in implemented and working.
When I took over I had to revoke app certificates and create new one. Since then the Apple sign in stopped working.
I’ve tried clean rebuild etc , even tried renewing old profiles with the new cert but nothing is working.
When u do Apple sign in it says “sign up not completed” with no error msg.
Old dev says it happened last time when cert/profile was changed but fixed on proper rebuild. Not fixing for me.
Anybody else faced this?5 -
I love Github copilot, he saves so much time, speeds up the code writing. N understands me at times too.4
-
Hi react developers. Noob question, I am making a new (my first) react+redux toolkit+axios website…
So umm, what folder structure is best, and where does the user authentication part , the web services go?
Currently I have
-src
-pages
-index.js
-app.js
-about
-index.js
-stores
-common8 -
I am from India, residing in Qatar. I wish to move to a different country. I have zero idea, what to do to prepare; where to start, what to do, which country to target......any pointers ?14
-
I’m a mobile app developer, I want to learn something so that I can develop backends.... databases, rest apis, admin panels etc. I know basics of php, meanstack and django. What should I choose...3
-
std::cout from C++.
Why? Because I use it all the time, can't live without it.
Sometimes the most important pieces of code is the simplest. -
*My friend gives me some code and says that there's a problem which he can't figure out*
*He shows it me when I read...*
...
cout >> "Hello!" >> endl;
...
Me: -
What’s the best free live chat package or service for offering customer support in our mobile app and also on website. ? I found tawk and chatwoot…not sure what’s better1
-
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int arr[n];
int count=0;
for(int i=0;i<n;i++){
cin>>arr[i];
count^=arr[i];
}
cout<<count<<endl;
}
return 0;
}
In the above program,
how does this code snippet work?
count^=arr[i];8 -
It seems I, have been having few borderline personality traits. Apparently borderlines have different sensitivity to physical pain. Interesting.2
-
This is my first one :)
I am currently persuing B.Tech in CSE, and yes I am thinking that I can crack Google.
Jokes apart let me cout<<"Hello World"<<endl; first.1 -
AOA friends please help me to solve the program of C++
#include <iostream>
using namespace std;
int main() {
int passengers = 126;
int empty_seats = 0;
//passengers =126;
passengers after 1st bas leaving= passengers - 50;
passengers after 2nd bas leaving= passengers - 50;
passengers after 3rd bas= passengers;
empty_seats= 50 % passengers;
cout << "Empty seats in last bas"<< empty_seats <<endl;
return 0;
}33