Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
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*17
Any devs here that Code in C/C++...?
Or am I lost in "webRant".
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 suspect12
Teaching a friend C:
"Thanks for giving me all the... ahem. Pointers."
Waits 2 Minutes
"But like seriously what is a pointer again?"8
Anyone looking for something interesting to do???
Step 1) understand how basic circuitry works on a bread board nothing too fancy. ( Implement NAND, AND, ADDER, SUBTRACTOR)
Step 2) learn about microprocessors and how OS works
Step 3) learn assembly
Step 4)write a basic assembler and understand how loaders and linkers works !
Step 5) write a kernel with very basic features like memory management and process management and some drivers for IO
Step 5) write an emulator for some simple systems .! ex chip-8.
Step 6) read about compiler theory and automata
Step 7) write a basic Python interpreter that compiles (not interpreter) to native assembly.
Step 8) implement TCP stack .
Step 9) learn as much as u can about complexity measurement ), data structures and algorithms using C or C++ it's very important ( familiarity with pointers and thus computer memory )
Step 10) learn any high level language of choice like Python or Ruby.
Step 11) stop debating over tabs vs spaces , emacs vs vim , angular vs vue, php vs Python , OOps vs procedular vs functional ( just know about all of them and when to use but don't fucking debate over which one is superior )..
Step 12) live happily and be healthy.31
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
Can I only pick one?
I don't hate a lack of skill by itself. Incompetence, in my book, refers to a lack of skill combined with being in a position of responsibility.
The junior/intern in my team writes pretty bad code, but that is OK. He asks questions, I give pointers and bounce back his PRs ten times in a row, and he keeps fixing things without complaints.
My boss however... still writes PHP as if he's living in the 90s. He doesn't visit scrum meetings because he "isn't a developer". He thinks of a new feature while pooping, writes it without telling anyone, and throws it into production without making a PR.2
This morning finally pointers to structs in C finally clicked on my mind!!!🤯
80% of the C code that puzzled me now makes sense!! 🤗14
Backend internship interview
They: Can you reverse the given string without using pointers? (C++)
Me: Yeah, sure
*Then I start explaining how I am gonna approach the problem and such*
They: Ok, we understand that you can do it, now can you write a front-end that has a couple of routes. Also, these routes should have some sort of list views because we want you to print information **attention** that you are going to parse from Amazon inside those list views.
Me: *dumbfounded and trying to explain that am not a front-end developer*
They: But we still want you to do this.3
One of the morons said today that we should use C because you don't need to "apply logic" in Python. Everything is automated in python. Fucking morons............
It doesn't ends here. One of the "9 pointers gang" student raised an objection. I was happy untill he said that there is no boolean datatype in C. I literally shouted "Shut up, morons. There is a whole fucking library dedicated to it." in a class of 60 students.
Don't know how I survived 3 years here. And more importantly, don't know how will I survive my next year.
P.S.: the 9 pointer guy who raised the objection, once asked me whether chrome is developed and maintained by Google?19
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
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.15
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"6
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...
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.
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
So I says to the wife, I says, “When you go to Costco tomorrow, I need a new Oral B electric toothbrush. My old one’s battery is no longer able to hold a charge.” I’m picturing her coming back with one that’s pretty similar to the one I had. You turn it on, you brush your teeth, you turn it off.
She comes back with the Oral B Pro 6000. Go on. Look it up. I’ll wait.
So this thing has about 6 modes and Bluetooth that connects you to an app that not only keeps track of how often you brush, but tracks your performance and gives you trophies if you do well at specific tasks and techniques. And there’s a coach to take you on an “oral health journey” depending on your particular goals. There’s even a mount you can buy to attach your phone to your mirror so the app can watch how you brush and give you pointers. I don’t have the mount so I got an 85% on performance because who can hold a phone pointed perfectly at your face while brushing? The final report had what might be the app dev’s attempt at a pun.
It’s 2019 and everyone is judging you. Why not your toothbrush as well?23
When you introduce your girlfriend to your Best friend and after some time they start dating each other and you are unaware of the situation but after sometime you get to know about their relationship , now you're really pissed and want to take revenge, then you remember that the girl's parents are strict af and you know that they won't tolerate that their daughter is in relationship
so, you tell her parents about her and
they decide to send her to a different school located in another city
When two pointers are pointing to a same memory location then if any one of them deallocates the memory, the other pointer becomes a dangling pointer
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
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"5
A new low level language. Modern and clean, like swift or python. Simple syntax and semantics. Low level (non garbage collected, non vm, pointers). I want a new take on C.18
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
That moment when you understand and love your most hated enemy in c. Yepp. I am talking about pointers. 😍16
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
// 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
It has been bugging the shit out of me lately... the sheer number of shit-tier "programmers" that have been climbing out of the woodwork the last few years.
I'm not trying to come across as elitist or "holier than thou", but it's getting ridiculous and annoying. Even on here, you have people who "only do frontend development" or some other lame ass shit-stain of an excuse.
When I first started learning programming (PHP was my first language), it wasn't because I wanted to be a programmer. I used to be a member (my account is still there, in fact) of "HackThisSite", back when I was about 12 years old. After hanging out long enough, I got the hint that the best hackers are, in essence, programmers.
Want to learn how to do SQL injection? Learn SQL - write a program that uses an SQL database, and ask yourself how you would exploit your own software.
Want to reverse engineer the network protocol of some proprietary software? Learn TCP/IP - write a TCP/IP packet filter.
Back then, a programmer and a hacker were very much one in the same. Nowadays, some kid can download Python, write a "hello, world" program and they're halfway to freelancing or whatever.
It's rare to find a programmer - a REAL programmer, one who knows how the systems he develops for better than the back of his hand.
These days, I find people want the instant gratification that these simpler languages provide. You don't need to understand how virtual memory works, hell many people don't even really understand C/C++ pointers - and that's BASIC SHIT right there.
Put another way, would you want to take your car to a brake mechanic that doesn't understand how brakes work? I sure as hell wouldn't.
Watching these "programmers" out there who don't have a fucking clue how the code they write does what it does, is like watching a grown man walk around with a kid's toolbox full or plastic toys calling himself a mechanic. (I like cars, ok?!)
Python, AngularJS, Bootstrap, etc. They're all tools and they have their merits. But god fucking dammit, they're not the ONLY damn tools that matter. Stop making excuses *not* to learn something, Mr."IOnlyDoFrontEnd".
Coding ain't Lego's, fuckers.38
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.
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.9
*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* 😎😎😂😂6
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.
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.14
Why are people on StackOverflow so fucking harsh? I'm a newbie programmer so I'm sorry if I didn't word my question to your specific liking, but you don't have to down vote it because you don't like it or you feel it's beneath you. Maybe give some pointers (without jumping down my throat) so that I'll get better instead of getting me closer to being banned from asking questions. I see other questions that I think suck, but no down votes!8
So probably about a decade ago at this point I was working for free for a friend's start-up hosting company. He had rented out a high-end server in some data center and sold out virtualized chunks to clients.
This is back when you had only a few options for running virtual servers, but the market was taking off like a bat out of hell. In our case, we used User-Mode Linux (UML).
UML is essentially a kernel hack that lets you run the kernel in user space. That alone helps keep things separate or jailed. I'm pretty sure some of you can shed more light on it, but that's as I understood it at the time and I wasn't too shabby at hacking the kernel when we'd have driver issues.
Anyway, one of the ways my friend would on-board someone was to generate a new disk image file, mount it, and then chroot to that mount path. He'd basically use a stock image to do this and then wipe it out before putting it live.
I'm not sure exactly what he was doing at the time, but I got a panicked message on New Years Day saying that he had deleted everything. By everything, he had done an rm -fr /home as root on what he had thought was the root of a drive image.
It wasn't an image. It was the host server.
In the stoke of a single command, all user data was lost. We were pretty much screwed, but I have a knack for not giving up - so I spent a ton of time investigating linux file recovery.
Fun fact about UML - since the kernel runs in user space as a regular ol' process, anything it opens is attached to that process. I had noticed that while the files were "gone", I could still see disk usage. I ended up finding the images attached to their file pointers associated with each running kernel - and thankfully all customers were running at the time.
The next part was crazy, and I still think is crazy. I don't remember the command, but I had to essentially copy the image from the referenced path into a new image file, then shutdown the kernel and power it back on from the new image. We had configs all set aside, so that was easy. When it finally worked I was floored.
Rinse and repeat, I managed to drag every last missing bit out of /proc - with the only side effect being that all MySQL databases needed to be cleaned up.3
The GashlyCode Tinies
A is for Amy whose malloc was one byte short
B is for Basil who used a quadratic sort
C is for Chuck who checked floats for equality
D is for Desmond who double-freed memory
E is for Ed whose exceptions weren’t handled
F is for Franny whose stack pointers dangled
G is for Glenda whose reads and writes raced
H is for Hans who forgot the base case
I is for Ivan who did not initialize
J is for Jenny who did not know Least Surprise
K is for Kate whose inheritance depth might shock
L is for Larry who never released a lock
M is for Meg who used negatives as unsigned
N is for Ned with behavior left undefined
O is for Olive whose index was off by one
P is for Pat who ignored buffer overrun
Q is for Quentin whose numbers had overflows
R is for Rhoda whose code made the rep exposed
S is for Sam who skipped retesting after wait()
T is for Tom who lacked TCP_NODELAY
U is for Una whose functions were most verbose
V is for Vic who subtracted when floats were close
W is for Winnie who aliased arguments
X is for Xerxes who thought type casts made good sense
Y is for Yorick whose interface was too wide
Z is for Zack in whose code nulls were often spied
- Andrew Myers6
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 you11
Why do people jump from c to python quickly. And all are about machine learning. Free days back my cousin asked me for books to learn python.
Trust me you have to learn c before python. People struggle going from python to c. But no ml, scripting,
And most importantly software engineering wtf?
Software engineering is how to run projects and it is compulsory to learn python and no mention of got it any other vcs, wtf?
What the hell is that type of college. Trust me I am no way saying python is weak, but for learning purpose the depth of language and concepts like pass by reference, memory leaks, pointers.
And learning algorithms, data structures, is more important than machine learning, trust me if you cannot model the data, get proper training data, testing data then you will get screewed up outputs. And then again every one who hype these kinds of stuff also think that ml with 100% accuracy is greater than 90% and overfit the data, test the model on training data. And mostly the will learn in college will be by hearting few formulas, that's it.
Learn a language (concepts in language) like then you will most languages are easy.
Cool cs programmer are born today😖31
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
You always see fail2ban message:
There has been n failed attempts"
But... Have you ever thought about how many successful logins have been?2
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
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
Fucking pointers i forgot about them Everytime but i got better i dont forgot to add them almost 2 weeks 😂😂😂😂
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 ..28
I've been doing wrong these last year, so I decided to step up my game, implementing on my work cycle:
It feels fucking great. If you're not doing it, it's time.1
I'm a long time Unity3D C# programmer and i mostly build android games for fun. About half a year ago i dumped windows for Debian Linux(fucking love it) but I quickly started to miss my unity3d environment. Unity in a VM doesn't work and the outdated, beta, crash prone linux version doesn't support android so i started looking for an alternative.
I decided to give Godot a shot but moving from a statistically typed language to a dynamically typed one literally breaks my brain. The last couple of hours of reading the documentation pretty much consisted of: WHAT? YOU CAN'T DO THAT! NO. WHAT? WTF IS THAT SYNTAX? oh I think I'm getting it WHAT DO YOU MEAN POINTERS DON'T EXIST!?22
Why is pointers... bit shifting.. malloc.. anything that is regarding embedded development is so hard to grasp...18
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
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
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. :-)9
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.
Like really? I just can't wait till next semester.7
This incident is from my college days.....
I saw one of my friend was arguing with his project partner. He was pretending to know everything in programming better than his partner.
Just for fun, I asked him to implement single linked list by using arrays/pointers (I gave him 20 mins and told him to do in any programming language he is familiar with). He was not able to do, so I suggested him to use Google and see if he can find something which can help him with implementation....
Within 10 min he came with a solution which was working fine. So I asked how does he implemented, and what does the methods do.... As expected, he was blank and I got to know he copied entire solution from Stackoverflow.....
A thought came in my mind:
Just by knowing copy/paste won't make you a programmer....... <\>6
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
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.
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.
I am forced to use IDE and Text Editor against my will.
I hate eclipse, but what to do, Salesforce support that IDE only, although VSCode has one plugin for that, but it's not the best,
Why I hate Eclipse you ask?
1. Null pointers
2. No Emmet
3. No Autcomplete
4. Runs like shit on Windows 10 (See my last rant for windows 10)
5. no pretty print extensions/plugins for isml
For my personal projects I am forced to work on Sublime because again VSCode decided to drop
1. Syntax Highlighting
(Fuck you for hating php)12
// 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.
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
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
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.
On the bright side, I learned how to use valgrind (which is awesomely awesome).4
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?
I started writing code at a young age, nodding games, building websites, modifying hex files, hacking etc... I started my career off tho in highschool writing embedded code for a local medical robotics company, and also got tasked with building the mobile app to control these robots and use them for diagnostics, etc.... this was before the App bubble, before there was app degree and that bullshit.. anyway graduated highschool, went to college to get a comp sci degree.
Wanted to teach for the university and research AI...
well I dropped out of college after 3 years, cuz I spent more time at work than in class. (I was a software consultant) in the auto industry in Detroit. I wasn’t learning anything I didn’t already know or could learn from books or a quick google search.
I also didn’t like the approach professors and the department taught software... way none of the kids had a good foundation of what the fuck they were doing... and everyone relied on the god damn IDEs... so I said fuck it and dropped out after getting in plenty of arguments with the professors and department leads.
I probably should have choose CE .. but whatever CS imo still needs a solid CE/EE foundation without it, 30 years from now I fear what will become of the industry of electronics... when all current gen folks are retired and nobody to write the embedded code, that literally ALLLLL consumer electronics runs on. Newer generations don’t understand pointers, proper memory management etc.
So I combined both passion AI and knowledge of software in general and embedded software, and been working on my career in the auto industry without a degree, never looked back.2
"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
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
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!
Head First C - O'Reilly
If you've ever been told to learn C first, then go ahead and get this book. It's the best C book I've ever seen but you don't just learn C when you read this book. You learn memory, pointers, string manipulation, splitting your program into multiple source files, structs, unions, some opencv, processes, system calls, sockets, threads and so on.
Safe to say after working through 200 pages, I'll enjoy the next 400 or so.7
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
printf("%s ", *--*++Shit+1);
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
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
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
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:
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
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
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
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.
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).5
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
I UNDERSTAND POINTERS (kind of) HAHAHAHA NOW I JUST NEED TO KNOW HOW TO USE THEM AND I WILL BE UNSTOPPABLE20
rant = Rant.STORY_TIME
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!
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.
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.
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
Practically, you're mining Monero instead of watching ads and solving regular captchas...
What are your thoughts on this?4
So I became a panel for a students' oral defense for their apps in the IT dep, I'm a lowly plebian STEM but oh well I guess they did spot me making apps on the library on my lunch time.
Anyways here's what happened:
I reviewed two groups and here's my input on them:
- Group one did a app that uses the gyroscope to control a character in the screen, and avoid obstacles. At first I don't know how to play it but I figured it out nonetheless, since I'm reviewing in the customer perspective, I shunned them because of poor UX, and poor performance. Idea was there but execution is fucked - and the fact its a one man stand when there's 6 persons in front of me.
- Group 2 did an app that behaves similarly to our shitty eLMS, I liked the UX and the UI but I gave them a few pointers to improve it more and recommended it to replace the current application (yes because it was really exceeding my low bar for their department).
It's kinda obvious which one I picked to get to the stage on their graduation. They deserved it but I felt bad for the girl in the last group since she did everything so I gave them a passing grade. But if I were to individually grade them: I'd pass her and fail the rest.
How'd I do as a panel judge my angery dudes?5
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
+ 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
TIL pointers are slower than normal variables, and it makes a lot of sense, when previously I had thought the opposite.7
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...
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
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
Talking about adrenaline sports in a class and our favorites.
Me ? Writing C code without checking for null pointers!
What about you ?1
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?15
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.
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
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
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
Hating small talk is what most tech guys would do. What's the point in indulging in it when you can not talk?
But there are times when you're cornered and can't do much about it. I figured out a way in which i can use this, still.
So whenever pushed into small talk i tend to tilt the conversation in the direction of the current problem I'm working on. I would then use the other guy as a sounding board to talk out the problem aloud. Helps me in clarifying my own thought. Also if i haven't already bored the other guy to death and the guy seems genuinely interested, i get a few pointers too.3
I started to learn Matlab today. After I learnt that arrays starting with 1 in the Matlab, I started to think about why using 0 based arrays was made popular in the first place and I realized that C arrays actually just pointers and first element of the array is just a location pointed by array name. There is no need to add number to reach to the first element. After googling it, I saw that my assumption is true. Finding it all myself made me a little bit of proud 😀😀😀 Also, this expanded my horizon 🗻🗻🗻2
So I'm studying at a university where everyone who studies electronics has to do the same "internship" where we have to program some microcontroller.
For most of us it is the first time programming with pointers and working with the register (C++). But the institute who does this shitty internship manages to FUCK up the class description and even the classes and methods they give you.
In the class description there are methods missing so you have no idea what they want you to do with that method and then they write stuff in the class description that aren't in the class and you don't need. For fucks sake how can you fuck up such a simple task.
And then their shitty template is wrong. If you expect your students to do well please for fucks sake make sure you give your students the correct classes and descriptions. Many students won't fucking know what is wrong because the never programmed in C++. The best part is that they are doing this "internship" for more than 5 years.5
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
Back in NAM those who left the pointers without cleaning them we called them DESERTERS and made them sleep with the dogs.
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
So I'm on orders for the Marine Corps, and this one guy thinks he's a programmer because he made a "program" in excel for dispatching our equipment. He's complaining that he's just fixing bugs. I take a look at his VBA code and see literally 1000 lines of if statements bundled into one function. (Or I think they're referred to as sub routines in VBA - it's been a while since I worked with it).
I try to give him some tips and pointers since he's literally just manually checking. Each. F'ing. Cell and a million nested if statements. Tried giving tips on making reusable code, and he has the cojones to tell me he knows what he's doing and doesn't need my "help". Granted I'm higher ranking than him and he also answers in a disrespectful manner.
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
The moment of truth on wanting to be a programmer or not... Is when you learn about pointers in c language.2
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
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.7
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..
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
Sometimes it confuses me, if I have to use pointers or not in c++ & qt. Especially when both variants work fine. :)1
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
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 everything6
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.
Check it's syntax.
THE SAME FCKIN SYNTAX AS DONE FIRST!
And that's why I hate function pointers.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
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
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
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.
Now that I've spent a few ineffectual hours too many trying to get it working, I'm starting to think VS Code wasn't built for the purposes I wanted to use it for. I still can't get breakpoints working anywhere close to reliably. And I'd say breakpoints are pretty important.
On a related note, if anyone here has used VS Code together with arm-none-eabi-gdb, I'd love some pointers. I've yet to find any traces on the web of people doing that…3
I love this wk108 tag. Have a lot of stories related to it.
For me , my mentors are the reason i am what i am today. In this crazy selfish world where people only want to run faster than the others, having nice helping people around is great.
(1)class 6-10th, xx is a curious, but poor boy with no desktop/mobile , but still loves cs classes due to various ,caring teachers.
(2) class 11th end,programming for the first time that year, hates programming, one day when everybody goes out for lunch, xx tears down while talking to his cs teacher "why can't i score good marks when i was the best till 10th? Is programming so tough?" . I remember him giving me a little but greatest motivational lecture followed by 40 minutes of the most basic concepts in which i might had asked him a 1000 questions. "You are my chaempion", he used to say😂 (bad accent) . But god, if he hadn't motivated me that day, i swear i would have left all this and go for business. Thank-you, lokesh sir💗💗
First year : tried to go for a competitive learning course. Mann, am not cool in that stuff. Again was about to break (i was among the top scorers in school boards and had designed many small games back then. I should have been good here too, but nah... the other guys were like bullets .)
Oh my, my deepest bow to this amazing teacher SUMEET MALIK (oh sir, you were so good) .
How this guy taught? Well, he first explained the concept. Fo those who understood, he gave them question 'A', for those who didn't, he repated . For those who understood , can do question a again, and those eho did A already gets an even advance question B. And this cycle went on until the weakest student(usually me) understood the concept.
And no, it never happened even once that class finished with even a single child not doing all questions he gave.he used to teach very less concepts each class and would go to everybody's desk to check they understood the concept, the question, its working, weather we implemented or not and weather our implementation is correct or not +our doubts. Hell , i even took doubts with him for hours after the class and he always just smiled💗(oh sir, am so sorry for being so dumb)
Real Doubt classes, doubts on whatsApp, revision assignments , tests , competitions,... damn, i haven't seen a teacher with this much dedication. At one point of time, that institution was famous for our Sumeet sir's classes 😂
Then last year, i got another mentor . Harshit bhiya. The guy is awesome, and a little extra swaggy 😂. He got a lot of chill, with his big AAD badge, a bag full of stickers and his every day association with people at udacity and google. As always i tried to overwhelm him with my ton of doubts in class, but he use to just give me a few pointers/links, after which i was like quiet for the complete session😂. He gave me a lot to think/work upon and i got a kind of career to work on.
I also think of mentioning a fucked up depressing-bot assholic friend of mine, but he don't deserve to be in this list of my best people. Just fuck you mann with a blockchain of dicks, if you are reading this.1
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
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 layout6
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
In addition to the programming language or theoretical concepts. It is also essential to develop good problem solving skills.
Concepts like design patterns and refactoring would be better taught using hands on exercises based on a long running example, such as having the students create a project in an introductory course on a programming language and then take that codebase as a starting point for the assignments on design patterns and refactoring.
It would be unrealistic to assume that developers would be working only on a single programming language in their entire career. So, a few pointers on how to go about learning new languages based on similarities with programming language(s) they already know would also be there.
I've just noticed, the rest of the world says things like "your check is null and void," as if those two things are one and the same.
Meanwhile, to us devs, they couldn't be any more different! Something can't be both null AND void! 😅8
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
ES2016 looks so much like Java, I swear nobody will notice if they added pointers... and over 9000 more confusing features.12
I have really vivid dreams and when I focus on sth new for long enough, I start dreaming weird shit about it.
When I started learning Java in school, I somehow had an object oriented dream. When I concentrated on C, I had a dream about pointers and fixing memory leaks.
Anyone else having dreams about programming languages? 😅3
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.5
Where can i get good second hand servers, am planning to homelab cluster. Will appreciate any pointers ...8
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
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
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
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
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.
Well after 3 days of fighting with C I finally got my assignment done ✅ :D the assignment was simple and would have taken me like 5h max to do in Java( which is my first and most proficient language).
However I was away from class for a while and subsequently had to code the project while teaching myself about C and pointers .🤖
This is why we don’t skip school kids 😄
P.S It surprised me how many other people were in the schools lab at 2AM to push the assignment to the local git 😮9
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?13
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?
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
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.4
First and foremost, students should be carefully taught the logic and mentality behind programming. Most of the time I see that the introductory programming courses waste so much energy in teaching the language itself. So students kinda just get fucked cause many people end up ending the course without having actually gained the "programming perspective".
Stop teaching pointers and lambdas and even leave the object oriented stiff till later. If a student doesn't know why we use a For loop then how can they learn anything else.
I believe once that thing in your brain clicks about programming, everything goes smooth from there... kinda :P
Second of all, and this pertains mainly to the engineering and science disciplines.
We need a fundamental and strong mathematical foundation. And no I don't mean taking fucking double integrals. Teach us Linear Algebra, Graph theory, the properties of matrices, and Probability theory.
One of the things I suffered from most and regret in university is having a weak foundation in math and having to spend more time catching myself up to speed.
It's so annoying reading a paper on a new algorithm or method and feeling like an idiot because I can't understand what magic these people did.
Ok this is more deeper, maybe a 2nd year course.
But this is something we take for granted.
Computers don't magically add and subtract and multiply.
They fuck up.
And it'll bite you in the ass if you're not even aware that the computer we all love so much isn't as perfect as we think
Some hardware knowledge.
Probably a basic embedded systems course with arduinos
just so you can get a feel for how our beautiful software actually makes those electrons go weeeeeeeee
just give me the internet and some projects
Ill learn everything else
Projects are the best motivation
I hate this purely theoretical approach
where we memorize or read code and write these stupid exams
Test what we are capable off
make us do projects that take sleepless nights and litres of coffee
And judge our methods, documentation, team work, and output
Team work skills and tools (VCS, communicating, project management, etc.)
Documentation and Reporting
maybe even with LaTeX :D
Yeah that's the gist of whats on my mind at the moment regarding an ideal computer science education
At least the foundations
The rest I leave it to the next dude.
I'm going to re-try my ConsoleWidgets/ CursesWidgets project from complete scratch. Here are some things I learned and will do better this time with:
- Keep people updated on progress to maintain motivation (Hence this post)
- Centralize drawing, eliminate curses entirely besides in this static class.
- Don't worry about complicated rendering until basic rendering is done. I really got stuck up on text rendering last time.
- Sort out a color system from the very beginning, and make it as simple as possible. Working with curses, it is a good idea to have a color manager.
- Research how to logically render two items - both sized to 50% of the screen - when there are an odd amount of pixels available.
- Only make one type of widget at the beginning. Don't worry about Buttons and Sliders and such until the base Widget class is completed.
- Truly decide if I want to call them Widgets or Controls
- Don't worry about supporting multiple curses windows. Got hung up on that too. stdscr will do for everything I need.
- Cache inflation values so that they need not be re-calculated each render. Re-calculate on resize.
- This is more of a c++ thing, but drop pointers in favor of references. It's 2018. I have already started to do this in other projects but THIS IS THE ONE.
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
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 😊
Dealing with clients is probably the biggest personal challenge. I'm not much of a people person, and I find it hard to converse with friends and people I've known for years, let alone clients who are looking for answers for why things aren't working, and wanting you to explain exactly (but in simple terms) why a thing that seems simple is so complicated.
Another challenge, which is somewhat related is expressing myself. This again, stems from not being super great or comfortable in conversations, but as a dev, even among other devs, your opinion on things gets asked a lot. For someone who was used to sticking with the status quo and mostly agreeing with things, stuff like peer code reviews, or giving pointers on how to implement something is a big challenge (but I'm improving)2
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.5
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
My job isn't stressful all the time. Sometimes I'm in meetings and I'm just bored. And sometimes I have a coke to drink. That's pretty nice.
But right now my app is breaking and I don't know why. It either corrupts the heap sometimes or breaks the execution engine sometimes or attempts to write pointers I don't control into protected memory sometimes. Can't reliably reproduce them. And every time I try to debug one it causes the other.
But I do have a Coke.
Going to be teaching a Minecraft class tomorrow. Easy enough, right? Problem is, I have literally zero experience with Minecraft. Anybody got pointers even for a total n00b. I think we'll basically be building stuff in Java. I figure levels? We'll be using Java to program the world seed? Again, total newb. Anybody who programmed it before want to give me a high-level view?4
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.
Note: I have deleted my previous version of this question as I found it lacking crucial information and therefore being prone to misunderstandings.
Question : In C/C++ you can position the keyword 'const' either left or right of the left-most type specifier. Which variant do you prefer?
I ask that because I'd like to hear your opinion. Although I have been working with C over three decades now, I only learned this a couple of years ago. After some experimentation I decided for myself, that I like the placement to the right more. Although the positioning to the left is taught in literally every book and course, the original placement suits me better.
One reason, of many, is the listing of many member variables in structs or classes. To have them nicely aligned, I always had to put 'const' either on the previous line or put in extra indention to everything non-const. That was quite irritating sometimes.
Another, and my main reason is, that when reading from right to left, the rhs variant just makes more sense than the lhs variant. Reading from left to right almost never makes much sense without straining your eyes. But that is, of course, highly subjective.
This is even more so if you have pointers. The 'const' keyword modifies the type identifier(s) to the left. So if the 'const' is (anywhere) left of the '*', the data is const. If the 'const' is right of the '*', the pointer address itself is const. The same applies to references.
Examples, read right-to-left:
int* const i; // i is a const pointer to int data
int const* i; // i is a pointer to const int data
int const* const obj; // i is a const pointer to const int data
The "classical" or "taught" way, that is found almost everywhere would read, still right-to-left:
int* const i; // i is a const pointer to int data
const int* i; // i is a pointer to int data const
const int* const obj; // i is a const pointer to int data const
Not only that the second "lhs" form reads worse, it also looks worse. In my opinion, the first "rhs" variant makes it simpler to quickly determine that we are dealing with three ints, while on the second "lhs" variant, one has to first get past the 'const' keywords.
I know that this is not only a matter of taste, but of course of agreement, too. You can not just go and switch the 'const' placement in long standing projects. That would surely piss of a lot of people. Or even cost you your job.
But I like to know what you people think and why.
Thanks a lot in advance!5
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 😁
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
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.
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
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:
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
When gdb doesnt automatically deferences `this` but you just explicitly deference it at the start of every method:
Ps: the reference variable was literally called `dbug_mee_dawg`
Ps2: Java programmers will ***never*** understand this /s4
Is anyone here into GIS development? Can you please give a newbie some pointers?
Considering that as a career path.12
Working with a pointer-linked graph. With pointers referencing pointers referencing pointers referencing pointers ref....
it's not (only) bad code, its my life now.1
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. -_-8
Anyone used unreal? Keep thinking of learning it but can never get around to it. Any good guides/pointers?1
I'm just out of words.
There are three main repositories setup as A <- B <- C:
B is a submodule of A
C isn't a submodule of B, but is required to be present in a specific folder for B to compile.
I've asked, why isn't C a submodule?
"It used to be, but people wouldn't update submodule pointers, so we removed it"
This is not a 🐙🐙🐙 solution to your laziness!
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've recently had an exam, a C++ exam that was about sorting, pointers, etc... The usual. The exam was about Huffman's
optimization algorithm along with some pointer problems. He asked for a function to find something in a stack, what I did was write down a class that has a constructor, deconstructor, SetSize(), Add(), Remove(), Lenght(), etc.. He didn't give me any points for that, why? Because I didn't write down everything like in his book... I had classmates that literally had phones open with his book, he just watched how they copied code and gave them 10/10 points. But nothing to the guy that wrote down 20 pages of code. YES!! On paper, an IT university that asks you to program on a fucking paper. Good thing that at the very least I passed.
Teacher has book, I refuse to remember code from it/copy from it, I get lower grades than people that literally copied word for word.
Life is really fair.
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.
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
First I got a Casio programmable calculator when I was in high school. Learned to program on it with some tutorials on the net, made softwares and games. Then, I learned C with tutorials, and gave up with pointers. After that I went to an IT college and learned several languages. Got a job just after and here I am.
Java's such a bitch, it won't house pointers but throw a NullPointerException at even the most insignificant lines possible.1
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?10
Soo since for the end of the year, I'll be stuck with my family, I won't be able to work on my main projet, and only have my crappy laptop (hey at least it runs Linux). So I've decided to discover python and build some tools with :D.
Since I see a lot of python fans around, I wonder if I could have some pointers, specialy for desktop cross plateforme app, good editors/ide, interesting libraries, etc...
As information, I almost never touched python before. But for the little I did, it was fun =]4
PCI DSS scan came back saying that WebDAV extensions need to be disabled. Kind of surprised, since I have other servers I’ve configured to standard and I can’t find anything in my notes about it.
In either case, been searching for info on how to fix it for 2 days and turned up nothing useful. Report found it on ports 80 and 443, so a firewall fix seems out here.
Running Plesk 17.5.3 on CentOS 7. Anyone have any pointers on how to get the job done?4
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.)
msg: db "ASM, Love Or Hate?",10
msglen: equ $-msg
mov rdx, [msg]
mov rdi, msglen
mov rax, 0x3c
mov rdi, 0
mov rax, SYS_WRITE
mov rdi, STDOUT
- 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
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
Hello everyone, Kindly help me out, please.
I'm using Ubuntu latest LTS. The problelm is, I am not able to copy, past or cut anything from my external harddrive. I am however able to watch movies or edit documents directly from the hdd
I've tried 'askubuntu'. This is link that has a similar problem as mine
and also watched a couple of videos on youtube, like the one linked below, but unfortunately no luck.
I'd appreciate any help or pointers as I really need to backup my stuff9
Hi everyone! I'm in need of some help regarding the approach to my bachelor thesis.
The practical stuff is basically clickstream/task and usability analysis on an existing platform and creating mockup improvements for some processes. I was thinking about using a spider to generate a tree (or another datastructure) regarding all the different tasks available and then trying to optimise said tree, thus automatically optimising the processes within. I'm having however issues imagining how this optimisation might be generalised for more than this one platform.
Basically, I'm a bit lost and grasping for any pointers in any direction regarding these ideas.3
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
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
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
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
The way the responsive design says that Google has a "Guide for Existing"
God, I need one of those!2
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/...
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
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
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
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
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
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
For a while now I've wanted to make a blog about engineering and discovering different types of engineering (software development, electrical, mechanical, etc). In the blog I'd like to write about journey discovering what kind of engineering I wanted to be, how I got here, and fun projects you can do to see what different types of engineering fields are like. Long story short I want one of those projects to be my process making the blog they're actually reading it on and I have no idea where to start with web dev. Can I get pointers (puns) to resources or frameworks that would be good for beginners?5
“a stack-based language where pointers are poisonous and the interpreter doesn't do a good job of remembering non-constant values”3
Handed off my code to Devs working on main products. Long presentation explaining everything.
Have discussion afterwards about what it does, but not how it looks.
They say thank you, I say you're welcome, and since this is my first bigger project, if they have some pointers or glaring defects in the code I'd welcome the feedback.
They all start laughing. I do too but in my head I'm like "wtf, I ask for feed back and you laugh? That's."
It's been bothering me.2
@kenogo, is there any way I can reach you outside if devRant? I need help with something, and perhaps you can give me a couple of pointers.6
I have a love hate relationship with C honestly. I hate that you have to do so much overhead management and control of all of your pointers and arrays and manually handle memory allocation and management, but on the other hand it's pretty cool to work that low / close to the machine code and the programs run lightning quick. Pros and cons, I guess. Would've been interesting to be around in the early days..1
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
!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
I am trying my hand on blogging
Any pointers or feedback is appreciated. :D
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?
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`
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
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
Hey guys, perhaps some of you might be able to help me out.
My current task in my job is to implement an OAuth2 client in Android. I know there are a lot of out-of-the-box solutions for like Twitter, Facebook, Google etc. but I need to make it work with a generic OAuth2 server.
So I tried several frameworks for Android like AppAuth, Scribejava, etc. and most of them are buggy/outdated or aren't working with the Android version I have to use (API 24, Nougat).
I already asked for help in the android-dev IRC channel, but to no avail. Also looked up dozens of repositories on Github.
I'm rather desperate right now, because I'm running out of time :(
Any help/pointers are appreciated!
This Pub in Budapest would make a good place for a Meetup.
May the pointers to the beverage never lead to null.
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
Never done a "full-fledged" Android app, but I had to, for school.
It works (by now), now I can sleep3
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
Does ayone knows of a
+ Open Source
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
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
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 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
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.
int t = 1234;
int tt = 5555;
int* p = &t;
int* pp = *(p + 1):
Here pp will give me 5555...5
Any other Healthcare developers here? Have you integrated with EPIC, and if so any pointers before we get started?1
I remember codeblocks with pain the .h and .cpp, the pointers sometimes get the memory address that crash the program and program with opengl on codeblocks is the dead1
This post is going to be long and it might not be the platform to ask for it's mainly for ranting yet I wanted to ask a non toxic community.
I'm mainly an ABAP programmer working on an SAP system for my living. No matter how people inside the SAP sphere look at it, it's not exactly cutting edge technology in the world of software development. (and in my opinion it's not even a knife)
As I work in an enterprise environment I have trouble about finding gaps where I can learn newer technologies and thus, I've decided to learn in my free time.
I tend to tilt toward web development as do many I know because I see potential in the GUI which HTML and CSS achieve. And I do believe that combining that with languages such as JS, Python, Ruby, Erlang and Elixir can give way to a healthy experience both in Web development and even desktop development.
In order to avoid overwhelming myself I wish to start with learning web development. Time is not of the essence because I plan to continue working with ABAP for close future, around the next 2 years, and I'm young.
I wanted to ask the community, is there any developer in here that was in the same position and can give out some pointers to the path they took? Is it wise to start my path from HTML5 and CSS3 without looking back to the older ways? Any resource you'd share will be welcomed.1
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.
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.
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?
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)
For progress and success all you have to do is be the right person in the... holy shit, I missed it! Damn lag!
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