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 - "cpp"
-
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 -
So this guy passed large objects as function arguments directly instead of referencing. What a jackass. So the program was slow as fuck AND taking up too much memory.
So yeah, I'm basically ranting about myself.2 -
I'm dreaming to send homework to my C++ programing lecturer full of strange #defines and make the code compilable, runnable and working well
He would feel the black side of cpp😈😈😈18 -
- We need an android app. Can you do this?
+ Never done that, but I can try.
- Do you even know Java?
+ Not really, but I'll learn fast!
- Any OOP experience?
+ Well...I know CPP.
- 😐
- Will you give me a prototype tonight?
+ Don't know. How about tomorrow?
- Ok.
...
+ *makes a prototype in couple of hours, becomes a Java developer*
Just like that.8 -
I have just landed my dream job. Coming from a background of java and python, I applied for a C++ heavy company... The interview process was centred on algorithms and I passed it. Now I get to learn the language I have always wanted to learn from pretty hardcore devs while I am getting paid. One of the best fucking days of the 21 years I have been alive for.3
-
Instagram coding pics are so fucking cringe worthy....like for real man. A picture of a simple cpp loop, or averyfuckingbasic Express hello world in some hipster filter with inspirational quotes and everyone looses their shit for it.
Instagram people are so easy.11 -
I've got a mini stroke today. My project ended and I got delegated elsewhere.
"It's going to be fine, it's c++, you will find yourself there"
Suspicious, it's a project everybody was staying out of as hard as they can. But hey, it's cool, how bad can it be? what can go wrong with that?
Reality was brutal, project that uses Boost C++ as framework and bjam as builder. Builds with a decent dose of luck, and only under special circumstances, only under one specific version of compiler. No docs, quartet of the code is in Fortran, just to use ancient lisp part which was second qarter. The most senior Dev around does not have idea how it all works. Also everything is inside one enormous try/catch block. Because of the reasons.
That's how people end up with severe alcoholism and meth addiction.8 -
I'M AN IDIOT.
I accidentally typed the wrong command when I was compiling my C++ code with GCC, and guess what?
My .cpp file is gone. The .exe is still there, but that's useless to me right now.
It wasn't an important code, just something I recently started on, but I can't believe I did something so ignorant.17 -
So I have a teacher that when he use "C++" it is basically C with a .cpp file-extension and -O0 compiler flag.
Last assignment was to implement some arbitrary lengthy calculation with a tight requirement of max 1 second runtime, to force us to basically handroll C code without using std and any form of abstraction. But because the language didn’t freeze in time 1998, there is a little keyword named "constexpr" that folded all my classes, arrays, iterators, virtual methods, std::algorithms etc, into a single return statement. Thus making my code the fastest submitted.
Lesson of the story, use the language to the fullest and always turn on the damn optimizer
Ok now I’m done 😚7 -
Man, I think we've all gotten way too many of these.
Normally most interactions that I have are through email. Eventually some would try to contact me via phone. These are some:
"Hey! We are calling you from <whatever company name> solutions! (most of them always seem to end on solutions or some shit like that) concerning the Ruby on Rails senior dev opportunity we were talking about via email"
<niceties, how are you doing, similar shit goes here...eventually>
So tell us! how good/comfortable would you say you are with C++?"
Me: I have never done anything serious with c++ and did just use it at school, but because I am not a professional in it I did not list it in my CV, what does it have to do with Rails?
Them: "Oh the applications of this position must be ready to take in additional duties which sometimes happen to be C or C++"
Me: Well that was not anywhere in the offer you sent, it specifically requested a full stack Rails developer that could work with 3 different frontend stacks already and like 4 different databases plus bla bla bla, I did not see c++ anywhere in it. Matter of fact I find it funny, one of the things that I was curious about was the salary, for what you are asking and specifically in the city in which you are asking it for 75k is way too low, you are seriously expecting a senior level rails dev to do all that AND take additional duties with c++? cpp could mean a billion different things"
Them: "well this is a big opportunity that will increase your level to senior position"
Me: the add ALREADY asks for a senior position, why are you making it sound that I will get build towards that level if you are already off the bat asking for seniors only to begin with?
Them: You are not getting it, it is an opportunity to grow into a senior, applicants right now are junior to mid-level
ME: You are all not making any sense, please don't contact me again.
=======
Them: We are looking for someone with 15 years experience with Swift development for mobile and web
Me: What is up with your people not making these requirements in paper? if I knew from the beginning that you people think that Swift is 15 years old I would have never agreed to this "interview"
Them: If you are not interested in that then might we offer this one for someone with 10 years experience as a full stack TypeScript developer.
Me: No, again, check your dates, this is insulting.
===
* For another Rails position
Them: How good are you with Ruby on Rails in terms of Python?
Me: excuse me? Python has nothing to do with Ruby on Rails.
Her (recruiter was a woman) * with a tone of superiority: I have it here that Python is the primary technology that accompanies Rails development.
Me (thinking this was a joke) : What do you think the RUBY part of Ruby on Rails is for? and what does "accompanies Rails development" even means?
Her: Well if you are not interested in using Rails with Python then maybe you can tell us about your experience in using Javascript as the main scripting platform for Rails.
Me: This is a joke, goodbye.
====
To be fair this was years ago when I still didn't know better and test the recruiters during the email part of being contacted. Now a days I feel sorry for everyone since I just say no without even bothering. This is a meme all on itself which no one has ever bothered to review and correct in years for now. I don't know why recruiters don't google themselves to see what people think of their "profession" in order to become better.
I've even had the Java/Javascript stupidity thrown at me by a local company. For that one it was someone from their very same HR department doing the rectuiter, their shop foreman was a friend of the family, did him the service of calling him to let him know that his HR was never going to land the kind of developer they were looking for with the retarded questions they had and sent him a detailed email concerning the correct information they needed for their JAVAscript job which they kept confusing with Java (for some reason in the context of Spring, they literally wanted nothing with Spring, they wanted some junior to do animations and shit like that on their company's website, which was in php, Java was nowhere in this equation)
I think people in web development get the short end of the stick when it comes to retarded recruiters more than anywhere else.3 -
I knew nothing about programming then i came across this amazing chilled out teacher who taught me cpp literally through jokes and puns and here I am still learning the best thing I've came so far
PROGRAMMING
P.S. Here is a meme to show what my mates think when i fix stuff up2 -
Arrived today!
I'm using C++ for machine learning purposes using TensorFlow and OpenCV (rip Python, you are too slow 😭)
What are you using C++ for? 😁19 -
With time, I have come to the realisation that when a person says he knows C++. He's either a noob or god!3
-
C++ has become cockpit of Boeing 747
Too many controls? Yes.
Takes shitton of time to get ball rolling? Yes.
You need just bunch of them to get stuff done? Hell yes.
You still have to learn a lot of them if you plan to become professional? Yes.
You need to touch most of the fancy stuff only once in a while? Yes.
Many controls you wont be touching except once or twice in your whole career? Hell fucking yes.
You need those fancy controls when shit goes tits up? You better have them, or you are dead!
Creds: A.M.2 -
Remember the super duper company I applied for? (Last rant)
Well, I did their coding challenge. And after many years I had to do a metric crapton of C++. It's not a fun language. It's frustrating how human-unfriendly it is, and maybe one reason why I low-key like it.
Anyways, here's hoping that I didn't fuck up too much.
On a side note, I realized tensorflow actually has a cpp api. I think I'm gonna work with that in my next mental breakdown. 🧐7 -
Friend of mine at college is struggling with his cpp class.
Have been helping this guy since forever with it, he is not a coder by any means nor does he display any sort of affinity or "talent" for it. But he does make up with intense dedication. Still he knows that he will not be pursuing a career in software engineering, this is just a class.
The thing is, he showed me a video of his class. The instructor is middle eastern with a thick accent. Accent so thick I need subtitles for this motherfucker.
He has learned more from me that he has at uni. And at my day job the interns say the same thing. I love teaching and far prefer it over working on projects.
This week we have a meeting with the head of the i.t dptmtn at school as nd I will try to pitch myself in as a faculty member by popular demand.
I would love to teach, i have experience in the field and learn a lot from going over shit as an instructor. I can make one go from wtf is JS used for to handling promises and writing Angular in days.
I really want to teach man.7 -
"Sooo, children of the village, what are we going to write front-end in?" - I said to my infant students.
"Typescript with ts-loader/awesometypescript loader for webpack" - simultaneously yelled the kids.
"Exactly! Brilliant! And now, what are we going to be writing back-end in?" - asked I then.
The kids yelled: "PHP 7.2 with Laravel, or Go with Gingonic and juliensmith/httprouter, or Typescript without loader, with express/koa"
Truly stunned with their excellence, I asked "Well, now you 100% ain't gonna get it right - what are we going to be writing a desktop application that doesn't require a lot of native functionality and preferably, cross-platform in?" And the kids didn't hesitate to yell happily "Typescript targeting Electron", which has only brought tear to my eye.
"A native ms windows app?" "WPF under C#"
"A native gtk app?" "Vala"
"A native KDE/XFCE app?" "Cpp/Qt"
"A native mac app?" "Swift3.2/4"
I was in tears, just thinking about what future these kids have, but suddenly I have noticed one of kids seemed puzzled. It was Pajeet, an indian guy, ugh, his mom was a bitch. I asked him "What is wrong, little acoustic?" "But I like Java, and I would like to make back-end with Tomcat!" he replied. "Ooooh :3" cutely I moaned, trying to reach the handle of the table locker "I've got something just for you". I pulled out a rope, with sewed-in spikes, covered in drool and piss, came up to Pajeet and tenderly put it around his neck, making a knot. Pajeet fell under the table, and I got fired.8 -
I had a coworker that was an Air Force pilot (99% certain he was telling the truth as I was working for a government contractor and he had security clearance so I'd be a little surprised if he fooled HR and our whole team). Thing is... He genuinely believed the earth is flat. Whenever anybody would ask "haven't you seen the curvature of the earth? Like... More than once?" He'd respond with "yes I have, what's your point?". Uh.... Okay.
Didn't help that he also was convinced cpp is the only language you ever need for any project. Like, "what if instead of building a web API and two separate native mobile app frontends (Swift/Java)... We instead build our own proprietary C++ framework that somehow runs on IOS and Android and we can also use it for our Backend instead of .Net?"
I'm not saying I love Java or Swift or that at some point I haven't thought about why we can't just use cpp in both, but you're supposed to grow out of that kind of thinking. I think every noobie or college students thinks "oh there's got to be a way". But at some point in your career you realize even if you could, it wouldn't be any easier to use and the performance gain would crazy small compared to amount of effort and you'd be playing catch up with both IOS/Android forever.
But no matter how many times we'd shoot it down, he'd keep bringing it up. And he wasn't straight out of school or something. He had like 20 years of programming experience.
I don't have a lot of memorable co-workers that were positive but honestly I think that's because usually if they're good at what they do I don't have to interact with them a bunch or spend time thinking "Jesus what am I going to have to fix next from this guy". I definitely have worked with good/great programmers, they just don't stand out as much as the shitty ones.1 -
When I was in college I used to think deadlock is just a theory concept. First c++ project on my job and I already have one now. 🙃
-
Wrote a cpp semester project where i had to develop school management system.
The code was spaghetti and horrible with frightening OOP implementation but it was beautifully written with comments and 🐫 Casing.
Submitted the program and examiner rejected it while saying that i had copied it from else where and i could never write a beauty code like that .
You dumb 💩! Don't you know other basis to reject a person's hard-work6 -
Seeing anything serious written in cpp with in line assembly, that level of witchcraft fascinates me2
-
A little headpat for those who have suffered so much in making wrapper code for managed languages for native libraries
Because I know how painful it is to make one16 -
So I've been doing some code jobs now and recently they pushed me to a new level.
This company worked with some silly management app made in cpp which they asked me to edit a little bit giving it another style and some additional functions.
Day 1: this code is a mess.
Day 2: this code is a mess.
Day 3: how does this code even compile.
Day 4: I no longer have faith in humanity.
Day 5: I found my first comment (Yay?).
Day 16: I'm done.
Day 19: I got paid.
If you're making a project in cpp just like that dev you do deserve a punch in the throat.
No documentation, no comments, no patterns, just some thick pasta of poorly written code, names like fCalcAllTaxFilesSizeMB....
This haunts me for real.2 -
I told a guy to implement an algorithm in cpp. He wrote this weird 600+ lines of code which contains only global variables and void functions then I told him to make it object oriented and he just put all those garbage in the class and gave me back and on top of that class name is Template and file name is template.cpp. I don't have words to describe his code. May be this picture can help you understand my state. Oh, if you think this matchOn_r1, r2,r3 are different then you are mistaken they are just different with one argument (one global argument). This is just part of the code. He has this shit all over the place. Why the fuck this kind of people exists?13
-
I can't figure out shit..
To be honest I created this profile just so I can write down somewhere what I am going through.
So, once upon a time I had graduated from college and went right into a corporate (has only been 2 years since). I was fortunate enough that I got assigned a project that was just starting, and even though I had no clue what was going on, I started doing whatever was assigned.
I initially worked in java and then finished all my tasks earlier than expected, so they switched me to another C++ project that builds on top of it.
Fast forward 2.5 years, I'm now the team lead of the CPP project and all my friends who were in the core team have left the company.
As usual, the reason behind it is shitty management. These mfs won't hire competent people and WILL ABSOLUTELY NOT retain the ones that are. I can feel it in my bones that it is time for me to leave, but fuck me if I understand what I am good at.
I have been able to handle all the tasks that they threw at me, be it java or c++ - just because I love logic and algorithms. I have been dabbling in ML and AI since 4-5 years now, but could never go into it full time.
Now I'm looking at the job postings and Jesus Christ these bitches do not understand what they want. I have to be expert in 34567389 technologies, mastering each of whom (by mastering I mean become proficient in) would need at least 6-8 months if not more, all with 82146867+ years of experience in them.
I don't know if I am supposed to learn on Java (so spring boot and stuff) or I'm supposed to do c++ or I'm gonna go with Python or should I learn web dev or database management or what.
I like all of these things, and would likely enjoy working in each of these, but for fucks sake my cv doesn't show this and most of the bitch ass recruiter portals keep putting my cv in the bin.
Yeah...
If you have read so far, here's a picture of a cat and a dog.5 -
The year is 2019.
C++ is still one of the most powerful programming languages around..............with no centralized package manager that is widely adopted by the community that allows one to sandbox libraries from conflicts with one another.
I ain't hating, just find this funny and I love cpp
Apt get/git submodules it is!!12 -
Why is starting a C++ project so overly complicated and annoying?!
So many different compilers. So many ways to organize the files. So many inconsistencies between Linux and Windows. So many outdated/lacking tutorials. So many small problems.
Why is there almost no good C++ IDEs? Why is Visual Studio so bizarre? Why are the CMake official tutorials literally wrong? Why can't we have a standard way to share binaries? Why can't we have a standard way to structure project folders? Why is the linker so annoying to use?
Don't get me wrong, I quite like the language and I love how fast it is (one of the main reasons I decided to use it for my project, which is a game almost comparable to Factorio)... But why is simply starting to write code such a hassle?
I've been programming in Java for years and oh god I miss it so much. JARs are amazing. Packages are amazing. The JDK is amazing. Everything is standardized, even variable names.
I'm so tempted to make this game in Java...
But I can't. I would have a garbage collector in the way of its performance...11 -
personalproject C++ codebase:
- Clean code,
- 1 class per file,
- naming conventions
- comments .
- No more than 10 files per folder
Work C++ codebase:
- 22 classes per file.
- Classname not the same as file name
- weird variable names CmdStng
- All files in one source folder.
- Source control from 20 years ago
Me every time I cannot find anything I wondering why it is in a different file on line 3574 inside another class with an unrelated filename6 -
An hour before my Mathematical Expression and Reasoning for Computer Science final...
Have reviewed all the material available but past exams are useless because new_prof == new_format.
This is not even a rant, I'm just scared because to get into the major I need an average between this and programming of 82. I fucked up in the second midterm and got a 50/100. Everything was so perfect (at least above 80) and now I need more than 70 in this final. I'm feel I can get more than 70 but I had the same feeling during the midterm I fucked up.undefined is there anybody out there? teach me make-up stuff could not save because brain is full sleep is for the weak does praying work? should i break my leg?25 -
I am a firmware developer with 4 years experience. C and sometimes assembly is my bread and butter.
Like 2 years ago, I was really interested to make a switch to application development. Got referred by my friend to her startup.
But I was a bit rusty with my data structures, high level languages and interpersonal skills.
The first question was to find the number of occurences for each word in a paragraph. The language choice was Java. But I was allowed to use C++ since it was the closest relative to Java that I knew.
And I started implementing a binary search tree from scratch and started inserting each tokenised word into it, wrote a traversal algorithm.
The interviewer, luckily, was a patient guy. After I completed my whole mess, he asked is it possible to do this in a slightly better way with constant time access without traversal.
I said yes, we can with a hash table but I dont know how to implement one. He replied I dont expect you to implement the hash table but see you use it. I asked him if I am allowed to used the standard library, for which he said ofcourse.
*facepalm*.
Finally I understood his expectation, referred cppreference.com and used an unordered_map.
Later there were some quesion on databases for which I tried my best to answer. And I frankly replied that I am not comfortable with JS frameworks as of now. Got rejected.
So the mistake is I never asked basic questions like what is the time complexity expects, if I was allowed to use standard library, didnt spend some extra time on studying stuffs needed for the domain switch and most importantly I panicked.7 -
devRant already replace SoundCloud as my orange app in the main screen...
To be fair, SoundCloud was just there to complete the rainbow.
Rant: this app told me that my rant would be safe if I closed the Post Rant window (since I can't post more than one rant per hour or something) but it didn't save my awesome tags! I feel betrayed.undefined fuck it i'm out why not spotify? can't wait for the stickers don't remember the original tags script kiddie af love at first sight finally a rant who's colorblind?23 -
I had a genuine respect for C++ developers back in 2001
Then this whole STL thing happened. Then C++11, C++14....C++17
Me now: Bitch do they even write code 🤣🤣11 -
"Write something that does something good, irrelevant what, in the next 30 mins"
Oh hell yeah
"In brainfuck. Maximum 35 characters."
FFS WAT9 -
Turns out cpp isn't the terrifying monster it used to be! I must be doing something wrong, it's actually working.4
-
Pushed code remotely and told a teammate to run it on the target hardware. He then told me he might of blown up $6000 worth of equipment. Then he says "Never mind everything works."
World record for biggest heart attack?1 -
I might be fucked up, but I have a tendency to gravitate towards the shit that everyone else dislikes for the sake of knowing if their bias against is actually because shit is truly fucked up or if shit is legit plain WRONG.
From all technologies that I have worked with professionally I can count:
Java(currently in the form of old JSP services for an "enterprise level application")
Java for Android development - i was the lead engineer for a mobile project
Swift with IOS dev, same gig as the above.
C++ for Android development in the form of OpenCV with Java as well.
Javascript in all possible forms, basic input validation, ajax services, jquery datatables, jquery animations and builders.
Css/sass heavily
Clojure for an ldap active directory application
Python for glue scripts
Classic ASP with JScript and VBScript
VB Net forms
C# For ASP.NET MVC
Bootstrap for multiple intranet frontends
Node+Express for a logistics warehouse management tool
Ruby on Rails freelancing small gigs
Php in all ways possible from complete standalone php apps to Laravel and just php+composer apps aaaaall the way to wordpress
Django consulting
I have found that the one that I dislike the most is wordpress. And the one that I like working with the most is Node. Don't know why, i just do really fucking like messing around with Javascript, the language has changed a fuckload throughout the years and continues to increase and change. It was my first scripting language following a stint in me trying to learn cpp way when i was starting and royally FAILING
Never really got the hate for it, even when I used JScript with classic ASP i just enjoy working with Javascript a lil too much. And from all the above mentioned stacks safe from Php is the one, or one of the ones in which i don't royally suck :V3 -
I am currently in a bit of a (well-deserved) lull at work, both of my projects are finishing up/ finished, so tomorrow should be pretty light, as the latter half of today was.
And I have really gotten interested in the HTTP protocol. It's so interesting learning how it all works under the hood.
So I think I'm going to be researching/ messing around with creating a cpp project that essentially implements cURL from the ground up, creating sockets, reading from them, parsing the HTTP requests... all that. I don't expect to actually get it done, but it should be an immense learning experience. I have a clear goal: implement this function:
std::string get(const std::string&);
Once I'm able to just GET as simple as that, I know I have achieved my goal!3 -
I can't take a (C++) project seriously if it is using Visual Studio's build system instead of autotools, CMake or even just a Makefile.8
-
People around me be like "Why you never take a break?? I see you work all the time. Doesn't your company offer you a paid holiday??"
Yeah they do offer a paid holiday, but even on holiday I still have to work because I'm the IT manager, full stack developer, database admin, helpdesk and everything that is related to IT.
:(26 -
Programmer’s life cycle:
- Nothing can stop me today
- A bug huh? let's squash
- I can’t fix this
- Confidence crisis
- Questions career
- Questions life
- Oh it was a typo
- Nothing can stop me today1 -
So lets make a list of what i love
Coke
Cpp
Foss
Vsc
Vim
Linux
Bash
Telegram
The internet
The gnufather
Clinl
Lasagna
Pizza
Maths
Music
Music theory
Singing
Dvorak10 -
My classmates are wining, because they suck at programming-tests but don't even try to learn it.
Big AF facepalm!6 -
I propose a list of interesting readings. Not limited to developing.
Yes, I'm in need of something new to read...
I'll start in the comments, feel free to comment new readings or critique the ones proposed.29 -
“Lots of CS undergrad folks imagine their careers are going to be sort of a rockstar/ninja/superhero experience. ‘Just wait ’till the world can see what I can do!’. It has to be this way because, well, ‘I’m above average’, right? You expect long hours of designing and implementing complex algorithms (at least I did). Then you get your first job and WHAM! You get ‘schlonged’ with 20 years old code that appears to be the result of experimenting with hard drugs.”
—Krzysztof Szatan, “Why would you learn C++ in 2016?”, retrieved from http://itscompiling.eu/2016/03/...3 -
So I'm doing some OpenGL stuff in C++, for debugging I've created a macro that basically injects my error check code after every OpenGL API call. Basically I don't want any of the code in release builds but I want it to be in debug. Also it needs to be usable inline and accept any GL function return type. From what I can tell I've satisfied all requirements by making the macro generate a generic lambda that returns the original function call result but also creates a stack object that uses the scope to force my error check after the return statement by using the destructor.
Basically I can do:
Log(gl(GetString(...));
gl(DeleteShader(...));
Etc where the GL call can be a function parameter or not.
So my question is, is the code shown in the picture the best way to achieve my goals while providing the behaviour im going for?13 -
Messed Up my first Coding Interview and that too of Google!
My first rant.
The first question was not an easy one. I cracked it though. Happy. Very Happy! I had 40 minutes left for the second question. And then came the nightmare. Okay, my foolishness.
I compiled my code. Compilation error.
Declared variables. Compilation Error!
Imported Libraries. Compilation Error!
Changed vector to an array. compilation Error!
Checked the loop for edge cases. Compilation Error!
Cannot use an IDE too. Tab's change is not allowed.
My score was still ZERO and I had only 15 minutes left.
Then lazily my eyes went to the language selected. It was C. I wrote the code in C++.
I mean HOW CAN I BE SOOOO STUPID??
I was coding in an entirely different language!
But..But, the story doesn't end here.
Next, I copied the code and switched languages. NOOO, my code was lost. I couldn't paste my code!!
I checked the timer- 5 minutes left.
Somehow, I managed to rewrite the code. And submitted it at the last minute.
I have no idea what will be the results. I just solved 1/2 questions.
SAD but FRUSTRATED at my stupidity :(5 -
Lels
Before I was unceremoniously laid off by a shit company in which they tried to blame shit on me I was working on a opencv implementation of a proprietary document scanner.
I finished the Android prototype and was working on the ios implementation. It was left unfinished in the ios version because I was building it in swift and obj c to compare code bases.
They launched a shit unfinished Android app of their product without the scanner (they could not add the scanner lels) and have not been able to do shit on the ios version.
I did not give them the Android prototype. There was no binding contract that specified that what I developed was theirs. There is no record of anything.
The scanner? Is still in my phone and I still have the built project in my mac.
Unless them cheap assholes decide to pay another engineer for the opencv implementation, their vbscript php non theory knowing shit lead will have to figure out the required mat obj c swift java cpp code needed to build it.
Top kek -
Our programing teacher(CPP) is so fucking bad at teaching.
I'm pretty sure his classes actually cause permanent damage, by rendering the other students unable to learn programing properly.
Whenever a sentence starts like, "For the advanced around you...", you can cough bullshit from the top of your lungs, because what he's about to tell is first semester c-basics.5 -
Bit the bullet and installed VS and relevant compilers for C++ and started fucking around with sdl.
Not as terrible as I thought it was going to be.
Pointers seem pretty intuitive. Apparently my time with python has not in fact mentally mutilated me.7 -
I got stuck with a small task for days, today I just have the courage to ask for help and a senior literally gave me the code for the problem! I'm not sure if I should be happy for finishing the task or embarrassed for couldn't solve the problem by myself. 😄😥5
-
Goals
1. Learn android development
2. Spend more time coding than procastinating (its not my job)
3. Learn more cpp
4. Publish my first android app
5. Finish my current project2 -
<rant>
I fucking HATE the Arduino environment right now.
First of all: you can't fucking put your project files in a sub folder to the main file. I can't write #include "src/motor.hpp" because it doesn't fucking know what that means.
Turns out you have to put all your header files in the fucking library folder common for all Arduino projects!
Secondly, you can't call your cpp headers hpp, they HAVE to be called h, or the Arduino environment throws a fit and begins whining about being unable to find the fucking files.
Not just that! You can't reference other Arduino libraries from within your library because the environment doesn't know what that means either.
To get around that you need to fucking include the library in your main file, AND THEN you can include it in the library file that uses it. After all, it should be the programmer's job to soon feed a so called IDE, right?
I'M SO FUCKING DONE WITH THIS SHIT! 😤
I'm ready to either program the Arduino directly with an AVR programmer or even port the entire project to the raspberry pi where I have a proper fucking Linux environment with a proper fucking directory structure so I can code proper fucking C++.
Hell I'm even fucking willing to spend all weekend porting all the code myself if necessary.
It's not reasonable that correct fucking C++ code is invalidated because I called the files something "wrong" and put them in the "wrong" directory.
</rant>
"user friendly project board" my ass12 -
*flashback to days of windows xp*
Just finished formatting and installing xp on friend's trash pc cuz the os was compromised due to a shitload of viruses. Notice that other partitions might still be infected and i don't have an antivirus on me.
"Big boi Ill be back in an hour, just whatever you do, don't open ANY drives no matter how urgent it is. Just Don't do it or i won't be able to help you"
Come back and VIOLA this worthless trash avocado opened a drive to play a game and d pc was infected. Again. Back to square one. It almost broke my heart. Almost.
I remember that day well. I was 15yo and hopeful. That day marks d start of my hatred toward tech incompetent people.
SO FKIN
A N G E R Y
So today
College
My classmates stink of incompetence. I'm not that smart in fact i consider myself to be a noob among devs but seeing ppl that are several order of magnitudes trashier than me breaks my heart and makes me soo Fkin
A N G E R Y
Hey you cunt of a skunk, WHY can't you even compile a fkin cpp file without an IDE what the fuck is wrong with you? What do u mean ur program isn't compiling? Well it literally says there syntax error on line 15 congrats u moron u fkin spelled else as esle. Why shud I waste my time on stupid Shitty ppl like u huh?
And waddup mr shithead.No. Not gonna help you partition ur drives and install a fkin linux just cuz ur too lazy to google it urself.
And if i refuse to help cuz im working on my shit then I AM D BAD GUY? Stop bitching about me u lazy bastards get ur lazy arse off and read the fkin book. Watch a tutorial or sm shit why the fuck can't u understand YOU LITERALLY PAY TO COME HERE AND YOU AREN'T EVEN TRYING TO LEARN THE BASICS GOOD LUCK GETTING A JOB YOU WORTHLESS CUNTS.
Now now all the poison is out i can finally focus on improving myself and stop giving a fuck about them. Its hard to be calm and cool when ur surrounded by ppl like this all day. Even harder when there is almost noone that you can look upto. All this time, there's only one thing I've learnt- in a place like dis, being an asshole is better dan being polite.3 -
I will never understand the need people have to lie about their knowledge or make shit up. Seriously am I the only one to despise that ?!
If you don’t know about something stop trying to make shit up on the go, it’s useless and it will give the wrong idea to people listening to you thinking you know what you’re talking about.
Last example in date:
Me: Here’s this cool repo I found, it’s a discord client implemented in cpp, so it runs natively
Techbro: oh cool, hey @everyone you should download this, it runs natively so there will be no leaks like the normal client
😤10 -
Had a PHP test for a job application yesterday. The test contains nearly 20 questions, most are 2 points. I had to write the answer into a word file and cannot use search engine. I thought I did okay because most of the questions were asking like 'what is php', 'what is isset', etc. which I could answer all of them and pretty confident that I answered correctly but the recruiter contacted back today that I failed...:(
It's my first time applying for a programing job after been working in the field for almost 3 years. Feel so bad.. Feel so unqualified 😥😥7 -
I was working on my OOD class project (code analyzer) while my gf was trying to watch greys anatomy...for some reason Netflix and watch series wasn't working and she asked me what do I do...
My spontaneous reply: have u tried github...😕
Her reply: what is that is it like a porn site4 -
Saw a post in which some dude said that he lost his virginity to C++. Well, I got it the hard way - I actually lost mine to assembler.6
-
I came to know and use C++ for 10 years now and I've just seen this syntax:
for(int i{0}; i<5; i++) { }
WTF is this shit??10 -
So f*king stressed out!
3 weeks passed at new job and I still feel like I don't know what I'm doing. My PRs got tons of comments and I still can't finish a tiny ticket that should be very easy but it's in a stack that I have almost 0 knowledge about. I feel so incompetent and afraid that I won't pass the probation. 😥
The stress hit so hard that I can't eat, feeling nausea every morning and can't sleep well at all. I question myself if I'm too stupid to be a developer, should I just give up?
😭😰😱😥😵
Argh this is so bad!10 -
C++ code written before current standards still complies and is just as maintainable, but every so often a new major change to the standard happens and I feel like all my code I wrote before last month or so now needs updated. "Range-based for" ALL THE THINGS. except I'm just retouching code and possibly adding bugs along the way.
Sometimes I just feel that my most mastered and beloved language suffers from a severe case of multiple personality disorder. As soon as I get to know it, it's suddenly somebody else. -
I am honestly surprised in how many different ways C++, VS, and libraries are able to fail over and over and over again.
Fuck you C++ libraries
Especially fuck Visual freeze Studio5 -
First programming-course at the new school.
I was pretty excited until it hit me.
This is an intro-course.
We need to use CPP, not C.
We need to use Windows.
We need to use a shitty IDE instead of editor and compiler.
Went from super excited, to fuck this shit, pretty fast21 -
Back when I was still in school for comp sci we had an advanced software engineering and design class with c++. At this time, everyone was expected to be proficient enough with cpp to go ahead and properly work with whatever the instructor would throw at us. And pretty much everyone was since past classes included a lot of c++ development. Of course, efficient at least related to academic studies rather than actual real world development.
Our teacher would mix in a lot pf phyisics and mathematics into what we were doing, something that I greatly enjoyed, while at the same time putting real world value concerning cpp best practices to avoid common pitfalls in the development of said language. Since most bugs seemed to be memory based he would be particularly strict about that.
One classmate, good friend and an actual proper developer now a days would ALWAYS forget to free his resources...ALWAYS for whatever fucking reason he would just ignore that shit, regardless of how much the instructor would make a point on it.
At one point during class on a virtual lecture the dude literally addressed a couple of students but when he got to my boy in particular he said: "you are the reason why people are praying to Mozilla and Hoare to release Rust as fast as possible into a suitable alternative to high performant code in C++, WHY won't you pay attention to how you deal with memory management?"
And it stuck with me. I merely a recreational cpp dev, most of my profesional work is done on web development, so I cannot attest to all the additional unsafe code that people encounter in the wild when dealing with cpp on a professional level.
But in terms of them common criticisms of C and C++ for which memory is so important to work with, wouldn't you guys say that it comes more from the side of people just not knowing what they are doing rather than a fault on the language itself?
I see the merits and beauty of Rust, I truly do, it is a fantastic language, with a standardized build system and a lot of good design put into it. But I can't really fathom it being the cpp killer, if anything, the real cpp killers are bad devs that just don't know what they are doing or miss shit.
What do y'all ninjas think?8 -
Wellp lately so much shit happened with parents and school that id like to (atleast see my options for) get(ting) a job in order to be independent.
What could work, knowing im a backender, coding in cpp, but open for other langs ?
I have no degree, but my github repos lol8 -
Why the heck would you allow (or need) nested block comments? Imo this is a major design flaw in the kotlin linter.
I always use /*... //*/ so I can remove the comment starter w/o having to remove the comment end, but kotlin just starts a second, nested comment there.
Java, C, Cpp, C#, JS,... Not one of these uses nested block comments. I think jetbrains was just lazy?
I mean, I know why such stuff happens. I also developed DSLs in MPS, but there sure are ways to go around such things..7 -
After ten years of working sh*t jobs I finally got the chance to study CompSci at a top university... All the kids look at me as if I've been programming for years, truth is I just study a lot because my scholarship requires me to get B+ or above.
-
I believe it is really useful because all of the elements of discipline and perseverance that are required to be effective in the workforce will be tested in one way or another by a higher learning institution. Getting my degree made me little more tolerant of other people and the idea of working with others, it also exposed me to a lot of topics that I was otherwise uninterested and ended up loving. For example, prior to going into uni I was a firm believer that I could and was going to learn all regarding web dev by maaaaaself without the need of a school. I wasn't wrong. And most of you wouldn't be wrong. Buuuuuut what I didn't know is how interesting compiler design was, how systems level development was etc etc. School exposed me to many topics that would have taken me time to get to them otherwise and not just on CS, but on many other fields.
I honestly believe that deciding to NOT go to school and perpetuating the idea that school is not needed in the field of software development ultimately harms our field by making it look like a trade.
Pffft you don't need to pay Johnny his $50dllrs an hour rate! They don't need school to learn that shit! Anyone can do it give him 9.50 and call it a day!<------- that is shit i have heard before.
I also believe that it is funny that people tend to believe that the idea of self learning will put you above and beyond a graduate as if the notion of self learning was sort of a mutually exclusive deal. I mean, congrats on learning about if statements man! I had to spend time out of class self learning discrete math and relearning everything regarding calculus and literally every math topic under the sun(my CS degree was very math oriented) while simultaneously applying those concepts in mathematica, r, python ,Java and cpp as well as making sure our shit lil OS emulation(in C why thank you) worked! Oh and what's that? We have that for next week?
Mind you, I did this while I was already being employed as a web and mobile developer.
Which btw, make sure you don't go to a shit school. ;) it does help in regards to learning the goood shit.7 -
My brain: Its a company that works with web technologies and the job is more of a devops job they wont expect you to know cpp compilation process.
Interviewer: Last question tell me in detail what happens when you compile a cpp program.6 -
I have noticed that C/C++ developers that deal with backend server technologies are very much likely to resort to PHP for some reason. I have noticed it from serveral developer friends of mine or simply by noticing how the topic comes along sometimes on web discussion forums.
I believe this is the reason why certain extension codebases that deal with php are(for the most part) exclusively done in C++, take Phalcon, written as an extension in C or PHP Swoole, which is written in cpp iirc.
I wonder what attributes does the language, or the tech stack as a whole has that would make this particular kind of developers feel attracted to the platform. Is it that is easy and widely available and they just say "fuck it, I don't wanna spend too much time in this shit" <--- which is a very valid point really.
Or them just having an innate preference towards it?
The Psychology Behind Developers: By Dr AleCx0417 -
So I decided to switch over to Ubuntu to get used to it and have fun with it along with trying to use Vim just as a side thing for experience (I'm still studying anyways and its semester break).
So I setup Linux in an external disk, booted Ubuntu, setup everything and then loaded a side project coded in C++ and Allegro into Ubuntu.
A few hours of googling and trying to setup Allegro to be properly installed and understanding how to use GCC with Allegro, it finally found the library and one of the cpp files gave an error that is not "cannot find allegro.h". That's great!
Added all the other additional cpp files into the command and added all the includes and there goes the terminal lit up with errors ;_; I'm so tempted to ditch everything and go back to Visual Studios7 -
Ok c++ professionals out there, I need your opinion on this:
I've only written c++ as a hobby and never in a professional capacity. That other day I noticed that we have a new c++ de developer at the office of which my first impression wasn't the greatest. He started off with complaining about having to help people out a lot (which is very odd as he was brought in to support one of our other developers who isn't as well versed in c++). This triggered me slightly and I decided to look into some of the PRs this guy was reviewing (to see what kind of stuff he had to support with and if it warranted his complaints).
It turns out it was the usual beginner mistakes of overusing raw pointers/deletes and things like not using various other STL containers. I noticed a couple of other issues in the PR that I thought should be addressed early in the projects life cycle, such as perhaps introduce a PCH as a lot of system header includes we're sprinkled everywhere to which our new c++ developer replies "what is pch?". I of course reply what it is and it's use, but I still get the impression that he's never heard of this concept. He also had opinions that we should always use shared_ptr as both return and argument types for any public api method that returns or takes a pointer. This is a real-time audio app, so I countered that with "maybe it's not always a good idea as it will introduce overhead due to the number of times certain methods are called and also might introduce ABI compability issues as its a public api.". Essentially my point was "let's be pragmatic and not religiously enforce certain things".
Does this sound alarming to any of you professional c++ developers or am I just being silly here?9 -
I made a game out of boredom and I think it looks cute.
Full size: https://dl.dropboxusercontent.com/s...4 -
WHERE IS THAT FUCKING SEMICOLON
WHY DO I HAVE AN EXTRA SEMICOLON
THERE'S AN EXTRA BRACKET ALSO WTF4 -
What are the chances that you get busted by your manager and 3 team leaders you personally know when you are going to a job interview?
We have poor men’s silicon valley near universities. Our company’s one office moves to another university. By the one in a million luck, interview takes at the same building where our next office of my current company will be. Managers and team leaders are there to inspect the new office. I enter the building, see them near elevator. One of them see me, with panic i wave my hand to him. There is a distance of ten meters, I hide behind a column. The team leader who sees me waving thinks I am with them to inspect new office. He asks others why am I not coming with them as I learn later. I can not pretend to play along and catch up with them, due to panic and time of interview is soon already. They get into elevator and finally I dont have to hide anymore 😂.
I got into interview and c++ exam with that physcology. Little did they knew that I just completed CPP PRIMER book. I both rock interview and exam but lets see if they will return with a job offer. What a rollercoaster of emotions.
Note: I am on mobile now so can not give more juicy details for now, fingers are tired.3 -
My boss keeps pushing me to do „any“ courses..
I’d say I’m doing my job exceptionally well. In fact he even told me before he promoted me.
I had to tell him what I wanna learn in the next 2-3 years. I told him I wanna be decent in C++ because i love the language and in my opinion every dev can improve by learning a low level language.
Have some MITx courses and stuff I wanna do (I actually want to do them) but he keeps pushing me to send him the courses so he can push me and (I think) Monitor my progress..
C/Cpp and asm have always been my love, I wanna improve and learn. But I wanna do it for myself, not for my boss. The company doesn’t have any use for it anyway..
And those courses are 4 weeks to 12 months with scheduled assessments.
I shouldn’t have mentioned it. Now it’s an expectation they have.
Now I have to force myself into doing those courses in time.. on a schedule..?
90% of then will bore the shit out of me cause I already know it and the remaining 10% are stuff I wanna look at when I feel like it. But I don’t have a paper that says I know those 90% so yeah..
Why can’t he just be happy with the work I do during working hours and leave my free time up to me???12 -
C++ development will be my end.
The absolutely unreadable errors, the overly convoluted macros set up in the project, the cmake build system.... The absolutely unnecessary separation into cpp and header files...
help20 -
Just had a customer into my shop. A regular chap but we've never really spoken before. Turns out he's a system architect for British Aerospace Engineering, a huge company up here in the north of England. So we were chatting about what I study and what he does and I said, if I come out with a first or solid/high 2:1 in my software engineering degree, would that qualify me for an entry level at your place, and he said no. Hrs part of the interviewing panel, and he wouldn't even consider people my age (23 at time of qualification) without at least having another job in the field, and said most places would be the same. So let's say I decided to not go in for anything Web development and focused on C++, is there any sort of way you guys know of gaining experience in the field without first having another job? As mentioned I do freelance Web development, but do you think having a large Github portfolio and such would help me stand a chance? I know I'll need to take a lower tier job straight out of uni in the field, but as something to help speed the process along...5
-
Be me, wanting to try out PyOpenGL.
Lets start by drawing a rectangle.
Nice.
And now add some text?!
NOPE CANT RENDER FROM TTF OR SOME OTHER STUPID SHIT! YOU NEED TO CREATE A BITMAP FONT. WHICH IS THE MOST INEFFECTIVE BS IVE EVER SEEN.
K but there is surely a library for Python which enables the usage of text in OpenGL? Yes but its last support was 12 years ago.
FFS WHAT IS THIS GARBAGE?
At the end i found out cpp uses freetype to convert each character of a font to a bitmap with the according spacing.
THIS SHOULD BE WAY SIMPLER!5 -
I love working doing tasks like moving boxes.
Move 10 boxes from point A to point B. Simple, you know what to do. and you know when you are finished.
I Hate tasks such as: Change this Icon to other icon. (C++) Because it takes me 3 fucking hours to find in code where the fuck this happens! And every time my first instinct when I don't know something is go to the internet and search for it. But in this case I CaN't!.
Wife: asking why I'm browsing the internet looking at memes.
Because I Don't Know where the fuck I need to be to finish my task! And I am stuck in this repeating loop of searching in code, looking at memes and being ashamed of myself that I did not this fucking simple task in like 10 minutes.
And after 3 hours of doing basically NOTHING. I don't dare to ask a colleague about everything.
Please send help....4 -
On C++ forum and see reference to Type Erasure (TE). Search around, some Java shit bleeding into other programming languages. Finally find an article that not only explains what TE is, but why you would use it in C++. ITS JUST FUCKING DUCK TYPING. Please stop using stupid names for stuff. You don't sound smarter. You sound like an asshole. Anyway, thinking about it does make sense to call it Type Erasure, but I still think it sounds pretentious. Cool concept, stupid name. Will continue to confuse people saying: "oh, you mean duck typing?"
Cool article:
https://davekilian.com/cpp-type-era...
The wikipedia article about TE doesn't explain shit about why you would even use it. Just repeats the same word salad of words I first saw about TE. I get that its jargon, but from the outside it just sounds like bullshit. I have never heard anyone I work with spew out shit like that. Even the ones with masters degrees in computer science.
I am not even sure I want to learn more about CS than what keeps me employed. I don't want to sound like this when I talk. I have already said shit in meetings about modern C++ that has colleagues (other sparkies, and some CS people) wondering what I was smoking. It wasn't even that jargony.
Don't mind me, just a sparky starting to understand why the CS world is so fucked. Maybe its just academia I can't stand. I dunno.
I should ask in a meeting if someone can define a monad for me.21 -
I hate programming tutorials for a complicated language like c++ that are dedicated to absolute beginners of programming. If you've never coded before, why are you trying to learn c++?5
-
what is the point of having massive HR departments if something as expected and frequent as university hiring can't go smoothly?
i managed to reach the interview round for a big 4 firm only for the interviewer to not show up for 4 hours from my time slot (i waited the entire time - took periodic screenshots for proof), HR to say "we'll reschedule your interview, this happened because of internal miscommunication" more than THREE months ago, and dip. until december they'd repeat the same. now they've ghosted. thanks, virtual hiring.
how is it the candidate's fault? found out this isn't rare by speaking to a few others from my network who i knew were interviewing for the same firm. for students whose lives can change completely based on the outcome of an opportunity that they came across due to sheer luck and could definitely make use of because of their hard work - this is so heartbreaking and demotivating.1 -
can't believe it but things actually have started to fall into place on their own, career-wise. feels unreal. need to work enough to afford a cottage with a cobblestone path & my life will be complete2
-
So let's say you spent over a day trying to clone WebKit using git but it failed every single time. Because the WebKit repo is HUGE (at least 7GB of worthless bloated refs), your connection is unstable, and git doesn't resume.
Then you discover you can solve the issue by simply cloning it via SVN in your cmake script.
Then you hit build, and forget that you had `-j 8` set in your IDE settings.
Then your computer freezes when it tries to compile 8 of WebKit's "UnifiedSourceXXX.cpp" files at a time, and all your 16GB of RAM get obliterated.
What the fuck, universe?1 -
GCC is like an Indian mother, it keeps telling so many things irrelavant for me, when I do a mistake.5
-
me making new dev friends
[...]
me: yeah that's cool what IDE are you using for C++?
guy: like an editor where I write the code?
me: ......yes?
guy: hold on, I don't know what it was called
> taps around his desktop
> guy shows word 2007
> I'm laughing a bit uncomfortably because I'm not sure whether he is serious or not
> guy opens up .cpp file in word
> so many questions
> mfw2 -
I love pipes in R. Really wish more mainstream languages would adopt that *looking at you python, nodejs-tc39, rust, cpp*
Just something about doing
data %>% group_by(age) %>% summarize ( count= n() ) %>% print
As oppose to
print(summarize (group_by(data, age), count=n()) )18 -
@allBeginners:
It's not about which language to pick or which problem to solve. It starts with thinking like a programmer.
I think that this guy educates quite well: https://youtu.be/azcrPFhaY9k
TLDW: Write your problem in English first and then translate that into simple code, not the other way around. If it does not work, you told the wrong things to the computer; its not the computer failing.4 -
A colleague is walking me trough some of the source code because we try to fix an issue.
colleague: Oh we don't use this anymore
Me: ...
LATER
colleague: This part we should refactor someday
Me: ...
LATER
colleague: Oh I think this is old code and does not exist anymore.
Me: .. .. ...
Great Colleague BTW :)
PS: fix will be posted Later.3 -
I have a new personal project that I hope I'll share with you guys one day. It just came to me. A fog simulation for a window manager such that it has fog behind the transparent console while you code and the fog goes in front when the terminal is locked. How about it?2
-
(Saturday morning)
Me: I've never been so long without exercising (since before this, my first winter), I should get in shape now that this God forsaken weather is finally reaching livable levels.
(some time later at the gym)
Also me: You've always been in good shape, why stop with just chest, let's do some arms and shoulders.
(48 hours later, Monday morning)
I had to turn my whole torso to look if any car was coming while walking to the library, moved like terminator because of the massive neck muscle pain, suffered through the pain of setting up all my study material to the realize (just now) I can't even fucking look down to my notebook... Can I be more stupid?undefined i'd rather be hungover all bodies are beautiful therapist or massage therapist? can i eat that with a straw? hasta la vista baby -
Last year, we had computers architecture class where we study about the architecture of processors like RISC, CISC, SIMD... The teacher was a nice person but didn't have much knowledge on the field. I read some of Patterson&Hennessey book (computer organisation and design iirc) and learned how to use openmp and mpi, and then in the last lab we were required to optimize matrix multiplication using 4 threads in openmp, the best students optimiseed for 4 times at best, meanwhile I made 16 times optimisation and showed the teacher how fast it was. She was really impressed lol1
-
Got my first job, 3rd year student from my country took me in to help making an app for a company in Texas... All the other guys are from 4th year or graduate school. Feeling nervous, let's hope I don't fuck up.2
-
Yo I heard you like compiling C/Cpp so we make you compile and link each individual file so you need a makefile for compiling everything. But that shit still gets to annoying to maintain so you make the make files with cmake. Just so you can compile a library basically at all.
And dont get me started on autoconf and random configure scripts you have to run before you actually configure shit.
Can we make compiling a regualr program any more difficult so that we need a whole ass A4 page of documentation just to end up with a binary of something?15 -
Holy shiiittttt I finally got 64bit NASM working on windows with cmake. Cmake documentation is fkn bad man.
I’ve got a c++ file that calls a procedure in an assembly file that calls win32 APIs to show dialogs and other cool shit. Compiling was working fine, linking turned out to be a bit of a pain in the ass, but figuring out how to enable NASM in cmake was a nightmare. Why is the cmake docs so horrific 🥺1 -
After 8 hours of carefully installing Gentoo in my laptop I ended up with a... Completely unusable OS. Guess I'll try again tomorrow, apparently I didn't set up the kernel with the appropriate drivers.undefined there is no such thing as wasted time and you complain about arch no pain no gain? ping 6.6.6 at least the keyboard lights work2
-
OMG... I want to thank my mother for changing my diapers for many years, my brother for all the games he no longer plays, my wife for actually making money, my plant for the awesome smell, God for maybe doing something (I guess), thanks @dfox, @trogus, and each one of you guys that deemed my rants worthy of your ++.1
-
I learned C with a K&R copy a friend gave me years ago. Now at University we in CompSci get taught in Python the first year and Java next while the engineers start with C and (I'm guessing) move on to assembly later on.
This friend comes to me all worried because he has to submit the next day a working Reversi game for the console written in C. Turns out the game was divided among two labs and he failed to submit the first one.
The guy is smart but once a week or so, when we met to smoke a joint and relax with some other friends, he was always talking about how he would prefer something like law but that would be bad business back in Egypt.
Back to the game, I get completely into it. First hour checking all the instructions he was given, then reviewing the code he wrote and copied from Internet. We decide start from scratch since he doesn't really get what the code he copied do. It took us 10 hours only stopping to eat but we get all the specifications of both labs perfectly.
A week after that he comes to me: "my TA said your code is the ugliest shit he's ever seen but he gave me a perfect score because it passed all the tests". I'm getting better (the courses I'm taking help me a lot) but what really made me happy is that he solved the next lab by himself (Reversi wasn't the first time I helped him, only the first time he was absolutely lost). Now he actually gets excited about coding and even felt confident for his programming final.
No more talking about being a lawyer after those 10 hours, totally worth it.1 -
NodeJS C++ add-on is one of the best and worst thing ever to exist in NodeJS.
Writing a native add-on is such a fucking pain. It's full of inconsistent API. They are trying to fix that by the introduction of N-API. But that shit is still in experimental mode.
I want to use nan but I know that that is also going to be deprecated once the N-API gets stable.
fml1 -
Greatest language of all times is still C. It stood against the test of time. Any new language including Rust can hope to ba barely performant than C with too much overload.(I know most cpp abstractions if more efficient handwritten C equivalent but still).
Language is small, simple, elegant.17 -
Fucking hell! Finally I found a good solution for a problem I never knew how to solve it in a beautiful way. For everybody interested: c++20 provides functionality for synchronously writing to a stream from multiple threads.
Link: http://en.cppreference.com/w/cpp/...4 -
Soo, i just downloaded unreal engine, let's connect it to clion and write / learn some cpp i guess5
-
Most of us have scary stories about professors that think that they know about what they are talking about when it comes to teaching comp sci subjects. Shit is so backwards in most parts of the world with teachers showing outdated or completely pointless tech.
A friend called me the other day asking for classic ASP help because it was being used in his web class. Another was asking me about flipping c cgi web scripting. Wtf are schools teaching? Having the drive to LEARN actuall useful topics that are relevant on the market is hard enough as it is...shouldn't schools help at least a little bit? I was lucky, we were thaught Java, Python, cpp, js, sql, html5, css3, php, ruby and we had classes for node (for those interested) and asp.net mvc. Those were RELEVANT and good classes and while some outdated tech was good the rest is just bullshit. Specially since most teachers have 0 market value as develpers...but hey!! Wtf do I know! Of course my word is shit against all them doctorate and master degrees.
Gimme a break. School can be great. But a lot of the leadership there is toxic af for our industry. And while I appreciate the effort in me being thaught modern languages (and thaught is a hard word since I already knew how to program way before going to school) i still remember a teacher taking points away from an assignment for not using switch statements in Python...despite my explaining that there was no such thing (you can go around it by using a lil technique using functions, its pretty cool..pero no mames)
Or what about the time I mentioned to a fellow student how he could use markup for having more control with his windows forms while the very same teacher contradicted me saying that shit was not possible. Or the guy at the school in which I work teaching intro to programming using fucking vba...fk man if you are going the BASIC route at least teach them b4j or something fuuuuck.
I had good teachers, but they were always cast asside by dptmnt heads as if they knew better. I just hate pendejo teachers I really do.
Chinguen a su madre, bola de babosos.rant remembering uni yes asshole gnu linux is a viable alternative i still love coding fuck bad teachers fk the system11 -
White house urges Developers to move away from C/C++
I'm not sure what to think about it yet, but on the surface level, i think that makes sense.
https://infoworld.com/article/...26 -
My professor for my Intro to Object Oriented Programming class decided that using .cpp files with xcode as a PowerPoint replacement was a fantastic idea.
Each file is a different 'slide', and half of them are empty main functions full of comments.
Help me.1 -
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 -
"Reflective" programming...
In almost every other language:
1. obj.GetType().GetProperties()
or
for k, v in pairs(obj) do something end
or
fieldnames(typeof(obj))
or
Object.entries(obj)
2. Enjoy.
In C++: 💀
1. Use the extern keyword to trick compilers into believing some fake objects of your chosen type actually exist.
2. Use the famous C++ type loophole or structured binding to extract fields from your fake objects.
3. Figure out a way to suppress those annoying compiler warnings that were generated because of your how much of a bad practice your code is.
4. Extract type and field names from strings generated by compiler magic (__PRETTY_FUNCTION__, __FUNCSIG__) or from the extremely new feature std::source_location (people hate you because their Windows XP compilers can't handle your code)
5. Realize your code still does not work for classes that have private or protected fields.
6. Decide it's time to become a language lawyer and make OOPers angry by breaking encapsulation and stealing private fields from their classes using explicit template instantiation
7. Realize your code will never work outside of MSVC, GCC or CLANG and will always be reliant on undefined behaviors.
8. Live forever in doubt and fear that new changes to the compiler magic you abused will one day break your code.
9. SUFFER IN HELL as you start getting 5000 lines worth of template errors after switching to a new compiler.13 -
🔥👽🤘🏻
I've been CRUSHING it lately, so stoked!!!
**Also, this means that in the near future something will crush me because I have a few subjects on deck I need to lock down.
1. Deno
2. TypeScript(deep dive)
3. CPP (currently 75% done with my 2nd masterclass, first one complete)
4. Multi-platform local device storage (Sqflite/mongoDB/shared preferences/Hive)
5. REST/api/requests/json management && application
6. Implementing Firebase authentication using Apple, Twitter, and mobile OTP
7. Cloud functions && server scripting/automation
8. Intro to embedded systems/OS/kernels
9. Steadily improve my code style, design strategies, and build patterns that are team friendly && provide easier code base maintainibilty
10. Influence, teach, and/or spark the interest of someone new to development in any possible- all that matters is getting new people on board, making sure they are stoked about, and last but not least making sure they feel welcome in the community and are able to start off in the right direction.
cheers, ya fockers!!!! -
First day at work and after seeing the codebase and how everyone's talking about the code, I'm pretty sure I don't have imposter syndrome, I'm just that bad...13
-
Getting back to the cpp applet I started somewhat recently (Vanilla + Gentoo kernel version checker)...
Me: "debugging c plus plus code"
Dictation: "f***ing c++ code"
...
Well, it's not too far off. -
That moment you find your C++ code from 2012 but you still feel like you know nothing after 8+ years coding. 😭
(Impostor syndrome is strong with this one! 😂)2 -
Cocktail recipes list:
1. "Google's Ethics"
Take an empty glass
Add nothing
Cocktail is ready!
This cocktail is also known as "CPP – The Good Part", "Jumble Function Security" and "The Profit of Unit Testing".6 -
Going back to java after over a year of c and cpp.
System.out.println("yeah I still got this");
System.in......what was the console object called again1 -
Got VS running, SDL up and running and outputting, and angelscript included. Only getting linker errors on angel at the moment, not on inclusion, but on calling engine initialization.
Who knows what it is. Devs recommended precompiling but I wanted to compile with the project rather than as a dll (maybe I'm doing something stupid though, too new to know).
Goal is to do for sdl, cpp, and angelscript, what LOVE2d did for lua. Maybe half baked, and more just an experiment to learn and see if I can.
Would be cool to script in cpp without having to fuck with compilers and IDEs.
As simple as 1. write c++, 2. script is compiled on load, 3. have immediate access to sdl in the same language that the documentation and core bindings are written for.
Maybe make something a little more batteries-included than what lua and love offer out of the box, barebones editors and tooling and the like, but thats off in the near future and just a notion rather than a solid plan.
Needed to take a break from coding my game and here I am..experimenting with more code.
Something is wrong with me.8 -
Couldn't be arsed with all the conditional compilation that angelscript required, so I dumped right back to good ol' lua for now.
Got lua in, vm started, loading strings and pushing/popping the stack.
Got SDL actually drawing as intended.
I don't know even half of what I'm doing.
Apparently header files that end in ".hpp" are specific to c++, while .h are for c headers.
I like the new SDL2 though, little bit different than SDL1. Not a lot of tutorials cover the difference, but I could kinda suss out from the documentation where I needed to adapt, even though I'm still pretty loose on the library, on the docs, and on c++ itself.
Still just a learning project.
Also, I'm continually surprised there isn't a portable, platform independent tool or little language just for replacing all pseudo-languages out there like .bat and .sh, and .zsh
Maybe even just a tool that standardizes it all, then takes config files that map the new standard to system dependant commands, so you can download the damn thing, configure the relevant environment variables, drop in the platform dependent configuration (or your browser or package tool detects what platform you are on and chooses the relevant package/download for your platform), write a console script and the tool automatically translates, and emits the system-relevant commands to that platform's console (so you don't even need much platform-specific code to do things like file access). -
If in emergency you have to hide porn..
Just put all in one folder and then compress
it with zip/rar and change the extension which none of your computer program can understand or just change it to .class or .cpp!5 -
Bro typescript is sooooooo gooood...
holy shit!
coming from a cpp/java background it feels like a fucking relief to know something like typescript exists and you dont have to blindly trust the dynamically typed crap8 -
Fuck you c++...!!!
TL;DR:
float a = 1.0/10.0;
float b = a*10.0;
a == b returns false
😐
Story:
A beginner of c++ here
Wrote about a 1000 lines code (spread across multiple files, m not dumb)
Passed 90% of cases
Took one and a half days to figure out what's wrong
Turns out c++ doesn't give accurate (as perceived by a human who thinks in decimal) results when comparing equality of 2 floats with ==
Shouldn't that be the first thing to be taught in schools?19 -
I like rants that are thought provoking and push a message forward regardless of whether they may sting a little, so for my first post on here I'd like to hit at home with many of you.
Html5 "Native" Applications are not needed. Let's cover mobile first of all, the misconception that apps are written in either javascript or Native android/ Native ios environment. Or even some third party paid tools like xamarin is quite strange to me. OpenGL ES is on both IOS and Android there is no difference. It's quite easy to write once run everywhere but with native performance and not having to jump through js when it's not needed. Personally I never want to see html or css if I'm working on a mobile app or desktop. Which brings me to desktop, I can't begin to describe how unthought out an electron app is. Memory usage, storage space for embedding chromium, web views gained at the expense of literally everything else, cross platform desktop development has been around for decades, openGL is everywhere enough said. Finally what about targeting browser if your writing a native app for mobile and desktop let's say in c++ and it's not in javascript how can it turn back into javascript, well luckily c++ has emscripten which does that simply put, or you could be using a cross complier language like haxe which is what I use. It benefits with type safety, while exporting both c++ and javascript code. Conclusion in reality I see the appeal to the js ecosystem it's large filled with big companies trying to make js cross development stronger every day. However development in my mind should be a series of choices, choices that are invisible don't help anyone, regardless of the popularity of the choice, or the skill required.8 -
My first cpp project takes 148GB ram. My mentor says it's okay till 50GB. God help me optimise this thing. I have started doubting everything. Int I = 0 also looks suspicious.9
-
>Working on code
>Shit works as intended first try, nice
>Goes to play strange bootleg Gameboy Color ROM sent by a friend
>ROM immediately fucking dies
wtf.svg
>Pop emulator's debugger
we're executing from VRAM, stack's firmly embedded in ROM
>why
>Add execution breakpoint to entrypoint of game, restart emulated system (because i'm actually using the legit bios i hacked so it allows null/corrupted games to run)
>Step through everything, everything goes well until all of a sudden we call a function and shit hits the goddamn fan
well we have the culprit
>step through subroutine
if <unused_byte_in_HRAM> != 0 then stackPointer+=32;tryAgain();else return
>***y***
>Realize this is using a bootleg Memory Bank Controller with hard-backed encryption so none of the bytes executed or read as data are the right byte
>Find emulator that'll handle the jank MBC
>read code to try and figure out how it works
if checksumExtendedLogoBlob == some_number then set MBC_Bootleg1 else if checksumExtendedLogoBlob == some_other_number then set MBC_Bootleg2 else if...
>of course
>Spend 10 minutes finding the right bootleg MBC
>code shows 8 possible tables for real bit order based on some value in the cart header
>look for code that gets this value
>not in the header
>not in ANY header in this 1000+ file emulator
>not in any related cpp files???
>get desperate
>email author
>"Delivery failed: email doesn't exist"
fuck me i guess2 -
>zig
how does one manage to make a language with syntax that is uglier than both C++ and Rust combined11 -
every day my boss says he'll review the requirements for our product. every day he forgets to do so. every day he asks where the update for the next stage is. every day i remind him. every day he forg ---2
-
Every time I check my old codes i start insulting my self..... How the fuck was i that stupid..... Still Stupid tho but i m progressing :D
I m learning to code by myself without any instructor :').... I wanna use unreal engine but i forgot how to code with cpp since i m only using C# now.. made winform apps and installing xamarin to learn about cross platform devloppment :)1 -
I am a chinese dev with 5-6 years experience, working on c/cpp/golang for backend server and PHP for web.
But I still feel hard to learn JAVA and JAVA web framework. You know it just has too many bultshit too learn, which is meanless to me.
Do you no-chinese guys also think so?2 -
Being hired as an independent contractor but working 40hours in the office 5 days a week and earning no other income but not getting cpp or ei deducted to CRA (this is very illegal for the employer). Very sketchy.
-
I'm thinking about what language to dive into next.
I already have a pretty good knowledge of Go and mediocre knowledge of C and Java.
So far I thought about...
1. CPP, as I need it for school and it runs on literally anything.
2. Rust, as is seems to spread and the combination of low-level, memory-safety and abstraction seems pretty appealing to me.
3. Kotlin, specifically kotlin-native, is it combines java-like high-level programming with native speed.
4. Nim, as it combines high-level techniques with c-like freedom.
What do you people recommended, or something completely else?6 -
Never realize how much you hate yourself until you dive into code on an old project.
Damn comments that mean nothing 😣2 -
Had my first ever final interview as a developer after passing the first ever coding assignment, now can't stop thinking if I should have answered the questions differently.
I was very honest to my answer when they asked "How do you test your application?" As I started building the app with 0 knowledge about software development and know nothing about software testing. So I just told them the truth that I did not do any proper test, I just used a checklist and manual test to test my app and the app that I created for the assignment was the first app that I write a proper test cases and implement an automated test. The same goes to other questions like automated deployment and OOP experience. I just told them the honest truth even though I know that they are not the best practice. Did I just f*cked up the interview??
Arghh can't stop thinking2 -
Guys does any of you know good first c++ project. I have a lot of experience with java and python so I am not new to programming, but I want to get proficient in C++ because I am soon starting a job which all lower level programming.7
-
OK, here goes nothing: now, I absolutely hate putting the main function at the end of the file and everything else above it.11
-
We have a (huge) project being converted from cpp to cs. This is done by another company.
We wanted them to also create unit tests for the cs version and they recommended MbUnit and Gallio.
I know a few libraries but didn't know MbUnit. All fine, I learn quick. Also MbUnit works like a charm
But then... I recently switched to VS2015 and somehow I couldn't get my unit tests to work. Turns out it doesn't support the compiler from VS2015. Also MbUnit stopped in 2013 T_T
Guess I have to stick with VS2012 for this project then.
Great start of 2017
Nothing bad to the guys in Belarus, though! They deliver great work!
If you read this, keep up the good work!
Rant on -
I wrote the todo app some time ago. The code is not beautiful, but the application works perfectly for me. I hope that someone will like it. Enjoy!
https://github.com/Pelski/Memo5 -
Microsoft has released Visual Studio 2019 version 16.6 with a new IntelliSense Linter to help C++ developers efficiently clean up code.
The tool IntelliSense checks code on the go, using squiggly lines to highlight problems and Lightbulb actions for suggested fixes.
The feature can be enabled in Visual Studio 2019 version 16.6 from the Preview Features within the Tools > Options menu.
Source : https://devblogs.microsoft.com/cppb...1 -
How do you do java style oop with classes and inheritance and all that in c++?
Do I really have to make a header and a source file for each class?
And while we are on it: are there any sources of "famous" games written in cpp?8 -
been exploring the options for cross platform desktop app, and i found :
java : both awt and swing look ugly, i really like OOP of java, and the way projects are organized is easy to scale, but i need to deploy the jdk, and the speed on gui apps isn't that great
C# : (.net/ mono, i can't grasp F# and vb is stupid) looks native on windows, not so much alien on both linux/mac, and being a java cousin is a pro, i found the Eto library for mono even looks more native on *ix than winforms
wxwidgets: for C/C++ so far this looks like the best option for total native feel and performance, but man i fucking hate C code, and this looks a lot like C code, even with proper native Cpp support, maybe i should dive deeper in it
GTK+ : did any one mention C code ? because this mother fucker is plain C with macros all over the place, it made me realize why wx is promoted as Cpp friendly, i doubt I'll use this
tcl/tk : even tho ive never wrote a single line of tcl in my life, the tk lib is the default ui for both python and ruby on all supported platforms,
and i really love ruby, and Python is Usually a joy to work with
Qt : this by far looks like the best option, proper OOP in C++, bindings for python (ruby binds are outdated), almost native look and feel on supported platforms, and even has a gui builder in xml or json/js (qml) however i bet I'll use such a thing, the building tho depends on an external preprocessor "moc" and some wicked macros, also makes working with templates a fucking mess, and the heavy dependence on QObject inheritance makes integrating external libraries a bit more tiring, the signal slot system makes more sense in python than in C++, since it makes me confused about the flow of the code
lazarus: is a freepascal implementation that looks and feels like delphi, not so much for native look and feel, but good performance and easy language to handle
electron : this fat mofo is fat, it's the slowest of all options, if i want an html app, I'll just compile a stripped down webkit and deploy that
what do you think ? and did i miss something ?17 -
It really sucks when you realize that you're gonna end up despising a programming language just from having an extremely shitty first experience with it.
About ten weeks ago I was forced to, despite that I was SUPPOSED to be able to choose the language myself, to learn C++ for this course when having literally not a single fucking bit of experience with it whatsoever. And that's pretty soon after already having a beyond shitty experience with the very same school AND the same teacher. (The school I study at "rent" courses from other schools, this is one of them.)
I have the final exam on Monday and I'm allowed to have a book on C++ with me to use as reference, as (I'm pretty sure) I won't have internet access on the computer I'll be doing the test on. I ordered a book with express shipping to be here during this week, Friday at the latest. Never arrived. Called customer service at the book store and apparently it was supposed to have shipped yesterday but hadn't and they didn't know why (fucking awesome girl at the customer service btw, 11/10 quality service). So we cancelled the order, sure, we get the money back, but I still won't have a reference for a language I barely know at all. (No need to mention libraries, did that, dead end.)
Oh, and about that school and that earlier experience I spoke of, because if their inability to do their motherfucking jobs, earlier this year I ended up struggling with money for a couple of months. I really want to fucking strangle these assholes and have them pay my fucking bills to cover the shit that THEY caused.
TLDR; I'm gonna end up hating C++ because of shitty fucking teachers at an even shittier school.6 -
Been cushing all the higher level langs... so, the quest through CPP land has begun!!! FUCKING SCIENCE HELP ME! 🔥🔥🔥🤣🤣4
-
So I get an internship and I am obviously very happy about it.
First day at work and I get a brief idea of what my project is and it was related to machine learning with tensorflow which I have experience with.
Come tensorflow lite and NN api, my job is now to convert tensorflow model into tfLite and use NN api whichpart of NDK and I have 0 clue about it.
So I obviously go to documentation and read up about it. Goes to Google sample to checkout NNAPI example and I freak out looking at the no of files and the code cuz. Wtf are these JAVA CPP WRAPPER AND NATIVE CODE .HOW DO I EVEN START WRITING CODE FOR IT. WHERE DO I BEGIN. HOW DO I USE NDK WITH THIS. THERE ARE NO OTHER EXAMPLES ON THIS REEEEEEEE
Legit feel like quitting already2 -
I am new to c and cpp.
I used to exploit my college's competitive programming platform cus it had a bad architecture and almost no auth checks.
For every ajax request, they weren't sending auth tokens or any form of identification and ran all the programs without any logs and on the main thread and as root.. wtf, right?
But recently they've changed something to the site and I cannot run bash commands using system() call.
Is there any other way to execute bash commands using c and cpp.
I already configured a miner in their server but then they re-deployed it cos someone forked bomb the shit out of it.
I'm a noob in c and cpp btw!3 -
I like the settings on my phone as dark as the dungeons with Geralt and a torch or the awesomely dumb flashlight from Doom 3.12
-
LOL XCode....I think they meant "X"tra useless, resembling such as a bag of dicks without handles!!!!
Also, being fucking buried because there's aren't any devs anywhere to be found near me makes me extra cranky!
Ive been hammering away at this Flutter, Java, Swift, Python, and Google maps for just about 36 hours on 3.5 hrs sleep. I just can't stop, I fuckin love this shit!!!
Considering the fact that I'm self taught and just started writing code for real about 7 months ago, I'd say I'm handling this alright for now. Every bit of tech is getting shot out of a cannon at this one- maps, real time tracking, state level auth/Id verification, custom components like ID scans/native desktop applications on custom linux machines, body cams, SIP trunking... all in 3 apps which are 100% multi-platform and scaled up to high end enterprise levels and being groomed for national release. I'm writing the code and doing the tech for ALL of it- even down to custom painted barcode scanners, a wallet system built from scratch, GPS integration, location/geofence based document querying... holy fuck guys I'm gonna fuckin die haha!!!
I went from barely getting websites made in late summer to this very moment, where I am pumping shit out in Flutter, Dart, Python, CPP, Js, Swift, Java, Kotlin, Obj-C, SQL/noSQL, and who knows what else.
I don't even know what the hell I just said haha I hope everyone has a great day! -
Why the fuck why are tslint and prettier are always sucking their dicks and fuck each others asses.
Do you know this moment when you think:.... 🤔 They have millions of downloads, why do I bother formatting my code so much. Mabye all this people are smarter and saving so much time.
Then you set up eslint and prettier adjusting 10000k rules just to find eslint and prettier five minutes later in one file fucking their asses again how to indent on save😠😱7 -
Many people say that it's easy to pass probation, so I wonder what would make someone not pass a probation in your opinion?9
-
When the compile works fine but IDE doesn't link regardless of settings.
With this many errors I think it's telling me CPP is wrong4 -
How much knowledge you should know to be able to say that "I know this programming language" on your resume or CV? for cpp, js10
-
Back in 2004-2005 when I was 2-3 years old, (I guess that, from this statement, the fact that I'm 15 rn can be inferred), I would sit on my dad's dinosaur computer. I don't remember brands and stuff, just Windows XP, Dial-up internet and the heap of CD-ROMs I had my parents buy me. They had all kinds of games, software, etc. It was a time when sharing that kind of stuff over the internet was, to say the least, impractical. It kind of makes me feel older than I am, looking at the cases full of those CDs, remnants of a past era. But what I consider my first actual exposure was in 2007, when I got my first laptop (netbook) and started diving in, exploring. It was the computer through which I learnt programming (My first lang was cpp), and the one that got me interested to dive deeper into the matter.
-
this moment when you forget to save a file and compile it with the same fucking errors...
Over and over and over again ...1 -
It really sucks that there isn't a de facto package/dependency manager for c++. Conan, cppan, hunter, cget, lots of projects trying to fill this gap. Yet, none seems to be mature enough -.-
-
>= rant
While its really hard to get code wrong in Rust, it is also really hard to get code right in Rust. It took me a considerably long time to write a code which returns the first word in the sentence
I felt the borrow checker introduces a steep learning curve into Rust which is otherwise a beautiful language according to me. C++, my current favorite language, also suffers the same problem with respect to certain language features.3 -
Hi guys,
I'm going to make a template project for Cpp. And one of my questions is how to use Travis ci to test things with clang 6, on every platform. I was thinking about using a custom docker, but I didn't find a project using this. Is there a problem with it?5 -
Show me how you made an http server with an arduino nano and an esp8266 via AT commands from the arduino, the arduino handling the clients.
No you didn't, this shit is fucking impossible.4 -
I guess I am not the only one who do not know why hes/her code runs. Today I was preparing a private API for our project and a part of it was not working for (IMHO) no reason. I was really upset, because I already put more then an hour work in a 10 minute task.
It was 9:30 PM, I came like 12 hours ago, so I knew I can do only one thing to erase my mind for a second: Clean my keyboard. I tried to be really precise and everything, because my finger can be really greasy now or then.
After a good 10 minutes I looked at my screen and I realised, that I managed to forget to remove the keyboard's cable, so my screen looked like someone tried to escape from Vim.
But! During the cleaning I also runned the code again somehow and it fucking worked. I am sitting here, cannot believe what I see. I see no changes whatsoever, so this might be like a friday gift from the universe.
Now, I can finally work on my own project...4 -
WHY DID FEDORA REMOVE X11 !!! Really a bad decision from FESCO(fedora decision committee).
X11 is by a kilometer and a half (mile I think) away from Wayland and it's ugly do::from syntax that I always hated from CPP and RS.
X11 has simple basic functions and a good manual (https://tronche.com/gui/x/xlib/) well documented.3 -
Ryan Dahl working on Deno is one of the current interesting projects that I have been following.
Initially, the dude was trying to use Golang and is currently migrating to cpp and rust since Golang is a gc language. Nothing wrong with that really. I am just excited to see what this man comes up, and Typescript as the main language? Fuck yeah.
This shit js gonna be bomb af. Happy to see him talk to openly about his flaws when building Node, which was still a massive success and a true game changer for a lot of people(me included) and I believe that Deno will repeat this. It already has 24k stars on Github and tracking the repo has become very interesting! I just wish i had the cpp/rust knowledge needed to help out with it.3 -
Is there a simple CPP equivalent to a tree node in Java that has a parent and a arraylist of children? Or will I have to write out a 500+ line class to get the same functionality? 🤔12
-
c++ tip: modern cpp standard libraries have std::optional, which allows you to declare a variable that may or may not have a defined value:
std::optional<std::string> optional_string;
(I've started a journal of interesting c++ things I have learned: https://github.com/AlgoRythm-Dylan/... ) -
So I was wondering if any of you know if any good ways to inject additional functionality into a function in CPP. My use case is injecting a counter into an OpenGL draw function to see how many times per frame it's called. I know I can do this using assembly Inca more hacky manner as you might do for cheats in games(code caves), but I'm more interested in adding is for debugging/statistics for the game engine I'm working on. Basically im looking for a portable stable way of doing it that when I compile as a debug build, the code gets added to various functions, and when I compile under release, it doesn't.
Example:
glDraw();
Would call
glDraw() {
drawCount++; //some debug stuff
glDraw(); //call the real one internally
}
I should mention with code caves you can do this by saving the original address of the function, patching the vTable to point to your new function that has the same parameters etc, then all calls to that function are redirected to yours instead and then you simply call the original function with the address of the function you originally saved. That said, I'm not sure how to access vTable, etc the "normal" way...2 -
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
-
Bold of me to assume that a project that solely exists as an example on how to use a library would include said library in the download.
(In the project file structure already exists a folder for libraries and in it was a folder with the name of the library. And I of course didn't check if the [library name] folder contained any files)1 -
what are personal projects if not the daughters of hackathon solutions that never saw the light of day6
-
So… C++ seems kinda ok, as long as you don’t use like 80% of the language :-)
This is me making concessions when a library I really want to try (Dear ImGUI)is written in C++…
(yes, I know about cimgui, but for some reason I wanna learn upstream instead of generated bindings…)4 -
I don't really understand all that love rust gets. It's syntax, better than C++'s, isn't better than C syntax.
You can make memory safe programs with C, just if you know how to manage memory, and you should only if you know how to. Bigger ecosystem for C/C++.
C23 waay better than any rs standard.
PS: I used both C/C++ and Rust39 -
Hi everyone well we quit gg scripting cause we figured out lua can be converted to cpp for memory searches! we all know lua and know how to convert it to cpp but for the gui
How do i learn java?8 -
I am going to start a big project (6-10 weeks) in my computer science class and had an idea to create an application that allows the user to share their mouse and keyboard over several computers regardless of OS. I plan to do the project in C++ but have no experience creating applications with C++. Firstly, is this project possible in. NET Core? If not, could you point me to resources or give me some tips that would help me in my project. Thanks.6
-
Can I build apps in Android devices using only C/C++ ? I mean is possible? I heard it is, but how that can be achieved? Can someone explain!12
-
Started at 14 trying to learn cpp to hack networks. I failed miserably. Real enlightening came with python.
-
I would like to work with someone on an simple open source project, to test git. Is anyone interested?9
-
C++ development experience is absolute shit on Windows
Like using any IDE but VS (which is also shit cuz Micro$oft) to write anything in C++ is just absolute shit.10 -
What would you do if you had a safe way to slack whole day in job?
I am working in a giant company, it is easy to camouflage here. I am doing whenever a job is given but those tasks are not developing me. So I execute those tasks slowly. Sometjmes, a good quality tasks are given , I execute them really fine but those are scarce.
I used to study a lot of things during the day, like cpp, python, IoT but i feel like burnt out, just waiting for the end of the day. How can I break out of this situation. I know, for a better job, I must be a better sw engineer but I am wasting my free time(during my work hours) recently and my feeling of guilt is increasing.
How do you pick up yourselves in such mkments?16 -
I posted a few days prior about how I was starting CPP because I had been crushing all my other higher end stuff (Js, Python, Flutter/Dart, etc.) and that CPP was gonna destroy me. Haha I'm doing alright, but I need to find something to use CPP for in order to determine when I will need this besides games or say building a browser engine. Could use a little direction as to what I could be working towards. I have NOT encountered a problem that I need it for yet, but I wanted to familiarize myself with it because it's an essential language regarding full stack. I am a solo dev!2
-
Not only can I not download the attachments in bulk from my Outlook account, but the download button opens a new f*cking tab where I have to click download again after it fully loads the whole page. I'd gladly use this shit software if for every attached file I download a wrench would tighten on the genitals of the idiot that design it.4
-
Does anyone have any ideas for intermediate/high level beginner shit I can fuck around with in CPP??? Trying to stay busy but I keep whipping through all my ideas I come up with for practice.
I'm down for pretty much any challenge, as long as it doesn't require me having to DL another 13gb of some bullshit. I have all the shit I need for most situations at this point in my CPP experience!8 -
VS2015 big cpp - project...
Scroll in file, decide where you wanna write code. Set caret (70s delay).
Ctrl+tab to check previous file for name of something (120s delay)
ctrl+tab to return to file (120s delay)
le me = Jsjsjdhdhxhxuxbfvfvefbd!!!!!
FU Microsoft :(2 -
The most normal C++ program be like:
// prints "Hello, World!"
namespace{decltype(+*"")(*main)()=[]()->decltype(main()){return{};};}
decltype(main())(main(decltype(main())={},decltype(&*"")_[]={})){
extern decltype(&"") puts;
reinterpret_cast<decltype(::main())(*)(decltype(&*""))>(&puts)("Hello, World!");
return(decltype(::main()){});
}8 -
I'm a MERN stack developer but want to crack google interview, so could I use javascript (or ts) to solve DSA problems there or should I need to solve it with cpp?19
-
Any people using Julia here for something real. Like analysis or building applications? Is it worth learning or should I stick to python and cpp ?2
-
Do you ever get those moments if you wonder if you're in the right field? I'm not talking imposter syndrome or anything, just plain, you can't do it.
I've been staring at this cpp function for over an hour now, and I still can't decide where is the right place to return it. This is like every single day while studying cpp, and it's seriously beginning to dishearten me. I know it's just one of those things that'll come with time, but it's been nearly two years now and I still can't get it...6 -
Just enrolled myself in Andrew Ng's Machine Learning course at Coursera for the summer, is it a good place to start? Any recommendations?
-
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 -
Hey errrbody!!!
I'm banging out a couple "showcase" mobile apps for practice, portfolio, and/or as potential templating tools.
I have no issue writing the code, I just wanted to see if I could get a couple pointers as far as user databases go. I'd like to have some "user profile" features generated from a FB...vlike profile images, name, address, contact, yadda yadda yadda. I usually use Firebase, but I am still having a little trouble with the more advanced stuff when it comes to integrating users profile data. I can get values from Google and whatnot, but I'd like to see what my other options are on the smaller scale.
I am currently writing code in Flutter/Dart, ReactJS( not native!), Vanilla Js, Python, and CPP.
I know there's options for client side storage like Shared Prefs, Sqflite, etc, as well as server/DB side stuff like Firebase, Aws, Mongo, Node, SQL, etc- you get the idea.
I just want something with decent documentation that's reliable, not a massive undertaking (at least not for all this little stuff, anyways) and could potentially be a go-to platform configuration in the future. It'd be cool to wire in my Flutter and js shit of possible, bit honestly I'm cool with having separate setups for the time being. Any extra input regarding the use of python and/or cpp as well (either separately or with mobile) would be rad as fuck!!!
I do realize it's a pretty vast area to cover, but I figured it couldn't hurt to see what everyone likes to use for full-stack setups.
Thanks!!!!9 -
I finally get to work on my first independent project at my internship! It’s been cooling working with my team so far but I’m excited to try things to figure out things by myself first before getting some help.
-
Fuck XCode. Worst IDE ever. Forgot to declare namespace for function in cpp file and it can't even underline it. And in addition to that, the slowest IDE!!!1
-
Has anyone used the meson build system for CPP? It's so beautiful. Finally, something to help us not kill ourselves during compilation.1
-
Here , I am posting some questions so plzz reply in comment 😄
1. VScode or Atom
2. Flutter or Kotlin
3. Android dev or Web dev
4. Cpp or Java
5. Windows or Mac
6. Product based or Service based
7. Stack overflow or GitHub
8. Full stack or single stack
9. MEAN or MERN
10. Programmer or Devloper14 -
Lua handles arrays and maps/dictionaries essentially the same way. Makes for a pain when binding to cpp. Shame in an otherwise awesome embedded lang
-
I am doing a small application using C++ as a side project to learn C++ Developement. It would be better if i have a small UI . Will ncurses be okay ? Does it have any utility now ? Is there a better way ? Please keep in mind i am a beginner in terms of application developement..1
-
Any c++ Gods able to offer a bit of help? I can't ask on stack for risk of a lecturer finding out but I really need help...7
-
Calling C++ programmers, or probably any other language, is it bad practice for me to name a string "open_first_file" or should I camelCase it instead?11
-
The heck is wrong with the testing framework. I can obviously see that it a correct value why doesn't the test case pass.
FAILED:
REQUIRE( positive==static_cast<double>(0.7352941176) )
with expansion:
0.7352941176 == 0.7352941176
===============================================================================
test cases: 1 | 1 failed
assertions: 1 | 1 failed10 -
What’s the best way to manage third party libraries in C++ especially when you’re not just dealing with software but several hardware?
I usually just store each library in its own sub module that gets rebuilt each update/pull, but this is started to get crazy as my project gets larger that it is not scaling.2 -
Great practice/skill sharpening idea for my fellow mad dogs that like to get down in multiple languages/syntaxes:
Pick something simple that won't cause too much stress, but will make you sweat a little bit and put up a good fight, ha!!!
For example, I picked the classic "Caesars Cipher" and picked 5 languages to create it in! I picked Dart, Java, Python, CPP, and C. Each version does the same thing:
1. Asks for a message
2. Runs the logic
3. Prints the message cipher.
4. To decrypt, you just run the same program again and enter the cipher text at the message input prompt. The message gets deciphered using the same logic an shows up as the original text.
The kicker:
Only dox/books allowed for reference. Otherwise it wouldn't push you to get better!!!
Python, C, and CPP were EASY, even with me never having used C before. I am great at using Dart, and that one really challenged me for some reason, but I finally got it. The previous 3 langs took less than 40 lines of code each (with Python being only 18 I believe). Dart actually took somewhere around 50, and Java took about 371784784. (Much love to Java though for real!)
Kinda boring as shit, but I gotta tell you it felt fuckin GREAT to look at all 5 of those programs after completing them, no matter how barbaric... especially when you complete 1 or 2 in a language you've never used or maybe felt really challenged by. Simple exercises that hold a lot of important, relatable logic no matter the subject is our lifeblood!!!9 -
!rant
First, a little bit of background info: I'm currently studying a programming course (Where I was *supposed* to get to choose language myself, but was forced to do it all in C++ which I had no prior knowledge of, but that's a rant post of its own.) and the final exam is coming up. I'm allowed to bring with me a book on C++ for this, so my question was if there are any good recommendations?
Primarily I'd prefer something that is as close to a physical copy of documentation stuff as possible, since that's what I'm going to need the most.
The books I've been looking at so far (and that look the most promising) are "The C++ Standard Library" by Nicolai M. Josuttis (ISBN: 978-0321623218) and "The C++ Programming Language" by Bjarne Stroustrup (ISBN: 978-0321958327). Thoughts and/or opinions? :/question school related teacher doesn't know programming cpp this course is a joke btw why is this common9 -
Ok so that's my plan, find a kernel with HUGE amout of drivers and , high version.
I built a small os based on linux
-- kernel version 5.0.2 from Plop Linux,
many libraries added 'by hand' -- packages from apts of Debian&Ubuntu, and unpacked packages into system with ArchiveManager,
has GUI but it's called xfree86 ( looks strange when a very old app running on Kernel5 )
So, without compiling, i can make a os.
But i found that Plop didn't compile rtl8188eu module which makes linux support some specific network cards.
I have no professional compiler but a tiny C/Cpp compiler called TinyCC (aka. tcc), but for my pc ( CPU freq = 800MHz ), it seems not possible to compile the module by myself.
And then i downloaded a 5.2 kernel with modules from kernel.ubuntu.com, but when i tried to mount my disk ( part. vfat ), i got some errors like IO charset not found, and then i replaced it with Xanmod kernel but also reported an error said Invalid Arguments, but i checked /proc/filesystems, it supports.
So what can i do? Are there any pre-compiled kernel & modules with 'full common supports'?
I tried kernel 4.4 ( from Ubuntu 16.04 LTS ) just now but the driver crashed when wpa_supplicant tried to initialize the device.7 -
Addition to
https://devrant.com/rants/2227936/...
So my programming teacher knows his shit, but is pretty bad at explaining it.
I can already see some of the other students, especially the ones without prior programming-experience, flunking this class.
Today spent most of the class talking about 2-complement and the functions in math.h.
I think we didn't even learn about reusing code with functions, or structs.
I use some of my time, helping the other students getting through this somehow.3 -
need more experience for good entry-level jobs, need a good entry-level job for more experience. yay4
-
Couldn't they come up with a shorter name than reinterpret_cast? It makes lines of code so much longer if you have multiple casts in one line. 😥1
-
I want to make a project
student analysis system
It works as
Student will signin in the site and upload their academic detail including roll no. marks of all the semesters, and other academic details then It will give them analysis of their academic performance like what is his rank in his class, in the department, and in the whole College. It will also show that in which subject he was week, in which subjects in upcoming semester he have to work to secure good percentage and a graph of his performance till now and change in graph if he follow according to us. It will also show the placement probability.
Now my question is which tech stacks should I use to make all this?
I know HTML CSS JS JAVA CPP and a bit of REACT. Js EXPRESS. JS MYSQL.
I am ready to work with other tech stack also.8 -
For the first time, I will use “developer rant” for learning sth.
I am trying to learn concurrency in cpp. I tried CPP Concurrency in Action but the book is dry, no examples. Can you suggest a book with good examples and exercises, like CPP Primer?2 -
when you find a project you'd like to clone and learn about but you cant even get their examples to build locally...
yes im looking at YOU every c based project on github.5 -
What is ploymorphism??? Im new to oop, and wanna learn more abt it. Preferably in examples from pascal or cpp.13
-
If you guys take syntax changing frameworks as still coding on the language the framework based on, I'm a c++ dev from now on.
P.S: read the tags3 -
typedef bool Bool;
Class Description
{
public:
inline Bool IsTypeA() const { return IsType(TYPE_A); }
inline Bool IsTypeB() const { return IsType(TYPE_B); }
inline Bool IsTypeC() const { return IsType(TYPE_C); }
Bool IsType(DescriptionType T) const { return (T == Type()); }
DescriptionType Type() const { return m_Type; }
private:
DescriptionType m_Type;
}
I can't make this shit up3 -
Getting used to C++.... Jesus those syntaxes.... you can write it so or so or this way... also this way.... did i mentioned this?!1
-
I remember codeblocks with pain the .h and .cpp, the pointers sometimes get the memory address that crash the program and program with opengl on codeblocks is the dead1
-
I saw many great tutorials here and there(YouTube) and they are amazing but are they really that's all needed to be a pro or above intermediate level in it like
Flutter many tutorials on YouTube to clone ui make firebase backend but are they sufficient ?
I saw few on react and node is but they seem ok that's beginner level for ya. And that was all
Other then that nothing was there. Just a bunch of projects which people make and name Instagram clone , this clone ,that clone !
So what is the way you professional guys learn old languages (Java , cpp etc ) books /docs ?
And for new languages like flutter! how do you get into them ?
I should be sophomore in CSEnginerring major -
The frustration is real when you have an assignment in a programming course that you immediately know the solution to and could bang out in less than two minutes with Python, but you're instead *forced* to use C++ which you only started learning two weeks ago... :Irant uuggh can i just autotranslate py code pls school python cpp school that hosts the course sucks balls2
-
Been using python for a couple years now. I've had brief ventures into Java and C# but they weren't for me. I've been looking into Cpp recently (watching cherno tutorials etc). Can anyone recommend a good written resource for learning?
-
CPP, python, javascript
Which one is best to learn DSA?
I'm really confused which one should I choose?8 -
Any devrant or friendly programming telegram group i may join?
Currently learning cpp and would like some supports.. -
So finished 2 weeks project for co-worker. Now she can register cargo waybills to database and not to excel(I have nothing against it, but to have centralised way to keep data is better practice). Anyway project was done with Cpp, wxwidgets(first time trying GUI in my project), postgressql. Now I can see a lot of things I can rework, fix or add something new. I guess you can't finish fully anything.
-
Hello there I had a question in mind
I want to customize my telegram desktop client to filter some channel message for just my side
I mean I can delete certain channel message from my client so it doesn't show up in unread message
there are some channels that repost duplicate messages I want to write a filter to exclude them from my chat list
I'm familiar with CPP programming and I've worked with telegram api before.
But I don't know where to start on telegram open source desktop client to implement this feature
can you give me some hint to where should I look at? -
Hey fellow c++ devs, i have a question. I am currently working for a company that has a system with more than 300 000 thousand lines of maintained code and it is written in C++03. A lot of it utilises boost and custom performance work arounds and migration is currently out of the question, but I would really love to see some Cpp11 sugar in the code-base. I know there might not be too much business value to this potential endevour, but what do you think?1
-
To you CPP-devs,
I want to write a small ask-password tool, like systemd-ask-password, but tty-only and non-systemd.
I use termios to switch the terminal into noncanonical mode and disable echo of stdin.
Now I want to read chars from cin and append them to a string, until I read an endl or an error occurs.
In C, I could use an input-loop with getchar, but how could I do this the CPP-way, since cin.get() is nonblocking?2 -
which is the best cloud provider for a complete beginner (user/dev) in terms of community support, employer preference and user-friendliness?
i know that understanding the tech and concepts behind it matters more than getting familiarized with a specific platform, but i'm looking to build a more diverse profile and have noticed many positions asking for AWS/Azure experience.
since i'll be starting from scratch, any provider with easy-to-follow documentation, online help and certifications that don't leave you broke (would have to pay myself, earn very less as a student from a third-world country, parents/current employer can't support) would work.8 -
For me it's going to be:
Learn cpp (for my education)
Make a game (to train cpp)
Try to find a project idea generator or build one