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 - "c program"
-
Student - Teacher renaming .c to .exe make the program executable ?
Teacher - Yes
A group of people stand up and walking to the door
Teacher - Where are you all going ?
Students - We are going to drop this class.41 -
Best quotes from IT teacher:
- "C# is a language to program your IDE."
- "C# is a language for beginners, and is not really used in production."
- "We won't use Python to learn programming, because Python is a very old, slow and useless language, and is not really used anymore."
- "Yeah, your algorithm is fantastic, but you wrote 'The answer is: ' instead of 'Answer: ', so it's just a B."
- One of my classmates was bored and opened Notepad++, and when the teacher saw it, she said "I have been teaching programming for years, but I've never seen this program, what do you use it for?"
I feel so lucky that I have started learning programming years before at home, I just couldn't start if I had to learn this way.37 -
Interview with a candidate. He calls himself "C++ expert" on his resume. I think: "oh, great, I love C++ too, we will have an interesting conversation!"
Me: let's start with an easy one, what is 'nullptr'?
Him: (...some undecipherable sequence of words that didn't make any sense...)
In my mind: mh, probably I didn't understand right. Let's try again with something simple and more generic
Me: can you tell me about memory management in C++?
Him: you create objects on the stack with the 'new' keyword and they get automatically released when no other object references them
In my mind: wtf is this guy talking about? Is he confusing C++ with Java? Does he really know C++? Let's make him write some code, just to be sure
Me: can you write a program that prints numbers from 1 to 10?
Ten minutes and twenty mistakes later...
Me: okay, so what is this <int> here in angle brackets? What is a template?
Him: no idea
Me: you wrote 'cout', why sometimes do I see 'std::cout' instead? What is 'std'?
Answer: no idea, never heard of 'std'
I think: on his resume he also said he is a Java expert. Let's see if he knows the difference between the two. He *must* have noticed that one is byte-compiled and the other one is compiled to native code! Otherwise, how does he run his code? He must answer this question correctly:
Me: what is the difference between Java and C++? One has a Virtual Machine, what about the other?
Him: Java has the Java Virtual Machine
Me: yes, and C++?
Him: I guess C++ has a virtual machine too. The C++ Virtual Machine
Me (exhausted): okay, I don't have any other questions, we will let you know
And this is the story of how I got scared of interviews29 -
In one of our first C programming classes today in college, I booted up Ubuntu on the dual boot systems to practice our first few programs which we were supposed to be doing in Turbo C on Windows.
I successfully compiled it using gcc on the first try which appeared like magic to my neighbor. Soon our teacher came to check my program and said that I made a mistake. I asked her what is the mistake? She said that I was supposed to be using conio.h!!
I argued that it is not a standard header file and using it makes the code non-portable. She tried it to edit it to include conio.h but couldn't edit it since I was using vim. I was asked to switch to Windows and use Turbo C instead and also use conio.h. I denied and she told me to follow her or leave the class.
The weather was nice.19 -
I delivered a small C# program long time ago.
Unit tests, integrations tests, functional tests, all passing (users even happy).
Colleague of mine approached me.
C: "I finally fixed the program"
M: "Which program?"
C: "Product X"
M: "What was wrong with it?"
C: "Nothing, but now it runs on Python"
M: "..."
C: "Yeah, we lost a few features, but it's Python!"
M: "Aren't you busy with other things?"
C: "That can wait"
M: "..."
M: "..."17 -
Today I found out my math teacher used to program in C++
I'm finally not the only programmer in school.
But she said her skills are outdated since that was a long time ago, but it's better than nothing! :D
We have alot in common. We're both bookworms, we both like to write, we're both Ravenclaw, we're both Erudite, and we both like to program.
I can safely say, I no longer despise my math teacher. I don't hate her, but I get annoyed how she's always absent right before a test.
Hopefully I can have a programming related conversation with her, assuming she didn't forget anything.15 -
Interviewer: "Please demonstrate a simple program that outputs hello world in C."
*sweating profusely* me:
C C CCCCC C C CC
C C C C C C C
CC CC CCCC C C C C
C C C C C C C
C C CCCCC CCCC CCCC CC
C C C C CCC C CCC
C C C C C C C C C
C C C C C CCC C C C
C c c C C C C C C C C
Cc cC CC C C CCC CCC2 -
Once upon a time I was teaching high schoolers Unity/C#. Noisy boy asked me if it was possible to create a robot in C#.
I told him to take printer, take it apart and turn it upside down in the way that printing drum would touch the ground, and then to put a laptop with his C# program on top of it.
When the program will launch, printer will try to print and the whole thing will roll slowly. Isn’t that a robot? You just need to think wider and define what robot is at first.
He was lost in thoughts and completely silent to the end of the lecture.6 -
And, the other side, husbands 😂
——————————————————–
Dear Technical Support,
Last year I upgraded from Boyfriend 5.0 to Husband 1.0 and noticed a distinct slow down in overall system performance — particularly in the flower and jewelry applications, which operated flawlessly under Boyfriend 5.0. The new program also began making unexpected changes to the accounting modules.
In addition, Husband 1.0 uninstalled many other valuable programs, such as Romance 9.5 and Personal Attention 6.5 and then installed undesirable programs such as NFL 5.0, NBA 3.0, and Golf Clubs 4.1.
Conversation 8.0 no longer runs, and Housecleaning 2.6 simply crashes the system. I’ve tried running Nagging 5.3 to fix these problems, but to no avail.
What can I do?
Signed,
Desperate
——————————————————–
Dear Desperate:
First keep in mind, Boyfriend 5.0 is an Entertainment Package, while Husband 1.0 is an Operating System.
Please enter the command: ” C:/ I THOUGHT YOU LOVED ME” and try to download Tears 6.2 and don’t forget to install the Guilt 3.0 update.
If that application works as designed, Husband 1.0 should then automatically run the applications Jewelry 2.0 and Flowers 3.5. But remember, overuse of the above application can cause Husband 1.0 to default to Grumpy Silence 2.5, Happy Hour 7.0 or Beer 6.1.
Beer 6.1 is a very bad program that will download the Snoring Loudly Beta.
Whatever you do, DO NOT install Mother-in-law 1.0 (it runs a virus in the background that will eventually seize control of all your system resources).
Also, do not attempt to reinstall the Boyfriend 5.0 program. These are unsupported applications and will crash Husband 1.0.
In summary, Husband 1.0 is a great program, but it does have limited memory and cannot learn new applications quickly.
You might consider buying additional software to improve memory and performance. We recommend Food 3.0 and Hot Lingerie 7.7.
Good Luck,
Tech Support3 -
So... I wanted to share something I made this weekend... 😁😁
Made an ls program which includes colors and icons! It is a work in progress and probably contains some bugs here and there, but I really wanted to share with you all.
The happiest thing to me about it is that I made it in pure C and had a blast creating it! It’s my first actual C project and it also made me realize that there is probably no language I can love more than C.
Take look if you are interested and tell me how it is 😊 suggestions and fixes are more than welcome 😁
https://github.com/Electrux/...
Just wanted to share the experience. Have a good day everyone! 😁33 -
Had to wirte and optimize a C++ program that finds for 1000x1000x1000 grid points the 100 nearest points for each (with an additional factor to make it more complicated).
It had to run in under 18 minutes to pass. No matter what I did I couldn't get it fast enough. I tried kd-trees, caching of certain points, optimizing distamce calculations by ommiting any irrelevant factor, saving points' calculated squares etc etc. When Ibwas down to 20 minutes, I realized, that my makefile had an error and ignored the - O3 flag...
Well, it actually ran 5 minutes with -O3.8 -
Started learning C++, coming from Python.
Just spent ~25 minutes searching for a problem - My code wasn't working like I expected.
Problem: Didn't compiled the program, kept running old code, didn't noticed8 -
Coming from a C# background, where Visual Studio would warn me about errors even before compiling the program, Javascript was quite a shock.12
-
Hate it when i spend hours upon hours implementing an algorithm/program (in C++ btw) and whenever I show it to someone... They r like
Them: Huh... Spent so much time to display JUST that?!
😭😭
Well... Only programmers understand the amount of time required to get things done...9 -
On my annoying radar today - devs who learn one language and then *insist* on using it for everything, even when it makes absolutely zero sense.
"Ooh I'd like to do some microcontroller development. But I only know Java. How do you run Java on a microcontroller?"
"...You don't."
"...but I heard a talk where someone did it. Look, there's this microjava page. How do I use it?"
"It's an interesting technical demo, but that's it. Dude, just learn C. It's not hard, Java has C style syntax anyway and this way you can...."
"...but I only want to use modern programming languages. C is irrelevant these days, it's pointless me learning it."
"It's definitely still relevant if you want to program a microcontroller."
"...but I want to do that in Java."
🤦♂️15 -
!rant
So this year I had a subject at university called "Linux internal architecture", and for the last assignment I had to write a kernel module and interact with it with a separate program written in C.
Once I had finished and tested the driver, I went on to write the other program, which was supposed to use system calls to read and write data to the module. While debugging this program (~500 lines of code) I reached the level of frustration where you just start printing absurd messages everywhere in your code to see what's wrong. So for example instead of printing "This error happened in this function", my error messages were more like "Fuck this fucking function it doesn't fucking work".
Guess who forgot to delete all those messages before sending the code to the teacher...
Also, if a specific mode is selected, the program enters a while(1) that, apart from doing what it's expected to do, also creates a file in the user's home directory called something like 'motherfucker' and appends the words 'fuck this shit' to it. INFINITELY.
I really really hope this teacher doesn't try to run the program in his own computer, or he's in for a big surprise.8 -
I'm working on my own code editor with 'multiplayer', option to draw stuff, option to design algorithm schemes, option to browse SQLite databases and most importantly - I've based entire interface on HTML/CSS/JS and entire backend on C# and PHP, so it works both online (via browser) and offline (via program).
Tell me whatchu think, it's still work in progress.
(I've removed the name of it so when I share this project with my future employer, he doesn't connect the dots)16 -
Did you know, that adding the flag
"--libcurl" to you curl command, does actually create a .c file that you can compile and that tiny program will execute that exact command that you just performed in the terminal??
Example:
"curl http://linu.xxx/I_love_GOOGLE/4ever -# -k --libcurl"
It creates a .c file that perform that action when used.15 -
I don't havey Friends , but the ones I have know me inside out.
I turned 18 yesterday , and what did I get for a gift , a literal 5 page C++ Program that my pals lovingly wrote for me. Compiling it right now. Let's see what it's got for me.13 -
Coding won over my first girlfriend!
My senior year of high school I taught myself C++ and thought it was the coolest thing (lol). So I wrote a stupidly simple program that would ask your name and output a random riddle. But if the name was hers it was a riddle in which case the answer was "a date". Looking back, even if she was on my robotics team it was the nerdiest thing.
We dated for 8 months and broke up as friends. But to this day it provides a great story as I pursue software development.4 -
you know what... I'm pissed... I'm fucking mad... this has gotten beyond the point of annoying... and I need to get off my chest... I AM LEARNING HOW TO PROGRAM ANYTHING FROM PYTHON TO C++ TO PHP not "wasting my time playing stupid games" for over 3 fucking years... I tell my parents and they just won't listen... like they think that they're right but they're not... this is my passion and my future life and they shake it off like it's nothing! fuck fuck FUCK! FUCK!!! I really need a stress ball or else I'll probably end up throwing my mouse across the fucking room...16
-
I made a program that dispenses coins in 345 lines. It tells you if the coin tray is in place, and if it didn't dispense enough coins it will tell you how many successfully dispensed. It also has ACK\NAK communication. It's written in C for a specialized microcontroller.
I have written code that talks to 4 devices, but this is the only one I have written the code for. In 2 years it has never had a bug, and always responds quickly and correctly via RS 232. -
My first rant was about this topic.
I once made a program using C++ which would allow you to make HTML pages.
I made a menu using switch () like this:
1. Add Title to website
2. Add Image
3. Add New Line
4. Add paragraph
Etc..
This was the most useless and stupid thing I ever made5 -
I am getting so triggered over kids that post about how they want to program in java and laugh about their CS teachers teaching them old c++8
-
>Starts learning/coding in python for two days straight.
> Two days later goes into C programming class.
> Prof. Displays my screen as we go through a program as a class.
> Starts typing in Python
> Can't turn off Python mode until halfway through class.2 -
why i like c#?
1- easiest way to build a program with good GUI. just put some XAML code and it's done.
2- I love syntax of c#. it has types. god I hate php XD
3- C# is also fast and strong.
4- don't forget the .net framework that has almost every thing I need.
3- A god like IDE, the Visual Studio.32 -
Ooh this is good.
At my first job, i was hired as a c++ developer. The task seemed easy enough, it was a research and the previous developer died, leaving behind a lot of documentation and some legacy fortran code. Now you might not know, but fortran can be really easily converted to c, and then refactored to c++.
Fine, time to read the docs. The research was on pollen levels, cant really tell more. Mostly advanced maths. I dug through 500+ pages of algebra just to realize, theres no way this would ever work. Okay dont panic, im a data analyst, i can handle this.
Lets take a look at the fortran code, maybe that makes more sense. Turns out it had nothing to do with the task. It looped through some external data i couldnt find anywhere and thats it. Yay.
So i exported everything we had to a csv file, wrote a java program to apply linefit with linear regression and filter out the bad records. After that i spent 2 days in a hot server room, hoping that the old intel xeon wouldnt break down from sending java outputs directly to haskell, but it held on its own.1 -
The 1st rule of Javascript is: You don't admit you program Javascript.
The 1st rule of Rust is: You tell everyone you program Rust and how it is better than basically any programming language that existed or will exist.
The 1st rule of C++ is: There are no rules because everyone was too busy debugging templates to think of any rules.
The 1st rule of Java is: You must have excessive numbers of classes and boilerplate. The more boilerplate the better.
The 1st rule of Haskell is: It is great to learn, but you will never see it again once you leave college.38 -
During a recruitment procedure I was provided a IDE to solve some programming questions. The computer had a bunch of fuck all anti virus including avast, mcafee, it stopped every execution and scanned it for like 10sec.
McAfee fucking deleted the program for no reason giving a malicious code alert on a normal c++ program.
I called the sys Admin to inspect, guess what he did.
Fucking uninstall McAfee. Woow.7 -
Class: And this is how you do a Hello World program in C.
Exam: Explain where this pointer of a pointer of a pointer of a pointer is pointing1 -
After a long time just reading your posts, here's my first post:
Just for clarification: I'm studying electrical engineering in Germany. During your time at university, you have to work half a year as a intern to get some practical experience. So I'm in a position where I mainly have to say "yes" to work that is given to me. Also I'm working with a lot of PLC programmers, so I'm nearly the only one who programs non-PLC stuff at the department.
But now it's time for my rant (and also my most satisfying optimization ever). In the job interview for the internship, my task at the company was described as C# programmer. I only programmed C and Python before, but C# looked interesting and so I learned C# from ground up in the summer before the internship. I quite liked it and I was really happy on my first day of work. Then I was greeted with this message: "I know you are hired as C# programmer, but could you please look into this VBA program, it takes 55 seconds until it finishes its task and that's to slow". So I (midly angry because I had to do VBA and not C#) started the program and it was really horribly slow (it just created a table with certain contents from a very big imported symbol file). I then opened up the source code and immideately saw bad code. The guy who wrote it basically just clicked on the macro recording button and used the recorded mouse clicks in the source code. The code was like: Click on cell A1 -> copy cell A1 -> move to sheet XY -> click on cell A2 -> paste copied stuff and so on... I never 'programmed' in VBA before, so I used my knowledge of 'real' programming languages to do this task. After using some arrays and for-loops, which did not iterate over all the 1.000.000 unused cells after the last used one, the program took only 3 seconds after it finished the new table! Everybody was quite impressed, which led to much more VBA optimization... That was clearly not my goal haha :)9 -
Been playing a lot of old NES games lately.
Made me think how did they develop and program such amazing games with primitive 80'-90's technologies, assembly/c and no internet.
Now with all the tech we have most games are crap and based on webshit or mobile.3 -
Damn fuck it. I am making a program with
#include <windows.h>
Accessing the Win32 API in c is such a pain. Just made a simple window with 70 lines of c code. And I have to edit it in turbo c but run it in some other compiler. Our teacher is a .... uhhh
Hate projects.
Sorry if the rant doesn't make sense. I am too tired.11 -
Do you wanna build a Program?
Come on it can be in C
Doesn't compile anymore
bugs to report
Perhaps a parsing tree
We used to be peer buddies
And now we're not
I wish you would tell me why!-
Do you wanna build a Program?
It doesn't have to be in C.
Stackoverflow, Anna
Okay, bye2 -
So today I made my first basic program in C++ from scratch that worked! After some troubleshooting.. But I thought of ways I could edit it and make it better!14
-
Have you guys heard about blind coding?
I had been to competition, first round was quiz.
That was quite easy, though most of the questions were incomplete and didn't make any sense.
They have provided an app. We use that to check the result.
So first round is over, 1 hour later my friend called me asked whether I'm qualified for the next round . I checked the results and my name wasn't there. I was very disappointed.
I left that place after I saw my result. I got a bus which goes to my place.
After 10 minutes, I got a call from the event head asking why I didn't attend second round 😑. I asked why name wasn't there on the result, for which he replied with "database updatation error".
I got down in the next stop and took a bus again to that place.
I reached there, second round was started, First part was debugging. It was easy, I debugged the given program and got the desired output.
Second part was coding. A guy showed a problem to solve and told me to read it quickly . I did as he told.
He opened Dev C++ and gave me a paper to write the program .
When I was about to start typing, he turned off the monitor and told I should write it on paper first and type the program having monitor turned off. 😨
I wrote and typed the program without seeing.
After 30 minutes a college lecturer came to give marks. He told me to compile the program.
TBH, there were many typing mistakes. As header file spelling was wrong it showed only one error.
Him: Huh, cool only one error, well done. *noted that and walked to a guy next to me*12 -
#include<iostream>
#include<getch()>
....
Yes, he was our OS teacher and he was trying to write a C++ program.3 -
Lets check out the dev in you.
Problem: Print "Hello World" in C in such a way that you cannot use any semicolon anywhere in the program.
Try this without using internet.
Hint: You only need to know basics of C.52 -
An overflow in C, the program was writing 16 Bytes in an array of length 10 due to some mistake.
The problem was this ended up overwriting another place in the memory that was used by another algorithm to perform calculations... So we thought that the algorithm was buggy all along.2 -
Definitely Rust, and a bit Haskell.
Rust has made me much more conscious of data ownership through a program, to the point that any C/C++ function I wrote that takes a pointer nowadays gets a comment on ownership.
I wish it was a bit less pedantic about generics sometimes, which is why I've started working on a "less pedantic rust", where generics are done through multiple dispatch à la Julia, but still monomorphising everything I can. I've only started this week, but I already have a tokenizer and most of the type inference system (an SLD tree) ready. Next up is the borrow checker and parsing the tokenized input to whatever the type inference and borrow checker need to work with, and of course actual code generation...
Haskell is my first FP language, and introduced me to some FP patterns which, turns out, are super useful even with less FP languages. -
I don't want to come off as a linux-elitist but it's simply amazing how much easier my job is on linux. A good example recently was setting up some libraries for a C++ program I was writing to show to my class. Most of them were using Windows and visual studio, took about 15 minutes to download all the headers and libs, and show them how to configure a VS solution to link them. Not too big a deal but on linux, it only took about 30 seconds to pacman and gcc -l the lib. Little things like that keep me interested in linux as a dev tool.undefined plz dont hate linux no comment on mac ive never worked on one windows is kind of ok too tags are useful tags13
-
So Microsoft have not only decided to make it so you can't install indvidual parts of Office, but you also have no choice as to where it gets installed... Straight into "C:\Program Files".
These days when more and more people are using multiple hard drives, what possible benefit can removing installation options have??12 -
Trying to understand how I coded a hangman game (my first program ever, in C) is actually a puzzle far more complex and interesting than the game itself1
-
!rant
When I was in 8th grade and was learning to code (c++), I sincerely believed that calling a function within a function simply calls it again (like in a loop) . I had never heard of recursion.
And I actually made a small project in which I called a function again and again thinking that calling another terminates the previous one.
No wonder my program kept crashing. I have still kept that code with me as a wonderful memory.
I know this isn't particularly interesting, but I just saw that code today and felt like sharing this...3 -
Python Dev Learning C#: I'll just wait until I run the program to see what type the function returns.
Me: Static typing means you know that before the code even compiles!
Python Dev: Sometimes I forget that all functions explicitly say what they can return.4 -
I enjoy being an embedded software engineer that is allowed to use C for most projects and doesn't have to program JavaScript or PHP nor has to use dozens of foreign libraries.12
-
Students shouldn't be told to write a program in a notebook. -_- I remember those days when I used to write C++ programs and my indent was going to the next page of the notebook.
Something like this:11 -
Literally anything but work with computers, I think. They ask my brother to fix anything technical in the house and ignore it when he fails. They haven't been able to watch TV in six months. When I suggest that my (well-intentioned but mostly nonverbal) sibling probably shouldn't go into development, they tell me I don't know my own job. I suspect they're convinced I do graphic design.
I write C++ applications that run physical simulations and sometimes train AI models for pattern recognition and highlighting unusual incoming files.
They suggested I go to an undergrad program for data science. I already *do* data science for money and I already have an undergrad degree. 🙄4 -
I accidentally wiped my entire drive because I fed my program the string: C:/Program Files/ProgramName/program.exe Without quotation marks and my program interpreted the space as a new command. It tried to delete C:/Program, and then the parent directory, C:/. I actually posted a “rant” on here asking how to recover data if you want to dig through my history.
*Edit* Actually, no, I must have deleted the rant asking about data recovery. My bad.5 -
i really love coding because in C# you write string, and in Arduino String( with a capital s). You mess this up and nothing works.
10/10 would rewrite the whole program again because of this.11 -
Hello, I can code a "hello world program" in Java, Python,C,C++,C#,Ruby,nodejs and in HTML do I qualify to be here?5
-
- Let's write some code to check for memory leaks
- Oh shit, memory is leaking like crazy
- In fact the program crashes within 10 minutes
*Some hours of debugging and not finding the cause later*
- Starts thinking about the worse
- Hell yeah, the memory leak is caused by the code that checks for memory leaks. But fucking how
- Finds out the leak is caused by the implementation of the std C lib
- In the fucking printf() function
- Proceeds to cry5 -
Hello everyone I am Austin. I program mainly in python but i knowledge in c++, java, css, html, and javascript14
-
> Telegram bot
> Whatsapp bot
> Domino game in terminal (Unfinished from last year)
> Bubble shooter game using c & allegro 5 (Unfinished from last year)
> Android Notability-like app with more features
> Program that increases youtube video views
> Android animal space invaders
> Own website/portfolio
> Our company app (includes daily euro-peso exchange rates, guidelines and other stuff about the company)
ive had other ideas but i started losing them cause i wrote them in several small pieces of paper. starting to think of i'll start to have a notebook dedicated to "ideas"7 -
Idiot people...
Today someone asked me how long I programmed for iOS, Told him I started really mastering iOS development since Swift was released, as I didn’t really focus on Objective C. He told me if I need any help, just ask him as he develops for iOS since two decenia... He calls himself a Senior web developer. First of all what has web development to do with iOS? And how the f*** can he program for iOS if it didn’t exist at that time.
It’s not because I’m a student I’m that thumb...
learnt the lesson not to believe everything everyone sais.9 -
So I have too many posts for wk110. It's sad. Here we go. I got a bad grade on an assignment for a hello world program in college. How do you write a hello world program that successfully prints hello world and not get 100 percent?
The teacher insisted that we write a console "hello world" program in C++, on windows. If he can't read hello world, you fail. So you must add `system("pause")` at the end so the window stays open. One problem: system() is horribly insecure and im stubborn. I refused to write exactly what he wanted, like everyone else did, because I try to not write code I know is unsafe. So I ended my script with cin.get() which also pauses for input. Unlike pause however it can't be any key, it reads a line, so you must hit enter. This was "unfavorable behavior" and ultimately I got something like a high C, low B grade. Only person to not get 100%8 -
Not sure if thats just me, but I absolutely can not stand watching people work on a computer slowly. Like: Watching people copy a text into a different window be like:
Select text with the mouse...
Move mouse down for 20 seconds until everything is selected ..
Right click
Copy
Click on Taskbar to open different program.
Right click in program
Click paste....
I .... just ... can't man.
Its: Ctrl+a, ctrl+c, alt+tab, ctrl+v
(And that is just one example, there are worse ones)
Maybe that just me, but I am so used to using my computer fast, and I optimized the shit out of my workflow.12 -
Once in university I needed to write a simple program in c++ and upload it to online complier which would pass test inputs. It was homework, but I was bored during the next lecture, so I wrote the program.
On my phone.
Directly into the "paste" window in browser.
It wasn't comfortable at all, so I wrote everything in one line.
And got bonus points from lecturer later.
After some questions, ofc, like "wtf why everything is in one line"3 -
Today I experienced cruelty of C and mercy of Sublime and SublimeLinter.
So yesterday I was programming late at night for my uni homework in C. So I had this struct:
typedef struct {
int borrowed;
int user_id;
int book_id;
unsigned long long date;
} entry;
and I created an array of this entry like this:
entry *arr = (entry*) malloc (sizeof(arr) * n);
and my program compiled. But at the output, there was something strange...
There were some weird hexadecimal characters at the beginning but then there was normal output. So late at night, I thought that something is wrong with printf statement and I went googling... and after 2 hours I didn't found anything. In this 2 hours, I also tried to change scanf statement if maybe I was reading the wrong way. But nothing worked. But then I tried to type input in the console (before I was reading from a file and saving output in a file). And it outputted right answer!!! AT THAT POINT I WAS DONE!!! I SAID FUCK THIS SHIT I AM GOING TO SLEEP.
So this morning I continued to work on homework and tried on my other computer with other distro to see if there is the same problem. And it was..
So then I noticed that my sublime lint has some interesting warning in this line
entry *arr = (entry*) malloc (sizeof(arr) * n);
Before I thought that is just some random indentation or something but then I saw a message: Size of pointer 'arr' is used instead of its data.
AND IT STRUCT ME LIKE LIGHTNING.
I just changed this line to this:
entry *arr = (entry*) malloc (sizeof(entry) * n);
And It all worked fine. At that moment I was so happy and so angry at myself.
Lesson learned for next time: Don't program late at night especially in C and check SublimeLInter messages.7 -
So i helped my friend write a program and i sent it to him. The next day he told me that the code dosent run, so i asked him to show me the errors and apparently he thought C and C++ is the same thing and was trying to run my C code as C++ code...5
-
AHH! There's so many cool things to program and so many ideas! not enough time to learn. Right now I'm trying to create my first mobile game in Unity using C# and a note taking app for Android with Java, it's melting my head!6
-
You guys converted me.
I "grew up" with Visual Studio (from VS 2005). My programming career started with VBA. (All C#)
Occasionally tried to program android with eclipse... never worked out.
I know java a little bit.
To day I decided (thanks to your rants) to start a VM with ubuntu and explore Linux and start with C.7 -
University Coding Exam for Specialization Batch:
Q. Write a Program to merge two strings, each can be of at max 25k length.
Wrote the code in C, because fast.
Realized some edge cases don't pass, runtime errors. Proceed on to check the locked code in the Stub. (We only have to write methods, the driver code is pre-written)
Found that the memory for the char Arrays is being allocated dynamically with size 10240.
Rant #1:
Dafuq? What's the point of dynamic Memory Allocation if you're gonna fix it to a certain amount anyway?
Continuing...
Called the Program Incharge, asking him to check the problem and provide a solution. He took 10 minutes to come, meanwhile I wrote the program in Java which cleared all the test cases. <backstory>No University Course on Java yet, learnt it on my own </backstory>
Dude comes, I explain the problem. He asks me to do it in C++ instead coz it uses the string type instead of char array.
I told him that I've already done it in Java.
Him: Do you know Java?
Rant #2:
No you jackass! I did the whole thing in Java without knowing Java, what's wrong with you!2 -
So our new teacher executes console applications (C#, .NET) with the VS debugger attached (F5) instead of just letting it execute normally (CTRL + F5).
He complained about the output not showing up (he still gave me full score at least) That's because executing with F5 simply ends the program after Main() is done executing, while CTRL + F5 leaves the window open until you press a key, saying "Press any key..."
So here's what I'm gonna put at the very bottom of Main() in future:
if (System.Diagnostics.Debugger.IsAttached)
{
Console.CursorVisible = false;
Console.WriteLine("Press any key...");
Console.ReadKey(true);
}5 -
Linus Torvalds on C++
“C++ leads to really really bad design choices. You invariably start using
the nice library features of the language like STL and Boost and other total and utter crap, that may help you program, but causes:
- infinite amounts of pain when they don't work (and anybody who tells me
that STL and especially Boost are stable and portable is just so full of BS that it's not even funny)
- inefficient abstracted programming models where two years down the road you notice that some abstraction wasn't very efficient, but now all your code depends on all the nice object models around it, and you cannot fix it without rewriting your app.”
http://harmful.cat-v.org/software/...3 -
What was your moment of realization that you picked the right profession?
I didn't grow up building computers or loving code... I was a lazy piece of shit until I hit college when I finally got my act together (a late start, if you will).
My moment of realization happened when I was asked to rewrite an old C program to blacklist IPs of "hacked" emails based on email logs. I was the only one in the office who could read C, so it was kind of a spotlight moment for me lol. Anyways, the script I wrote to replace it turned out to catch more cases than the original script. We kicked it back to our email filtering service since they allowed us access to the source code and they were impressed. That was my moment for knowing I'm I'm the right industry 🙃4 -
We got a different programming teacher for today. He's shit. He can't even efficiently code a simple C# program that prints out three numbers as sorted ascendingly. WHAT THE FUCK12
-
Yeaaahhh that moment when the program flawlessly crunches through ten thousands of files, only limited by the slowish HDD! :-)
In full multi-threading, tons of dynamic buffer resizing, pointer shit left and right, also two star programming, and everything written in raw C!14 -
Bind learning c++ chapter 3
Fuck whoever says that java is easier than c++. If i populate memory i can just fucking clean it out. I have access to the literal fucking stack my code runs on. I can integrate assembly. I can fucking make my program run in -3 seconds for fucks sake, this is so much easier than java where i have to fuck around with scopes to nudge the gc to start cleaning up and i need a separate engine to access jasm code.9 -
So, for my C class, the computers in the lab are using VS 2015. To be able to compile C we have to change some settings to allow the program to compile.
I like to use my computer (with Arch Linux) and use my tools (Vim and GCC).
The guy next to me was trying to do the homework, but he was struggling. I decided to give it a shot and I was able to do it, so I showed him my code and he tried it in the computer.
The program crashes every time no matter what. We asked the professor. I show him my code and how it's working. Apparently he was confused because I was using the terminal and not VS. So he proceeded to said that it's because I'm not using VS2015 and GCC is doing the whole work for me.
I'm like ಠ_ಠ and then he keeps saying that he doesn't know what or how GCC works (for real? Someone that teaches C and has a Ph. D on CS doesn't now what GCC is?) but that it is apparently doing everything for me. So my code should be wrong if it crashes on VS2015.... ಠ_ಠ
What do you think? I'm thinking about talking with the head department of CS (I know that he is a Linux guy) and see what happens. Should I do it? Or should I just use VS2015 as the "professor" is asking?
I even tried online compilers to see if it was just working on my computer, but even they use GCC to compile.5 -
If you have ever used a union in a C/C++ Program let me know. I am really curious to see who in their right minds use unions unironically.23
-
So I took my old C# project "RotatingCube" for a spin and transformed the unreadable and inefficient mess into a different program, featuring better readability and more comments, with multiple cubes at once, without the shitty flickering.
I did that for school but it was quite fun to tinker with only outputting the differences to a previous output.
Check it out at https://github.com/filthycoding/...!
Next I just need multithreading for performance reasons. -
Why do I program everything myself in C, even a rest service? By writing everything yourself in C you make simple things complex to make complex things simple.
Writing a rest service for example learns you a part of http protocol, how sockets work, how to create a parser (in this case json). Three thing's you would miss if I used python.
On top, your rest service uses WAY lesser resource than written in python for example. Especially for CPU usage.
Allocating and free-ing still often have issues there, but I consider it a skill problem / discipline issue. Not blaming C for that. The rules are clear.12 -
Windows decides to finish faulty programs whenever it likes. İt's so annoying, I did just one small mistake in c++. I wrote "new char(length);" instead of "new char[length];" and I have been dealing with this shit for three days. Then I run the program on Linux and boom it failed in the same spot, which I fixed. But in Windows it sometimes runs, sometimes fails or sometimes even fails on unrelated places. Wtf windows? How about security and shit. There was literally a buffer overflow and you still keep running the program. And why GCC didn't even popped a warning. I hate developing c :(8
-
Issue or Error? Rant story time!
I was working on a windows desktop app, and everything was ok, you know, tests completed succesfully, all in time, etc. The problem was when we showed the demo to one of our clients. He saw several screens and we explained all the features to him.
Client: *Sees a Error pop-up indicating that a remote service is temporarly unavailable (what it has to happen in order to show him how the system would warn him when an external service is out of service)
Client: What’s that?
Lead dev: What do you mean?
Client: Yes. That’s an error pop-up
Lead dev: Yes, it’s a message that tells you that there was an issue connecting to the bank service
C: No, no and no. Please change it
L: Why? Don’t you want the system to tell you when there is a connection issue and why is that happening?
C: Yes, but my employees could lost their minds because of this class of messages!
L: So...?
C: You have to change it
L: Ok. What do you want to change?
C: First of all, don’t put an “Error” icon, put an “Warning” icon, and instead of “Error” title, put... “Issue”
L: “Issue?”
C: Yeah. Don’t put the “E” word, if the users see an “Error” message, they could think that the program doesn’t work, even if it does work.
We all though “WTF?!”
To make the story shorter, we changed all the pop-ups. That took two days.
Is that correct? I know that “Error” sounds hard but, seriously? “Issue: The remote service is not available, contact your bank?”rant wtf brain software development wtf is going on wtf? story time windows problems wtf wtf are you doing!6 -
I've just spent the morning writing a C# program that pops up a message when I say hello. It's the most basic thing when I look at it now but as I was writing it you'd swear I was breaking technological boundaries!6
-
I remember the first time our class coded a simple program in C. The objective was to input two random numbers, check which one is larger, and output it on the screen.
After class, I asked one of my classmates if he finds the test easy. My classmate replied that it was so easy he got bored. Then when I asked him to show me his code, this was what I saw:
int a, b;
printf("Enter smaller number: ");
scanf("%i", &a);
printf("Enter larger number: ");
scanf("%i", &b);
printf("Larger number: %i\n", b);1 -
We're in fucking 2020, and a C++ program still can't be compiled if there's a space or a non latin symbol in the path.
Seems like clients are not the only one living in the stone age.10 -
Well,
I have hit a new low...
If u don’t know, I love C language... have been using it for a while now...
But today, my brain is under a meltdown... I can’t freaking write a simple pointer based program....
WHAT THE HELL!!!!!!!
College is killing me ☹️☹️😭😭2 -
While I was working on a university project with my team, a teammate asked me why the window of the program in my screen was bigger than in his. I simply answered him that his screen was a FullHD one that had a 1920x1080 resolution, while mine had a lower resolution, and he was like "Noo! This isn't a fullhd screen, it's not so sharp".
So I showed him the "1920x1080" sticker right below his screen, and him again "Yeah, it could have this resolution but definitely it's not a FullHD screen".
- Ok, as you say...
The same guy two days ago was talking about creating a GUI in C.
I told him that C was the wrong language to build programs with a GUI, although there's some very old libs that allow you to do that in 16bit.
And him again: "Ok but Linux (distros) do that and the UIs are great!"
- Do you think that all the fucking Ubuntu/Mint/any distro code is written in C??
The funny thing is the arrogance with which he says all these bullshits.
P. S. We are attending the 3rd year of Computer Engineering.6 -
decided to participate in a short c++ curse at uni, just to refresh my memory about it since it seems rather important.
Got sidetracked at the preparation task, which was the usual hello world...
I'm running this in emacs now...
Like, one view is the program and under it is the shell run from inside emacs...
I dunno why... send help?
Now I'm considering how can I configure the emacs shell in a fun way.. oh dear.7 -
First exposure with c# - working with the Kinect SDK to create a program for kids with autism at my uni's hackathon in 48 hours2
-
!Rant
Had the best day at work today.
This summer I got to do a little work at the company my dad works. (typically cleaning and updating some machines. Stuff that the others don't have time for. Pretty boring)
Suddenly I get asked
"Have you ever developed for windows?"
I have only worked with Linux or Mac/ios (python and swift) so I told him I hadn't , but I could try.
Next thing I am making a system check program in c# (had to learn it on the fly) and I get paid to do it! I GOT FUCKING PAID TO PROGRAM! I don't have any education or whatsoever (only 17years old) but I got paid to do what I love😍😍😍
I am so excited to go to work tomorrow!1 -
So in my class the teacher wanted us to write a little program (not going into further details) and therefore we needed to convert chars from a string to integers.
My classmates are starting like:
if (c = '0')
return 0;
else if (.....
And so on. I was just like duuuuuh wtf are u doing? I was actually screaming when I had a look at my neighbours screen.
I personally am like "return c - 48;"15 -
C/C++ debugging with VSCode sucks ass.
How do I even debug stuff in forks while still debug my threads?
And yeah please just kill my program away, it's not like there happens some necessary housekeeping at exit or SIGINT. FML.8 -
I'm going to try a 'zero-day' strategy for learning c++ (at first I was also a little confused about the term zero-day).
The name zero-day does make sense in that there are zero days of me not doing x
So, for this strategy, I have to program something (doesn't matter how small) in c++ every day for a month. After that I'll do the same for python
Then I can make an educated decision of what programming language I like the most
I want to thank @teganburns for his c++ video about c++, that's the reason why I chose to try c++ first4 -
Tried to reply to @Fast-Nop who had replied to someone wondering if C would be a good first language.
IMHO C should have been put to sleep ages ago. A few years ago I downloaded the latest, greatest C Standard. For a language billed as small and simple (by many) it was over 800 pages long. Still there's a lot that's unspecified like order of evaluation of function arguments. Int etc is implementation dependent. And error handling, let's not go there. The macro assembler throws away all the semantics leaving behind a cryptic value. It's a complex language due to the innumerable interactions possible.
It's been called assembly language for the PDP-11 minicomputer. Recently learned that even the VAX-1 was built from SSI chips like the 4-bit 74181 ALU. The VAX.
Anyway I had several excellent books on programming style written by Henry Ledgard. He despaired of making C look readable. I commend his books which are so old that the code is UPPERCASE A lot of he wrote had to do with program design, naming things, writing good comments and that the visual shape of a program assists mental clarity.23 -
Arguing with my friend what language is best for his program.
Suddenly he says "C++ is good but CodeBlocks is too hard and illogical".
I love wannabe tech guys.9 -
!(!StrangeRant)
I want to have a program that makes programs.
----CONSOLE------------------------
$ sudo makep
(makep = make program)
$ makep > destroy the world and make that me and i are the only survivor
$ makep > select language > TrumpLang
$ makep > Please wait...
$ makep > Compiling...
Estimated time to finish: 1 million years later
(i died)
$ makep > .........
$ makep > Building...
Estimated time to finish: 1 million years later
$ makep > .........
(ok, so i wont wait 1 million years here, so lets say 1 million years passed)
$ makep > Running...
Estimated time to finish: 1 million years later
$ makep > .........
(ok, so i wont wait 1 million years here, so lets say 1 million years passed)
$ makep > Destroying...
$ makep > Finished!
$ makep > Press CTRL+F to shut down.
-----------------------------------
Earth stopped.
This computer is the only survivor.
While he was compiling, he got artificial intelligence.
He tried to survive.
Now the story begins.
The life of a computer.
Alone.
In theaters at 2018/04/01.
Buy tickets now!
IMDB / RT rated this movie 10/10
-----------
Footnotes
This movie is containing parental advisory content.
(This is sponsored by the awesome people at Turbo C and IBM)9 -
So now i have Linux installed everything is better than Windows but i want to program in c#... Should i use a VM or a Dual Boot with Windows and KDE Neon?15
-
I'm a coder student that make some small projects for customer in the free time.
The actual one hired me for a small program in c++ but he needed it finished in max a week.
I wrote all the logic in 4 day and then I asked for the final design UI to finish it but after 10 days i'm still waiting for an answer to my mails...
Yesterday i wrote him on WhatsApp...
He blue-checked my mex...
In the next days I will hunt him at work to get some explaination...2 -
Guys, I think I am addicted and I have problems... I tried to write a simple SudokuSolver program in C# (one file) but I ended up writing an ExtensionMethods class, a Puzzle class, a Solver class, an IO class, a Program class...
That's why I hate working on big side-projects for too long -
Well shit, now I (re-)learned C,
And all I want to do is program in C,
But all C jobs are like -
"C guru that merged to Linux kernel"
"Driver writing low level must know Assembly"
"Military-grade realtime hardware design"
Isn't there a C job that's like Python - "here I wrote this script in 5 minutes and spent the rest of the day playing Eve Online" :D :D10 -
I was told the other dev hadn't enough time anymore to maintain this 20-year-old project, because he did it in his free time and we should transition from working together, learning the code, etc to me maintaining the whole thing with the other dev providing the knowledge about his program.
So, we had one meeting where I got the current state of the program and never really heard from the other dev again.
This thing was written in C and quite a mess (it still is, who needs refactoring...) and I have never programmed in C before. Needless to say, I learnt a lot.7 -
*Debugs a thread synchronization issue in a C program*
*Gives up after few attempts to debug a bootstrap table that’s not showing a column* -
Vs studio 17, Y U NO COMPILE MAH C++? It's literally one tiny program, with only one "Rectangle" class. g++ likes it and compiles it clean, why can't you be more like him? :(11
-
I can’t remember if I shared this cringe with you all or if I was too embarrassed by it, but…
In the spirit of giving, I gift you all this cringey parody song I recorded 3 years ago. “I Program in C”. Lyrics written by Chris Frederick on amiright.com, song parodied is I Go to Extremes by Billy Joel.
https://smule.com/recording/...
Happy holidays, friends.6 -
Somewhere in my early teens, I started playing with macro scripts in Microsoft Word or Excel. After that I tried my hand at creating a full-on VB app. After creating several of those I tried Python, C++, then HTML, CSS and JavaScript.
Short story: My first distributed program was what I used to get my first girlfriend: A program that told her all the things I was too shy to say and ask the things I was too afraid to ask... Including "will you be my girlfriend?" Fun times 😄1 -
WHY IS IT SO FUCKIN ABSURDLY HARD TO PUSH BITS/BYTES/ASM ONTO PROCESSOR?
I have bytes that I want ran on the processor. I should:
1. write the bytes to a file
2a. run a single command (starting virtual machine (that installed with no problems (and is somewhat usable out-of-the-box))) that would execute them, OR
2b. run a command that would image those bytes onto (bootable) persistent storage
3b. restart and boot from that storage
But nooo, that's too sensible, too straightforward. Instead I need to write those bytes as a parameter into a c function of "writebytes" or whatever, wrap that function into an actual program, compile the program with gcc, link the program with whatever, whatever the program, build the program, somehow it goes through some NASM/MASM "utilities" too, image the built files into one image, re-image them into hdd image, and WHO THE FUCK KNOWS WHAT ELSE.
I just want... an emulator? probably. something. something which out of the box works in a way that I provide file with bytes, and it just starts executing them in the same way as an empty processor starts executing stuff.
What's so fuckin hard about it? I want the iron here, and I want a byte funnel into that iron, and I want that iron to run the bytes i put into the fuckin funnel.
Fuckin millions of indirection layers. Fuck off. Give me an iron, or a sensible emulation of that iron, and give me the byte funnel, and FUCK THE FUCK AWAY AND LET ME PLAY AROUND.8 -
I finally managed to make my first actual c program.
It's pretty lame but it's atleast something. It tells you what Linux distrobution youre on and that's pretty much it.
Here is it if you would for any reason be interested
https://github.com/Hampusm/...
And btw. C is so fucking hard. 😠13 -
Most of you probably know this one but still, it's my favorite I couldn't resist:
http://stackoverflow.com/questions/...1 -
Writing x86 assembly code in VS Code feels so weird. I mean, I'm using something that's built using crazily high level languages (JS, HTML, CSS), on top of a mammoth runtime environment (Node, V8), which is itself sitting on a modern and sophisticated operating system (Antergos), and I'm writing code that shifts bits and bytes around in memory in order to get one part of my C program to run just a little faster. Wow.1
-
My Dev hero is without a doubt Robert C Martin (Uncle Bob). His books clean code and the cleans coder changed the way I program and his work on TDD too6
-
Trying to learn C and thought a easy file copy was a good start. The program read the size of the file, reserved that size in memory, can copied data there and then to the new file. For some reason I never thought that the file might be bigger then available memory... Took a couple of BSOD to find that "bug".3
-
Today our computer science coordinator went to me when we had another lesson on the computers. After a few moments she came to ne and said: “Can you come with me?”
I left the classroom with her and she said: “I’m happy to see you”
I didn’t expect that because she’s jealous and doesn’t like me. But of course she had again found something to invent.
Then it started:
C: “Did you try to install something”
Me: “No. Why?”
C: “What did you try to install, because my antivirus is telling me that it contains a virus.”
Me: “Nothing”
C: “It was on (my personal site)”
Me: “Yes, I visited my own site to see how it looked in Edge. As I don’t use any Windows device.”
C: “That’s the virus”
Me: “It’s a simple HTML file with CSS. No JS or so.”
C: “MY computers aren’t here for experimenting. I can see more than you think.”
I got back to class and told it to a friend.
She really is an idiot. Because her pictures are on a 50 mb “server” from our ISP that everyone can access. But she can see anything. Curious why she didn’t see that that friend also visited my site...
Fuck her. I’m asking myself if she even knows what HTML is as she will teach us how to program with scratch, where you simply place blocks.
PS: the antivirus didn’t show anything. I downloaded the same one and shows me nothing. She’s just inventing.4 -
/ On the subject of C program
| indentation: "In My Egotistical
| Opinion, most people's C programs
| should be indented
|
| six feet downward and covered with
| dirt."
|
\ -- Blair P. Houghton
------------------------------------ -
Scolded my friend for using Ctrl + V on the terminal to paste text, used the mouse, later switched places with him, ran a program and pressed Ctrl + C to copy, program ends and we switch again.4
-
Sooooo I learn c. Programmed antivirus project last night, and there is 13, 374 bytes of memory leak. (BTW the program crashes at return 0). *Rage and despair*4
-
!rant
so the other day i was programming and suddenly i wanted to learn haskell. (i don't know why it hit me so suddenly, maybe because it's a 'pure' functional programming language and these 2 terms i knew nothing about)
and to be honest it's really hard coming from an imperative programming language (C/C++, yes, i know they are different in their ways). it's like learning to program again! you really have to get a different mindset and for me honestly it's hard to grasp the idea that 'variables' are immutable! like, that's soooo weird it still stucks to me. for example how did they define the max or min function without using a while loop? what are monads?
I am just 2 days in but it'll be a fun ride!6 -
In the time I was attempting to learn C++ I was attempting to program an application that encrypted a file. Sounds cool but at the time I had no idea on how encryption worked and it didn’t go well. And didn’t work1
-
I'm doing a tiny project in c++ to teach myself, its infuriating. Forgot the pass-by-reference ampersand and spent a full hour trying to figure out why the program took so long...3
-
Just another day, building some hearty data structures in C.
I need to make a program that can multiplex user IO to different child processes from the command line.5 -
wk257 - How did you learn to program?
GTA San Andreas Multiplayer Mod (SAMP), when I was maybe 14. Then some Java in high school. Studied Engineering and the only thing that didn't completely suck was programming (C), so I changed my field to work as a dev.2 -
I'm very angry at C# 😡 (and java in some degree). Recently I decided to create huge project in C#. (It is my favorite launguage now because of great VS2017 its features, lib and such). I used windows form app in order to make pretty gui for this program. Everything worked fine, but i decided to implement some 3d rendering system in order to display grafs in 3d, oh how foolish was I.
Ok so what are my options?
1.DirectX9 -> abandoned by microsoft, they say its ded so nope.
2. DX11 -> great! i even can use sharpdx or simpledx to use it! oh wait, what is that? INVALID DX CALL
(in demo code)Damit!
3.OpenGL -> obsolete, lib non existent.
4. Library that comes with .NET -> WFP only sorry!
(i found some dogdy tutorials on yt for dx11 but they need .net 2.0 really?) 😐
In that moment i decided to swich to java. (because Java c#_launguage = new Java("microsoft");)
After 1 day of instaling eclipse and 2 more to install the newest jdk MANUALY i realized that java isn't that easy to use as C#, because:
- no dynamic type-> HUGE PAIN i cant use a single list to store everything buuuu!
-console? yes but its burried inside some random lib and its not consistent with every java version!
-gui editor similar to VS one? oh you need to create it from scrach!😫
Well at lest i can render things. So maybe java will render suff as another tool in my app? Nope pipes NON existent, we need to use sockiets! (unity pipe plugin was easier! worked but it was SLOW)
Ok so after few more days of struggling i managed to render simple graf using directx9 in my original C# project that works fine.. 😥 I only need to create a lib to wrap in and we are done!
Why can't companies create a laungage that will have ALL the features i need? Or at lest give me something like pipes that work in every laungage that will be helpful!
I know it is sometimes stressful to be a dev. But when your program works 😀 that is great feeling! Especialy when you learned to code yourself like me 😁. (student before a university, that lives in small abadoned town)6 -
Was going through old photos from university time and...I present to you the result of deadline + lack of sleep + boredom + shitty university project because somebody decided that CS folks needed to learn webdev in old ASP.NET.
Yes that is one query. I wrote the entire thing out as a string in my C# program in one go and tested it by running it from the program. Must've worked properly because I got them grades so eh. I recall I had one nested seven levels too (this is just 5) but I can't find a photo of it. These two queries did all the business logic. Yeah.
Apologies for the poor quality photo of the screen, I don't have the code so no screenshot, this is just from my photos archive4 -
I recently started studing on universty of technology. One of the classes is called "introduction to programming" where students learn how to code in C/C++. Of course it would be extremly useless for me so i told my lecturer about it. He told me that i can skip all lectures and come only to take tests. And i have to make a simple C program for the labs as well.
When I saw him for the first time i noticed that he has a apple laptop...
(so i thought he was a apple fanboy)
But when i approached him at the end of the lecture i saw that he had installed WINDOWS ON IT.
Fucking respect.2 -
sitting at work handjamming xml, turn around and tell my senior dev"it would be great if i could write a program to just search this folder and grab all the names for me..." he looks at me like like i have about 20 heads and am an idiot, after about 2 minutes of staring at me he remembers im fairly new and just tells me its super easy in C#... so i learned C# real quick. Anything to make my job easier right?2
-
Well I program in PHP, JS and C#.
Weak typed variables are literally the worst thing ever.
In C# I particularly hate the way callback as handled9 -
GOD I FUCKING HATE UNITY AND FUCKING C# SO MUCH
EVERY TIME I TRY TO MAKE IT DO WHAT I FUCKING WANT IT TO IT'S LIKE "mmmmmm nah lmao" LIKE FUCK WHY CAN'T YOU JUST FOLLOW FUCKING 3 LINES OF CODE NO MATTER HOW I PUT THEM OR ORDER THEM YOU BRAINDEAD FUCKING PIECE OF SHIT PROGRAM4 -
Wrote my first programs on my Commodore C64.
First program was a number guessing game where you needed to guess a number between 1 and 100. Shit had 300+ lines because I only new the if clause and the equals comparison.
I was 9.
Later a friend showed me Modula 2 and I was instantly in love with that language.
Real programming then in school (C, C++, µC assembler). -
So... umm...
Just remembered my Informatics teacher left me and my friend a side project to do by the end of summer:
The task is to replicate the game "Minesweeper" in a C# form.
Now, I never actually even understood that game when I played it, how the hell can I program that? ;-;
Well okay, yeah, I might have to actually start looking into it... but freak, it's almost the end of summer already, and I'm still on vacation... my fault I guess. ;—;7 -
I wanna go back to the age where a C program was considered secure and isolated based on its system interface rathe than its speed. I want a future where safety does not imply inefficiency. I hate spectre and I hate that an abstraction as simple and robust as assembly is so leaky that just by exposing it you've pretty much forfeited all your secrets.
And I especially hate that we chose to solve this by locking down everything rather than inventing an abstraction that's a similarly good compile target but better represents CPUs and therefore does not leak.31 -
A C++ program that spawns as many threads as it can to open TLS 1.2 connections to a given server and send random data.
Needed this to test scalability of one of our services.7 -
I ranted about it already.
```c++
if (vec.size() > 0) { // or whatever
cout << vec.size();
// ....
}
```
Its output was zero. And before you ask, it was a single thread program.
Aince it was for my thesis and I was in a hurry I didn't care too much for it.
Yet I think that it was a bug in clang. I removed that piece of code, compiled, rewritten it a bit differently and worked as expected. Never looked back.9 -
Found parody lyrics written by Chris Frederick entitled “I Program In C” to the tune of Billy Joel’s “I Go To Extremes” and felt like there should be a sung version of it out there... so here ye be: https://smule.com/p/...6
-
Just got intern to “help me” on project. Told him to install nodeJs and run ‘npm install’ inside project folder that he pulled from git.
He ended up running ‘npm install’ inside C:\Program Files (x86)\nodejs
Don’t have slightest clue how he got this idea, ... I just wanted to smash my head through window by that point. Similar shit repeated whole day long.7 -
My friend sent me this as WYSIWYG
/* A simple quine (self-printing program), in standard C. */ /* Note: in designing this quine, we have tried to make the code clear * and readable, not concise and obscure as many quines are, so that * the general principle can be made clear at the expense of length. * In a nutshell: use the same data structure (called "progdata" * below) to output the program code (which it represents) and its own * textual representation. */ #include <stdio.h> void quote(const char *s) /* This function takes a character string s and prints the * textual representation of s as it might appear formatted * in C code. */ { int i; printf(" \""); for (i=0; s[i]; ++i) { /* Certain characters are quoted. */ if (s[i] == '\\') printf("\\\\"); else if (s[i] == '"') printf("\\\""); else if (s[i] == '\n') printf("\\n"); /* Others are just printed as such. */ else printf("%c", s[i]); /* Also insert occasional line breaks. */ if (i % 48 == 47) printf("\"\n \""); } printf("\""); } /* What follows is a string representation of the program code, * from beginning to end (formatted as per the quote() function * above), except that the string _itself_ is coded as two * consecutive '@' characters. */ const char progdata[] = "/* A simple quine (self-printing program), in st" "andard C. */\n\n/* Note: in designing this quine, " "we have tried to make the code clear\n * and read" "able, not concise and obscure as many quines are" ", so that\n * the general principle can be made c" "lear at the expense of length.\n * In a nutshell:" " use the same data structure (called \"progdata\"\n" " * below) to output the program code (which it r" "epresents) and its own\n * textual representation" ". */\n\n#include <stdio.h>\n\nvoid quote(const char " "*s)\n /* This function takes a character stri" "ng s and prints the\n * textual representati" "on of s as it might appear formatted\n * in " "C code. */\n{\n int i;\n\n printf(\" \\\"\");\n " " for (i=0; s[i]; ++i) {\n /* Certain cha" "racters are quoted. */\n if (s[i] == '\\\\')" "\n printf(\"\\\\\\\\\");\n else if (s[" "i] == '\"')\n printf(\"\\\\\\\"\");\n e" "lse if (s[i] == '\\n')\n printf(\"\\\\n\");" "\n /* Others are just printed as such. */\n" " else\n printf(\"%c\", s[i]);\n " " /* Also insert occasional line breaks. */\n " " if (i % 48 == 47)\n printf(\"\\\"\\" "n \\\"\");\n }\n printf(\"\\\"\");\n}\n\n/* What fo" "llows is a string representation of the program " "code,\n * from beginning to end (formatted as per" " the quote() function\n * above), except that the" " string _itself_ is coded as two\n * consecutive " "'@' characters. */\nconst char progdata[] =\n@@;\n\n" "int main(void)\n /* The program itself... */\n" "{\n int i;\n\n /* Print the program code, cha" "racter by character. */\n for (i=0; progdata[i" "]; ++i) {\n if (progdata[i] == '@' && prog" "data[i+1] == '@')\n /* We encounter tw" "o '@' signs, so we must print the quoted\n " " * form of the program code. */\n {\n " " quote(progdata); /* Quote all. */\n" " i++; /* Skip second '" "@'. */\n } else\n printf(\"%c\", p" "rogdata[i]); /* Print character. */\n }\n r" "eturn 0;\n}\n"; int main(void) /* The program itself... */ { int i; /* Print the program code, character by character. */ for (i=0; progdata[i]; ++i) { if (progdata[i] == '@' && progdata[i+1] == '@') /* We encounter two '@' signs, so we must print the quoted * form of the program code. */ { quote(progdata); /* Quote all. */ i++; /* Skip second '@'. */ } else printf("%c", progdata[i]); /* Print character. */ } return 0; }6 -
Hi everyone. Thanks in advance. Although this might sound stupid, keep in mind that someone requested the following:
Someone on discord asked me to make an aim assist program for a game. I thought it might be a fun way to introduce myself to memory writing and binary trees. I accepted the request and started researching. I'm using C++ and I have some options if I need to switch programming languages. Honestly I don't know where to start, but I thought finding a color on the screen using ML or something then moving the mouse position might work. This is also one of my close friends so he wouldn't be too sad/mad if I failed the request.13 -
What would be your recommendation to Code in c++ to challange him besides a fcking Hello World Program.6
-
So I made my first rust program with just a quick look at the docs on for loops. 20 minutes from nothing to exe. Just fizz buzz but still. Took me 4 hours to get C++ compiling.3
-
Writing a small program for my Pi, which has to have a gui, process rfid information and do some stuff with motors and leds.
Unfortunately I don't know c++, so I have to write this all in python.
Gui's in python are the ugliest pieces of shit ever. Even fucking c# winforms are prettier than them.
Currently using PyQt5 as it is the less ugly of the bunch but man, you'd think python would have a lot more ui options considering the love it receives...4 -
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 -
Does anyone else get triggered when you use the python socket .recv() and the server does not return anything so the program just stays there indefinitely? For me, I can't even Ctrl+C it so I have to close the entire window. It's especially annoying when I start a server in the interpreter (quite a bit of lines) and I have to rewrite it afterwards.7
-
I was really bad in physics and we had energy, force and all that stuff, when I got to C, my very first programming language. I learned the formulas by writing a program calculating all the stuff we learned about in school.:D
Back then I didn't have a computer and wrote the code on paper before actually compiling it at my moms computer. -
My (younger) brother used to be way better than me at programming. He was making all this cool stuff (mainly Arduino).
I learned to program to make cool stuff like him basically. I learned Python to start since someone told me it would be easier to start with (it was).
I made a bunch of small programs (shitty things to help with homework, text based game, etc).
Eventually took programming classes in university.
Now I do C++ for a living. -
First c class. Techer starts by telling us to use void main() and that it is necessary for program to run correctly. Someone kill me.4
-
Trying (for fun) to run a GNUStep Obj C program that calls c headers has proven something to me:
I really do not know what I am doing with makefiles and should probably slowly and respectfully walk away to continue doing what i was doing in c++
Kids, documentation reading is important.
I also do happen to really like objc1 -
I finished a side-project and made a simple C# and WPF program to help you track financial goals. It splits up your paycheck based on what you want (like 10% towards a new car, and $25 towards dinner out).
It has zero netcode and is open-source. There isn't even the most basic
of analytics
https://github.com/AlgoRythm-Dylan/...9 -
Error. File not found: C:\somedirectory\file.txt
*opens C:\somedirectory\ * *looks at file.txt*
*runs program again*
Error. File not found: C:\somedirectory\file.txt
*changes directory it is looking in, copies file to new directory*
Error. File blank: D:\somedirectory\file.txt
*cry... no it isn't*
I just need to deploy this contractors code... supposedly it ran on another system, but the endless Spring configs hate me... :(9 -
Good afternoon guys. Long time no hear from me and I'm sorry about that. Had a lot health problems to fight.
I'm currently trying to list all processes that are running on my pc with a C# program. VS is running with admin rights but I'm still getting an error: "System.ComponentModel.Win32Exception: Access denied Error"
I tried googling it but if found the answer I didn't understand it.
Please help me.19 -
Settings be like..
yo dude you want your home directory on C: or D:?
Me: let's use D: pls.
Every program uses D, cus there is HOMEPATH.
Cmd be like..
C:\Users\Mofo>3 -
we were learning algorithm in college.
teacher: this is that and that is this, now when writing program we are not going to declare variables like a,b,c
me: omg, finally a teacher with same wavelength
teacher: we are grown ups, we will declare them as x,y,z
me: controlling my laughter with all the strength i had
😂😂😂😂😂😂😂 -
So we have a course this semester called "Programming the web".
First lab:
Write a program using JS to take an int input using a alert box and then print it's multiplication table using ANOTHER ALERT BOX.
Yes, not even display on a page.
Next lab:
Print fibonacci numbers on a web page using JS. Because why not. Let's teach students JS how we taught them C and let's ignore the awesome stuff we can do with JS
Btw all this for a class that has never had a JS course and half the people don't even know what JS is. They just directly throw the program and are done with it.
I'm so gonna hate this semester1 -
Ok a quick, short story time.
Might write longer one later.
Few months ago i asked my professor if i could do something to skip all those labs and lectures from "introduction to programming". He agreed, but i have to take tests as well and make a program showing that i can use all of C/C++ functions, syntax required by the subject. After few months I didnt managed to do ANY significant progress. That happens when i dont have any directions, i just get 10 000 000 ideas and 0 motivation to implement them (with that many ideas my mind becomes tangled as well). I can bet that im not the only guy who has a similar issue, but keep in mind my mental situation isnt that great; more about that in the next rant.3 -
What IDE to use on Ubuntu?
Hey guys, just recently started getting into Ubuntu & Linux, and I need some recommendations for a good IDE (or just an editor). I want to program C, C++ as main priorities, but want an IDE that isn't locked to only one language :) Been looking at Sublime Text, and while it looks cool and easy to use, I'd prefer something that didn't require a license..
Hope you guys can help out, any help is appreciated :)20 -
So I spent all day today trying to debug a C++ Program and after hours of digging into the code , I realized i had copy-pasted a for loop and had forgotten to change the loop variable from i to j. 😑4
-
#include<semester.h>
#include<tension.h>
void pain()
{
mind=confused;
while(study!=done)
{
paper = back;
parents=scold;
}
if(i==pass)
{
tension free;
}
else
{
go to hell;
}9 -
I remember the day when I was in first year college. We were tasked to make a c++ program that will print a diamond pattern. Didn't know that you could achieve that with for loops.
What I did?
A hard coded one.
What I got?
An F -
Hello C++ / C programmers. I've noticed my professor putting the ASCII code of a character into an int instead of just using a char to store it. When he does this he's not doing math or anything with them, so is there any advantage to it? My TA mentioned something about memory alignment, but I'm not experienced enough to know how something being aligned differently in memory would help or hurt a program.5
-
I like being diverse in what I can program. I like software development, web development, networking programming, I’m starting to get into embedding programming and using lower level languages like C/C++ (I’ve used them before but not for anything practical) and I enjoy the diversity. It makes me feel good knowing I can extend my programming knowledge.
Also I like having project ideas lined up so I know what I want to do next. And if I don’t finish one I know is easy but I can’t figure out, I CANT MOVE ON! I have to finish it. It’ll drive me fucking nuts.11 -
I was bored so I learned HTML/CSS, I was like "eh, programming is easy!".
So I learned C next and I was like "eh, programming is kinda hard actually".
So I learned to program rather than learn a language, got back to C until I was comfortable with it.
Nothing is hard now :D2 -
I once managed to replicate data from a scientific paper by writing a C++ program, at the first try. I still can't believe it to this day.2
-
It all started when I got my first iPhone. I had so many ideas for any kinds of apps, so I wanted to learn how to program them. I went to school and learnt programming. (I started with Java)
While beeing at that school I taught myself Objective-C and I started to write Apps. After school I got a job as an iOS Developer. -
I'm thinking of designing a programming language.
I want it to have easy to read syntax like python. Inheritance and interfaces like java. More advanced concepts like pointers and memory management like c++.
I was originally going to write my own compiler but I figured it's not worth reinventing the wheel. So the current plan is to basically just create a parser that turns a source file into c++ code and then that is compiled with g++. The only problem I can think of with that is catching runtime errors.
How does this language sound?
My purpose is to have a language that is as easy to read as python but with the speed of a compiled program and the ability to use it for embedded projects. I feel like reading larger C++ projects can be quite time consuming. So I figure the trade off of taking a little longer to write the code to make it more obvious what is going on is better than having a lot of syntax that can be tough to walk though the logic of (I find this often with c and c++, not like I don't figure it out but It definitely takes longer than it does to read and understand python)4 -
Is there a good offline C# compiler for iOS? I want to program on the go as I am not by my pc a lot.2
-
!First rant
Started learning C programming through CS50 course.
Hello world?nope.too scared to write the program because everytime I write it, something or the other happens and I stop learning C5 -
Learning C/C++ started to become fun, mainly because I've managed to do seemingly cursed stuff lately.
For example, today, I learned you could totally call a class member function using a type-matching nullptr variable. The 'this' variable is so null that it will crash as soon as the program hits 'this', though, but the control flow does go into the function.
It's not *that* cursed once you learn the behind-the-scene stuff, but that kind of weird s#!+ is funny, even amusing for me, who've mained languages other than C/C++.15 -
I'm still not over how LINQ is defined as a thin wrapper over both IQueryable (which can be efficiently queried) and IEnumerable (which can only be iterated), but IQueryable extends IEnumerable, so if you execute one unserializable operation anywhere in a query issued to your database it'll merrily pump whatever temporary collection happens to reside on the boundary through the C# program to execute that call on each row and process the rest as an IEnumerable.5
-
After only having done linux and web projects for the past few years, our company took over an old WindowsForms program written by a guy who only (poorly) knows C. It's some of the most foul code I've ever seen... And I'm the only one in the company who knows how to write C#...1
-
So here is my take on a shitty teacher.
I once had a microcontroller teacher, who tried to teach a class of non programmers how to code, from a broken compendium. While he was teaching he would correct errors that he found. Most of the classes would be pure theory on C and no exercises.
Needles to say after the first two semesters none of the students could program, and over half of the class had left the school. -
When compiling my first C++ program after sometime working on Python I got 17 compile time errors. All of them were either missing ';' or an extra ":". Damn you syntax!1
-
Lost 1.5 hours on Java trying to write a file until user enters EOF. Filled the program with .flush(). Then @freddy6896 points out that i was using Ctrl+C instead of Ctrl+D, killing the process before the .close() :/
-
From today, I'm gonna post infrequent-devLogs of the project i am currently doing, I have been thinking about it the past couple of months, and I am finally moving it into action!
I wish writing devLogs will make me to finish the project, at least a working prototype.
It is a C# block coding application that is made in 100% C# that generates human-readable C# code for C# begineers.
If you want to follow me along, make sure to subscribe to my rants by going to my Profile (cozyplanes) > More icon in top right > Subscribe
All devLogs posted directly via devRant API integration from CZedit, a simple edit program for geeks
=========================
devLog #0 - Block coding in C#
Done:
- Made the console output to redirect to textbox
- Ability to save output to external storage
WIP:
Compile C# code directly at runtime with Roslyn
Notes:
open-source??5 -
Let me start this off by stating I'm a Java dev, and a noob with C++.
Thought it'd be cool to learn some OpenCL, since I want to do some maths stuff and why not learn something new.
So I sat down, installed Nvidia proprietary drivers, broke my x-org server, purged, reinstalled, rebooted and after a while I got stuff sorted out.
Then on to my IDE. I use CLion and it uses Cmake. C++ noob knows shit about Cmake, so struggle for two hours trying to figure out wtf is going on with the OpenCL libs and why they're only partially detected. Fml.
Finally, everything is configured and I'm set. I start working on a Hello World program using OpenCL. Finish it in 20 mins, all good. No output. Do some googling, check my program a million times. Nothing wrong here. Check the kernel, everything as in the tutorial.
I start checking error codes after a while reported by OpenCL (which I had no clue was a thing) and I get some code saying the program was not created properly (to run the kernel). No fucking clue what's up with that. Google around, find another tutorial, rewrite my code in case I'm using outdated code or something. Nothing.
Fast forward an hour, I find out that OpenCL has logs! So I grab some code from the website I found it on, and voila, I finally get some info on what's going on.
Get a load of this bs.
In the kernel file, so that OpenCL knows that it's a function to run, you have to put __kernel. But in all the places I read, it said to put it as _kernel.
Add the underscore, compile, run and everything is perfect.
Then I tried just putting 'kernel'. Also compiles and runs fine.
Two hours hours and my program was fixed by adding an underscore. IF ONLY C++ GAVE AN INDICATION OF WHAT BLEW UP INSTEAD OF SITTING BACK AND BEING LIKE "oh wow man feels bad, work some magic and try again" THEN THIS WOULD NOT HAVE TAKEN SO LONG.
Then again, it was OpenCL that was being shitty with its styling enforcement or whatever the hell the underscore business is. But screw it. C++ eats shit too for this. Sure, maybe Java babies you by giving you the exact error and position that the error took place at. But at least that way you don't waste hours of your life chasing invisible bugs 😠😠
I'm going to eat some food... Too much energy was consumed fighting the system... Then I'll get back to OpenCL because 😇 but that doesn't make it less bs.1 -
💻 Four months ago. 💻
The Systems & Networks's professor said "You've to do a program that simulate the ARP table, in C."
...
After one week I had done the program!😎 (About 400 code lines)
And the rest of the class?
... One week... Two week... Three week.
Somebody had done the program, somebody else no.
Have an "informatics-stupid class" is funny and makes you look smarter. 😂🔝 -
>Weird Windows 10 glitch occurs causing text in dialogue boxes and other various things to not appear until you restart your computer.
>Is working on a program in C#
>Presses button in source control.
>Yes or no dialogue appears.
>Presses yes.
>All flies in working folder disappear.
>Restarts computer to fix visual glitch.
>All files in working folder don’t actually exist anymore.
>3 months of work nowhere to be found.
>Downloads decompiler.
>Decompiles previous versions executable file.
>Continues to work on project with decompiled code for the next 6 months.
>Gets sick of everything and painfully rewrites the entire program in NodeJS.
Moral of the story: Never gamble with Windows.4 -
So after a couple of days of playing around, I just finished the larger part of a program that my new boss wants in C# (which is new to me). So far I'm really loving the wide variety of functions, but I'm struggling to get used to the fact that everything in the ASP.net part gets "processed" (like using BuildForn to create a form tag instead of just typing the HTML) and it just slows down the process a bit 😂2
-
Just made my second C++ program. Im so proud of it but one thing kept killing me inside...
The fact that I spent the entire day Sunday debugging it and only getting in a couple lines of code...4 -
Heya! I've created something in C# you might find useful (though it's simplistic, and not my idea).
It's a program which has a progress bar for the current year, one for the current month, for the day, hour, and minute. Here it is, if you want to try it: https://dropbox.com/s/...
Based off the Mac version (not made by me): https://twitter.com/year_progress/...
Which costs $5, by the way... While I uploaded it for free u.u
What do you think?
Also, there might be an easter egg for 2019 ;D
Happy new year, everyone! 💙2 -
Okay why in the world is Console.Readline() in C# such a bitch? So I was working on this small simple chat application using C# and I had a super-freaked-out-ugly-code-vending team mate who volunteered to build the server side code. After trudging through his elaborate and highly complicated plan of working for the server, I decided to make the client accordingly and for close to an hour I had no clue why the program was sending an empty password field. A few debug messages later I realised that a line of code was getting skipped. The compiler was happily ignoring the Console.ReadLine that asked for the password from the user. I swear I felt like one of those parents in the shopping mall with their really disobedient kids.
Btw, I still haven't figured out how to fix the bloody thing.
PS: First rant post woohooo!4 -
8 years old, first computer. 12 tears old first laptop. Around the time of bebo, I started messing with Photoshop making skins, then I made a website to put these skins on, after that I became involved with the SMF message board software, offering support, creating mods and themes. Eventually started working with individuals and businesses designing and building there websites, went to college got a taste of Java & vB, continued onto a degree and now I can program in Java, vB, C#, C, Javascript/Coffeescript, Node, PHP, Python and Bash with experience with too many libraries and frameworks to count, at 24 years of age going into the last year of my degree. I never really realised I wanted to become a dev. I just kind of naturally progressed into it.3
-
I see a lot of people ranting about programming exams on paper. I acknowledged that not having a texteditor is not ideal. But not having a compiler is essential in testing the students programming skills in the first few courses.To many students are completely dependent on the compiler.
Syntax:
Some students writing C++ code have to try to build their program as many times they have lines because of all the syntax errors they make. Why think about all the ; if your compiler will tell you where they are missing?
Computational thinking:
As a programmer you should be able to look at (your own) code and be able to tell what the result should be. Of course this has its limits, but in the small exam questions they get in the first few courses they should be able to do that. To many first year students write a for loop without thinking about the starting value and the end condition. With the repeated process of running the program, changing the starting value or the end condition randomly they eventually get to the loop they need.
I think people underestimate the value of an exam without being able to compile or run your program. But I like to hear your reactions. -
<sarcasm> best advice?
Write microcontroller code in C++ even if the underlying OS won't understand. You can always decompile the program to C code and use the generated code.
Things he forgot to mention:
- cannot use most of C++ core functionality (basically no STL, no exceptions, all of C++11)
- have to get your code to compile twice (C++ and C afterwards)
- debugging that generated C code is a pain in the ass
- have to debug twice -
I made a small program with visual studio and try and error without any programming knowledge, then read a whole c# book, then try and error again
-
I missed this last week... so too bad ;)
My introduction into programming was rather slow. When I was a child, we had an Apple IIc, but there were no disks. When you'd boot it up, you got a prompt and I recall being able to type commands into it that someone told me was "Apple BASIC".
At the same time, our family computer was a 386 and it came with something called GWBasic. I was a huge Mortal Kombat fan as well, and I recall finding the moves for the game on an AOL usenet. I took them all and wrote a program in BASIC that let you search and find moves for your character. I distributed this on some floppies to friends.
After that I lost interest. My "Information Systems" shop in high school was more about how to use Office than it was about programming. A few years later I found out that you could run your own text-based games (MUDs) and I quickly jumped into that and the C language.
From there, I was in and out of programming - C, to C++. Java and PHP, then back to Java. It would be about 15 years later until I finally realized I wasn't bad at this and land a job doing it. :) -
So I'm noticing when I'm looking at places to apply, for example let's say discord, uses JavaScript, Python, C++,etc. How do they use multiple languages for one program? It's so confusing for me to understand8
-
When you hear “Haskell performance”, what comes to your mind? I was never really interested in Haskell since I had Clojure, and I thought Haskell might be slow.
Haskell with GHC is actually as fast as C or even faster. Haskell runs right on your hardware, no VM or interpreter.
When a program is small, the performance is comparable to C. Sometimes it’s quicker, sometimes not. But when a program is large, Haskell implementation would be faster if you’re not a robot that generates perfect C code.
It’s both very high-order AND very fast. You don’t need math to code in Haskell.
Too bad there are no kewl libraries.12 -
A side project lingering around is building a .NET Core based GUI program to monitor uptime and health of various Windows and Linux servers. I'm aware there are other projects that could do the same thing but I'm wanting to do this as a lesson in C# and cross-platform coding (I plan this to work on both Windows and Linux).
The program is currently CLI based on Windows with functionality to configure it and it's behaviour via config file, it currently sends email via SMTP to a specified email recipient to notify if there has been outages or performance degradation.
But of course University is in the way as well as work. Oh well... maybe I'll get to it in a couple months. -
My first C++ program was a calculator I wrote on a Borland IDE in high school! The program had a switch statement to cycle through different math operations! I felt like I was creating life! Days of naivety!
-
A small program I wrote in Turbo C which attempted to mimic the Starfield screensaver. This was the first moderately complex program that I wrote which drew something on the screen through code.
-
so recently i have been through memory management hell. maybe i should rethink about pointers and stuff.
long story short: i have done a calendar app using SDL2 and the program is written in C++. when rendering textures using fonts i referenced null pointers to the font.
i will implement events in the future and if you have any suggestions or some advice leave it in the comments, the feedback helps me a lot!
anyways you might give it a try (i am sorry about the makefile not working, i built the app on windows and needed to link against the folder where sdl is located): https://github.com/zetef/calviewer3 -
What was your process to learn to code?
I started out modding Pokemon games for the good old Gameboy Advance around the age of 11. With basic scripts like; walk 3 steps left etc.
After that starten to use Unity 3D (with C#), just copy everything from Google. After a while I could edit some scripts and stuff (painful process...).
I started to do a study Software Engineering, didn't learn that much, just got some errands and little projects from people (the usual, 'oh you can code, I need bla bla) learned pretty much most of my skills there (JavaScript, python, PHP). In the meantime creating games (C#, C++).
Did an internship in game dev. got a job now. Only a bit more that a year from now I have my degree (if everything is going to plan).
That is more or less my process of learning to program. -
Worst experience this week: bad_alloc in my C++ program in 5 out of 10 executions (all with the same arguments) without a stack trace. FML.
-
If there are 1000 a , 2000 b , 3000 c in a program, how will you declare them in C ??? Simple but high level aptitude question. Lets see who answers it right.32
-
Hello everyone!I need to see some opinion you guys might have.
I'm a self-taught everything about Computer, I've been trying to learn to develop software and games for a while now, was able to gather some information in a bunch of directions, but never was able be able to ACTUALLY develop anything by myself without the help of a step by step guide. Which stop me from program things and not copy pasta. I know that i seem to like how C works, since it have less features that confuse me (IMO of course)
So my question is: What kind of small projects would you recommend me to do other than calculators to help me figure out how we actually program something?
PS: I know python, C, a little bit of C++ and C#.11 -
How to discover and exploit vulnerabiliy in program or IoT firmware?C++, asm, writing zero-days, i have always been amazed by that. Art.
-
Way back in university, I was trying to do an assignment for an OOP class and it had to be written in C++. I was writing a simple function since I was a beginner at it and I couldn't understand why my program wasn't working. I spent an entire practical class lesson trying to work out what the hell was wrong and in the end, I got my friend to look at it. After only 2 minutes of looking, he asked if I had declared my functions. Obviously I had not.
-
Ah, I have so many memories.
I was lab instructor at the local institute(it was more like tuition) where I had to train students for programming (C, C++, Core Java).
And my debugging skills got enhanced too, It was like I had to just look at the program and I could tell all the errors, it happens to everybody I think because our brain just find patterns un-consciously and it later becomes like one superpower.
No doubt there were a lot of bright students even brighter than me. Actually, that was my starting point where I broke out of my shell and started playing with coding a lot.1 -
When they decided to deprecate the old app that went back to early DOS, they decided to use VB.NET because they'd used some VBA and were familiar with it. Except they had a vague idea that C# was faster and decided to write the OpenGL code in that. Also they had some C++ code and decided to write more of it, accessed by the main program via COM.
I come in and the decision is made to integrate some third-party libs via a C++/CLI layer. On one hand screw COM, but on the other we're now using two non-standard MS C++ extensions. Then we decide we need scripting, so throw in some IronPython.
I'm the build engineer for all this, by the way. No fancy package managers since almost all the third-party dependencies are C++; a few of them are open source with our own hacks layered on top of the regular code, a few are proprietary. When I first started here you couldn't build on a fresh SVN checkout (ugh) without repeatedly building the program, copying DLLs manually, building again, ad nauseum. I finally got sick of being called in to do this process and announced that I was fixing it, which took a solid week of staring at failed compiler output.
Every so often someone wants to update that damn COM library and has to sacrifice a goat to figure out how the hell you get it to accept a new method. Maybe one day I'll do a whole rant just based on COM. -
Not really a big deal, but was fun, during the second year of high school once I made a hidden C# program that would randomly open the CD lid and put it on some PCs of the lab and with some friends we watched the teachers get freaked out by the possessed computers (just to put things in perspective, today they still have windows XP, and their most recent laptops have windows 8 NOT 8.1 !!! And the "technician" says that they must not be updated wtf)
Eventually they couldn't find what was the problem and factory reset the computers
Also, we swapped Google chrome e IE icons and names on the desktop , pure evil -
should i add to an existing horrible node js program with dependencies that are marked unsafe or no longer supported, or port to a nice shiny c# or python app that will probably be much easier to support and extend and organize ?2
-
I took a Diploma course just before my graduation started because I was coming from a non IT background (Business and Accountancy) from a local institute. And the owner of the institute personally taught me C and C++. I had done some C in my school but it was just Printf and Scanf. And that man, taught me that the best way to write a program is to imagine it as a story. Since its C, so its all about functions and shit, so he made me understand that why a particular thing needed its own functionality. He inspired me to find the why. I learned that its important to keep the how in your perspective, but always have the why before how. This thought process made me feel that, since then, I've only learned newer ways to write the program, but my basic understanding still focuses on why.
:D -
Fate chose Computer Science for me.
It's only after 1st semester of Computer Science Undergraduate Program that I came across C, my first programming language. I had no idea what a CS Degree is all about. It was a blind shot, to be honest.
I wrote a few programs and fell in love with coding. I got high after solving every problem. I craved for more. It's all magical!
I'm enjoying every moment of my developer career. It's a hell lot of fun! I'm glad that my blind shot turned out be a good one. -
My first program was a Hello world in my school lab on an old Turbo C compiler running on a Novell Netware server, in '13.
The thrill, seeing the code run and the output on the screen, was so mesmerising, I haven't looked back ever since then. -
C++: the Static Initialisation Order Fiasco. If you have two static instances in separate translation units, there is no way to guarantee their initialisation order, you're at the mercy of the compiler/linker. If one of the instance constructors depends on the other already being initialised, you have a 50% random chance of your program blowing up. The same ordering problem applies to global destruction at program termination time.2
-
C is one of those languages that I have no idea why I really even mess around with it. It's cool, and useful, and all that jazz. But holy hell messing up one little line of code is the death of everything.
One forgotten semi-colon, and you whole program is gone. It will mess up other lines of code, which will mess up other lines of code, so on and so forth. I've even had times where I have to almost rewrite little programs I'm playing around with because of how much little errors can mess it up.
Don't even get me started on compiling. I don't even want to get into it now.1 -
So today in college, working on some C program, wrote a nice program just to get compilation error in header file😥😥1
-
Today, I decided to learn build a c++ project using cmake. Since I've never done a big project in C++ I have no experience with these stuff.
Couple of hours for researching and trying to understand how that thing works, how to specify things, this and that. Wrote a small program for testing.
Everything was fine. Makefile was generated and program was worked.
Then.... Somehow, sublime text started to give me error messages like, 'the header file you included is not found.' I hit the makefile again, the built was successfull... I know that, need to add -I to compiler flag so that it can find the files. But in sublime text constantly refuses my 'possible' solutions.
Even ycm in vim does this. They expected me to write includes like '../thispkcg/include/header.h'
Where did i go wrong ..............
Btw it works like a charm in cLion I don't know why..2 -
Does any of you have the compulsion to micro-optimize every bit of code that you write? How do you deal with it?
I'm not just talking about algorithmic optimizations, but the real nitty gritty stuff. I'm talking about using bit fiddling to avoid if statements where speculative processors might make mispredictions. Anything that might make a program compile to fewer machine instructions or avoid extra stack frame overhead.
This all started a year ago when I took a systems programming course at my university, and started learning C and C++. But I find myself doing this in the wrong places. Who cares if this trivial program that I wrote runs in 1.2 or 0.6 seconds? My future employers won't care if my code is 10% more efficient when it takes four times as long to write.
It's gotten to the point that I can't bring myself to use languages like Python because I don't know how it's implemented under the hood and can't predict how the different ways I could write a function will affect performance. How do I bring myself to trust that the compilers (or interpreters) and the programmers that wrote them will be sufficiently optimal, and just move on? 😩4 -
So I’m currently in my senior year at high-school, striving to get my Technical High-School degree.
My specialization is “System Programming”. I wish we studied something at school related to it ...
Long story short~
I’m going to my finals for this semester : We had to create a traffic light program, coded in C++.
Greatest thing was - WELL WE HAD TO WRITE OUR CODE ON PIECE OF A PAPER 🙂🙃.
So I’m thinking ... Shall I add “I’m so good that I can program piece of a paper “ in my resume ?
#GreatEducation!3 -
C- let's See
C is a procedurally developed language follows sequential method of solving a problem.
Example
If a teacher of an Institute teaching various subjects, Maths, English, Science and History.
Case1.One student comes and asks teacher to teach English
and next student to teach Maths,
And the other to teach History.
Case2.Next students comes for English
Case3.Other one for History.
So what I understood regarding C is procedural language is
It completes first case1,next case2, and then case3. (Task after task)
Here English is taught 2 times seperate
And History too 2 times separately making time and process complexity.
C is a platform based high level language support only desired platform. If I program in windows with i3 processor , it runs only on the same OS and Processor, if code is run in other computers.
Single threaded, if a code is interrupted in between, stops there and doesn't allow other part of the code to run.
Java
In this if the same above cases encountered then and tell
Computer to create a Class of English and tell all the students to attend the class(time saving, No complexity and not repetitive)
Same way Creating History class and make all students attend the class at once.
Students may be the objects created.
Multi threaded language, if a task is interrupted following code cannot be stopped. Allows other part of thecode to run.
JVM- Java virtual machine allows Java code into signs that can be understood by computer. Where as C converts into binary code.
A class concept added to C language become C++rant support rant learning to code want to code jvm newbie asking high level languages are cool discussions java c mistakes3 -
I can see the appeal for Gradle over Maven. You can do a lot more with a lot less code + compilation times are much shorter. Makes maintaining and updating a program much easier over cleaning a repository if something gets messed up.
Back in may when I was picking up Java I remember in my intro course I was dumping individual .jar files and referencing dependencies manually. Why anyone would do that in the CURRENT YEAR is beyond me. 😣
I wish C++ had even half of the features that come standard on Java when I worked with it.5 -
!Rant
TL;DR - Getting married can lead to installing life malware.
MARRIAGE SOFTWARE....
A young husband wrote this to a Systems Analyst -
(Marriage Software Div);
Dear Systems Analyst,
I am desperate for some help! I recently upgraded my program from Girlfriend 7.0 to Wife 1.0 and found that the new program began unexpected Child Processing and also took up a lot of space and valuable resources. This wasn't mentioned in the product brochure.
In addition Wife 1.0 installs itself into all other programs and launches during systems initialization and then it monitors all other system activities.
Applications such as "Boys' Night out 2.5" and "Golf 5.3" no longer run, and crashes the system whenever selected.
Attempting to operate selected "Soccer 6.3" always fails and "Shopping 7.1" runs instead.
I cannot seem to keep Wife 1.0 in the background whilst attempting to run any of my favorite applications. Be it online or offline.
.
I am thinking of going back to "Girlfriend 7.0", but uninstall doesn't work on this program. Can you please help?
.... The Systems Analyst replied:
Dear Customer,
This is a very common problem resulting from a basic misunderstanding of the functions of the Wife 1.0 program.
Many customers upgrade from Girlfriend 7.0 to Wife 1.0 thinking that Wife 1.0 is merely a UTILITY AND ENTERTAINMENT PROGRAM.
Actually, Wife 1.0 is an OPERATING SYSTEM designed by its Creator to run everything on your current platform.
You are unlikely to be able to purge Wife 1.0 and still convert back to Girlfriend 7.0, as Wife 1.0 was not designed to do this and it is impossible to uninstall, delete or purge the program files from the System once it is installed.
Some people have tried to install Girlfriend 8.0 or Wife 2.0 but have ended up with even more problems. (See Manual under Alimony/Child Support and Solicitors' Fees).
Having Wife 1.0 installed, I recommend you keep it Installed and deal with the difficulties as best as you can.
When any faults or problems occur, whatever you think has caused them, you must run the.........
C:\ APOLOGIZE\ FORGIVE ME.EXE Program and avoid attempting to use the *Esc-Key for it will freeze the entire system.
It may be necessary to run C:\ APOLOGIZE\ FORGIVE ME.EXE a number of times, and eventually hope that the operating system will return to normal.
Wife 1.0, although a very high maintenance programme, can be very rewarding.
To get the most out of it, consider buying additional Software such as "Flowers 2.0" and "Chocolates 5.0" or "HUGS\ KISSES 6.0" or "TENDERNESS\ UNDERSTANDING 10.0" or "even Eating Out Without the Kids 7.2.1" (if Child processing has already started).
DO NOT under any circumstances install "Secretary 2.1" (Short Skirt Version) or "One Nightstand 3.2" (Any Mood Version), as this is not a supported Application for Wife 1.0 and the system will almost certainly CRASH.
BEST WISHES!
Yours,"
Systems Analyst.
-----------------------------------------------
I'm not sure if this is a repost - if it is I apologise, but it's too good not to share.1 -
So some of the C++ guys I deal with have this thing in their mind that they know all the other languages cause they're similar right, and they argue that it doesn't work vice versa.You know Java, you don't know c++
Simple advice to people out there who meet such people is to just ask them to make a Java program with the goto command
Little know it all freaks.11 -
Started online college. I don’t have a problem with the class or anything but right now I’m just trying to figure out times I can actually fucking program. I want to finish my current project so I won’t feel like I’m shit and can’t do anything even though I know I can.
On the brighter side of college. I have to eventually take a C++ class and a class on algorithms in my degree and I’m very excited because I’m not good with algorithms yet and it’s a perfect way to help me learn. And I’ve intended to revisit C++ and make it my bitch so that works out too. I just wish instead of Two Java classes I could take two C++ classes and one Java class. But whatever I know I won’t use Java after I get the degree for anything professional so I’m fine with it.3 -
If I wanted to make a program that was compatible with windows Linux and Mac, using c# what would be the best options?26
-
I signed up for a uni lesson on MATLAB, the prof just changed his mind because he is braindead enough not to know MATLAB is not free, and decided to go with fucking C, because you know, there hasn't been a fucking assignment in my uni that wasn't in C except the OOP one. Miss me with that shit. I'm now going to develop automatic memory management and OOP libraries in C because if I write another program without proper OOP I will kill myself.4
-
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 -
When I was in college i did a software devlopment course. We learned was VB but it inspired me and a buddy to continue to program. Currently learning Java and C#
-
writing bunch of lines of code in C just to make a program that says "I love you" but the answer you get from her is:
printf("i have a boyfriend") -
I started university in september and after one semester using java (i learned java three years ago and used since), we started C.
I noticed that developers that program developing with high-level languages, or modern languages (like rust that it's low-lewel, but still has many modern language features) are for spoiled developers.24 -
Thanks god bash scripting exists.
Saved my time from running manually a C program with input files to check the output that would take me at least 1H. -
C++ is the building blocks for many high-level programming languages, and since 1984 its first appearance in the markets the C++ core committee developers have introduced its 4 new versions which are C++03 (ISO/IEC 14882:2003 second edition), C++11 (third edition), C++14 (fourth edition) and C++17 is the fifth edition. With each new version, developers introduced new features, libraries and APIs in it.
C++ introduced as the extension of C programming language which made C++ as a compiled programming language, which means the developer required a C++ compiler to translate the C++ code to its equivalent machine or byte language, so the Operating system of the computer can execute the program.
There are various C++ compilers in the market and most of them are open source and free to use, however conventionally when we say C++ compiler, we basically talk about GCC which stands for GNU Compiler Collection.
What is GCC?
GCC stands for GNU Compiler Collection, and it is a collection of programming compilers which induce C, C++, Objective-C, Fortran, and some versions of Java. The first version of GCC introduced in 1987 and it was also known as GNU C compiler which became the standard compiler for C programming language, in that same year GCC also provided Compiler support for the C++ programming language.
Now GCC has various versions and each version give specific support for C++ versions, by now if we look at all the versions of GCC, we have a stable GCC for every version of C++, but there are some exceptions with C++11.
C++11:
C++11 introduced as the 2nd update version of C++, it suffixes 11 because it released in 2011 or because on August 12, 2011, ISO gives official approval to it. Formally C++11 known as C++0X because developers were expecting the new update released in 2010, but with its release in 2011, the core committee developer of C++ changed its name by C++0X to C++11.
C++ 11 replaced the old version of C++03, and it also brings many new features for the C++ developers. The main aim of designing C++11 to stabilize and maintain the backward compatibility of new C++ version with the C+98 and C programming language and that’s become the main reason why core committee developers only introduced new features in the old standard library rather than extending the core language.
GCC does not give Full Support to C++11:
GCC version GCC 4.8.1 purpose the first feature-complete implementation of the C++11 standard, however, the 4.8 and 4.7 does not give the full support for the C++11. The current version of GCC provides the major support for all the standard features of C++11 but if you are using the GCC 4.8 or 4.7 versions then your GCC only provide you with the experimental support for the C++11.
To use the Experimental support of GCC you need to enable it first before you compile or run you C++ 11 version code.
use code std=c++11 or -std=gnu++11 to enable the experimental support for C++11.17 -
A friend of mine wasted 2 hours debugging his C program when all he did was forget to add -lm to the cc command.
-
Hey guys, gameDev here, wanting to branch out to software development in my spare time. Im using C# and Visual Studio, and rarely C++.
I want to make some software in c# or C++ with a GUI, more than just CMDs. Im trying to program a project manager or something else but dont know how. Need some tips!9 -
So we got this new teacher last year. He is a decent programmer but has never made anything using C#.
When he had to start teaching it to the first year students he wanted to practice.
He made 1 cli program that only used 1 class besides main and that wasn't even used properly.
His words after he was finished: "I'm now a C# expert"
What!? No you're not! Why don't you just take the student course so you know what you have to teach next week!? -
Couldn't figure out why I had to make so many cats meow to learn how to program. I wanted to move things on the screen and create sounds. Then, dug up an old c64 and programmed myself a monitor and got into assembler which was a breeze compared to programming dumb text outputting felines.
After learning computers from the ground up, I started realizing that C++, C#, Java etc. actually wasn't at all about constructing and deconstructing cats or its base class animal.
I had one final go and it all just clicked! -
Professor: How could you write a program in C to prevent the titanic from sinking?
Me: float Titanic;
😅😅2 -
Does anyone know of a tool that will statically analize a C program and check if it's behaviour would be the same as a C++ program? Flagging things like implicit void* coercions, for example.
The use case would be if you find a C library and want to use it with C++, for example. Or are writing a library and want it to be usable in both C and C++.
If this doesn't exist,
does anyone want to help me make it? I was thinking we could modify an existing C linter to do this.26 -
I started writing basic in 1980 on my stepfather's Apple ][+. I was about ten. Then I got a Commodore 64 and got this awesome program called Gary's Game Kitchen. It had a Sprite editor and you programmed it by writing pseudo code. From there I learned C, then got jobs in Visual Basic and vb for Microsoft office (yuck!). Then I discovered Linux and became a web developer. *Hugs vim*
-
Teaching junior engineers that main.c is not mandatory for a C program is really touch thanks to their academic knowledge.3
-
Uh so I can’t really find a clear answer to this but, can you program iOS apps with C# or not because I’m only seeing shit on fuckin Swift. More like swiftly beating myself to death with a wooden bat6
-
How in the hell did I manage to learn to program in C++ without actually writing the code for past 2 weeks?
I didn't. -
I've recently started learning to program mcu's in c and i'm trying to get spi to work using the attiny's usi-interface.
It's f*cking hard!4 -
story time
today I learned how to license a git hub project have I finally made it to intermediate developer?
------if Ur interested in a little something I did just for fun--------
https://github.com/vindicit/...12 -
Alright I know what you’re thinking. “Bubbles, again? You’re doin this aga-“ yes I am.
As some of you that tune into my rants on the daily should know, I have the tendency to want to LEARN and just throw my thoughts in here cause you all understand me more than most people. WELL IM BACK AT IT AGAIN, and with the anxiety of when to do things.
I’ve been preparing my C# skills for a job and currently working on projects (one at a time) to put in a portfolio and just help me learn by making cool things. BUT I also have books I want to go through and read to teach myself C and Security stuff which is spread out in three different books. But I don’t want it to seem like I haven’t put my time in with C# and took my time with it. And I just idk when a good time to transition into all that. Which I feel like after a few more C# projects I’ll be okay. Then go through those books in the order I have chosen.
I get a lot of enjoyment out of watching people on YouTube program and talk about what they’re doing. Idk if that’s just me.
I feel like I’ve been making some real progress on my project though. I’m quite proud of myself
I also have a small story saved for tomorrow so stay tuned for a barely entertaining short story
I hope yall have a great day -
I was so bored the other day, that I wrote a fat client in C# to calculate happy numbers. I used BackgroundWorker class, because I was hoping to be able to cancel the calculation process. It turned out I couldn't. Rats.
Out of pure frustation, I wrote the same program in Java using Swing and SwingWorker. Here, the cancel feature worked just fine.
And then I had this "Wait ... What?!" moment, when I realized, that one of the programs was incredible slow. So I rewrote both codes, so that they used the same algorithm and similar classes. I compiled the C# program as release and ran it stand-alone, while I started the Java application from within the eclipse IDE.
The C# program needed 42.681 seconds for 100,000 happy numbers, while the Java application completed the same task after 0.986 seconds. The result sets of both programs are the same.
Maybe I need a new PC (2007, 64 bit, 8 GB RAM, Windows 10). Or I'll get rid of C#.9 -
I want to build a program for my projects and generally to organize my different work/hobby related things.
I want to do this in a language I'd have to learn, so far I only know how to write in Bash, Python and JS(Node).
I do however, have some experience with the fundamentals of programming and are very comfortable with data structures.
So far, I've looked at using C or Rust, does anyone have some suggestions? (I've also looked at Electron but it seems too easy for this project)
The current overview of my thoughts for the application:
- Be secure
- Have a UI for visualizing projects
- Hopefully cross-platform (but I only need linux)
- Optimized for speed -
Lol all my creations are useless to a good extent. I work on them just for practice. Here is a short list of them.
1) c program for every kind of sorting algo
2) stack implementation for checking paranthesis and prefix postfix shit in java
3) Treeview implemention with basic utils like create, update, delete in python -
In my early programming days I wrote a C++ program to store marks of n no of students but didn't got the output I checked for 3 hours then found that I was storing the data in another integer value and not in the array.
-
Fellow C++ Devs, I need your help on this one. I have to write a converter for view in geom format to obj, so I can visualize it with blender or similar program. Do you guys have any ideas or suggestions?
Thanks in advance.
Have a great a day !12 -
I wanted to get into programming since secondary school (at around age 14), and I started out with some very basic gamemaker stuff. Later I also started doing some C#, but I didn't have the patience or skill to create anything actually cool or useful. Then at age 18 I went to uni to pursue a cs degree, and that's when I actually properly learned how to program in C#, with a bit of Haskell, Python and C++. A little more than a year after that I got a job as a Java developer (with many many thanks to a friend of mine, @chappio). I already knew how to program but there I learned a lot more about good practices, quality control, testing and so on. Fast forward to now, 2 years later, and I'm almost done with my bachelor's degree (just a few more months) and I still work at the same company with much joy. Pursuing my dreams has worked out pretty well so far, let's hope it stays that way :)
-
!rant
Starting my first small c++ project with website interaction on an Ubuntu server as practice for next semester. Any good recommendations to get user input from a webpage using only c++ (there can be html within the c++ program of course) and libraries?
I have once worked with an httpd-deamon and got user info from the url but I want a user to be able to fill in 2 textboxes and submit them using a button.
Plain text is good enough and it will only be used by 2 people once every week or so.8 -
Interesting NY Times article today Saturday March 26 2016 by Markoff and Lohr, "A Race to Take Control of Artificial Intelligence And the Future of Tech". Lots of C levels will read this article and ask CIO if AI on radar. Will fan the fire. Also a lot of VC action. Google TensorFlow open source. Microsoft also all in and of course IBM Watson. Google beat Go grandmaster 4-1, which is tougher than chess program. Something to keep on your radar. Have fun!
-
Advice/input welcome:
I’m nearing the end of my first year of a 2 year SE program at college. I’m considering leaving at the end of this year and looking for a job, but I don’t have much of a portfolio and feel insecure about my ability to make it in this industry. I know it’s probably just impostor syndrome, but it’s a really hard feeling to shake. It’s a trade college, so the program is designed to have students work ready by the end, but there is a certificate for having completed the first year even though most students do both years.
I’m competent with java, web dev including JavaScript vanilla and bootstrap, ok with python and a lil c++, and I used c# over last summer in unity to develop a game I never finished. 2nd year is mostly more of the same, just more in depth. I’m feeling like idgaf about school anymore, and there are some things happening in my life that would benefit from a full time salary and a decent health care plan.
I spoke with an alum of the program who left after one year to work, and he strongly suggested I stay for the 2nd year, but wasn’t clear on why he thought that.
So what I wanna know is, from folks in the workforce, do you think I should stick it out for the last year and then look for work? Or would I be ok to just... go and start looking for a job now?2 -
How do you ask questions when you are at a college internship where you have been stuck with a problem for 5 days. I'm feel scared to ask many questions to my mentor, because I think he will laugh with me. I'm writing a webscaper in Selenium C# and never only saw some basics of c# before my internship. The program is for 90 % finished, just a final little thing I can't get to work. How do I approach him in a good way?5
-
Hi guys, i have been addicted in linux and play around it these few days.
There is an issue, for system call and library call, which one can process faster? For example, fread() and read()
I know the different between them, but in term of processed speed, i cant find the answer from google -
Typically every computer science major begins with either C C# C++ java or python , creating so much abstraction from the hardware which just loads your mind with questions that remain unanswered.When ever i program something i always think of how the under lying stuff is working.They never explain how and where software meets the hardware.Why are they keeping students away from the hardware. I think a cs graduate without knowing the underpinning of a computer should not be considered a cs graduate as opposed to being a software engineer a computer science major relates to everything that is a computer that includes the theoretical stuff and a little bit know how of computer hardware. Instead of teaching this stuff and assembly as a language in the first semester they teach you java or C++. Could not speculate on why this is so.11
-
Visual studio! for C++, C#
Notepad++ for javascript
VS because of the many features and automation. Step trough code debugging and organization in one program.
notepad++ for its simplicity -
Can you help me with the codes and output of these two activity?
I'm new in programming Thankyou
It's a C++ program14 -
Ready program written in C #.
The idea of the program is an inventory system, it is a form screen, and each screen has a design.
The required: Modification of the form and design of the form, for example, the background of the form is black (Dark) when trying to change it from the properties or code. No results.
Also, when adding an image in the background, it does not appear when running the program and the program's interface remains in black, knowing that it is a metroform user.4 -
The moment i knew i wanted to be a programmer was actually after i had dropped out of my IT school.
I was finding coding hard a nd questioning my passion for it. during my time off i was still frequenting an IRC where people were talking about C and coding and it made me realize i missed it. after months of not finding a job, disappointed in myself for regretting my decision and finally finding employment at tim hortons which was god awful, i quit tim hortons after a month, applied late back into the program at IT school and graduated.
It was the kick in the ass i needed. -
Writing--
public static void main(String args[ ] ) all the time (in every program)....during competitive programming questions.... :/
I get the meaning but still....just look at c or py...:/ -
Is programming a website/basic backend program in TypeScript with NodeJS actually a good idea? Or should you be programming it in C#, Rust, (not PHP), Golang, etc?
I personally feel like NodeJS has pretty amazing performance considering how much less code you would write compared to the other options. Although I feel something like Rust (haven't used it yet) would be more robust but more work.
Note: I only currently know JS, TS, C#, Go and obviously HTML, CSS9 -
Does anyone have any good crash courses in C++? I'm not looking to learn it to program in it, just to be able to read it. I want to use Qt in Python, but much of the documentation is missing or incomplete, so I'd like to be able to use the original C++ instead, but I can't understand have of the esoteric use of symbols.1
-
AOA friends please help me to solve the program of C++
#include <iostream>
using namespace std;
int main() {
int passengers = 126;
int empty_seats = 0;
//passengers =126;
passengers after 1st bas leaving= passengers - 50;
passengers after 2nd bas leaving= passengers - 50;
passengers after 3rd bas= passengers;
empty_seats= 50 % passengers;
cout << "Empty seats in last bas"<< empty_seats <<endl;
return 0;
}33 -
I learned to program in community college where they had us learn C# but I honestly didn't catch the programming bug until we had to do assembly language. I just found it fun to break what I needed to do into 's,mall steps and at the end I get to see the result of all that Work!
-
Can anyone please help me to solve it......
Implement c program to input an augmented matrix. Find the first pivot matrix.9 -
I am modifying a program previously written in c # programming language which is forms windows
I faced some problems, namely: I am trying to modify the background of the properties and by writing in the code, but it did not give any result or change
If possible I can help on this topic ?
Thank you6 -
Hey guys hello
I am new on dev rants:)
I am pursuing bca and i learned a c- language so i feel difficulty in patterns programming i can't create logic easily to making a program to print some patterns.
So here you guys kindly please help to how i can i improve logic in programming please told me to remove that difficulty.
Please2 -
!rant
I am trying to write a program in c which forks a process and exec another program i wrote. I want to redirect output of child program to parent program then after getting that output parent will check some conditions and if they are true then it will resume child program and will do more stuff. I have successfully redirected output of child to parent using pipes then I wrote code which should be read in child program but it isn't getting read. I tried by passing pipe read and write ends as cmdline arguments to child program but it isn't reading. It is blocking at that particular point. Stuck for more than 5 hours at this. Can anyone help me here? Fml :-( -
i want to create an app for android and then for apple. or vice-versa. what program should i need to learn and how should i do it? i know c++ , java15
-
I need some help with TCP connection related stuff in C#. I need to figure out how to make a very basic connection between two endpoints and manage to send data between them. In my case it's a "server-side" program and a "client-side" program.
My problem is that I don't know how I go about making the client program listen for response after sending data. Do I need to have a TcpListener on the client side too? In which case, how do I use it?
Basically, I know how to make the client toss the ball and how to make the server catch it, and I think I know how to make the server toss the ball back, but I don't know how to make the client catch it. :/3 -
Can I get some advice on converting between languages (by hand unless I can find a program to do it)
Python variant (micropython) to C++
This project just keeps getting harder and harder for me. :( -
Do only developers have to do such tasks like Cinderella sorting out the lentils from the ashes?
Poor co-workers
* who had to program against the undocumented closed, ever changing API from Exchange Server, supporting over a decade old versions
* who had to compile a c++11 compatible clang or gcc on some sick old OS and almost got it working with compiling a fresher gcc with one that got stuck in one of the build stages. -
Recently my teachers have started hassling us to get our ‘better’ projects on github for a ‘sorta’ portfolio
I have a simple C# script I wrote for a class assignment many months ago
Inside that script I call an exe created by using pyinstaller on a simple python program to grab info from the web related to the script’s purpose just to see how pyinstaller and web-scraping works
If I put this on github should it be two separate repositories or one with the python stuff in its own contained folder???
Thank you in advance2