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 - "pointers"
-
School time, programming class:
Girl: Hey, Can you help me?
Me: Sure, what's up?
G: I have an error but I don't know why
M: *looks at error stack trace* You're missing a semicolon in line 133 *puts comma, run... 27 more errors* Well, you have more issues up there, why don't you try to fix them?
G: Oh, Ok, thanks
-- 1 hour later --
G: Hey, can you come? I already fixed the other issues but I still have one I can't fix
M: *checks code, same mistake I fixed, missing semicolon, same line* Why did you erase the semicolon?
G: Oh, because if I erase it, I only have 1 error, but if I leave it, I have 27 so....
M: *turn around, walk away*19 -
Any devs here that Code in C/C++...?
Or am I lost in "webRant".
I am worried about the future " code everything in javascript " generation :)
Make pointers great again!75 -
Java and C were telling jokes. It was C's turn, so he writes something on the wall, points to it and says "Do you get the reference?" But Java didn't.
C gets all the chicks and Java doesn't? Because C doesn't treat them like objects.
But I think C could at least give Java some pointers8 -
Normal devRant user:
- Look, the algo it's awesome, it matches similar content posts, it's so funny!
Meanwhile at devRant Headquarters:
trogus: When are you telling them?
dfox: Ignorance is bliss, my friend
trogus: Well, at least we know the random number generator it's not coded by Sony though, otherwise they would suspect10 -
Teaching a friend C:
"Thanks for giving me all the... ahem. Pointers."
Waits 2 Minutes
"But like seriously what is a pointer again?"8 -
If you want to improve, be with people that are already better than you.
That's what I do, and so far so good.8 -
This morning finally pointers to structs in C finally clicked on my mind!!!🤯
80% of the C code that puzzled me now makes sense!! 🤗12 -
Brother of my friend came to me and asked me to teach him C as it was most important lesson in high school CS. I agreed and started with data types, conditional statements, loops and others that were mostly exam oriented. He was doing good. Then I thought of teaching him a life lesson and introduced him to pointers(questions about pointers are very rare in exams). As soon as I started the pointers, things got pretty bored and he went off topic and started talking about a girl he has crush on and told he wanted to know when her birthday was so that he could gift her something to be ahead of the crowd trying to impress her. I thought to help him out, afterall he's like my younger brother and told him I can help. Result of his previous exam were out then, providing symbol number on Examination Board's website would do the trick because it would return full data of students result which had birthday in it. I modified my previous script to fetch data of his school's result and pass the data to a file. They're together since last few months. He reminds me time to time that my code is what got them together.8
-
Boss: "Yeah we have a logging project coming up that has to be done in C" Me: "I know C, I can give some pointers on that"5
-
I have not used c++ in almost 2 years. I'm regaining familiarity with it.
I come from 2 years of Java and python.
I'm ranting a lot about some things, but damn, pointers and stuff are so sexy.14 -
<rant data-type="corny">
My Gf of 3 years left me for some douche. Thus said, she "removed" her feelings before kissing him. WTF! I didn't know feeling came like dependencies...
</rant>9 -
And pointers in java be like: The greatest trick the Devil ever pulled was convincing the world he didn't exist.5
-
What is a pointer?
A descriptive and ELI5 answer found on Reddit:
You have a house.
When you’re outside, and you want to go home, you don’t make another house right where you are, because it’s too big for you to carry around or take apart.
So you carry a piece of paper or store on your phone the address of your house. Now you always know exactly how to find your house so that you can go home.
The piece of paper or your phone is a variable.
The variable contains an address (a reference) to your house.
You can make a copy of this piece of paper and hand it out to your friends when you invite them over, instead of building each friend a copy of your house.
You can have an address book filled with pages, where each page is an address (i.e., an array of pointers). Each page you turn (each index you increment) goes to the directly next address-containing variable.
Now if you cut the address book in half along its height, and then attach the lower half behind the upper half, then you have a book with smaller pages but more pages.
You can store phone numbers in this, and even if it’s the same total size, you have double the number of pages and double the number of phone numbers (if you store one number on each page).
Now, since the pointers to home-addresses are different from pointers to phone-numbers, turning the page in an address book (increment pointer by 1) moves forward by one address.
But turning the page in the phone book (incrementing pointer by 1) leads you to the next phone number, even if you technically turned only “half a page”.
That’s how pointer arithmetic works.
Source: https://reddit.com/r/...8 -
LEARN THE FUCKING WORDS!
I know that English isn't the native language of my country, but for fucks sake, if I'm telling you the right way to say/write it, remember it!
It's called ROM not ROOM
It's called Mod not Mood
Am I good with Custom ROM's? Yeah
Am I good with Custom Rooms? No, I'm not a fucking interior designer
Am I enjoying Moto Mods? Of course
Am I enjoying Moto Moods? Vruum Vruum bitch.16 -
C is not that hard:
void (* (* f[ ]) () ) () declares f to be array of unspecified size, of pointers to functions, which return pointers to functions which return void.
By the way, I am uncomfortable with the fact that I am comfortable with this statement.6 -
teaching myself pointers right now
here is my learning process right now:
1. what even is this
2. wow this is neat
3. why does this even exist
4. what even is this
5. repeat9 -
Email subject: Urgent need for developers!
Email body: We found you in our database, and think you're a match for this position! Requires 5+ years of C++ experience
Apparently C# == C++. Good luck finding an appropriate candidate, buddy. I was tempted to send them an email pointing out their error, but I'm not too good with "pointers"4 -
when your first try to learn a new programming language, for example c++ and you are still new to coding:
"Wtf does it behave this way. How dafuq do pointers work...argh"
and then years later, you come back to c++, do a little revision and it all starts to fall into place and make sense. Man. That feeling.3 -
You know, pointers are cool. I like pointers. They allow you so much more control about memory than languages without support for pointers. But fucking null pointers. I could kill them. Why are they such a fucking nightmare to debug?12
-
Pointers in C. You love'em or you hate'em. A lot of room to shoot ourselves in the foot or hang ourselves. Or doing both because someone thought it would be genius to tie the guns to the rope.2
-
That moment when you understand and love your most hated enemy in c. Yepp. I am talking about pointers. 😍16
-
// LEARN TO READ, FOR FUCKS SAKE
I've been working with a teacher developing a web application for some business that rents stuff.
Long story short, he's so damn incompetent! I mean, for fucks sake, he sent me this picture asking me "what to do"... dude, just fucking read, it says that the VM will capture input and to escape just press right control!!!
I can't believe this guy is a CompSci Engineer...15 -
YOU FUCKING PIECE OF SHIT!
I have nothing against teaching and showing someone starting in this field how to do things but FOR FUCKS SAKE, PUT INTEREST IN IT, I WON'T DO YOUR FUCKING JOB, I HAVE MY JOB, YO DO YOURS.
Jesus...fucking Christ, these kind of people always get on my nerves.2 -
You fucking son of a bitch!
First you make me do a project in two fucking months, and that's a fucking job-load for only one dev to deliver a SPA with payments and whatsoever.
Then you pushed me to accelerate deployment date and there I am, getting tired and using time I don't have.
But oh no, you prick, that wasn't enough, you had to do just one thing. YOU HAD TO DO ONE FUCKING THING!
What's that? Oh, sorry, I thought I overheard that you wanted to accept online payments but YOU'RE NOT FUCKING SIGNED UP, YOUR BUSSINESS IS NOT LEGAL UNTIL YOU REGISTER IT.
Motherfucker, I can't do anything, you better fucking register your bussiness if you want this to work the way it's supposed to do. -
FOR FUCKS SAKE, CLEAN YOUR KEYBOARD!
Today we had some presentations on a class, I was near the projector, so I volunteered to control the presentation flow.
Fast forward three teams, arrives this guy, lets his laptop and and I open it... SMELLS, FUCKING SMELLS BAD. Add to that grease and dirt all over the keyboard... I just pressed the right arrow key with the bare tip of my finger...
It's not that hard to keep your workstation clean. Most of all, odourless.4 -
YOU FUCKING COCKSUCKERS!
Are you fucking serious? How it is possible that you, being a fucking teacher in a PRIVATE UNI, AREN'T ABLE TO FUCKING DEPLOY A .NET CORE WEB PAGE EVEN THOUGH I FUCKING WROTE YOU A PDF, LINKED TO MS DOCUMENTATION AND EVEN WENT TO TELL YOU HOW TO DO IT?
You fucking prick, and now you argue to your superiors that we aren't doing our job as expected... seriously? ARE YOU FUCKING STUPID SERIOUS?
I hope you choke on the turkey this christmas, you ignorant incompetent cheap slut... ha, you're not even cheap, because parents are paying THE SCHOOL to provide them with "supposed" better infrastructure, education than a public one, BUT YOU COME TO TELL ME I MUST CODE YOUR ANCIENT PAGE IN FUCKING ASPX WITH DOCUMENTATION DATED 4 YEARS AGO?
Yeez... seriously dude, level up or GTFO.12 -
TL;DR — Never ever use work chat to gossip about work. NEVER.
—
Just some minutes ago, my boss asked a mate to move aside from his computer and began checking out some docs.
By the tone he used, I assumed something was wrong, I stood from my workplace and went to grab something from the kitchen. Came back and he was looking through a thread in slack between a mate and another work mate.
I thought he was going to send something to himself but then he asked me if I could help printing out the screen. Took a quick look and they were talking shit about him.
Now, it'll be an awkward silence until I go home and those two stay to argue about that thread.
Sheez.9 -
I could bitch about XSLT again, as that was certainly painful, but that’s less about learning a skill and more about understanding someone else’s mental diarrhea, so let me pick something else.
My most painful learning experience was probably pointers, but not pointers in the usual sense of `char *ptr` in C and how they’re totally confusing at first. I mean, it was that too, but in addition it was how I had absolutely none of the background needed to understand them, not having any learning material (nor guidance), nor even a typical compiler to tell me what i was doing wrong — and on top of all of that, only being able to run code on a device that would crash/halt/freak out whenever i made a mistake. It was an absolute nightmare.
Here’s the story:
Someone gave me the game RACE for my TI-83 calculator, but it turned out to be an unlocked version, which means I could edit it and see the code. I discovered this later on by accident while trying to play it during class, and when I looked at it, all I saw was incomprehensible garbage. I closed it, and the game no longer worked. Looking back I must have changed something, but then I thought it was just magic. It took me a long time to get curious enough to look at it again.
But in the meantime, I ended up played with these “programs” a little, and made some really simple ones, and later some somewhat complex ones. So the next time I opened RACE again I kind of understood what it was doing.
Moving on, I spent a year learning TI-Basic, and eventually reached the limit of what it could do. Along the way, I learned that all of the really amazing games/utilities that were incredibly fast, had greyscale graphics, lowercase text, no runtime indicator, etc. were written in “Assembly,” so naturally I wanted to use that, too.
I had no idea what it was, but it was the obvious next step for me, so I started teaching myself. It was z80 Assembly, and there was practically no documents, resources, nothing helpful online.
I found the specs, and a few terrible docs and other sources, but with only one year of programming experience, I didn’t really understand what they were telling me. This was before stackoverflow, etc., too, so what little help I found was mostly from forum posts, IRC (mostly got ignored or made fun of), and reading other people’s source when I could find it. And usually that was less than clear.
And here’s where we dive into the specifics. Starting with so little experience, and in TI-Basic of all things, meant I had zero understanding of pointers, memory and addresses, the stack, heap, data structures, interrupts, clocks, etc. I had mastered everything TI-Basic offered, which astoundingly included arrays and matrices (six of each), but it hid everything else except basic logic and flow control. (No, there weren’t even functions; it has labels and goto.) It has 27 numeric variables (A-Z and theta, can store either float or complex numbers), 8 Lists (numeric arrays), 6 matricies (2d numeric arrays), 10 strings, and a few other things like “equations” and literal bitmap pictures.
Soo… I went from knowing only that to learning pointers. And pointer math. And data structures. And pointers to pointers, and the stack, and function calls, and all that goodness. And remember, I was learning and writing all of this in plain Assembly, in notepad (or on paper at school), not in C or C++ with a teacher, a textbook, SO, and an intelligent compiler with its incredibly helpful type checking and warnings. Just raw trial and error. I learned what I could from whatever cryptic sources I could find (and understand) online, and applied it.
But actually using what I learned? If a pointer was wrong, it resulted in unexpected behavior, memory corruption, freezes, etc. I didn’t have a debugger, an emulator, etc. I had notepad, the barebones compiler, and my calculator.
Also, iterating meant changing my code, recompiling, factory resetting my calculator (removing the battery for 30+ sec) because bugs usually froze it or corrupted something, then transferring the new program over, and finally running it. It was soo slowwwww. But I made steady progress.
Painful learning experience? Check.
Pointer hell? Absolutely.4 -
Me always:
*starts coding in C/C++*
*M so gonna use raw pointers... Raw pointers ftw!*
*Spends 2 hours to code*
*Spends next 4-6 hrs trying to find why it is crashing/giving segmentation fault*
*Finally finds the solution and feels like winning a boss in Dark souls*
*Totally worth using raw pointers* 😎😎😂😂3 -
Sister of a friend of mine fucked up her Mac, her Dad, they called me to fix it.
Partition table is wrecked and her thesis is there, no backup.
Been working since yesterday, got to recover it. Recovered files.
Dad applies pressure, because she's leaving out of town today, I do my best but fucking SSD won't work, it says it's healthy but damn Mac says IO error, Disk Utility says exit code 8... oh, and her dad thinks it's easy, that Ive been delaying things and so on...
fuuuuuucking hell, I hate you10 -
I got a Job!
I was talking with my boss after my first week and a half of working. I tell him that I enjoy having an office and whatsoever, because that way work stays in work.
My boss tells me "Yeah, you have to do something else besides working, do something else with your life"
Damn, that's one conscious boss tbh. So happy to be working there, but you know, everyday the imposter syndrome kicks in...it sucks.2 -
!rant
I've been doing wrong these last year, so I decided to step up my game, implementing on my work cycle:
+ Testing
+ CI
It feels fucking great. If you're not doing it, it's time.1 -
Someone once told me that 32-bit operating systems were better than 64-bit ones because the pointers are half the size.
*confused thinking face*16 -
We were in a c class learning about pointers, the teacher was doing small stars on the board to explain the basics of them.
After a short while we all understood, or so we taught.
Someone asked about double pointers, so the teacher put 2 stars on the board to explain. THEN THE IDIOT OF THE CLASS GOES AND BLOODY ASKS IF WE COULD REPLACE THE 2 STARS BY A BIG ONE.
I MEAN OF COURSE JUST PUT A STAR EMOJI TO MAKE A DOUBLE POINTER.
The legend still lives on as he got kicked for an unknown reason🤔.3 -
Sleep rant time!
As per usual, I got home late and tired, but wanted to keep on with learning to use Electron for a personal project. I setup everything, created the project and began to tinker with it.
One issue, the script I made was not loading, I spent like 30 minutes wondering why, reading docs (it was 12:40AM). When I was about to give in, I opened the index.html file and guess what? I IMPORTED THE SCRIPT AS A FUCKING STYLESHEET.
I laughed like 2 minutes, then shut the lid of my laptop and went to sleep and thought "Oh, so silly"3 -
You always see fail2ban message:
There has been n failed attempts"
But... Have you ever thought about how many successful logins have been?2 -
Using an array of function pointers to replace large switch statements... holy shit.. I feel like Thanos getting the time stone.
Just when you think you can’t get your code to run any faster, nor did I think I could get the code any smaller... BOOM.. C never ceases to impress.
Next I’ll be turning this into “object” oriented ... but since it’s C ... it will just be Struct oriented .. SOP ..18 -
What's your favorite IDE to use and why?
I saw a little IntelliJ hate on another rant, but so far it has been pretty useful for me, I only need 1 IDE for Java/PHP/HTML/Python/JS/SQL
Pic unrelated, just for attention and the LOL's19 -
I'm migrating data from an old software to a new one I wrote.
Old database it's in Access (yeah, fuck). When I opened one table, the VM hung up and I opened the task manager on MADE
What.The.Fuck.Are.You.Doing?8 -
Well I'm a first year student in computer science and in the first semester we started to learn C language and the IDE they told us to use for better learning was Devcpp.
We made a few small projects and all went well, but now in the second semester we started to make bigger projects with linked lists and memory allocation and Devcpp starts to be a complete bug itself... We are working hard in the project and after saving the project with no errors at all, at the next day, Devcpp starts to make any function we made invalid...
So we spoke to the same teacher about this and asked what can we do about it....
"Are you using Devcpp? You shouldn't, it is not that good for C"...
ARE YOU KIDDING ME?14 -
I have been on Reddit...
I have been lurking in ProgrammerHumor...
I am not proud of these things...
I got called a "Big Shot" because I didn't think the concept of pointers in C/C++ was ever particularly hard.
If I remember right. I learned in high school how pointers worked when they explained how arrays worked in Pascal. When I taught myself C it didn't ever seem like it was a difficult thing to understand.
Is the concept of pointers really that hard to understand for devs?17 -
Why is pointers... bit shifting.. malloc.. anything that is regarding embedded development is so hard to grasp...17
-
Took a class on computer systems, was supposed to be taught instruction sets, interrupts, pointers, basic gate level digital logic, etc. Professor spent the whole semester going line by line in the Visual Studio disassembler for some arbitrary C code, explaining in painfully dull detail, what each assembly line did. They did this for every class session, including the first, with no introduction to assembly. I lost count of how many times I fell asleep in class.
-
Almost all my family think I'm free tech support.
My dad knows what I do and he's proud because I finished uni (he didn't), he sometimes asks for help (he repairs electronic stuff) and I try as hard as possible to be useful (it's fun!). He knows that (most of the time) I'm working when I'm in my laptop, so he doesn't bother me, he kindly asks if he needs help with something.
My brother's studying the same I did, he's doing fine. I think better than me when I started.
My sister knows that I can repair her phone/laptop but she asks me to do it whenever I have free time and how she can avoid to "damage" it again.
My friends think I'm awesome, but I'm in constant stress (thanks imposter syndrome!).
My dog, he just barks and smiles whenever I'm around and he thinks I'm awesome, so I have that going on for me, which is nice.
🐶3 -
Today I got a segmentation fault in C#.
No pointers. No unmanaged dependencies. Just managed code. Seg fault.
Uhhhh...20 -
LOL that's why I love C!
The function pointer cast for strcmp because qsort expects a compare function with two const void * pointers instead of two const char * pointers, that's just beautiful.
Not to mention the hack to abuse strcmp on a struct - which just works because the first struct member is a string and the rest just gets swapped with memcpy as opaque data.
I guess that wouldn't pass a code review at work. :-)6 -
I just started as a computer science major, and I'm a little irritated because I think I know more than my proffessor. I was excited that I would be pushed to my limits, but the other day I asked him for things I should work on to get ahead...
Him: Sure, page 475 has some good projects. Just don't go past chapter 9 unless you're confident with pointers.
Me: I did C before C++ and I hated pointers.
Him: C doesn't have pointers, you must have been using a different version of C.
Me: OK
Like really? I just can't wait till next semester.7 -
Bit the bullet and installed VS and relevant compilers for C++ and started fucking around with sdl.
Not as terrible as I thought it was going to be.
Pointers seem pretty intuitive. Apparently my time with python has not in fact mentally mutilated me.7 -
Hey devs!😀
Will drinking coffee help you reduce your sleeping hours?
I'm used to sleep 6-7 hr but still need more time , wondered if I can reduce it to 4 hr with drinking more coffee.
Any pointers?42 -
There are so many. One that gave a lot of warm fuzzies, was when I was teaching pointers in a C++ class, and as I was describing them, watching the faces as the light bulbs came on one by one. You have to understand, these weren't school students, these were professional Devs adding another language to their coding toolbox. It was so cool!
-
!rant
In the office, sometimes we order food for lunch.
Me: *goes outside the office to make the call*
*Coding partner arrives while I'm on phone*
Me: *realize that I forgot to ask him if he wanted food* Hey dude, do you want to order something?
Him: *thinks* Nah, I'm fine, I brought my own lunch
Another Guy: That's good because we already called!
Me: Yeah, but it doesn't matter, I can call and tell them "Order++"
Him: Nah dude, tell him "++order", because maybe he'll bring the orders then go back and realize that he missed one
<<<<
I don't know, it was funny for me 🤷♂️1 -
FUCK YOU DIGITAL OCEAN!
I know, I fucked up because I lost my backup codes, but tell me, WHY THE FUCK CAN'T YOU ANSWER AN EMAIL THAT IVE BEEN SENDING SINCE THREE WEEKS AGO?
You motherfuckers12 -
I am working on an open source game project, and the most common way to draw things is using a class named ManagedSurface. The class is otherwise awesome, but it has a method called getBasePtr(x, y), which gives you a pointer to the requested coordinates. Fair enough (this is C++ without STL by the way).
But WHY THE HELL CAN I REQUEST ANY POINTER THAT I WANT, EVEN IF IT'S OUTSIDE THE SURFACE? Other cointainers have sanity checks, asserts and such, and the surface KEEPS TRACK OF IT'S WIDTH AND HEIGHT.
WAS IT SO FUCKING HARD TO ADD assert(x <= w); assert(y <= h);???
I spent 3 days on valgrind trying to find a heap corruption that manifested at random points in the code.
FUUUUCK!
On the bright side, I learned how to use valgrind (which is awesomely awesome).4 -
"Change it so nobody notices you copied"
I think Kotlin logo was first, other icon it's just a random FB page/Website that IDGAF3 -
// Tired as fuck adventures, yay
I was once coding and researching for a school project, it was around 1AM (yeah, I'm a pussy that needs to sleep at 12AM, otherwise I'm useless all the day long) and a friend was with me, he was doing another stuff.
Suddenly, out of the blue, he asks me "Hey, how much is 12 multiplied by 430?", so I say "Let me check", press Win+R, type "notepad", enter, write operation and wait looking at the screen.
"why this does not work?" I thought for some seconds until I realized I fucking typed in notepad and not in the calculator.
Just laughed my ass off and went straight to sleep. Until today, my friend thinks I'm deranged.1 -
Some weeks ago I read a rant about someone saying that it's superior uses Word for webpages.
This is sick, it's a fucking word document, with an embedded picture.
http://www.cne.gov.co3 -
Both GCC and Clang can switch off the braindead type-based aliasing rules through the "-fno-strict-aliasing" compiler option so that everything can alias everything.
On the other hand, C offers the "restrict" qualifier for pointers where you promise that nothing will alias this memory area, not even same type pointers.
What happens if you use "restrict", but compile with "-fno-strict-aliasing"? Will the "restrict" be obeyed or disregarded?
Answer in the comments.8 -
Recently covered pointers in class. I know how to use them/Have an understanding of what they do, but why would I need to use a pointer in the first place? What problem would need to be solved through the use of pointers?15
-
Before I decided to learn C, I had heard tell of pointers being "hard to use". Of course I thought "maybe so, " after all, that was basically the only thing I heard about pointers, "they are hard!".
And so, when I learned C, and I got to the part about pointers, I was expecting at least some trouble (I can't know everything) and it was just... easy? Maybe the trickiest thing was how * has two different meanings based on the context (declare/dereference) but that was easy too.
Why the hell is all I hear from people about pointers is that they're difficult?15 -
Oh you're a real programmer because you use pointers.... Big man you are. Meanwhile I'm at home because I use a garbage collector and don't have any memory bugs.9
-
Got told by a senior engineer to basically fuck off with my standard library containers like vector because they are used by people who dont know how to write code in c++ and don't know how to handle pointers.
Am I wrong for trying to use as much possible code from the standard library?13 -
I used to work with a teacher in my last uni year.
The job consisted on doing a kinda-like management system for a business. It all began kinda "right", we agreed upon a price for 6 months of my work (a very lowball price, but it was just right because I was learning stuff that we were going to be using).
Fast-forward first six months, all I do is code frontend, mockup screens and whatsoever because this "business" hadn't give us proper requirements (Yeah, I told him to ask for them, but nothing came through).
So I was like well, I'll keep working in this project because I really want to finish it. Sidenote: I was doing all the "hard work", he didn't know how to code, and he calls himself a teacher... wtf).
Months go by, and a year goes round, in between these months, he spoke to me, that he wanted me that we kept working together, that we could renegotiate the payment (I asked him to give me my payment once the job was done). I agreed, but my uni residence period was coming along and I got an oportunity to go abroad to another country.
So there I was, in the need of money to buy my passport, plane tickets and other stuff, so I asked him for the payment.
Needs to be noted, that the last 6 months work was me doing tutorials on how to fucking use Linux, how to use PostgreSQL, how to fucking use CSS! He told me he would pay me extra for it.
The day came, and I received my payment... the exact amount we talked a year ago, I was like "Seriously dude?", but well, I needed the money and I didn't have time to argue, so we talked a little bit about me helping him and I told him "As long as I have time, I'll help, but remember that I'm going abroad to work for a small startup, so maybe I'll be up to my head with work" he agreed, we nod and then I left.
First week abroad came in and I was doing a shit-ton of stuff, then his first message comes around "Hey, I need more tutorials! ASAP! Before 6PM"
What.The.Fuck. I told you, son of a bitch, that I wouldn't be able to do them until weekend.. and it was monday!
So I ignored it, weeks went throught and my "angry mood" was fading away so I said to myself "Well, it's time to pick up that stuff again", I open Slack and I find a week old message with a document attached, it was a "letter", I just skimmed by it and read some keywords "deceptioned... failed me.."
Sure dude? Was I the failure? Becase, as far as I remember, you were the fucktard that didn't know how to fucking install a VM!
A week went by, and then randomly a friend of mine talks to me through Facebook:
E: Hey, how are you?
M: I'm fine, what's up?
E: What did you do to TEACHER?
M: Nothing, <explains all situation>
E: Well, It seems weird, that's why I wanted to talk with you, I believe in you, because I know you well, but TEACHER it's thrashing shit about you with all his students on all of his classes
M: Seriously?
E: Yeah, he's saying that you are a failure, irresponsible, that you scammed him
That moment, I for sure, lost all moral responsibility with him and thought to myself "He can go fuck himself with my master branch on his ass"
So when I got back to my country, I had to go around in school, avoiding him, not because I was ashamed nor anything by the way, just because I knew that If i ever had the disgrace to meet him face to face, my fists would be deep into his nose before he could say "Hey".
Moral of the story:
If you overheard that a teacher has a bad rep, not by one, nor two, but more than +100 people, maybe it's true.
Good thing my friends and others know me well and I didn't have repercutions on my social status, I'm just the guy that "fucked up TEACHER because I had the right and way to do it"4 -
Rant rant = new Rant();
rant.type = Rant.REVELATION;
rant.content = "
Being depressed with recent stuff about my ex, I've been going out a lot more than I use to, thus engaging in conversation with people I've never talked to before, and it made me realize something. Maybe it's because the world it's more connected nowadays, but I think it's more about our career (be it CS Engineer, Software Dev, Web-Dev, etc...) and correct me if I'm wrong but I think we are the kind of people that knows about everything (maybe not everything, but know basic stuff that can't be considered general knowledge) because that's what we do, we spend our days updating ourselves, growing in knowledge.
What's my point? That, thanks to this ability, we can work, cooperate or even socialize in a rather easy way. For example, I learned bit of color theory and design principles for a school project. Fast forward some months, I meet this girl that had a degree in Digital Design and I could talk to her about her field, and even knew things she forgot.
I don't know, for me, it's amazing how we can shape shift and mold to the situation, easier than any other career.
Am I wrong or missing something? Let me know
";
rant.publish();5 -
Uninitialized pointer is not the same as NULL pointer !
Uninitialized pointer is not the same as NULL pointer !
Uninitialized pointer is not the same as NULL pointer !
Uninitialized pointer is not the same as NULL pointer !5 -
Rewriting the entire codebase anytime I learn that I was doing something wrong.
Rewriting entire functions whenever I see that my coworker coded bullshit on the fly.
In a nutshell, I should stop trying to rewrite everything!2 -
Having fun with some kind of pointers in Java right now...
This is a small program which first gets the address of the String variable and then 100 times the address of the addr variable, prints that address and dereferences it 101 times, to get the actual String back. But does it have an actual use case?
Apart from that, it's interesting to find out about how Java handles memory and stuff...2 -
rant = Rant.STORY_TIME
<<<Story
This is still something funny me and my friends often remember.
There was once upon a time we were young and stupid, playing on the internet with fake credit card numbers, sometimes we had luck and the orders passed.
We were on the living room, checking who could put an order for a coffee machine, while another friend of mine was talking about the deep web and what he found there.
Suddenly, someone knocks really hard on the door... We went silent...
Me: "Who's there?"
Voice: Federal Police, open up!
Me: *shiiiit*
I went blank, close my laptop as fast as possible, I thought of throwing it away through the window. My friends panicked, I had my laptop upside down, opening the lid to remove the HDD.
One of my friends stood up and went to the door, looked through the eyehole.
Friend: *whispering* The eyehole's covered!
We quickly stood up and looked at each other, like we were acknowledging our wrong doing and getting ready to face the consequences.
I took a deep breath and put the key in the door to open it. Sudden heavy knock again. I jumped and yelled "I'm on it, wait a minute!".
Slowly I opened the door... And there they were, another two of my friends.
F1: hey...what, what happened? Why are you so scared.
They stepped in while we told them what we were doing and they laughed their asses off.
We were shit scared, and those two were laughing.
Story;
So, nowadays, I don't even think about doing that kind of stuff again and I'm hoping to make a Master's degree in security...or electronics, whatever happens first. -
char *screw={'1','2'};
char **This={screw+1,screw+2}
char ***Shit=This
printf("%s ", *--*++Shit+1);
Exactly4 -
YOU DENSE MOTHERFUCKER!
If anyone read my last rant, I talked about how I wanted to buy a new phone with a subscription line, but they didn't allow me because "the system says you already have one and you're over due with the payments"
FUCKING MORONS, I don't know who coded the system but I will find you and bury your head in your own shit!
They use people's RFC (Mexican Tax ID number) to create an "account" and allow buying a phone. The ID it's composed by:
NNNNYYMMDDXXX
Where N are letters from our name, then they use our birthdate's year, month and day, finally they generate three unique characters to avoid ID clashes.
Well, this stupid fucker who coded the system thought it was OKAY TO STORE ALL BUT THE CHARACTERS THAT MAKE THE ID UNIQUE.
Fucking fucker...what were you thinking?2 -
I love this website https://dimden.dev/
It has a little live chat for others that are on the website, bridged to some discord.
It shows the mouse pointers of the other peoples that are on that website.
It has a cool retro aesthetic and it has 88x31 web badges.2 -
Did anyone heard about modular C?
I'm working on it at school, it's like how to do OOP in C with structures and function pointers.
We're developing the String class but next, we will make a basic C++ implementation in C before beginning the real C++
Do you think it's a good path?5 -
Am I the only one who enjoys learning low languages like C/C++ and absolutely hate Java (seriously FUCK Java so much I hate using it)
Working with pointers and just having the compiler completely explode in your face because you forgot a semicolon or an index out of bounds maybe a bracket just disappeared and you are frustrated but then you fix it and voila it works like magic.
Maybe it's just a thing of mine because C++ was the first programming language I learned and I miss this feeling of hopelessness (I think I might have done BDSM fetishes) and it makes me feel nostalgic.
When I was first learning them all I thought about was how cool this stuff is.19 -
!rant
So coming from the interpreted language world (mainly using python), I'm always amazed on how compiled languages work. Especially C.
Every time I use C, it's like everything is sooooo faster (runtime), and yes I've read about it so many times. It's just that I can't explain this great feeling about actually seeing the results of using C.
Man, I think I just love C (even though I'm still confused in using pointers).4 -
I UNDERSTAND POINTERS (kind of) HAHAHAHA NOW I JUST NEED TO KNOW HOW TO USE THEM AND I WILL BE UNSTOPPABLE15
-
!rant
I was coding some simple themes for a management system I'm currently working on my job, then I remembered about @Alice and I thought to myself "Fuck it, why not?" and added a subtle pink theme3 -
So we had a guy who spend decade in automotive, flight simulation and stuff. C mostly. Lasted only a month of his probation period. Didn't seem to know about double pointers. Maybe coding standards in automotive even discourage them...
But made me wonder how to judge skills. - I tend do be on the cautious side, as I hadn't really understood inheritance and many basic things when I started. But luckily my first boss believed in me, saw me gnawing through (Well about my 'initiation' that'd be others stories to tell). Well, guy was hired as a 'senior', so they expected bit more. Dunno, still feel a bit strange about it, even if I ranted about his chattering before, coz he also had his heart in the right spot, but maybe it's for the best anyway...
But guess who's taking his place in our team! Drumroll.. Yes, Mr gitmaster is. -
Our teacher gave us some code to better understand c pointers. The only problem is that it spits out a dozen of errors when you try compile it 😂2
-
TIL pointers are slower than normal variables, and it makes a lot of sense, when previously I had thought the opposite.7
-
+ Have a decent work in another country
+ Married (not kids yet)
+ Get my PhD in something
Future me, if you succeed, you owe me a fucking lot! Otherwise, well, fuck past me!4 -
TL;DR - Mining coins to solve captchas
I was puzzled when I clicked to download something and this little captcha thingy appeared. I clicked, as usual, to solve it, but was amazed to look just a progess bar going and going... then I saw a little legend that says "what's this?", click and this is the link
https://coinhive.com/info/...
Practically, you're mining Monero instead of watching ads and solving regular captchas...
What are your thoughts on this?4 -
I have waitsted whole my day searching a bug with memory allocation in C++, and still don't know how to fix it! That moment, when coding took me far less time than searching that fucking bug... I feel that i missed anything, but all looks ok
I HATE C++ WITH IT'S FUCKING POINTERS!!!!!25 -
I HATE YOU STREAMING SERVICES! FUCK YOU!
Here's the setup:
I work in a rather small office, where we are like 7 people (including me). Now, there's one person in charge of putting music through speakers (obviously, not everyone enjoys the same kind of music)
Well, we have a hell of a small bandwidth (1.5MBPS tops), now, add to that that every single fucker here uses "Spotify" and it's streaming their music...
WHY!!!!
Good side: I have my earphones and ~30GB of my music on my phone, so it's not an issue for me, also, I'm kinda audiophile, so Spotify quality sucks.
Bad side: I can't even fucking load Google because those fuckers are eating the bandwidth.5 -
So today's the day the child leaves the babysitter.
Today's the fucking day that I learn why the fuck everybody says date's are a fucking headache. Or was it yesterday? I don't know.
Fucking dates, timezones, time calculations...5 -
For a long time I was of the opinion that pointer variables in C/C++ should have the asterisk immediately after the type name (e.g. int* foo).
Eventually I became convinced that it makes more sense to have it before the variable (e.g. int *foo).
Now I find routines that return pointers look weird, e.g.: void *allocate_something() so I am considering adopting the original style I used.
The only advantage of having the asterisk before the variable name I am aware of is that it is easier to remember to add an asterisk if you define more than one pointer on that line.
Anyone else find it hard to settle on code style guidelines for their own personal projects?12 -
Talking about adrenaline sports in a class and our favorites.
Me ? Writing C code without checking for null pointers!
What about you ?1 -
typeof rant === "Encouragement"
Never let your self down, try to be your own const in life that know his scope and traits well enough to construct a peacefull life without any uncatched exceptions. Also try to return something to the public, keeping your magic pointers to your private makes it hard to review your glorious source of thoughts. And if it is getting hard try to REST a bit and git some timeout.
😉1 -
Debugging when you deallocated an objected which is still referenced by pointers else where is like find waldo with a 2x2 meter picture. Except you don't know what waldo looks like.3
-
Since day 1, I've been eager in learning everything dev-related in English, and as it, I've focused on thinking, writing, shitting and eating english for a basis.
Now, where I work, I say, our country native language it's Spanish, but I feel bad whenever they tell me I must write everything in Spanish (code included). Maybe I'm overreacting or something.
So, here's my question for you, devs, when you're working on a coding-related project, should it be on English or not?3 -
c++ has a little bit of a learning curve, I think.
Used smart pointers everywhere in my code because I heard that's what we gotta do nowadays.
When learning about shared vs unique vs weak, I disregarded weak pointers because I didn't really understand them.
"That sounds like something for liberal pansies", I said to myself, then continued on with my STRONG shared and unique pointers.
Now my app leaks memory like a MOTHERFUCKER, if you can believe that.
So now I need to go back and manage my object lifetime with more intent instead of just making everything a shared pointer. Fuckin circular references. Fuckin reaping what I fuckin sow. God damn.9 -
So I’ve asked one hipster js developer what does he think about golang. His answer was:
- it’s the same as nodejs, but difference is that go has pointers
O_o7 -
I always wanted to learn more about C and learn the dark concepts in it. But whenever i search for it ( like.. " Advanced C concepts " ) or find a book , i end up finding dynamic memory allocation and using single dimensional pointers.. Maybe i am searching it all wrong .14
-
Some kid on stackoverflow, just starting out in the coding world, posted his resume to the board and asked what people thought.
Immediately recieved 3 negatives and then had the post removed.
Pretty shitty community - we all started out once, just give him some useful pointers. What a miserable lot.10 -
C++. Damn the pointers. It's because I learned Java before C++ and the memory management in C++. I don't get it ever, the object creation, memory allocation, deallocation and everything4
-
I am learning exploit development on Windows and I have a problem with it, when I analyze the registers ESP and EIP.
I am able to overwrite both ESP and EIP.
The problem is that I can not make use of "mona.py". "Mona.py" keeps showing me that there are no pointers and any os dlls whereas that is not true.
Immunity Debugger is working completely fine.
I need "mona.py" to find pointers to ESP, but it says there is none.4 -
Interview pointers please
I've so far applied around 5 jobs and none of them have reverted back to be. I think I gave my best but have not been able to crack the personal interview..
Any pointers??4 -
always free your pointers people.
what's worse is when you preach that to people and end up being the one who leaves dangling pointers everywhere
woop memory overflowed
woop woop system crashes and you dont know why
woop woop woop sometimes it doesnt crash and you dont know why2 -
Does anyone knows about OLAP cubes, Rollups and whatsoever?
I'm wondering if this query it's overcomplicated...
Just trying to achieve a sum of amounts by month on a year lapse6 -
First Year in College.
I have been into computers since 9th Standard. What I meant was I could make music, edit images, play and install games after downloading, hack them(change values) using Cheat Engine, make trainers for myself because why type when you can freeze, format computers using a pendrive (trust me, I saved a lot of money) and then finally, make some presentations and send emails.
Now, College begins. Programming in C language. I don't know what the fuck that means. But they say, it's 'essential'.
Enter Professor. "Okay students, we begin with the course on C Language. how many of you know pointers?".
Me: Wow. Sounds cool. But, I don't know anything.
I couldn't love coding. I think I love to code but at the end of the day, I'm a sick Undergraduate who fell in love with a Bass Guitar and Vocals and wants to code for a living. Heavily interested in changing the world and all that stuff but have no motivation and even if I have, I can't give a fuck about it.
Peers are getting medals everywhere. I'm sitting alone in a room learning C. They said, It was 'essential', but they never told me, 'why'.
Not a rant. IDGAF what you think but I'm a failure looking for ways to make a living.6 -
Teacher asks me to join him for a web app development.
First stages, I have to dig deep into a framework I don't know (He doesn't know it too, and I know that learning is the only way to step through)
Month goes by, began developing some mock-ups, he says he didn't like it, sends me a website made in fucking Wix. Seriously?
Fast forward another month, tonight I'm coding some stuff, he stills doesn't know how to fucking use Yii. fml4 -
Sometimes it confuses me, if I have to use pointers or not in c++ & qt. Especially when both variants work fine. :)1
-
Back in NAM those who left the pointers without cleaning them we called them DESERTERS and made them sleep with the dogs.
-
The moment of truth on wanting to be a programmer or not... Is when you learn about pointers in c language.2
-
I've always been a tech fan. Made my first site when I was 12, but I stopped at HTML and CSS. Now I started coding, and here I am - 24y/o studying pointers in C. I don't even php.
Am I too late? How old were you when you first started coding?9 -
Every assignment is done by reference in JavaScript... like why? Lemme use a pointer when I need it.
ES2016 looks so much like Java, I swear nobody will notice if they added pointers... and over 9000 more confusing features.12 -
Somehow I wrote some code that ended up comparing a string type object against a pointer of an unrelated class. There are NO functions to convert that class to any kind of string representation. Let alone ones that would allow that to happen in C++.
WhyTF did the compiler not pick up on this?5 -
I was just messing around with flags in Chrome for Android and...well, unlocked the new version (or didn't know if it updated without me noticing)
I dig the layout4 -
I joined a project that has been in development for four years. After a couple of weeks of getting used to what has already been done I saw some strange coding.
One thing that struck me in particular was how often I saw pointers to pointers of objects being passed as arguments without any obvious reasons.
Only after I got to write a new functionality myself did I see why that was done.. as I needed to do it too. I had to allocate the memory for an object that was given as the parameter.
C is a hell of a language.. just as I thought I was good at it things like this happen. -
Scheduled an on-site. *internal screaming*
Does anyone have any resources for studying distributed computing and operating system topics or have any pointers for studying for a systems design interview?
Also, how did y’all get comfortable with recursion? I don’t have issues with problems I already know the solutions to but it’s like when that’s not the case my brain just goes into panic mode for a bit.
Teach me your ways?7 -
Functional Programming Class, an assignment it's that we should develop a calculator, creating our own basic functions (addition implementation with a half-adder and string manipulation).
Teacher tolds us that it has to be coded in Haskell and for the GUI we can use whatever we want, then this fucktard comes around and speaks like he knows everything
Him: Oh, yeah we will use IntelliJ to link the Haskell code with a GUI, because IntelliJ supports Haskell
Me: But IntelliJ it's a(damn) IDE, you still need to code the GUI.
Him: But IntelliJ supports Haskell, we will use it to build the GUI.
Me: Yet what you're trying to say it's that you will use Java to create the GUI and call from there Haskell, and that you will use IntelloJ forms to create the UI
Him: No, no, we're not using Java, we will use IntelliJ, are you dumb? Don't you know what's IntelliJ for?
*Fucking facepalm*
I don't know but at this point I'm not feeling proud that THIS kind of retards are going to graduate in this year...3 -
Where can i get good second hand servers, am planning to homelab cluster. Will appreciate any pointers ...8
-
!rant
I love to work on my machine, and being it
my work-horse for school and side-projects, I have a neat dualboot of Windows 10 and (driver-related) Ubuntu Mate.
Ditched Mate because screen tearing, got Cinnamon, but I have to say, that W10 UI appeals a lot for me, so... what kind of Windows is this?4 -
!rant
Recently I bought a Moto Z2 Play, and it really it's an amazing phone, it includes the battery mod, and given than with my average usage, it lasts for me for day and a half, I'm more than happy :D3 -
I'm the maintainer of the Godot Engine package in AUR, some users have commented on the package that they would like to see it in the community repo of Arch Linux, but I have no idea how that is done.
Any pointers?8 -
Making a function pointer in C and typedef-ing it.
Done wrong. Every single time.
Look up in the internet.
Copy a typdef-d function pointer.
It works.
Check it's syntax.
THE SAME FCKIN SYNTAX AS DONE FIRST!
And that's why I hate function pointers.2 -
I'm (rarely) in the mood of coding (on a weekend!, that's weird for me).
Anyone can suggest a small idea? I'm planning on doing it with flutter, so let's keep it simple.
If I manage to get some progress, I'll keep you updated and post the repo link -
Why? Why?
Of you, you were the last I've expected such failure and misery...
Not once, not twice, but I have you a chance so many fucking times...
I won't deny it, we've been through good times, done so may things together, and I admit that I'd never be able to work without you.... this codependence is just too damn fixated...
But, I think I should part ways with you, I'll visit sometimes, not just to have fun, but mostly because of work matter.
Sorry Linux, you've failed me, I'm leaving you for Windows.3 -
My best teacher was with me for C++ in high school and in college. He had the most relaxed, laid back style while managing to both make the lessons fun.
Perhaps my favorite lesson was around C++ and Pointers. Lessons generally we mixed with long ramblings about the military and live coding examples. He was talking about object references and Navy ships when he told a student to "give me the USS Wisconsin". Perplexed, my classmate said he wasn't sure he could do that without a lot of help. So this teacher drew an arrow on a piece of paper, showed it to the class and then found the general direction he wanted it to aim for and taped it to a pole next to the stage. He called that a Pointer to a USS Wisconsin and then asked the student to give him the USS Wisconsin again.
I understand pointers today because of that lesson.2 -
Does anyone have problems with Android instant run?
Fucking hell, I spent one hour yesterday debugging an error, until I noticed that the code in the APK wasn't updated, because it was sending an error of a non-existent line.
Sometimes it works okay, but damn...2 -
Hi everyone!
I don't know if there is a one size fits all solution, but could get me some pointers on how to make built in laptop webcam work with linux mint 18.2?11 -
Thinking of migrating to Stockholm...
Life in Greece is pretty intolerable and only getting worse...
Any tips? Pointers? General wisdom?
Is it relatively easy to get a job there (competition-wise)?16 -
Story time!
I was with some friends, one a CS student and the other one's a mechanical engineer student with coding like a hobby.
I was listening to a song from which the band released the stems (individual tracks) of a song, and this dude made an anime version of it.
Me: Oh God, this is awesome
Mech: how did he do that?
Me: What? The song?
Mech: Yeah, how did he split the voice and everything, is the music like an Ajax request and he queried for the voice
Me and my other friend lock eyes and began to laugh so fucking hard.
Me: that's not how it works, why did you though that?
Mech: I don't know -
!rant
Went to a hackathon this weekend. We didn't win, but at least I can say I enjoyed working with the guys and we finished the prototype on time.
So, if you have never been in a hackathon, you should go, it's an awesome experience and even though if you don't win, you'll end up learning a lot. -
A wonder happened and I accidentally understood the whole thing about pointers.
Thankfully before the test on Saturday.
Here I come Dynamic Data Structures!5 -
In the first one, the group would just not get to agree at something, they'd spend hours talking about an approach.
First times, I was like "Hey, why don't we do this?", they began to argue and half an hour later, they agreed to whatever I said in the first place (they didn't acknowledge what I said and they tell me they came with the solution and that I didn't say anything)
Fucking shit, if only they listened in the first time. -
C is love, C is life.
Great language.
I genuinely don't get why so many people are struggling with pointers, considering it's a pretty straightforward concept. I understand that they can be complex in simplicity, but the concept itself is much easier to understand than say, references in OOP languages(despite being the same thing under the hood).
I mean it's just a number like any other number, except that number is treated as a memory address, and the star(* - dereference operator) just takes a value, goes to the memory address that is the value, and takes a value from there.
I feel like most explanations and tutorials just try to over complicate it for no reason.27 -
As if the day could not be worst.
I've a delay with an app for a school project, my stomach hurts like hell, I'm sleepy, my phone's SD card fucked up.
At least I still have some soda left, though2 -
Working with a pointer-linked graph. With pointers referencing pointers referencing pointers referencing pointers ref....
*explodes*
it's not (only) bad code, its my life now.1 -
I was volunteering outside my country through an association that sends you to startups that are related to your studies.
It was a three month stay, and my first time out of the country, so it was exciting and scary.
On my last month, I checked LinkedIn (it's been months since I logged in) and I had a message from a week ago, by some dude with a startup of webdev and marketing located in my home country and home city.
I replied saying that I usually don't log into LI and that I was interested in the job, sent my CV. Days went by and I had no answer back and I was like "Damn, why me? I really wanted the job". Last week of my trip I got a message back from him, telling that he was interested and that it would be awesome to talk when I got back to my city.
When I arrived, a week went by before he called me and confirm the first interview. When I went to the interview, we talked about the job, what was needed and that he didn't have to test me because he was confident on what we've talked previously that I was competent enough.
Needless to say, it's been a month and two weeks since I began and I couldn't be happier, it's not the bad ass company anyone would like to work for, but they have an awesome team, they are comprehensible and it's growing fast. -
I acknowledge that I didn't know how to program until I was in 5th semester at my second try on data structures.
God! The best teacher I have ever had, and if it wasn't for her, I wouldn't have learned what I know!
From that point onwards, it was just reading books they way that kept me up.
I know you're not here, but thanks Ms. Juanita 😁 -
Okay I've commented on multiple people's post already but I've decided to write a rant on it.
GOD I hate C++. For our software architecture minor we have to develop a game with only C++ and SDL and it's been one big freaking nightmare.Where almost every freaking language I've worked with has a proper way to add third party libraries most of them in C++ don't even fucking work after spending half a day. I know a lot of you guys love programming in C++, but it's been the language I've been struggling the most with in four years of university. Unbelievable. Fuck it's freaking pointers and all it's bullshit.3 -
Suppose you made a tool for your STL that throws compile-time errors when trying to copy references, so your pointers remain tidy.
Suppose also that the language has a a turing-complete preprocessor that can be used to throw useful errors.
Then WHY THE FUCK DOES UNIQUE_PTR NOT OVERRIDE THE DEFAULT ERRORS WHICH TELL ME NOTHING ABOUT WHAT I FUCKED UP BUT PRETEND UNIQUE_PTR IS AT FAULT FOR NOT DEFINING "OPERATOR=" ? -
My first game jam,
I was first excited about coding but when I started, I was caring about making my code clean, and I lost too much time focusing on this... You should see the end, such a mess ! Spaghetti code, pointers everywhere but hey, it worked 😊 -
Is it a good idea to go to a coding bootcamp and shell out thousands of dollars? How about a college? I know some devs think it’s best to self learn and pay no one. I’m currently trying to make a big decision and looking for pointers.3
-
Thanks for your email and any other information you have a great time and consideration of this email in the end the game and the rest of my life and death and resurrection I am not able and willing I am not a good time and I have to be able to do the same time and effort and I am going through my resume to the inbox to be in a career change it back on track with you to see the profile photo album and a couple weeks...
When you just click through the autocomplete...4 -
So I'm looking for a tutorial somewhere to manage auth with react.
I have passport local setup with jwt in express, but looking to manage users in the front-end, managing the user state app wide, logging out, protected routes etc.
I've done some searching around but I can't see anything to concrete. Any pointers or articles would be great.
I was thinking of localStorage but not sure how to go about setting that up with react.3 -
Some guy:
- one hundred thirty seven is twenty one
- twenty one is nine
- nine is four
- and four is the magical number
Me: *shouts* Lies! CAFEBABE it's the magical number11 -
Just wondering on some agile best practices. Do you guys estimate efforts for defects? My PO is totally against it and says we deliver 5 to 7 pointers user stories + fix all the defects from previous sprint and current sprint, which I feel is over burdening the Dev team + in hurry to complete current sprint stories delivering poor quality work, which in turn become defects in the next sprint 😨 caught in this loop for a while now 😫4
-
Anyone used unreal? Keep thinking of learning it but can never get around to it. Any good guides/pointers?1
-
Java's such a bitch, it won't house pointers but throw a NullPointerException at even the most insignificant lines possible.1
-
My first real programming teacher. She showed us strings, then made us use dynamic arrays in C++ for a year and a half. But we learned pointers and arrays very well!
The hard way can be the best way for education. -
FLUTTER
I want to reduce the width(length) of a Slider widget. (Seekbar). I want to display time labels and some icon button on the sides...
It’s overflowing in a row...
Anyone any pointers or alternative ideas pls :( -
After getting fed up of “being productive” I fooled around on GitHub and had a look at the Stuxnet virus source code which was obtained using a decompiler. Experts who reverse-engineered it found out that it was written in “object-oriented C.” While C is not an object oriented language, anything you can do with classes you can do with structs, static functions, pointers & function pointers. You can see this coding style in the Linux kernel, CPython interpreter and many other places. That was the first indication that a government agency or defence industry was responsible. Amazing stuff !6
-
alright i know this is not the right place and all but I'm running out of options nothing from so works for me i need to start a download by calling a POST method in my api tried using a form and some ajax but nothing working anyone can give pointers ? (vanilla js jquery no framework)2
-
I fucking hate the black matte finish!
I mean, it's nice and elegant, but for things that will be used, it sucks, they get this ugly glossy wear that makes them look dirty.
Do you guys have a laptop with this issue? Does it annoys you?6 -
This was a project for school, we had to simulate an app that traced bus routes over a map.
All the teams but mine do it in Java (desktop app), we took another approach and did it on Android with the Maps API.
I had fun coding a parser, this parser job was to read a file and load the bus routes and draw them on the map.
It was structured like:
NAME
COLOR
<lat, long>
<lat, long>
The fun part was coding and telling my teammates "chill out, it will work", so we finished, built and run and... done! First code working smooth AF.
I know it's a simple parser and a simple app, but it was a nice feeling not having to debug the app.1 -
section .data
msg: db "ASM, Love Or Hate?",10
msglen: equ $-msg
GLOBAL _start
_start:
mov rdx, [msg]
mov rdi, msglen
call print_stdout
mov rax, 0x3c
mov rdi, 0
syscall
print_stdout:
mov rax, SYS_WRITE
mov rdi, STDOUT
syscall
ret5 -
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 -
A device that makes women understand that we cannot focus on them all the fucking time, therefore, making them understand that if we can't does not mean we don't care...3
-
Jfzktdlhdlhxsdlgzmh 😡😡😡
Started getting crashes constantly on all browsers, games and whatever.
Seems to be related to gen 14 Intel CPUs and Asus motherboards but my BIOS didn't have the settings I was told to change.
Anyone knows about this and has any pointers? They would be much appreciated.7 -
The way the responsive design says that Google has a "Guide for Existing"
God, I need one of those!2 -
!rant
Should I buy a mechanical keyboard? I've tried some basic Dell and so far they feel "sluggish", I can type faster on my laptop keyboard because I feel like "gliding between keys as I stroke"
Maybe I should try better ones?9 -
!rant
I work currently on a little startup and something that bothers me it's that even though I've been telling them I'm a Backend developer, they want me doing Frontend.
So, I beg to you, fellows, any recommendations on books or tutorials to learn CSS good practices, design, scrolling animations and whatsoever?4 -
Have a freelance job where they require documentation of the code for later development. (+ I'd like to document my personal projects for practice)
Any web devs that could give some pointers on what kind of docs you would like to get if someone hands you a legacy project?
Obviously: comments in code and db structure and relationships1 -
Built the most generic file importer.
So a customer had his SAP system giving us some 5 million barcodes in a csv which we needed to parse. But as there could be different file types and I thought the handling would always include the same steps I made them configurable through function pointers. - Did not want to make it as spooky as the rest of the code base where the function pointers were buried deep in some shared memory configs, which might even change at run time, but rather I statically used the member functions of my class. Just to poke fun on the ugly C++ syntax of member function pointers. I still shudder at the thought some poor soul now has to maintain that code.
(For the actual parsing I actually used a one liner in awk which was churning through the records in one minute which was faster than the SAP guys seemed to be accustomed to.) -
The crazy shenanigans you can do with C++ standard libs are fascinating.
Like implementig multithreading with just a foreach, and bindings which can make member function pointers to simple function pointers, and placeholders in bindings. Also lambda functions are cool.
Something between the lines:
my_crazy_class *tmp = new my_crazy_class(...);
std::vector<type> my_array = .....;
std::for_each(std::execution::par,my_array.begin(),my_array.end(),
[&](type in){
auto fn = std::bind( &my_crazy_class::my_crazy_fnc,*tmp,_1,random_static_value);
return fn(in);
});
ps:
It's pretty much pseudocode, and please don't do things like this, it's bad for your mental health.
pps:
I need to learn how to use this tools wisely. -
Guys I really need some help. If anyone has done I2C on Android things or can give me some pointers while I wait for a logic analyser I would really appreciate it. Even an upvote on the question (the Stack Overflow question, not this post) would be helpful: https://raspberrypi.stackexchange.com/...
-
I need to make an app that can scan addresses from labels of parcels, and converts into map route. Where do I start about the recognising of address? I’m lost. Any pointers would be helpful.14
-
Hey Guys,
I'm from Bangalore, India. And I am planning to setup work station at home. Does anybody any pointers or sample workstations you already have set it up and running?3 -
C/C++ considers pointers to be declared next to the variable name rather than the type name (int *x, *y vs int* x, y).
I know this but I still consider * to be more associated with the type. Therefore I'm one of those people who declare each variable in its own line and group the type and * together. (int* x; int* y)5 -
So I thought I had a basic, high level understanding of C++ STL strings, pointers, copy constructors and stuff. In comes a dirname, a -D_GLIBCXX_USE_CXX11_ABI=0 and... Toto, I've a feeling we're not in Kansas anymore.
So what is happening? I copy a string expecting a deep copy, but then I do the dirname or manipulation on the copy and it messes up *both* strings. gcc/C++ I know you're a beast, but what's going on there? Thing is only possible if I cast away const from c_str - which of course is a doubtful operation - but there also seems to be some strange copy on write logic that the data pointers initially point to same memory location and only with first manipulation on the copy they start to point to different addresses.
I had no clue. And still don't have.4 -
I'm looking for some Remote work to do as freelance or "startup", low pay is alright if there is not too much pressure. I'm a Front end developer who's trying to actually apply some of my React knowledge, maybe someone can take me "under his/her wing" :) , HTML, CSS and Javascript (jQuery) are no problem. If anyone has any pointers or recommendations, I'd appreciate it. Thanks2
-
You know what really grinds my fucking gears?
When I increment my pointer beyond the memory the operating system allocated it.
Who are you to define how much memory my pointer is allocated? You fucking bigot!1 -
!rant
Totally forgot my stickers were on their way. My father just told me he received a letter.
Thanks @dfox and...sorry, forgot the usertag 😥
Thanks for the stickers, as soon as I get home I'll share a pic here and on fb -
Intelligent Development class (yeah, that's how it's titled), teacher leaves us as first task to develop our own Database, because later we will make it a fuzzy database.
She gave us three days. Three (counting me) in the team. I began working on Interfaces (Java development) and so on, using GitHub for VCS and documenting each method.
This assholes didn't even ask what was missing or what should they do. One day before date, I told them "Hey, I think I can nail the underlying file management tonight, so, work on the language parser, please"
Stood awake until 1 A.M., waiting for their reply, but there wasn't any.
Next day, I'm the only one of the team and I tried to decline the presentation of my work, but a friend encouraged me, because it was my work and I worked hard.
Presentation went better than expected.
After the class, I have another with one of my team members, he asks "How did you do?", "Us? You meant me, because the other prick didn't go".
And that's all, not another single question nor explaining why did he didn't answered the DM's I sent.
Fuck those guys, fucking team of shit, I hate it when you can't pick your team, but I guess that's just a common place for all of us here, isn't it?3 -
Has anyone had issues with the Docker Go Client (moby) and using containers with pointers? It would seem that the client swaps pointers or something, so I'd have to use the value instead. Might be very unclear, but if someone's had similar problems, I think you'd understand 😅1
-
Noob here. I'm an Android guy, looking to create a web app. Looking for pointers on where to get started learning. It's going to be enterprise level. Basically a hub of operations for small companies ~10-30 employees. Handle a lot of private info, see need to be secure.3
-
!rant
Is anyone familiar with Shadowrun? I'd like to ask if they "feel" like devRant it's the real-life equivalent to the Shadowland BBS.
I do, and it feels good.2 -
I am from India, residing in Qatar. I wish to move to a different country. I have zero idea, what to do to prepare; where to start, what to do, which country to target......any pointers ?14
-
Why do you have to use pointers in C++? Why doesn't C++ have a good garbage collector? Surely it has to be more advanced than C it has two more +s.....2
-
Need help/ pointers; what to write a simple note app, that prompts a users for user name and emails address, then emails those details to a specified email address ...2
-
!rant but it's a history
Last months I've been working on an investigation for an assignment on my uni. I required to collect specific data, so I coded an app to aid me on that. Time goes by and one day my mobile development teacher calls me (I used the app for my investigation and as final project on another subject) and tells me if I want to go into a contest with my app, "Why not?" I thought.
I asked some friends to join me because the contest required a team of 3 members minimum. In two days I had to justify the development of my app, how I would make money with it and other stuff.
I swear, this app was just a by-product, and I know you're hoping to hear a win story... We got second place, but hell it feels good to think that some sleepless nights coding along could give back so much.
Moral of the story: Never give up any chance.2 -
Any webdevs want to give out some pointers? working together with another guy to build a site for a collective. https://untakenhaven.github.io (github repo https://github.com/untakenhaven/... )3
-
My destructor accidentally modifies some other object wtf !? I made sure to use const keyword to prevent modification and also dynamically allocated data using the new keyword.5
-
I have started a coding channel on YouTube. I won't advertise it here.
Do you devs have any pointers for me that I could use ?11 -
We have a C++ for embedded systems training at work this week.
References are a good thing but after looking for the reason why one object has no reference to the other for half of an hour just to realise that my member wasn't a reference so that i got an copy gave me the urge to use pointers instead. But unfortunately we'd to use a reference in this simple exercise which cost me a lot of time because that damn reference.2 -
Ummm, maybe it's a little bit offtopic but could anyone help me with pointers in C language? The best would be some free exercises or tutorials from the internet that I didn't find...(I was looking for a long time before this desperate post...:/)
If it does not belong here, pls, let me know and I will delete this post!
Thank you so much :)
(Ps: I will have a big exam on Tuesday so I want to practice..)12 -
“a stack-based language where pointers are poisonous and the interpreter doesn't do a good job of remembering non-constant values”2
-
I am trying my hand on blogging
http://rohitshetty.github.io/2016/...
Any pointers or feedback is appreciated. :D -
Thoughts about using React Native with Expo for apps? Recently started working on a dashboard app, have made few screens already, looking for some pointers.2
-
I remember codeblocks with pain the .h and .cpp, the pointers sometimes get the memory address that crash the program and program with opengl on codeblocks is the dead1
-
This Pub in Budapest would make a good place for a Meetup.
May the pointers to the beverage never lead to null. -
🤪😳😅 this is how i feel about the fact that i will be primarily writing c# at my new job. Any .NET guys with a few tips and pointers on how not to fail. Last time i wrote c# was 7 years ago at least. I will be working on some big project which i love being a part of but I can’t help but feel scared. What if i fail?2
-
Junior frontend here, I really fucked up with SCSS nesting. It's a nightmare to go back and maintain or extend the UI. I really should go back and sort this shit out. Some parts of the hierarchy even contains pointers which I phased out long ago, but somehow it still works.
Let this be a lesson. -_-5 -
Any other Healthcare developers here? Have you integrated with EPIC, and if so any pointers before we get started?1
-
Doing a presentation about nuxt.js tomorrow. Any pointers ideas about stuff I should mention (excluding the obvious ones)4
-
figured out why i'm at home with machine code or Python but can't for the life of me do something in the middle like C: if i'm forced to use pointers, but can't manually pick an address something's made at, my mind can't deal with it.8
-
!rant
Never done a "full-fledged" Android app, but I had to, for school.
It works (by now), now I can sleep3 -
Why on earth can one perform calculations on pointers in c++? I can think of a dozen ways this could go wrong, but none where this is useful.
Following example:
int t = 1234;
int tt = 5555;
int* p = &t;
int* pp = *(p + 1):
Here pp will give me 5555...5 -
I was never good copying in exams, so that seemed fine for me because what I get is what I know.
But now I'm not good in copy-pasting work from others... fuuuuck, these dudes are like "copy these, modify it, we want a working frontend mockup in 1 hour"
I fucking told you I'm a backend guy!!! NOT FRONTEND!1 -
Does anyone of Europe know about studying abroad?
I want to study my master degree out of my country, and I'm currently searching for opportunities or whatsoever.
Any info it's well appreciated9 -
FUCKING SHIT, I HATE THIS
Does anyone have problems with axios?
I've been trying to make this work for at least 1 hour. If I use Postman, it works alright, but using axios messes it up.
Practically what happens it's that Django does not picks the foreign keys, it loads all the fields except those two.
I've been like fucking crazy trying to understand what's going on but to no avail... I want to die, it's friday and this stupid thing is delaying me more than it should3 -
!rant
Does ayone knows of a
+ Good
+ Open Source
+ Free
Data test generator tool?
I'm on my first work with a development that will go to production, and I'd like to test performance, UI and all of that with random generated data. I know about dbSchema but it's trial pulls me back -
Yesterday's was fucking stupid.
It all begins with a fucking online clothes shop that "cancelled" my order from a week ago because "PayPal detected strange account movements". I logged into my PP Account and no notice or whatsoever of that.
Then they tell me I'll have to wait around for ~30 days to get my money back. Are you fucking damn serious? First you delay my fucking order a week then you cancel it without contacting me to "reassure" I put the order and then you say that I'll have my money back on 30 days? Fuck you.
Thereafter, I was going to buy a new phone, which two weeks ago I already went to request a quotation and they told me I was ready to go with paying 50% off.
Well... fuck me, because I went yesterday and they told me that I couldn't get the phone becase "The system says you already have three lines with our company, and all of those have money due" What? Fucking shit, I went two weeks ago and everything was fine, and now this? I don't even have an account in that stupid company and now they tell me I have three with late payments?
FUCKING HELL!!
As if everything wasn't going bad already, I went off and said I'll come back today to see "if the system has been corrected", so I went to grab a burger at McDonalds that's on my way back home.
I make my order and the cashier is like "Hurr durr.. The card terminal doesn't work, do you have cash? If not, don't worry I can cancel the order and switch to the other station so i can charge you"
ARE YOU FUCKING SERIOUS? I mean, come on dude! If you know that the shitty card terminal doesn't work and the station that it's fully functional it's literally three fucking steps next to you, WHY THE FUCKING FLYING FUCK ARE YOU USING THE WRONG ONE?
Then I wait for my order, that I saw they prepared and was ready like in 5 minutes, but the guy went and stood looking at the void. Then he realizes and begins to pick my food and set it up. He puts it on a tray and stands there, I stand there looking at him.
"My order was to go" I said... then he's like "Oh, yeah" and begins to pack.
Dude... the order is in the fucking screen, I said the cashier that It was to go... jesus.
Then I tell him "Can you put some sweet mustard packages?"
"Yeah" he says... but I looked away. When I arrived home, I opened the bag and... FUCKING HELL, NORMAL MUSTARD.
I told him twice, even said "please" and "thank you", but hell no, he had ONE JOB, and he didn't do it.
Seriously guys, stop this fucking mess, somebody call `kill` -
working with Mapbox and so far everything works except displaying custom svg pointers for single points while clustering the multiples.
the documentation is only semi useful.
and my work-at-home coworker keeps meowing at me like that guy who wants to talk about TV shows whenever I'm working
I want a nap! -
The thing I love about Python is that it has no fricking pointers!!!
I hate pointers and getting a language that doesn't use them
win-win for me!11 -
Lockdown has got me reading a lot of books. Books about business or startups are a lot faster for me to read. It’s like reading a story book and I’m done in a week. But reading technical books (like I’m currently reading SICP aka wizard book) is a lot more heavy duty mental work. Y’all got any pointers for me about this?2
-
Waiting for the call I scheduled with Apple Support regarding my faulty power adapter. What is your experience with Apple Support? Any pointers you wanna give?2
-
!rant
Does someone hates having to look down at the terminal to keep writing?
I don't know if there's a way to keep the text at a certain height, to avoid head movement (sadly, I can't elevate my monitor) -
!rant
For years, I've been putting myself back whenever I got an idea to do something, because "what would people think?"
But, you know, there's only one life (unless you believe in reincarnation, that's fine), and I'll do whatever the fuck i want (that's legal and doesn't breaks moral/ethics, to each their own)
So...I just got an idea, decided to put it down and publish it.
It sucks? Maybe, but I don't care, it's done and out, I'd rather want to live being seen as a fool than die hiding myself.
https://youtu.be/gF3O6a0MSa8joke/meme !rant issues shitposting this shitposting it's not of good quality nah who am i kidding quality shitposting not funny -
!rant
I'm just a beginner with CSS, nodejs, sass and whatsoever. Also I really enjoy writing my docs with Markdown, so I decided to make an effort and create a project that aims to create an easy-to-use and easy-to-apply Markdown themes, that can be customized.
I know that this may be horrible code, but If someone can point me in a good direction, I'd be glad to learn and apply it.
https://github.com/apexJCL/...1 -
For progress and success all you have to do is be the right person in the... holy shit, I missed it! Damn lag!
-
!Rant
Planning on upgrading my laptop. Budget it's ~1000USD, any suggestions?
I'd prefer something with >=FHD screen, it's hard to code on my 1366x768 resolution (non glossy also)12 -
Any tinker's here?
I'm in no way one, but I have to start with something, and recently I've buy a Moto Z2 Play, that has this little and nice interface that allows "Moto Mods", practically are modules that you "snap on/off" and add functionality to your phone.
Does anyone here have tried the MDK? do you think this is promising or just another trend to get lost in the way? -
hey guys wonder if someone can help me - anyone had any experience with the dropbox api im trying to build something in php but im more software the web :/
a few pointers would be amazing :)2