Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "after class"
-
//long rant but worth it ;)
In our class, we had some writing in Word.
I was the smart PC guy in the class which everybody asked for info. Even the teacher sometimes asked me.
There was a girl in class which I didn't really like, because she had a snoopy attitude and thought she is a queen.
In MC Word you can hide the toolbar with the little arrow on the top right below the close button.
Somehow the girl hid the toolbar and didn't know to let it reappear again. After half a hour the teacher got to the next lesson.
She held her hand up and reported to the teacher that here PC has problems. After 10 minutes try & error from the teacher he even didn't get it.
Now the teacher started the rant and shout at her: "How did you even manage to do this? Did you upload a virus? I bet it is a virus! Do you know how much it costs to repair this pc? It's sure over 1000 $."
The rant continued for 15 minutes. After that I felt a bit guilty and even I didn't like that girl, but nobody deserves such a harsh treatment.
Without saying anything I went to the computer, clicked the little arrow and the problem was solved. The teacher didn't say anything to this topic. Just said we can go early.
Sometimes dump people make a elephant out of a fly, just because they don’t know it better…
Well the girl still stayed a cunt till the end of my scholarship.17 -
My JavaScript professor once thought my work was "too good" and decided to pull me aside, in front of the class, to practically accuse me of cheating. I had to meet her in her office after hours and talk to pretty much prove it. Once she realized I didn't cheat she was fakey nice the rest of the semester. God forbid a girl be decent at JavaScript without "cheating". 🙄21
-
I'm the biggest dumbass, the laziest procrastinator I know of..
Joined devRant in June 2017, got eligible for the stickers in a week's time, sent a mail requesting them, but never received it. Given the size of our community, I thought I'm way behind in the list and probably receive them in few months. After a year, I totally forgot about it.
But, the colossal stupid that I am, had also lost the key to my mailbox (the physical one). I never cared about the lost key, because who sends post these days !!!
When I finally got a duplicate key for my mailbox after 2 years, guess what I found.. a first class international mail from devRant which arrived on July 2017 🤦♂️🤦♂️🤦♂️, couple of weeks after I originally requested
But, yay... I finally got them..16 -
There's this guy that sits next to me in a class.
Guy: Hey, you're a hacker right?
Me: I'm a programmer.
Guy: Can you hack into my email account?
Me: Nope, I work in a different field of computer science.
In reality, I want to give him a piece of my mind.
I already know his email so I open up the login page and enter it. I click "forgot password", and it asks for his favorite teacher's name. Keep in mind that he made this account this year.
Me: So anyways, who's your favorite teacher?
Guy: *proceeds to give me favorite teacher's name*
Me: 🤦♂️
I change his password and log into his account. After that, I show him and tell him about how he should keep his account secure.
He left class with a priceless look on his face.14 -
Today,
First day of new dev class...
Teacher, "As you know Tablets, Smartphones, Smartwatches etc... Are not allowed in class, except Laptops."
Me,
"Is a Surface allowed?"
Teacher,
"Is it a Laptop?"
Me,
"Yes, but also a Tablet.."
Teacher,
*Furious*
"NO TABLETS"
Me,
"Bu.."
Teacher
*Still furious*
"YOU ARE HERE TO LEARN HOW TO BE A GOOD RELIABLE DEV, SO LISTEN"
Me,
*Proceeds to Lift up surface from Keyboard*
Teacher,
*Rips surface out of hand and goes to secretary*
"You can have it after school"
Me,
*Sitting there speechless with nothing to develop with*
10 Minutes later
*rector comes in and gives me surface back*
Me,
Thank you
*Proceeds to use surface*
...
The Teacher hates me...22 -
Today (as a joke), I asked my class if there were any “professional HTML programmers” who could help me.
Surprisingly a couple people came over with smirks on their face. I thought they were going along with the joke.
Turns out, they were serious. They legitimately believed that they were professional HTML programmers and talked to me in such a condescending way that I was speechless.
“This is called a file. See that part after the dot? That’s what makes it HTML. HTML is an incredibly hard programming language and powers CPUs and the computer that you are using.”
I didn’t know how to respond. Hopefully they were joking.9 -
Me and my team in middle of our first hackathon-
a girl who is our class topper is my team mate, trying to write some Android Code.
I am writing nodejs Api, she calls me saying there's a bug in my code,so for saving time I decided to fix that small thing on her laptop,so when I went to the backend folder to open the js file,I see no default text editor set for it. After searching,I found out she had no atom,sublime,vs etc.
I asked her - "Do you even have notepad++ ?".
She - "I have notepad,but not ++".
That day I had to edit my code in Wordpad. I am still shaking.12 -
I wrote a Student Information system for my midterm project back in 94 written in Clipper and runs on MS-DOS.
I demoed & explained to the panel of professors how it tracks enrollments, payments, class schedules, grades and attendance of each and every student. Has user authentication, auditing and reporting functionalities.
It has a lite version also written in Clipper that can be installed on a Professor's laptop so that he/she can update records even at home, and would be able to sync with the db at school via a BBS. Telix for DOS (self-taught) was my choice for the BBS as it was shareware, has built-in Zmodem support and comes with it's own programming language called SALT (Script Application Language for Telix) that can be used for automating tasks. The lite version of my project would dump the updates on an ASCII file, compress the file using PKZIP, use the laptop's modem to dial-up the number to the school's BBS and send the file across using Zmodem protocol.
The main version would then download the file(s) from the BBS and proceed to do a sync.
After the doing the demo and answering all their questions the panel asked me to wait outside the room, called me back in after 15mins and told me that I don't have to attend that class for the remainder of the term. The happiness as the my classmates outside of the room gawked at me felt like King Midas himself gave my balls his golden touch.
Then in 97, 2yrs after I graduated, I accompanied my cousins to a different campus of the same school for their enrollment and right there on the bottom of the screen were my initials on a very very familiar UI! They actually used, and were still using, my school project. Needless to say my cousins didn't believe that it was written by me.15 -
I had to do some work in an older C# repo. I see git is automatically ignoring each new class I add. After scouring the .gitignore file, I see this entry put in by one of my colleagues.15
-
Our teacher wanted to show us a video in class so she opened Internet explorer (windows 7) used bing to search for the video and clicked on the link.
The video didn't work and instead there was an error message saying 'Your browser is too old, please use a more modern browser, for example mozilla firefox'
She looked at the error message for around 30 seconds like it had just told her that it is gonna explode in a minute. After some time one of my friends asked if she needed help. Here is what happened:
F: do you need any help?
T: No (very serious voice)
Teacher shuts down computer, stands up, looks at our class angrily and says in a very serious voice:
T: you broke the computer although you aren't allowed to touch it!
Me: mother of god...5 -
A group of computer science geeks were listening to a lecture about Java programming at a university.
After the lecture, one of the men leaned over and grabbed a woman's breast.
Woman: Hey! That's private OK ?
The man hesitated for a second looking confused.
Man: But I thought we were in the same class.3 -
Feeling blessed, left the army after 5 years, 3 deployments, to attend 3 years of computer science school and get a stable lifestyle.
I've got a supporting girlfriend, mentally never felt better, and for the next 3 years, this is my seat and view in class !
Happy coding all, and have a nice day✌️8 -
So I teach a Lego mindstorms class to 5th graders for fun on my spare time. My other classes the kids usually seek me out for any programming questions but this one class of rambunctious boys would always say they're fine when I offered to help and then when they thought I wasn't looking would ask the male teacher or would pretend to listen to my explanation to not hurt my feelings. Finally my co worker told the guys "you know guys she went to school to program she does this for a living full time when she's not here. **room goes silent** In fact she's way better at programming then me". The whole room the boys mouths were open and one kid actually said noooo. We blew those kids minds. Most quiet day of class we've ever had after that.11
-
After ten months of unemployment, got a call from someone who had taken a class I had taught, and he asked if I was available for a position. I said yes, and got the job without an interview on a one year contract. Three months in, I got an offer to convert to permanent. I've been there 14 years now.3
-
So I missed the first 3 days of my programming class. Once I showed up to the 4th the professor was really cool about it. She informs me on the HW I missed and so after the test she handed me (which was overdue as well) I started on the HW. By the end of the class I show her the exercises I did and just by how I structured each function (Python btw) she could tell that I was advanced for the class... I was surprised when she said that I didn't have to show up to the class because it would be a waste of my time, and that I can use the time to focus on personal projects. She offered to help me out with database dev (which ironically I planned on reading head first sql after a design pattern book). The thing that hit home was when she said "I think you're going to be a great programmer."31
-
The recruiter in call today is a spoilt brat .
I answer him wether am I know PHP. So I show him my code in PHP (oop) I show should him how I build a restful API and connect to MySql etc.
He told me that's not PHP , PHP don't use define and class , and that's not how you connect to MySql (I'm using PDO) he confused that pdo is something from Java. He told my code is not working because it is java syntax (actually not even closed)
Then I asked him then show me the proper way , he showed me his code in PHP which is started by <PHP instead of <?php (this is fucked up)
And I told him that (after looking at his code), he yelled at me that "there's no mistake, do you really understand PHP? " And he ended the meeting
All this happen in a zoom meeting.22 -
3 or 4 days before the summer vacations, our teacher came in class and asked us to present whatever projects we've been working on and give a brief description...
Some guys went on the stage, then a few girls,
So being first time on the stage I was pretty nervous and started shaking and sweating a little bit.
I opened up the laptop and project was already open in AS, but had to restart emulator,
but the main thing was, i didn't notice the "blonde lesbians - PornHub" was minimized in the taskbar.
So I opened up cmd and typed "taskill -f -im chrome*" and it vanished. (a little fear increased)
when I finished presentation, some of the students were staring at me, so i made an excuse to go to toilet,
...and I ran out of dept.
after class finished my friends came up to me and said "we saw what was going on there in taskbar" and we laughed.
#NeverEverGoingToDoPresentationEverAgain #TrueStory6 -
So there is this girl who joined the company as a trainee.
The company developed a 1 year project to train 25 trainees and she joined saying that she already had some experience making websites. (remember this)
They started in the beginning of January and stayed for about 3 months just studying the platform (Salesforce) and receiving some classes from Senior Devs, on subjects like OOP basics, loops, conditions and features of the platform.
After this time they joined the teams, 2 joined my team, a guy with 32 years that worked 10 years in a bank and wanted to go for a IT job and the girl of 22.
We gave her a really small task, just to make a code to copy info from one field to the other on a list of objects.
After 3 days of saying she was working on it we asked her to show us the code, she had written the "code" directly in the class, VS Code was going crazy with errors. When we asked her "But where is the method?", she answered "What is a method?"
After it we had other experiences trying to teach her some things. The team was formed by me (mid level dev), another mid level dev, a senior and a architect (who was self taught and one of the best teachers I've ever seen).
We tried for about 3 months to teach her how to do basic stuff, like a for loop, and every time we learned that she was missing some "foundations" of this basic stuff, so we would come back and explain the foundation, and a couple times she needed to use this knowledge like a week later and didn't remember shit.
So after this the team talked with our leader that we wanted to let her go and focus on the other guy who was going really well and some other junior devs who had joined the team.
But the HR found out that she had sued her last company, we don't know the reason, but HR guys were afraid of firing her without a careful firing process.
So now we're stuck with her in the team, and everything we ask her to do need to be remade, not because the code is bad, but because it NEVER works
And after all this I still ask myself, how did she finish college? Every person that i know that studied CS or CS like courses had a lot of OOP or at least knew what a class and a method were supposed to be.29 -
In computing class - Teacher asks for disadvantages of open source.
"It may end up like Linux..." <I stopped listening after that>
>.>13 -
I was just chatting with my professor after class and I got on the topic of my class that makes us use Visual Studio 2010 and he seemed very interested in that, so come to find out, he's "the guy that makes sure classes are using up-to-date technology"
I was like OH SHITTTT4 -
I have come to the conclusion that certain people have a tech aura that can fix or break things just by being near them. Apparently I can do both. Have you had a similar experience?
The other day a colleague was trying to play a YouTube video for the class (I work in a primary school) and the page refused to load. After 20m of failed page refreshes they called me. I walked in, sat next to the computer, and before I even touched anything YouTube suddenly appeared on the screen like it was trolling us the whole time. Much to the amazement of the class of kids who bow think I am some kind of tech-witch.
On the flipside - Linux hates me. It always has. Some years ago I decided to force myself upon Linux so I got a friend to install a dual boot on my machine. Knowing the effect I seem to have on Linux he demanded I stay out of the room until he was done. Two hours later and some stability testing later he called me back in to introduce me to my new setup. The moment I walked into the room Linux kernel panicked and never booted again.
If only I could learn to control this mystical power over technological life and death!13 -
School online class system keeps track of every students' username and password. They are all accessible by typing passwords.txt after the address1
-
Working for an indian code sweatshop. The job you've got by bribing the University headmaster to give you a degree without ever attending class. Your uncle who worked at the sweatshop as a manager already gave you the job by bribing his boss.
After a half a year on the bench you've beeing sent off for a contract for the USA. You moved to Seattle where you've "coded" the software for the Boeing 737 Max Airplane. Your code downed 2 airplanes. You're responsible for the death of 350+ people. You're alone and the US is foreign to you and you're missing your mothers indian food. And you wish you could soothe your pain with some freshly pressed sugar cane drink and a jalebi from your favorite food joint back home.8 -
After working with web development for years, I decided to get a degree in CS.
The lecturer taught so many things wrongly, and I kept arresting him. Eventually he asked me politely to leave class.7 -
I really love to share my knowledge and I have a opportunity to teach kids coding as a lector. I even switched my f-ing theme to light for them so they can see the board (they're already saying light theme sucks, I love them). Maybe it's only html/css but they're learning so fast even though they're just bunch of 12-13yo Minecraft kids 😂 I'm myself only 17 but I can see the "age gap" between us, I'm getting old...11
-
My second year of high-school, we started having class in computer science. I was really looking forward to it cause I always wanted to learn programming.
On first sight it appeared that the professor which taught the class knew something, he looked like a genuine geek with those dorky glasses, briefcase and pants like Steve Urkel, but after couple of his lessons you could see he had no real dev experience and just basic understanding of programming in theory. He was more reading stuff from the book than he was trying to explain them to students and give some real world examples.
So it was just one these days, everybody got back from vacation, it's hot outside, the guy is just reading sentences from his book, half of students talk with each other and other half doesn't give a fuck about him or his class. Pretty sure I was the only one trying to listen to him and learn something from his recitals.
All of a sudden he notices the atmosphere in the classroom, slams the book shut, gives out couple of F-s to the loudest students and yells out loud "NONE OF YOU IN THIS ROOM WILL EVER ACCOMPLISH ANYTHING IN YOUR LIFE, BARE ALONE IN PROGRAMMING"
At first I felt like shit, but soon after that I started thinking "who the hell are you to tell me what I could or will accomplish in my life". Couple weeks later I've bought myself a first book in programming and started learning C++ late at night since I understood that I won't learn anything about programming in that school. Two years later I was correcting this same professor with his claims on a whiteboard in front of a whole class.
Today, seven years after his words I'm a developer living in foreign country with what I could say somewhat a solid experience and understanding of how both software and web are build, while that same professor still recites to his pupils difference between assembly and object code, while praying nobody asks him where and how these are used. For maybe a quarter of my paycheck. So much about his psychic powers..4 -
My last special snowflakes teacher story. This happend last Friday.
Background: we had to do a "little" project in less than 2 weeks (i ranted about that) and got our degree on Friday. I did a perfectly fine meal suggester, with in my opinion one of the best codes i've ever written.
After getting my degree (which is totally fine and qualifies me as IT technician/ "staatlich geprüfte Informationstechnische Assistentin") i asked him what my grade for the project was.
Me: what was my grade for the project again?
Him: i left it at 90%
Me: why exactly? You seemed to be really excited and liked it obviously. And there was no critique from you after my presentation.
Him: yadda yadda. I can't give you more. Yadda yadda be happy i didn't lower your grade.
Me: why would you lower my grade? This doesn't make sense at all. I matched all your criteria. You wanted a program everyone loved, everyone wanted to buy. There you go. I made exactly that.
Him: i can't give you a 1 (equals an A)
Me: why not?
Him: you wrote to much. I didn't want so much (he never specified a maximum). And you used to advanced code. And there were so many lists and ref - methods. The class couldn't benefit from it.
Me: Excuse me!? The only "advanced code" i used was a sqlite library. And i explained what i did with that. What do you mean by "so many lists" and ref-menthodes. In which methodes am i using ref?
Him: I don't know, i just skimmed through the code.
Me, internal: WHAT THE FUCKING HELL!?
Me: so you are telling me, you didn't even read my code fully and think it is too advanced for the class? And because of that you give a 2 (equals a B)?
Him: yes
I just gave him a deathstare and left after that. What the hell. Yes, i used encapsulation - which is something we hadn't done much in class. But the code is still not more advanced because i use more files -.-16 -
Once, at college I asked my computer science teacher that why don't you use Linux 🐧?.
And guess what he said his reply was "I don't use pirated softwares so I'm saving money to buy Linux OS " and after listening this I was really about to die of laughing 😂😂.
Like literally how can someone be such a dumb and especially a computer science teacher.
After this he asked me to get out of the class and I thanked God as it's better to stay out of such a class with such a dumb teacher. 😂😂12 -
After a 4 year CS college completed and 3 years of java experience I have found the biggest challenge of my life when my gf asked me to teach her programming. After explaining 10 times what a class and an object is , I started to understand how frustrating is for a teacher with a shitty pay to teach an know-it-all dumb fuck to write a hello world after 2 years of college.11
-
!warning could be longer.
I must something let go:
Im now 24 ,my life was not easy .
I got bullied all the time in school from 1 to 10 degree. I had a dream since i was 6:"no i dont wanna be a police man, fire fighter, astronaut....i want to be a programmer "..
My father did me to make an apprenticeship with Volkswagen after i finished my "middle school" (10th class);
2 years of mobbing and be sad i leaved that motherfucking "-aship"
After a while my father again wanted to ,i must to an "-aship" .yeah hes been right, but i dont want to do and work like you do!!!.. then again after "fighting" my dad (parents), i was reliant to social help for a year..
(U must know,my dream was always in my mind)
I met a girl in a different federal state in germany and moved up to her.
I worked as a daywage man to get us money.
1 year was over and then i found out the apprenticeship as web and mobile developer (computer scientist) . I applied for this an got a place.
Now my fucking dream comes true in a few months!
Just wanna say that you never should give up your interests or dreams, doesnt matter how old you are!!!!
My journey begins 2017 and yours?:))))5 -
Long rant ahead.. so feel free to refill your cup of coffee and have a seat 🙂
It's completely useless. At least in the school I went to, the teachers were worse than useless. It's a bit of an old story that I've told quite a few times already, but I had a dispute with said teachers at some point after which I wasn't able nor willing to fully do the classes anymore.
So, just to set the stage.. le me, die-hard Linux user, and reasonably initiated in networking and security already, to the point that I really only needed half an ear to follow along with the classes, while most of the time I was just working on my own servers to pass the time instead. I noticed that the Moodle website that the school was using to do a big chunk of the course material with, wasn't TLS-secured. So whenever the class begins and everyone logs in to the Moodle website..? Yeah.. it wouldn't be hard for anyone in that class to steal everyone else's credentials, including the teacher's (as they were using the same network).
So I brought it up a few times in the first year, teacher was like "yeah yeah we'll do it at some point". Shortly before summer break I took the security teacher aside after class and mentioned it another time - please please take the opportunity to do it during summer break.
Coming back in September.. nothing happened. Maybe I needed to bring in more evidence that this is a serious issue, so I asked the security teacher: can I make a proper PoC using my machines in my home network to steal the credentials of my own Moodle account and mail a screencast to you as a private disclosure? She said "yeah sure, that's fine".
Pro tip: make the people involved sign a written contract for this!!! It'll cover your ass when they decide to be dicks.. which spoiler alert, these teachers decided they wanted to be.
So I made the PoC, mailed it to them, yada yada yada... Soon after, next class, and I noticed that my VPN server was blocked. Now I used my personal VPN server at the time mostly to access a file server at home to securely fetch documents I needed in class, without having to carry an external hard drive with me all the time. However it was also used for gateway redirection (i.e. the main purpose of commercial VPN's, le new IP for "le onenumity"). I mean for example, if some douche in that class would've decided to ARP poison the network and steal credentials, my VPN connection would've prevented that.. it was a decent workaround. But now it's for some reason causing Moodle to throw some type of 403.
Asked the teacher for routers and switches I had a class from at the time.. why is my VPN server blocked? He replied with the statement that "yeah we blocked it because you can bypass the firewall with that and watch porn in class".
Alright, fair enough. I can indeed bypass the firewall with that. But watch porn.. in class? I mean I'm a bit of an exhibitionist too, but in a fucking class!? And why right after that PoC, while I've been using that VPN connection for over a year?
Not too long after that, I prematurely left that class out of sheer frustration (I remember browsing devRant with the intent to write about it while the teacher was watching 😂), and left while looking that teacher dead in the eyes.. and never have I been that cold to someone while calling them a fucking idiot.
Shortly after I've also received an email from them in which they stated that they wanted compensation for "the disruption of good service". They actually thought that I had hacked into their servers. Security teachers, ostensibly technical people, if I may add. Never seen anyone more incompetent than those 3 motherfuckers that plotted against me to save their own asses for making such a shitty infrastructure. Regarding that mail, I not so friendly replied to them that they could settle it in court if they wanted to.. but that I already knew who would win that case. Haven't heard of them since.
So yeah. That's why I regard those expensive shitty pieces of paper as such. The only thing they prove is that someone somewhere with some unknown degree of competence confirms that you know something. I think there's far too many unknowns in there.
Nowadays I'm putting my bets on a certification from the Linux Professional Institute - a renowned and well-regarded certification body in sysadmin. Last February at FOSDEM I did half of the LPIC-1 certification exam, next year I'll do the other half. With the amount of reputation the LPI has behind it, I believe that's a far better route to go with than some random school somewhere.25 -
Fucking teammate who did not know how to read/write a simple class diagram.
We warned him that he have to study or we just kick his fucking ass out of the team.
He just did nothing. When we had meetings he just stayed at home pretending to have an heart issue needing surgery.
After just 2-3 days he was tagged on FB in a photo shooted a few days earlier where he was riding a bike for a competition.
He skipped another scheduled-a-fucking-week-before meeting saying that he was on a surprise trip, when I called him 5 minutes before meeting start.
In the end we just kick him out because he did nothing. He went to professor talking about some relationship problem in the team and asked him if he could continue the project by himself just forking the ours.
Professor said HELL NO SON OF A BITCH.
But our team learned a precious lesson : choose your team carefully.5 -
Our school like:
School: hey everyone! Today we are learning java.
We: But we can Java and we already read the whole book
School: So ok! Let's do Java for 4 months!
We: What the... c'mon that makes no sense!
School: ...
We: ...
*After 4 months*
School: So class lets write a exam in java!
We: oh boy! this is nice!
School: Open your VM!
*Everyone started theyr VM and opened Eclipse*
School: Aaaaand now open NetBeans!
We: Holy Moly Crap! Really? why?
School: because...because...because...fuck off! we dont know...but it stands on the fucking exam so shut the fuck up u little crap!11 -
I applied for PHP Developer
Interviewer: What is interface?
Me: it is class with unimplemented methods?
Interviewer: But why we use it?
Me: it acts as a contract so you can assure that
on implementing interface developer will follow
the same architecture.
Interviewer: that's okay but why is the need for an interface at first place?
I was irritated with the interview process as he was smirking
every time I answered.
Me: I never get a chance to do that kind of research. Truth is
even if you hire me your manager will declare the unrealistic deadline and won't care if I comment the code or know why we really need to implement an interface.
After he did not smile and I left the chair.13 -
I was taking a test for an online class, and I noticed that all the pages had the .html suffix. Naturally, my curiosity was piqued because I was expecting them to have hidden this part of the URL. The pages were locked for 48 minutes but I wanted to know if I could somehow circumvent the timers.
After some digging around in the source, I found where they were changing everything.
It was a small .js script that was making the page work. I could see that I could actually choose what page to get to. After plugging in some of the links, I found that I could actually get to specific parts of the class.
Ended up completing the class in 1/4 the time it usually takes.
I win.2 -
Found out I had two days to write this crap for an 8086 in class. Our instructor doesn't even know assembly. I stopped crying after the tenth jump.4
-
>Middle of night
>css not getting applied conditionally
>a simple ng-class
>me raging
>fuck angular's digest loop
>fuck dom and not giving parse errors
>fuck my life
>Coworker is also confused
>after 1hr, what it could be
>A typo, ifStudent->isStudent
>😑3 -
!rant
Boss set me up for a last minute certification to prepare for next years new projects. Went through a lot of material in just two days, then had to take the exam immediately after the last class ahead of everyone else. Aced it!^^
What surprised me the most though is how much I still enjoy learning new stuff (wasn't even tech), even after 8 yrs on the job..4 -
Okay so this happened ages ago (nearly five years) but this suddenly came to my mind again.
It was in the first year of my study (currently in my 5th and last year).
I was experimenting around with php and mysql during some free hours. All the insert,delete and so on statements worked perfectly find except for one update statement. Started to debug of course and after a little while of no results I was like "oh yeah right, something like logs exists of course". Looked in the logs but nothing. No matter how I altered my code (rewrote it numerous times for some 'clean starts') it just would not run the update statement.
Alright, time for some class mate help. After multiple hours of debugging with a few classmates, there was still no result at all.
Time to bring in one or more teachers. After hours of debugging, still no result even with the help of a few good teachers.
Decided to give it a rest for that day.
Two weeks later it still was not updating anything/working and I finally gave up.
Till today, I still have no clue what went wrong and it still bugs me from time to time :/4 -
On Python,You create a gun module, a gun class, a foot module and a foot class. After realizing you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear.1
-
So in the 2nd grade of middle school.our classes had computers with projectors and teachers would present on them. At that time I was still a beginner in programming and knew some basic cmd commands, so before our teacher had come to class I went to the computer desk, opened cmd and then executed this command “shutdown -s -t 36000” which basically shutdowns the pc after 36000 milliseconds and then the teacher came to class and started explaining us a new lesson on a power point and half way through the power point the pc suddenly shutdowns and the class got wild. and no one admitted who did it so all the teacher did is to say” who ever did it pls don’t do it again”. Like wow...😂😂😂4
-
Working on a project with 2 other students. One of them makes a C# "super class" with 50 fields, and manually creates getters and setters for each and every one. Then he proceeds to write a constructor that accepts 50 parameters, because why not.
I comment on the git commit, telling him that he can just write " get; set; " in C# and that he should model the problem in smaller, more manageable classes ( this class had 270 lines and did everything from displaying data to calculating stuff). Tried to explain to him that OOP works kind of differently from how he did it.
....
His answer: "Yeah, I don't really care. If it works once, it's okay for me".
This after the most beautiful code review I have ever done...
Fml8 -
A group of computer science geeks were listening to a lecture about Java programming at a university.
After the lecture, one of the men leaned over and grabbed a woman’s breast.
Woman: Hey! That’s private OK ?
The man hesitated for a second looking confused.
Man: But I thought we were in the same class1 -
Story from back in college..
It was the golden days of Flash Facebook applications. I have developed a very simple Rubik's cube solver in Acton Script 3. I was testing it out at the back seat of the class during the first day of Advanced OOP in Java module.
Our lecturer was going on and on about how awesome Java was and what all you can do with it. After a while he said "do you know this thing called Rubik's cube?" **explains what it is for a while** "Some people have even made software to solve Rubik's cube with Java. Can you make something like that?"
I was like "you mean like this one?" Pointing to the app on my laptop.1 -
Skipping unit tests and documentation ...
I'm starting to recover after not writing a single test for the first 6 years of my professional carrer (wasn't taught in school, didn't know where to start, man I should have really found a mentor earlier), and barely any documentation (I was the sole developer for several years, and just didn't get into the habbit).
Unit testing is still not a habit, but now I have the first tests to serve as an example and an idea what/how to test at least, and I try to get every new "framework" function/class at least commented properly.
Wish me luck2 -
In the first lesson on the school the teacher mentioned the fibonaci formula, and because I already had a little experience in programming I wrote a program witch outputs a given amount of numbers after the Fibonacci formula and showed it to the teacher who didn't really showed any reaction. At the end of my time in the school while the exams preparation he told us that last year one part of the exam was to program for the Fibonacci formula. At this point I realized that my little experience in programming was already to much for the class and why I did not learn any thing in 2 years.
Ps: sry for my bad English.1 -
"I don't see women as objects, each woman is in a class of their own! HAHAHAHAHAHAHAHA"
- People who have no fucking clue how OOP works
Objects are instantiations of classes, you poor, retarded bastards. You saw those two words while skimming your 1st year college textbook, made this joke, promptly changed to some useless English degree because you cried after your "hello world" program didn't run, and never looked back to see the damage you had done.
I know the joke is the word play but word play word play puns are retarded anyways. Everything about this pun is awful.8 -
I've been working towards a degree in CS recently after being out of school nearly 10 years. I've been trying really hard to keep an open mind and not complain about the professors, but I have to let this out.
My one class we have to write all of our code in their specified editor which I hate, but I understand the need for standardization, but then once it is error free we have to copy and paste the code into ms word and turn it in!! Really?! In 2018 I can't just submit my source files and you open them to run and grade? I seriously have to copy my code into ms word for you to grade it? I don't even understand how you would grade that because it kills the formatting and readability, not to mention the quotes get changed to their curly counterpart which isn't valid syntax.7 -
Last year, we had to do a big university project in randomly selected groups (5-6 students in every group).Three of the five guys were completely useless, I mean, both the other competent guy and me wrote around 20,000 lines of code each, the other ones wrote around 500 lines of code (combined).
After our first few meetings we quickly knew that we have to give them a small task which was so trivial that not even they can fuck it up. But we were wrong. Oh boy, so wrong.
They simply had to code the excel export of the data, which means they had to use two functions from a library and pass the correct data. But their solution was so bad, I lost faith in humanity and was fascinated by it at the same time.
For example, there was this simple class "Room", which had a few properties like size or number of seats and a few getter/setter etc. That was a core class and written by the other qualified guy. So how did the others fuck up the excel export? They somehow rewrote that class in German (although the other code was completely in English), implemented a function for each property that would write its value to a hardcoded cell in a hardcoded excel file.
And this was just the tip of the iceberg. Needlessly to say that I had to rewrite the whole export in the night before we had to present the project.5 -
May i ask for help dear fellow devRanters?
@aureliagbrl suffered a deep depression and pressure from her family, the cause is exceptionally simple yet very crucial; so here's the story :
Every week, in friday after the last class she have to go home to fulfill her family wish to gather around and will come back to her dorm in Sunday. her home is more than 1.5 hour from University. recently one class in Wednesday moved out to Saturday Noon for some reason this cause her to go home in Saturday afternoon, yet her family doesn't care if it means she have to wake up 3am in Monday, to get back alone to catch up with class. her family just want to gather around longer, that's it, no exception. According to her this is so frustrating and exhausting. so the condition now is Tomorrow Morning (Monday) there will be a Live Coding Exam. she isn't prepared, her only wish was to get back on Sunday instead of Monday to Study. her family discard her wish entirely. this make her so deeply depressed and i can't even talk to her, she starting to mumbling about quitting college, and etc, etc.
We all know how bad it is to burnt out right ? and we want our fellow developers get out from it and a good shape. My wish is simple from you guys, i wish you can mention her in comment and cheer her up.
Thank You
here is her cheerful photo.35 -
So I've decided to go about converting a Java project that I've been working on to Kotlin a little bit at a time. I started out with basic entity classes converting them to simple `data class`es in Kotlin.
Eventually, I got to my first beast of a class to refactor. This class had over 40 service classes depending on it, so even a little hiccup would throw everything into chaos.
I finish all of the changes on all of the dependent classes, update the tests, and the configurations (as necessary), and I was finally ready to spin up the app to test for any breaking changes I may have introduced...
Well - I broke everything! But I was sure I couldn't have! So what the hell happened?
Turns out that as I was building my project with a Gradle watch, at one point something failed to compile, which threw an unhandled exception in the gradle daemon that was never reported.
So when I tried to run my app, gradle would continually re-throw the error in the app I asked it to run...
After turning the daemon off and on again, the app worked like a charm.10 -
Seeing on some other posts I wanted to rant about my uni’s computer science community.
Some background: This is a small uni, not like a community college definitely a little bigger. Located somewhere in WV. There is 2-4 girls in every CS class I have had and at least 27-30 guys.
The reason why I mention this is because there is no sense of team work at all. When it comes to exams or projects I take the initiative and make either quizlets (being freaking nice here) share them or take times after school in the library to work on projects. If I have a solution I will share it, I will try to help you in your problem. If I know how to do it of course.
The real issue is all those CS experts that already fixed or finished their programs, the ones on the top of the class. Is as if the moment I ask something related to the project I am already dumb for not have figured it out on my own.
There is the typical CS student that just tries and gives up or just gives up without trying and the other kind of CS student that does that. Doesn’t help anybody else, wants to be on the top all the time.
What I am trying to say here is that it just feels like a competition all the time. (I consider myself in between this two types of students cause I wasn’t born a genius but I do try my ass off on projects) however, I feel like guys see me every new semester in a CS class and think “oh wow how is she still here? Wait did she pass?”
All I say is “yeah I fucking did, with a C or B but here”. So I don’t know, first rant posted 👏🏽🙆🏽♀️10 -
Taking a class on C and machine-level code for school and I have my final tomorrow. After the entire semester, people are still posting questions to piazza asking how strings work and other students are giving wrong answers. Not to mention all of the correct answers are posted in our lecture notes and countless places online. Seriously people, why are you a CompSci major if you can't even figure out how you declare a string after 10 weeks of coding?3
-
After having to use Git and Bitbucket for over 2 semestres, my teachers decided to give us a Git tutorial where the whole class had to work in the same class. This was the result.10
-
Another gem during my studies: Senior professor in early class. Suddenly a phone is ringing. After a while he pulls out a huge inflatable phone and yells:"I can't talk right now I am in class. Bye.". Then he steps towards the board writes down "stupid joke" ticks it and says in a dead serious voice:"That's done".
-
after publishing a few apps, building some websites, developing some basic operating systems, participating in a summer learning program at google and having got a job managing the computer science department’s website, today i start my intro to computer science class.
god i hate python6 -
JIT Learning. Just in time Learning. You Don't need read a book from cover to cover. YAGNI. Many technical books talk about topics that you might never need in your career. Focus on what you need to know after making a plan for what you want to achieve.
YAGNI applies to coding as well. Don't create a class or a method just because you Might need it later. Create them only when necessary. This keeps your code cleaner and there is less to test.4 -
We were in a c class learning about pointers, the teacher was doing small stars on the board to explain the basics of them.
After a short while we all understood, or so we taught.
Someone asked about double pointers, so the teacher put 2 stars on the board to explain. THEN THE IDIOT OF THE CLASS GOES AND BLOODY ASKS IF WE COULD REPLACE THE 2 STARS BY A BIG ONE.
I MEAN OF COURSE JUST PUT A STAR EMOJI TO MAKE A DOUBLE POINTER.
The legend still lives on as he got kicked for an unknown reason🤔.3 -
There was this uni project where the teacher gave us a project to work as a team (the entire class, 17 people). We were meant to use Scrum, and deliver the first release in 1 week.
Turns out no one except me did the work, and this went on in the upcoming sprints, even with me telling the teacher what was going on.
Then, one day, a girl (let's call her Rose) did a commit to git, and I thought that something as going to change...She committed and push a new line at the end of a file.
After 2 months, the project was done. I had done 4k+ lines of Java EE + Hibernate + JSP code (which was very difficult to me) and the grading came out. I got a 7... most of the rest of the class got an 8 or 9. They did nothing.
When questioned by me, teacher said (it was a group project...)
TL;DR: I did the work of 17 people in a university project, got the worst grade of them all.12 -
After class: Dr, it's pronounced as JAY-sun not J S O N.
Next class: So students, today we will work on passing a J S O N object.13 -
after coding for 4 hour you find a class that can do the same task in 5 min .You dought yourself if you are a good coder6
-
When I was in highschool we had to make a project in team. A friend of mine said to a girl in his team to override a bootstrap CSS class. She started doing it at home and after an entire week my friend found out that she opened the bootstrap.css MINIFIED and she was indenting MANUALLY to find the CSS class in order to modify it. ( Obviously he taught her about CSS cascading ).
We still laughing.5 -
When your Tesla’s battery fails, because they cut costs, you are hit with a high-pressure, thick stream of chemical hellfire spanning your entire car’s interior space. It will burn you to a crisp in 30 seconds. Because of all those “aUtOmAtIoNs”, door-opening mechanism will also fail. There is no way you’ll get out.
After 30 seconds, there will be no one left to rescue. After two minutes, there will be nothing left to bury.
There is no way a fire squad could extinguish this. That’s a battery fire. If you remember your chem class, you know lithium burns violently underwater.
You’re gonna die. Elon won’t be responsible, as usual. No one will face any consequences.
But damn, what’s an epic bacon hyperloop tech way to go out, isn't it.15 -
Updated a website for an older client today. Realized I originally wrote their website in 2002.
That web site is a fucking non-responsive piece of shit... but it is still running normally after 18 years.
Just HTML/CSS and some light JS/PHP for form processing. It's not fancy but it still performs and works perfect on Desktop and OK on mobile. Mobile devices which DID NOT EXIST when I wrote it.
Let this be a lesson to the entire new class of developers who seems to think you need some framework to develop. You don't. And I GUARANTEE if that site used any framework that framework would have been retired or updated to un-useability 10 years ago.
Meanwhile my LAMP ass "web native" shit spaghetti with ZERO DEPENDENCIES is still just chugging the fuck along.4 -
I'm so fucking tired of OOP.
This bullshit never ends. Everyone treats OOP in their own, proper (of course) way. You read tons of those fashion books, like uncle bob and shit. and then comes a dumb asshole that starts reviewing your code, and tells you doing it wrong. FUCK. and you can't tell anything to your TL or PM cuz they are same dumb asholes. Because after you fix all the bullshit from the first asshole, those more responsible assholes come and tell you that you still doing it wrong.
- uh.. bruh, why don't you make interface for everything? that' S.O.L.I.D, you know.. it just right thing.
- bruh, why don't you use enum and switch case. we need a factory.
- bruh, we don't use abstract classes, use interface
- could you rewrite your linq/stream thing into a class and a method. it's just simpler for us. foreach loop is something everyone knows.
well,then go and LEARN the tool you're dealing with, coderfucker.
FUUUUCK.13 -
I'm currently one of two "pen testers" for the anticheat system of a game.
It all started a few days ago when the developer handed me the obfuscated package and told me to go at it. No big deal, I've bypassed it before the obfuscation, so I just changed some imports and sent in the screenshot.
Fast forward 100+ hours, it's turned into a cat-and-mouse game. He sends us (the testers) an update, we break it within hours. We show him what we exploited and he attempts to fix it. Rinse and repeat.
Finally, today he patched the one hole that I've been using all this time: a field in a predictable location that contains the object used for networking. Did that stop me? No!
After hours of searching, I found the field in an inner class of an inner class. Here we go again.3 -
Spent 4 hours debugging a “button” styling, worked fine locally but not on production.!
After striking out “cache” issues, “browser” versions, “fonts”, “sass errors” the error was with a stupid chrome extension that appended a css class attribute to the “HTML” tag 😡
And the other developer thought that was a part of what was written in the code !!
Hate these kinda plugins that manipulate the DOM 😪
P S the plugin is "Grammarly".2 -
Recently for a project I needed to read/write ID3 tags from MP3 files. And after a long search, I found this bloated, monolithic but quite stable library, "getID3".
So, I was looking through the code-base and I found this. This guy literally storing the key value based data embedded as comments within the class file. Then wrote a method to parse the data and even used caching to ensure maximum speed! And such usage is repeated all over the code-base.
So, this is what people used do before arrays were invented :314 -
I sincerely like the moment, when i train a newbie to code .NET showing him/her how far OOP in .NET goes.
I love to give the following example:
var s = "round and round it goes";
s = s.ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString().ToString();
And yeah. It's totally fine.
Because each component of .NET is inherited of object. And the class object supports you with the function "ToString()".
After that, in most of the cases, i get a slightly irritated look from the newbie.
Than i say, "welcome to Microsoft" ;)
I finally add, that the compiler of .NET finally identifies duplicate results and refactores the given code before execution ^^
Coding Is fun, as long as you get the big picture/concept of the language you're using.2 -
I've actually had mostly good instructors for CS. Or at least mediocre. The worst teacher I had was actually my Algebra II teacher in high school. She taught by reading, word for word, from our textbook. She would copy the example problems from that chapter onto the whiteboard. And then give us the rest of class to work on homework. She was basically a Text-to-Speech program for our textbook.
We all joked that she was drunk and the one locked cabinet in her classroom contained liquor. A year after I had her class she was fired. For drinking on the job. The joke turned out to be 100% true and they actually did find alcohol in the locked cabinet. -
Never worked before so I'll talk about one of the former staff at my school.
This guy worked as IT and did some teaching in the high school. Early last year, he suddenly disappears for no reason.
Now, I'm going to go in order of what we (the students) found out, not, chronological order.
Firstly, turns out that in class he would make comments about female students. Nothing explicit, just kinda strange. I forget the examples I heard but think like the overly friendly old guy. Those types of comments from a 40-something IT guy. (Some female students knew about this for a long while but I only heard about it after the investigation)
Next, rumor got out that they found some stuff on his computer. I don't know how, but it turned out to be accurate, and we were accurate at the follow-up assumption that it was porn.
After that, the school made an announcement that we had been arrested. Up until then, we just assumed he had been sacked. He was weird sure, but we didn't think criminal.
Some other students looked into the police records, and it turns out this guy had been arrested for possession and distribution of child pornography.
Pretty sick right? Its worth pointing out now that our school has Pre-K through 12th grade students.
I gained a new level of respect for my female classmates after that. I didn't even know that was going on, really wish I could have helped out.1 -
me@termux $ su -c pm list packages
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died at [...]
Hmm, strange.. wasn't that the proper command? 🤔
Maybe it's SELinux that's at it again? It's giving permission errors with /sys/class/power_supply/battery/capacity as well, which can only be solved by disabling SELinux it seems.
me@termux $ su -c setenforce 0
me@termux $ su -c pm list packages
(Gives list)
So it was SELinux after all.. FUCKING PIECE OF SHIT!!!2 -
My friend ha just big exam in their programming class. They got the assignment week before and were allowed to use libraries. They were using Java and Maven repos. He created his own Maven repo and added finished assignment as a library. He just added his repo to the gradle project and selected his library as a dependecy. He then created one class with main method, 10 lines of user input and called main method from his library. Since the school newly tests students work automatically, he instantly passed with 100% and had to look like hes actually working for next 3 hours 😂. Noone noticed anything after 2 weeks 😂1
-
Signed up for a driving class...
This is what i get in the mail shortly after.
Fucking fantastic guys! Saving passwords plaintext. Is it because of the government?15 -
So we had a class that should have 2 states 0 or 1, you think my coworker would be smart enough to represent it with a Boolean? NO!
Represent the state inside the object as an int then when using the object in a function creates a Boolean that determines the state of the object and after the function done it's job THEN call another function that takes the object and the Boolean and change the int state inside the object depending on the Boolean.
Wouldn't it have been whole lot easier to just you know..... Make the state a Boolean from the start.
When I saw this I knew I was witnessing a miracle of the human mind. God bless!
Ps: it wasn't connected to any kind of API nor server and there are never more than 2 states. It's just some local sequential code so don't assume it had a logical reason it's just a fuck up.5 -
I'm making an educational game for a school project.
What I thought I had to do:
Write complex code
Learn to animate
Make all resources by myself
What i do:
Drag and drop stuff into unity.
Moving arrows around.
Watch tutorials.
Im 3 weeks ahead of my planing... After 6 days.
No wonder there are so many 3rd class unity games -
I've always felt like a world class programmer after printing a hello world message on screen until now.
People are continuously ranting some technical shit that's completely above my head on devrant.
Fuck you for downing my morale
PS: I'm still in love with it!^_^4 -
My worst experience ... and best, was when the company I worked for sent me to teach OOAD to the faculty of the Mathematics and Computer Science department of a University in Pennsylvania. There I was, a guy with no degree teaching a group of PhD's the fundamentals of OOAD. Imposter Syndrome? You bet. Nervous? Yes. My mouth felt like it was filled with cotton, and when I picked up a cup of water on the first day, I had to put it back down because my hands were shaking so badly. I could handle a room full of developers, but for me, this was a whole other league. As it turned out, the professors had a blast, and gave me great reviews, but that first day of a five day class was a doozy. After that, I knew I could handle anything.3
-
WTF Windows.
I was assigned as TA to a highschool CS class, and was doing a live demonstration to ~20 students on how to install the Python environment and set up venv (on Windows, since that is what the majority of students use).
After installing Python, I tried to demonstrate invoking the Python environment by typing "python" in the command prompt. However, that opened up Microsoft Store instead.
Being extremely confused, I had to talk nonsense for 2 minutes while frantically look up what happened on another screen.
In the end, it seems like Microsoft recently introduced this "feature" that automatically associates the opening of a program to whatever it feels like.
-.-9 -
Well after years of programming, I've hit my first runtime error that provides no info , the code fails prior to being able to generate an error so this is fucking fine :-)
And of course, the one time I need stack overflow, it tells you to initialise the class with data... Yet the class doesn't contain a fucking constructor... Smiley face7 -
I only created a fucking class, a FUCKING EMPTY CLASS
Cancel button does nothing, obviously.
After 30 seconds or so, everything is back to normal. This shit reminds me of the "good old days" with Eclipse.
I hated Eclipse back then, and I fucking hate VS now13 -
I had two teachers in school, who even after finishing the class, continued to program with interested students. For example programming a robot or communicating over the serial port of a computer using Java.2
-
My AP CS teacher told us that we have a lab due the day after Valentine's Day. But that's not an issue for us because we are tech nerds... My face when most the class agrees.2
-
So yesterday I got paired with this guy in physics class. First thing he does is ranting at my windows, after which he rants at his Mac, and then launches vim and tells me about how he only uses Linux, and how C+ is the only real programming language, and that maybe Python could be accepted as one too. Then he finishes by telling me how web development sucks because it's so high level... Suddenly I lost hope for Sweden...8
-
When I started programming ~5 years ago.
Teacher: OK, C++ classes and structs have 3 access modifiers: private, public and protected.
Private fields can't be accessed out of the current class.
Me thinking: wow, that's cool, but how can it be? I have to research.
I went to home and wrote a class with one variable with its set and get functionality.
Then I opened Cheat engine) and tried to access and change the variable. When I succeeded, I started hating this world of programming.
After some time I understood that it's wonderful cause it's up to you.5 -
I don't want to sound ethnocentric but is anyone else annoyed by having to correct the spelling of variable, class, table name, and other code after it was built overseas? I'm in a third round of combing consecutively deeper into the code to ferret out these misspellings so they don't go into production. Is it too much to ask that the freelancer who says he speaks and writes native English not then turn that work over to a subcontractor who clearly does not?4
-
Do arcade games (Pac-Man, Donkey Kong, Berserk) count? I got my allowance in quarters.
Atari 2600? Ti/99 with a tape drive to play a game at my friend's house?
Having to buy a 5.25" floppy in the HS bookstore for typing class on the TRaSh-80s and finding a way to put a break in the program and save it to disk so I got top score on assignments?
Tron. That's what really did it for me. To this day, I like to imagine there is a vast world inside the computer.
After a BASIC programming class in HS, I got an Apple IIGS and started writing my own load menus for these little games I'd find around FIDO and newsgroups. Instead of "PR#6, brun gumball" a nice styled menu would show where you could press the number of the game you wanted to play.
I bought a book on Apple assembler and promptly got disillusioned with full blown programming (in 1988), instead sticking to BASIC and, later, JavaScript, HTML, PHP, CSS, and Python.
Who remembers sharing hacked PCP accounts to dial out of state BBSes?
Applied Engineering customers and 300 baud chatroom lurkers represent.
User #243, God's Country chat2 -
As devs, our keyboards are arguably the most used tools in the creative process of software development. Shortcuts are essential for (most of) us.
What's your most used keyboard shortcut in your most used IDE? Please explain what it does in which IDE.
Mine is Cmd+Alt+L in IntelliJ (reformat code, but only VCS changed or selected lines). I press it all the time, almost maniacally, after changing anything.
Close second place candidates: Shift+F6 (rename anything, e.g. file, class, function, variable), double Shift (search everywhere), Cmd+Alt+F (find in path, also in code), Cmd+B (go to declaration).12 -
# school suck
! coding
hello, hope im not bothering anyone with my adolescent problems, but im really angry towards school.
first of all,
the subjects get thaught much too slow.
like dafuq, why does our maths teacher need 6h to teach us what square roots are? Why does our history teacher need 10h to teach us about one single revolution???
and worst of all: why is everything accompagnied by long, repetitive, homework?
Also, why do they think that im bad just because i dont have the best grades??? im a GOOD average, without learning a TAD!!!
also, here i am, needing to learn maths for some it project.
when i ask any teacher, he doesnt explain it to me but says "you will learn that in class xy"
ok, then i guess i can teach it myself.
but when i take books into school to read em (remember, i already know the subjects), the teachers always take em from me.
also, im not allowed to talk to anyone. not even when idle.
so currently, i am trying not to get angry from this, tomorrow school starts again. after this year legally, i would be allowed to drop out.
could you please tell me what you would do? should i drop out? change school? change class? im open to reolly anything that possibly could help (my parents arent)35 -
Another story of mine is when me and my friends were playing games in the school library. I decided to fuck around on windows XP file systems to see what I could find. After clicking around for a bit, I found a way to access all of the student files in my year, with full access privileges.
What ended up happening was that my friends figured it out too, many of them changing files and writing messages for the other people in our class. After writing messages to each other and leaving messages to students here and there, I decided that it probably should be a good idea to report this.
The response at the IT room wasn't like the woman's response (bitch from last rant). They were like "Cool, thanks." The fix happened immediately and I wasn't really told off. It was a good day c: -
Mixing lazy loading with event-based code == events won't be handled because the class won't subscribe to events until it's initialized hours after startup
Thank you, my dear lazy-loading lover, who keeps introducing hard-to-spot bugs everywhere. I wish your hand was as lazy as your code, that would have saved hours of debugging time. -
So im in college right? I dont have a licence to drive yet so I wait for my ride after class. My friend usually waits for me but this time was different..
I went to his car with him while having our normal conversations, we get to his car he puts his stuff in the car..
then.. it happened.. (pretend this is italicized) he pulled out a fucking hacky sack. THEN WE JOKED ABOUT IT BUT ACTUALLY TRIED TO DO IT AND BOUNCE IT BETWEEN EACH OTHER LIKE ACTUAL COLLEGE STEREOTYPES
Im making too big a deal out of this but ive never actually played hacky sack and its most likely the highlight of my college career4 -
Today I tried to find out why the constructor of my class wasn't called. After 2 hours I found out, that it was named "__constructor" and not "__construct"... I feel so dumb right now. FML2
-
That feeling of regret after you get a not-so-good grade in a class because you were too advanced in the subject matter. "I already know java I don't need to go to class *miss surprise quiz and class work*" <- me in csc 101 and 102 (retook both). Moral of the story: don't learn too fast on your own if you're in school if you get bored really easily.3
-
I remember the first time our class coded a simple program in C. The objective was to input two random numbers, check which one is larger, and output it on the screen.
After class, I asked one of my classmates if he finds the test easy. My classmate replied that it was so easy he got bored. Then when I asked him to show me his code, this was what I saw:
int a, b;
printf("Enter smaller number: ");
scanf("%i", &a);
printf("Enter larger number: ");
scanf("%i", &b);
printf("Larger number: %i\n", b);1 -
I was trying to get into a project dev class in here in uni, and I was already ahead of with my team setting up goals and starting with the project, when suddenly, the system notifies me that I might not get into the class because too many people are in it. I wait anxiously 30 minutes before the deadline to see if I get in.
15 minutes. Nothing
10 minutes. Nothing
1 minute. I am the only person left in the waitlist.
The deadline passes.
1 minute after the deadline passes. Someone drops the course.2 -
There was a kid in my programming class that was convinced that in the next 10 years ai would become self aware and seek for the destruction of its creators.
I wasted 20 minutes of my life trying to explain down how ai sentience would have to be an intentional decision by the group creating the ai
Of course, he spun around and tried to explain how secret government organizations are already working on general intelligence that would run on quantum computers to shut down enemy governments.
Maybe with people willing to believe anything the world is doomed after all :/10 -
"Why would you make your own when you can just get one for like $30 online?"
One of the single most disheartening things I've heard from a peer.
Seriously, are you really so incompetent and dependent upon other people's work that you can't even come up with a single reason why I would do this?! Don't you dare try to call yourself an engineer. Call yourself a cheat, cause that's the only way you passed that class.
Even after explaining that making it yourself is one of the best ways to learn about/understand it, they still couldn't understand.3 -
Motherfckn messenger, have to use it coz everyone does -.-
I fckin missclicked in my class' group on the like button just after a kind of sad story. Fck me Xd4 -
University, first Java practical lesson.
I'm sitting near this guy, clearly hyped up because he managed to install his first linux distro earlier.
After 5 minutes he asks me how to do the task the Professor assigned that morning.
I'm playing dumbass in my head, thinking stuff like "oh big boy installed ubuntu but can't declare a fucking Rectangle class in java lol" (what a dickhead).
I helped him, and then proposed to go out for a quick smoke.
Turns out we're very similar, hyped as hell with linux (like I was at the time), with same CS interests. Still texting sometimes. -
Sure, there were always people who influence me. Actually, I like to feel when superior manager or officer could help me to develop myself.
Nevertheless, there was one man who opened for me this "Pandora box". He was my first computer class teacher. I was 10. After next two years I got my first money for localizing ZX Spectrum games.5 -
Disadvantages of coding after midnight... Was modifying a makefile for an assignment when suddenly:
$ make clean
> rm -f com/package1/*.class
> rm -f com/package2/*.java
wait..
WAIT NO
😢7 -
Today I had a problem with a JS framework. The only person who was available who could help me was the one I avoid, because he always knows everything better.
Well, after I asked if he had time for me, he sits next to me and I started to explain.
After looking around, he started blaming my backend code.
(I belong to the kind of dev that tries to write small and simple code. But I also often use the more complex features of the languages.) He suddenly started accusing everyday things in the backend like inheriting a class or using objects and basic data types together as parameters of a method (WTF???) Hell, all I could say at that moment was that I had a problem with this JS framework and not with the backend that worked well. He probably tried for over an hour to find the bug in the backend and just wouldn't listen, after that he gave up. I wonder what this bitch has learned over the years. Can it really be that he forgot the basics of a programming language? Or has the fool never worked with an inheritance before? I think he's an incapable piece of shit, he hasn't even patched my reported vulnerability in his project in the last half year, which allows to inject own code onto the server.
Because of such fucking morons I get a headache when I think about it. How can it be that he's got a higher degree and earns about 50% more. I should leave this company!3 -
So back in November I wanted to get a new smartphone, after years and years of middle class stuff I decided "let's get the newest high-end shit out there!" so I bought the Huawei Mate20 pro.
I was SO DAMN HAPPY when it arrived 2 days later. I quickly switched to the new one and SUDDENLY after a few hours it started to get a hint of a green border arou d the display.. and yes it got FUCKING WORSE! Now after a few months it got worse and worse, I talked to my provider and they said I have to call Huawei so I called Huawei and guess what? The want me to send it in, which will take around TWO WEEKS! It's not even my fault and now they want me to have no phone for two damn weeks? Why? This sucks.. and only because I wanted to have a nice new shiny high-end piece of technology 😭17 -
Dude what the fuck with C#'s code style?
Pascal case variable names and classes? Don't we do this so we can differentiate between variables and classes??
Newline between parentheses and brackets?
Retarded auto get/ set methods that serve no purpose than to make code difficult to read and debug?
And after all that shit, string, which is a class, has a lowercase s and is treated as if a primitive?
I really have no idea why this language is so widely praised. The only thing I like about it is that it's the only major bytecode language that has operator overloading and reference parameters.19 -
First day of web server programming class. The teacher clearly doesn't know anything. He doesn't even know what the course is about! When someone asks him what it is, he mumbles about "dynamic" something... Then he says we will be using the languages JavaScript, MVC, and PHP. What the fuck. MVC? LANGUAGE?
He then tries to come up with some project we could make, and is not going to teach anything apparently. Keep in mind, most people in this class have very little previous experience with programming.
After not saying anything for a long time, he finally tells us to make a clock in JavaScript. A CLOCK. He is supposed to teach how to make Web APIs and such, but instead, he tells us to make a clock in JavaScript, and that's it.
What. The. Fuck.10 -
Nothing makes me happier than listening to my neighbor's disgusting banda music playing as loud as it can.
No worries tho, the cops will be here in about 20 mins (it usually is 20) one would have expected that after getting the cops called on you for 3 times already you would get the message:
No homeslice. If i want to listen to that cantina piece of shit music on my fucking friday nights I will make sure to let u know :) but I actually have class so no thank you.
This is why Trump hates us (Mexicans) -
Damn bro Vue 3 sucks actually. It's just a big function now with arguments like "`this` can be sometimes confusing when TypeScript is used." - hell no, my component was a class and this was the fucking class. nothing was confusing about this.
It's all a clusterfuck of magic now, I don't see why writing `ref(5)` or `return { all of your shit }` after `setup() { complete business logic inclusive functions here }` is better.
I was so looking forward to all the improvments, but why do we need these 3 apis with actually no difference, tried to be explained by the same image of colorful blocks in every single fucking article?
what happened to methods? am i seriously supposed to return them from a function? that just feels wrong.22 -
Why Gmail. Why the fuck do your search parameters, especially your date filters, not work anywhere near as expected.
You make me have to query and test, query and test, just, randomly fucking guessing because, fuck it, right?
With a good 10 second refresh time. I love twiddling my thumbs and pulling my hair out.
after:2018/11/1 should produce emails from Nov 1st onward.
Not, TODAY ONLY, if no other parameters are
specified.
If there's a from: parameter, now we want to do after Nov 1st, right?
And also, don't show me how to sort in reverse order, either. Not without a complete rewrite of my class there, which clearly I'm too lazy to do right now.
Fuck the Gmail Api, responsible for weeks of wasted dev time... or more aptly put, "fuck devs using our gmail api" says the maniacal, sociopath devils that created it
fuckers.1 -
Just now... Got a job to create patch files for a couple of jars, which may or may not have varying class files. In total, I have to decompile, check, add and synchronize about 30 class files in 6 jars with a new functionality (that I didn't write). 🙂
FUCK PRODUCTION! WHY CANT YOU MAINTAIN ONE MOTHERFUCKING JAR?
OH? YOU'RE SUPERSTITIOUS THAT ONE TINY, ANT-SHIT SIZED CHANGE IN ONE SIMPLE FUNCTIONALITY WILL FUCK UP *OUR* PRODUCT?
FUCK MANAGEMENT! YOU DON'T HAVE CONFIDENCE IN YOUR *OWN* PRODUCT!
OH? CUSTOMER COMES FIRST? HAVE THE BALLS TO DEFEND YOUR OWN FUCKING SELF AND PRODUCT TO THE CLIENT OR THEY'RE GONNA MAKE YOU YOUR BITCH AND TIE A GAGBALL DIPPED IN HOT SAUCE AROUND YOUR MOUTH! HOW.. THE FUCK.. DID YOU MISS THAT LOGIC??????
Best part, they want it by tomorrow, and they don't wanna test it. Guess who's gonna get slaughtered after a week? ME! 🙂5 -
Part two of: a day off an iOS developer life:
1. App crashed and stack trace gives no info in which file it happened, I have a generic table view cell that is used in so many places and Xcode just wrote: xcell does not support key value.
2. Mac freezing when Xcode is creating IPA file thanks to a new feature in Xcode 9 (Mac freezing is the new feature, even mouse pointer doesn't move -.-)
3. Let's check the value of this class property, Xcode: fuck off and either print it in console (after hitting a break point) or expand that shitty tree at the bottom to reach your class property!
An advice: never click jump to definition when Xcode is indexing, it will either freezing Xcode or crash it.
Part 1 link: https://devrant.com/rants/1137208/...1 -
I start shaking and getting nervous when there is something I really, really want to say.
Today in school we started talking about Amazon Alexa and privacy.
This topic concerns me a lot and I started talking in front of the whole class about Google and things they do to spy on you. After about 30 seconds of me talking I started shaking because there was so much I wanted to say and with so much enthusiasm and also a bit of anger.13 -
Don’t teach with LOGO, but instead start with Scratch, then something more advanced like Python and after that maybe C# or Java.
Teach different operating systems and software, not only Windows and Microsoft Office. There should be class with Linux (Mint for instance) with LibreOffice and another with macOS and iWork.
Teach basic troubleshooting steps.
Less theory, more practice.
STOP BEING SUCH MICROSOFT ORIENTED.
Ability to use own laptop (I would be really happy to use my own one).
Teach basic commands for Windows and Unix based systems.
Teach how to install Windows and Linux.3 -
A college prank, more than an office prank, but a few years ago I was doing a course in Multimedia, no programming aside from some actionscript, so it wasn't a very technical course as such. At the end of my first year, I used a Php script to email a guy in my class, and make it appear to come from our course head, saying something along the lines of "There's a problem with your grades, we suspect plagiarism, please email back to arrange a meeting etc..."
Unfortunately, before I had a chance to tell my friend I spoofed the email, he was already after seeing, and replying it to. Obviously chaos ensued, I got called into a review panel, accused of breaching my course heads email account and whatnot, I had to demo to them what I actually did, and then told they'd review if they would let me continue with the course.
A few days after, i got an email saying they'd overlook the incident and I continued with the course and now have a nice story about a prank that went slightly wrong but worked out fine in the end :) -
I've been working for the last 5 years on some large legacy code used in production, more than 100K LOC, poor comments (when existing) often outdated, huge parts of code that can no longer be reached, over-engineered class hierarchy, functions of thousands lines, huge parts of deprecated code that cannot be removed because "someone might still be using it". Statistically, every small change caused 3 new issues somewhere else and every bug fix or new feature required 10 times the time that would be necessary with a decent codebase. But after five years in hell I can finally say that... Oh wait, nothing changed, the code is still legacy and nobody is going to do anything about that.1
-
As an introvert, this is a big challenge. A few years ago, I buried my social life to be focused on my work. But after some years, I realized this was doing more harm than good to me.
Since then I try to dedicate more time to friends, social events, and family. It's not easy to keep in touch, invite to a coffee, joining a class/activity and meet new people. Everyone's life is so busy today. But it's worth.
I always feel so much better after have a good conversation, sharing experiences and ideas.2 -
After wasting 30 minutes on slack, Asked a dev where he was, so I could go to his fucking seat to help him fix his issue.
Dude sent me his pwd from shell.
Idk what's the worst part, it's not my job to help him fix issues and I'm trying anyway, or that this guy is the topper from my class in college...3 -
I was working with a stable installation of an elaborated platform. Some plugins were installed. After upgrading the installation by 2 patch level the customer registration was not working anymore.
In these two patch level a method in an interface got an additional optional parameter which had a major impact on the behaviour the implemented method. A plugin decorated the implementation without knowing about the new parameter. Therefore when calling the method the decorating class did not pass the new parameter in to the decorated implementation and the fallback value was given instead.
The caller expected the method to do something and did not branch into an alternative way but the default value disables the expected behaviour. Eventually nothing happened.
Breaking changes in patch levels woop di fucking do.2 -
You wrote a little simple and clean mvc framework to work faster on some new projects. It can "compile" tags as {% var %} or {% array.key %} in the html code with support of {% for arrayOfHash in hash %} foreach construct and nice features, it can call api's callback in a smart way as ghost methods of a class, he can make routes with the route provider. You tested it and made a little example, after you went in the bathroom you read the index code and you started staring at the beauty and elegance of it. You go to bed happy and sleep. The day after you wake up and realize that it's unuseful because there's a lot of mvc framework that surely are better and ready to use, so you lost useful time. Have you ever feel this way? MVC: Me Versus Creativity.5
-
Finally after wondering for hours why the constructor of a class does not get called...i notice that constructor don't fucking accept a return value data type (void)...😡😒8
-
Found this comment in a class I visited today after a few months of writing it.
//todo: Fix this fucking POS hack
I have no idea what POS refers to anymore. FML.4 -
So...
I'm doing an internship on the best company ever....
Boss is so awesome he waited half a year so I could do the internship... Cause Corona and fucking stupid Public workers (half my class didn't finish... Like... It's a pandemic and lets not facilitate, it's just one year of their life's)
Workers are great... Environment is so good that yesterday one coworker went to talk to the boss and me and the other did his job on his back... So we could all leave in time.
And I probably won't stay after... Because thers not enough work to hire me....
Fuck Corona. -
(Java) Last year in programming class my teacher gave me a example project he had made. Looked through it found problems, fixed them. The next I had programming class I showed it to him. He were really cross about it and gave me a semi bad grade. After some time he told me I was right, and changed my grad.3
-
Laravels error reporting is sometimes fucking useless. Yesterday it wrote into the logs "class foo doesn't exist". I triple checked the including of this class. Checked the namespaces. Checked the classnames. Everything was ok.
Today I removed the content of this particular class, which returned an array. And the error was gone...
After further search I realized I was missing commas within the array deceleration...
Why the fuck you don't just tell me this????!?4 -
I was in school looking for intern places when a teacher told the class he had an amazing company for about 20 students. Got the intern job by doing my first ever job interview. After a year I got a traineeship while still in school (3 days school, 2 days work).
Now I have a job there, which for now is helping new interns and trainees while sales is searching for projects for me. (I work at a company which "sells" developers for a certain time, Im not sure what the english term for "detachering" is) -
Powershell. Using classes. Can't create class libraries using regular .ps1 files (this way this **sort** of work). Using modules then. Can't easily refresh modules cache after any change to a class. Need restarting powrshell each time. Looking for more information. The issue is open since 2016 (just after the release of PS 5 that introduced classes). Once again, a Microsoft product turns out to be shiny at the beginning, but rusty when you go beyond the surface. Classes seem to be second class citizens in powershell. I feel frustrated and I would like to put pressure on microsoft but nobody seems to care. I'm stuck.3
-
If any lecturer in my department discovers you are very fast in typing, the lecturer will turn you to a typing slave.
Lecturer: Just type, I will give you something
( 2 weeks later nothing )
Lecturer sees you in class, he ignores you.
(After graduation)
Lecturer sees you
Lecturer: Congratulations Mr. ***. The department is going to miss your fast typing, but i might call you on occasions to type for me. Will you come
Me: Sure Sir
MY MIND: STUPID FUCKING OLD FAG ASSHOLE, I HOPE YOU DIE A SORROWFUL DEATH, GREEDY FUCKING BASTARDS, AM NOT YOUR SLAVE, I WILL BLACKLIST YOUR NUMBER. BASTARD3 -
So I did a code review for a colleagues pull request and I've noticed that he hasn't written the PHPDocs for a lot of the classes and functions. One minor thing I wrote is to add the author for the class.
About 2 mins after writing that comment he came over to tell me why should he write the author in the comments when people can just go look at the git commit logs. I was like WTF? I asked why would he do that, his answer was that if there's an issue, we can just use git blame to identify the author. To me that makes no sense as git blame isn't supposed to be used like that.
It's guys like these are the ones who don't document anything whether in an online document or even in code. And they just make work harder for the rest of us.2 -
If you also programm in your free time you probably know this kind of situations.
Situation: I'm currently creating my own PHP framework (I know there are plenty... I do it for "fun").
The database Connector Class wasn't working so after an eternity (around 2h) I just went to bed.
11pm: My Eyes open. I'm sure I just solved the problem in my dreams. (Spoiler alert: I didn't)
2am: I go to bed again. It didn't work.
Next day: I open the file add a missing required file. It works. I'm now tired AF and feel like dying and above all: I now get all the suicide PHP memes. Good night guys. I'm getting some sleep.3 -
Somebody ranted about his teacher showing windows presentation and teaching nothing. I wanted to comment that post but i have enough material to make the whole rant out of it.
Well at least you have those presentations! In my school we have 2 IT classrooms one with win xp, 1ghz cpu, 0,5gb ram computers and one with win vista, 2 core 2ghz cpu and 2gb of ram PCs.
Guess what room our teacher is using... of course the worse one! The second one is fine, few years ago another theacher had been using it!
I tried to convince him to change rooms but he is coming up with silly exciuses! (like "server is not working here!", well i fixed it with my friend but why are you even talking about it when you are not using yours in old class!)
PS. That server is useless anyway, every pc is connected to router that is connected to internet so supervisor pc is not mandatory, only acces restriction is enforced by win accounts.
I heard from students from my class (that picked that optional IT course) (i'm in high school) that gimp is not working because pc's are so bad!
Sometimes even notepad frezzes.🤔
Not only class is shite but teacher clearly has no idea what is he doing. (in order to pass the final from IT you need to learn simple C++, up to simple foo objects) and of course he isn not even talking about that! On one lesson about sorting algorithms he gave everybody 10 small pieces of paper with numbers on them and told everybody to sort them manualy, because he didnt know how to do it himself! So there is no doubt they wont be able code it.
I need to mention that i volontered to "clean, fix" that classroom (in order to convince teacher to move). And in that class i saw programms written in c++ on every computer! That means somebody was teaching propely before! 😣
I feel sorry for those guys, they are just waisting time. I would fall for it as well but i decided i can learn coding in home ;).
Well, results are shocking, after 1 month of coding i learned C# and i can basicly make any algorithm i ever wish. I learned about computer operation so well that i can nearly teach computer science. (i helped my friend in usa that is a electronic student with that and i'm very proud of it 😁) and it class still can't even use all 3 loops correctly... 😥 Ok i must admit i have been coding for a looooong while so i had time to learn basic c,c++ and pc operations before, but point still stands.
Why the hell are you wasting life of those studends? Why are you giving them a choice to learn coding WHEN YOU CANT EVEN USE PC YOURSELF?! (that it course is optional so you can apply if you want so)
I dont regret not bothering about it.1 -
Co-worker told me my code isn't up to" standard" and I don't follow "relevant convention" because I don't use a space after declaring a class/function AND inside the parentheses:
Me: class MyClass(something):
Her: class HerClass ( something ):
How do you do this personally?9 -
Well this isn't the first time I tell how I got my burn out, but since is the week topic...
I work in a molding company as a cnc operator (should already be a programmer).
My section boss and the company boss (not the owner) are people that got their place trough time in the company and don't know how to deal with people.
So I'll try to resume 3 years of history:
I joined the company while finishing the cnc course (1 year left), I talk to much, I'm smart and like to explain stuff and correct people. The company boss only has 4th grade and tryed to make me flunk class.
First I had to do extra hours, till I flunked.
Then I threatened to call the authorities, so I started working from 6 am to 5 pm and class till 11...
4 hours sleep a nighty for months
After that I started having health problems, when I was taken to the hospital after I pass out I as diagnosed with the burn out, been trying to recover since, while the fukers only did worst stuff, treated me like a dog and such.
I never made the complaint because the owners are owsome people, the kind who gives a lot to help the ones in need and make campaigns to help the poor. Now there are 6 complains again the company (last I've heard). And why? Because there was no consequences after what they have done all that shit to me, they started to do the same to others... Others that have no reason like me to hold back and not fuck the company...
The owners were building a second company to expand...
Were...2 -
I've worked for 2 firms with billion dollar revenue on contract basis in last years, but I'm still a year away from graduating.
It feels suffocating when after a great night of work I have to go to class among people who don't care about programming at all
I just want to graduate and leave this place...
Ps. Attendance is compulsory in my college and I take computer science classes
Pss. I already make thrice of the highest package in offered in my college for last three years!5 -
Writing a feature critical for production in 2 hours of solid focus during the morning.
6 hours later it's still not in the build because:
* tech lead wants the code to move to a partial class instead of an extension method, delaying the UX review. No guidelines for this ever existed.
* after seeing the result, the UX team wants some element to be dynamic. A line. A friggin horizontal line.
* after adding the dynamic shiny frigggggin line, I try to test the feature with the server. It is still not deployed because the server guy went home. "The PR was not merged so I assumed we'll add it tomorrow".
Another day at the meat grinder.6 -
First of all sorry for the bad picture. Let's move on...
Deleting this method like:
Who the hell did this nonsense?
I just took a picture of it so I could post it here and rant about it.
Sure felt stupid after deleting it for not thinking about a protected method in the parent class that is part of an API.
So... Yeah....
I was feeling too confident in my skills lately anyway6 -
Biggest lesson learned for me was believing some guy wearing a comb over & a fake tan who sounds like a car salesman. He claimed selling web app services to companies was no different than selling cars. It turns out that a lot of investors were not too happy that the company went under (b4 anything was released) b/c the CEO/CFO somehow managed to burn several million dollars on first class flights, cruises, 5 star restaurants, a luxury company car (for himself), hotels, etc.,. oh and even some fake tans!
Worst part about all that he wasn't even worth sueing because he had no money after all that. He even signed the 'company' car over to one of his kids!3 -
When I first began with Python I really missed the static typed checking from Java, I barely know anything about a returned object from a method and have to read the API extensively for every new library.
After a while I finally understand why Python is so powerful, the combination of dynamic typed language and rich default methods make the language unbeatable for your productivity.
While Java's Object only has toString(), hashCode(), equals() or clone(), Python's basic Class has every fucking method for every scenario I could ever image. No wonder that libraries like numpy or pandas work so well and fluidly.8 -
My first time doing a pair-programming for uni assignment.
My partner is actually smart (a Mechanical Engineering guy), except when it comes to programming :
1. Don't know how to spell FALSE
2. Don't know how to create array in Matlab
3. Poor variable naming
4. Redundant code everywhere
5. Not using tabs
6. Stealing my idea and spit it again in my face after claiming it as his idea
7. Mansplaining every line of his code like I am a stupid person who never sees a computer before.
He said he has an experience in Matlab, wants to specialize in Robotics and taking several ML classes. What did they teach anyway in class to produce a shitty programmer like him?
Thankfully despite his being an arrogant shitty guy, he still manage to get our code to works.
That's good because if not, then I will happily push his head under water while slowly watching him drown.
🤨6 -
ok guys, im having a little trouble diving into this, anyone wanna help?
ive got a server set up, and a client app. the client has a the server's public key built in, and encrypts the aes key/iv and sends it to the server, simple enough.
but now, after the first socket connection is over, what do i do? ive got both sides with the same aes key, but the server has multiple keys for other clients. so when the first client connects again, how do i know which key to use?
ive tried implementing a session class where there's a session id, but it doesnt work because the id must be encrypted, too. can someone help a fellow ranted out?1 -
So here's how the story goes.
I was in my academic writing class the other day and we were learning about APA formatting for our argumentative essays. We have a blackboard, whiteboard, projector connected to a pc and even a lovely projector screen to present with in the classroom.
I sit at the front right of the room. Closest to the window(it's behind me as all the desks face inwards)
Professor walks up to front of class and says we are going to learn how to format our typed essays properly.
Awesome, I thought. Pulled out my XPS laptop and fired it up. As I was making a new Word document, I hear scratching. I look up and the professor is writing with CHALK on the BLACKBOARD. I was astonished. Making matters worse, she started from the far left of the board from which the glare from the window was the greatest. I could not see anything. And from that point on I knew this class was going to be abysmal.
What was so depressing was my professor never once touched the projector. Scraping and erasing. Over and over. Couldn't see if it was a period or a comma after the first initial.
My eyes were never so dry from squinting, rolling my eyes and face-palming over and over. After an hour and 15 minute class, I was not far away from drowning my XPS in my tears.6 -
Progress on my sudoku application goes well. Damn, what is javascript fantastic. While the code of the previous version that I posted here was alright I did decide that i want to split code and html elements after all. I have now a puzzle class doing all resolving / validating and when a field is selected or changed, it emits an event where the html elements are listening to. It also keeps all states. So, that's the model. puzzle.get(0,1).value = 4 triggers an update event. It also tracks selection of users because users selecting fields is part of the game. I can render full featured widgets with a one liner. Dark mode and light mode are supported and size is completely configurable by changing font-size and optional padding. So far, painless. BUT: i did encounter some stuff that works under a CSS class, but not if I do element.style.* =. Made me crazy because I didn't expect that.19
-
Regex are one of the finest art piece in software.
Had a 2 hour class and even after that I think you can spend months on mastering it.
It's not something I haven't used but we undermine whole beauty of how random characters can form formula and extract complicated pattern.
Kleene we owe you.2 -
Today's accomplishments:
- Actually got the fuck out of bed this morning
- Fixed the RCA connector on the CRT I got from a friend (I got scared while discharging it but it turned out fine). Basically the metal piece that carries the signal through the connector was bent to hell and sticking out, so I desoldered it, bent it right again, put it in, and resoldered it.
- Went to taco bell twice within 8 hours
- Sat and talked with a couple friends for like 2 hours after school
- Met and briefly talked to a very cute girl that my friend introduced me to. She has colored hair (I REALLY like colored hair) and she vapes. So perfect girl for me.
- FINALLY FUCKING STARTED LAUNDRY
Things I didn't accomplish today:
- Working on the web page I posted about this morning
- Getting to school on time (ONE DAY I WILL)
- Staying in school once I was actually there (left during my 6th period to go to taco bell the second time, first time today was in the morning after I was already late to school cause they won't let me into class if I'm late)
- Fixing the boot errors on my laptop (sometimes when I boot it fucking freezes after flushing the journal, I've been trying to figure it out for a while but I have no fucking clue)
- Figuring out why my PS2 doesn't want to recognize controllers or memory cards (got a new motherboard and now it just isn't recognizing the controller/memory card, I feel like some of the traces broke at some point while it was apart??)1 -
My practice Java teacher sends us songs each Friday (after class).
He's such a cool dude.
Here's the last:
https://youtube.com/watch/...
You RESTful API developers / consumers will enjoy it.1 -
Someone once told me the following:
Processors, as good as they are, will always make mistakes.
When processors (i3, i5, i7, ...) are tested before distribution, they are categorized on the amount of mistakes they make. An i7 7700k for example which makes very few mistakes is labeled as a 'Type A', while another i7 7700k with the exact same name and specs makes a little bit more mistakes, and is labeled as 'Type B'.
All the 'Type A' processors are used and sold in business class laptops and workstations while the 'Type B' ones are sold to consumers.
After some research I couldn't find anything on it on the internet.
Anyone know if this is true or straight up bullshit?7 -
Looked up at the clock... 2 AM... Thought about giving up and going to sleep, but something kept me there...
Rewrote my encoder and decoder for my steganography program, which are used to insert and retrieve data respectively from images. Compiled, ran, and output was as expected!
Tried to write actual data, instead of just headers, to the image, and it broke... Of course it wouldn't work first try, it's me writing the code after all.
But then, after debugging for a while and changing a couple lines, the encoder looked like it had done its work properly. Then I decoded it, and voila, data completely recovered! It almost felt too magical to be true, usually I have to modify a lot more to get it working.
So now I'm in bed, after literally decimating the memory usage of the program, amongst other optimizations, and I know that the code works perfectly 😎 best part is I refactored each class down to 100 lines each, so now it's clean and dense 😇
Just had to share, feeling so good right now 😄2 -
Week80: Not my family or friend, but last time I used my notebook in a bus to school when I had to finish my homework (because as always, literally evrything is more interesting than programming class homework) random woman came to me, nocked on my shoulder and asked when I had terminal open when compiling "Sir do you know that this is not legal?" pointing at my screen. 😂
My familly thinks that I am a magican that can fix their printer and recover their desktop icons "because I did something wrong with it" after not touching their PC for months. I wonder who deleted those icons (*pointing finger at my father*)
My friends think that I am some magican nerd who can build websites for them all for every single stupid "teen business idea" they have and I can hack all their ex's FB. 😂😂 -
My girlfriend dumped me after I named a class after her.
She thought I treated her like an object !!4 -
I AM ABOUT TO KICK SOME PROFESSORS ASSES!!!!!!!!!!
THOSE MOTHERFUCKERS ARE MAKING GO MAD BEYOND MY BOUNDS WITH THERE MOTHERFUCKING STUPIDITY AND SELF RIGHTEOUSNESS.
LISTEN YOU FUCKS I WORK AS A PROGRAMMER TO PAY FOR MY FUCKING TUITION. NO IT IS NOT A PART-TIME JOB. I FUCK UP MY SCHEDULE SO I CAN CAME HERE TO THIS SHIT LEARNING SOMETHING BECAUSE YOU FUCKERS DO NOT HAVE A LECTURE AFTER HOURS.
SO WE I SAID THAT I CAN ONLY CAME TO THIS CLASS AT THIS TIME AND DAY OF THE WEEK I AM NOT BULLSHITING YOU.
SO DO US A FAVOR AND STOP BEING SO FUCKING STUPID AND GIVING ME THAT CYNICAL SMILE YOU PIECE OF SHIT.
FUCK YOU FUCKER AND YOUR PIECE OF SHIT CLASS.2 -
It was in highschool. The classes were boring, the teachers were dull. One day, I was making a silly application in Visual Basic. A guy I had been in class with all year saw me coding, after that he came up to me. He was excited he found someone who was a coder as well. We started talking about our experiences and the possibilities. We could fill hours of stupid highschool subjects with talk of code. We immediately became best friends, despite never really have spoken before.
We made some cool shit together.
He is still one of my best friends 7 years later, even though he stopped pursuing a programming carreer.1 -
Just had a class where we had to write a heap adding algorithm in Java to reduce rounding error for x amount of floats being added together
After an hour of writing code with no testing anything I finished. Ran the JUnit tests provided by the teacher and it passed all the tests!
Who says it can't work the first time?2 -
In freelance world,
Some Computer Science degree holder (from client company) explain how good are they in Software development.
But when as soon as my team and I (after got criticized by this guy for the fact that my team and I don't have a degree in computer science) review their code, the code is a bunch of spaghetti! No proper Architecture, no documentation, and everything in one class?
Damn...4 -
This story just left me speechless in any way and i want to share it. tl;dr at the end.
Im studying computer science in germany and in the first of the small classes i noticed... no, i was disturbed by a guy who would just say that the thing we're learning atm were so easy and the teacher shouldn't even bother to explain it to the class. I don't understand why you would spoile a class that hard... I'm here to learn and listen to the teacher, not to you little asshole. (We were doing basic stuff like binary system etc. but still, let us learn)
So he became unpopular pretty fast.
Fast forward, a few weeks of studying later there was a coding competition where you had to solve different algorithmic problems in a team as fast as possible.
I came there, without a team because my friends aren't interested but I enjoy such tournaments. This guy and me were the only ones without a team and we had to work together.
After him being a total dick for hours i had to watch him code a simple for-loop, that iterates through a sorted array. Nothing special, at this point anyone could do that task in our class so it shouldn't be a problem for him.
He made a simple for-loop and it worked fine, but we figured we had to iterate through the array the other way around.
'Alright', I think. 'Just let the index decr..' 'Pssshhh', he interrupted me and said he knows exactly how to do this.
I was quite impressed when he started to type in 'public int backsort..' in a new line. He tried to resort the array backwards with a quicksort that he then struggled to implement. (Of course we had to implement a quick runtime and we needed that quicksort badly)
I was kind of annoyed but impressed at the same time. I mumbled 'Java has an internal sorting algorithm already' just to amuse myself.
He then used that implementation.
After a few minutes of my pleasure and multiple tests without hitting the requested runtime, i tried to explain to him why we wouldn't need to sort that array backwards and he just couldn't believe it.
I hope that he stays more humble after that..
Also we became last place but thats ok :)
tl;dr: Guy spoiles whole class, brags with his untouchable knowledge (when we do things like binary system). In a competition has to iterate through a sorted array backwards - tries to implement a sorting algorithm to sort it backwards first. I tell him, we could use a already implemented java method. Then tell him we could simply iterate through decreasing the index. Mind-Blown2 -
Working on a project needing to integrate java, jquery, SQL, various aspects of Android unix manipulation i.e. rotation, gps, music players, etc..needs to successfully build and after getting finally getting all needed repository files, work in android studio then be converted into an apk, compressed sent to instuctor's device for seemless use...this group project included 6 individuals teamed up like avengers to complete...my team mates either dropped the class or with drew.fml with a hammer sideways.2
-
That moment when you get your first job after getting your degree and one of your co-workers with about 5 years of experience asks you what is a static class because he never used one...
I mean come on... You have 5 years of xp and never used a static before? x)
This project is going places...1 -
way back in highschool, for recitation i fixed a bug in the code written on the board with a very small change. feeling proud of my work, i did a 'mic drop'-esque thing on the marker i used.
my prof apparently did not see the change i made, said to the class something about 'having guts,stagefright,etc. he thought i really did not do anything, and just erased the whole thing. i almost lost interest in programming after that.
after college though, graduating top of the class and all, the school asked me to do their website, it was kickass and the board liked it.
months after golive, i came across the same prof in a party for celebrating the success of the website.
i will never forget that "in your face" smug smile i gave him, and the obvious stumped look on his face.
sorry if its too long, here's a rant potato (:/)1 -
Me: Yea, Linux is great! Screw Windows!
*Touchpad stops working on startup
Me: It's fine, it could happen on Windows...
*Laptop fans start blasting at 100% during class
Me: It's uhh, probably just a simple thing, nothing to worry about....
*Restarts computer after updating. Screen completely black, even after restarting multiple times.
Me: Oh FFS....4 -
"learning" html and css
So, there are these courses in my school, "ÜK" ("Überbetriebliche Kurse") we call them.
It's 5 days, a Tuesday to Thursday, next week Tuesday and Wednesday, last day in the afternoon we have a test.
Today is that Wednesday
I know html and css pretty well, so if was pretty easy, I didn't even bother to do some of the tasks we had
I did look through the book over the weekend to make sure I knew my stuff right
Now, the theoretical part of the test had stuff like "colspan" witch was nowhere to be seen in the book and PowerPoints, and some stuff was just unclear as fuck, seriously...
*looks up colspan*
Apparently it's a table cell that spans two columns, or more, if you want to
I never needed something like that, and we never looked at it, that's why I didn't know about it.
There where other unclear questions as well, so I went to the teacher after the test and told him.
He gave me an empty test where I made an X for stuff that wasn't in the book or the PowerPoints and wrote a bit for the stuff that was unclear.
I did know some more then some in the class, so I generally xed the stuff that we didn't learn
The teacher will correct it accordingly, and cut out the questions that we couldn't have known.
So that's at least something
For the next class, he's going to have some "theoretical learning" or whatever he called it
I mean, in the end it's fair, but it annoys me that these courses aren't as well thought out as they should be...
So after this course I can say:
I DIDN'T LEARN A FUCKING THING
Btw, the second part was changing a website up the way its telling you to, that was easier the the theoretical part, witch was ticking the right fucking box...undefined html & css grade stupid questions fuck lack of examples get your shit together css html fuck this shit know-what-youre-talking-about theory is bullshit fuck learning5 -
I had many good teachers and mentors in the years but one was far most the best. He was a CS Math teacher and hat this flame 🔥 for math and teaching. It was literally affecting everyone in class. He took his time to get everyone on the same level. While some would do better then others all would succeed. What made him special were many little tricks. He would let us all sit together after every topic and test and discuss what each found easy or hard. Everyone would get his time and he would never tolerate offending behavior. After a year we were all grown together helping each other get through the exams. It was kind of magical.
I told him this and he was in fact really happy to hear that. When we meet nowadays we get some drinks and talk about hobbies and stuff. -
Java teacher who quite literally wrote the textbook on Java couldn't figure out how to use Eclipse, so he resorted back to JGrasp after an hour of class time spent trying to compile3
-
FUCK YOU PYTHON. Why you do that to me, uh?
I was using a CNN to classify hand poses and the prediction was not working at all, one class was given 100% all the time. After much investigation, I found the culprit... A FUCKING INDENT was messing my data. Normalization was inside the loop and not outside, so my pixel values were wayyyyy too small...
Also, I'm really dumb, I should have started with making sure everything was right before trying to fiddle with my architecture..
Anyway, it is working now, you can it out here if you want! https://github.com/MrEliptik/...13 -
Oracle, what's wrong with you? Why do you have in every minor release of glashfish after 4.1 weird bugs which cost several hours of debugging of the own software until discovering there's a glassfish bug occurring in typical situations but there is no fix in sight.
In 4.1.1 there was a bug in the admin panel which throws a exception if you tried to configure JMS and in 4.1.2 there is a bug which prevent finding and loading a necessary class for using jax-rs despite it's available.
I have do complete an assignemt until friday and such bugs are such a pain since i change so many thing just to find out that my first structure/config/etc. was correct. -
Has hacking become a hobby for script-kiddies?
I have been thinking about this for a while know, I went to a class at Stanford last summer to learn penetration-testing. Keep in mind that the class was supposed to be advanced as we all knew the basics already. When I got there I was aggravated by the course as the whole course was using kali linux and the applications that come with it.
After the course was done and I washed off the gross feeling of using other peoples tools, I went online to try to learn some tricks about pen-testing outside of kali-linux tools. To my chagrin, I found that almost 90% of documentation from senior pen-testers were discussing tools like "aircrack-ng" or "burp-suite".
Now I know that the really good pen-testers use their own code and tools but my question is has hacking become a script kiddie hobby or am I thinking about the tools the wrong way?
It sounds very interesting to learn https and network exploits but it takes the fun out of it if the only documentation tells me to use tools.3 -
I don't know what to think of Vue 3 Composition API anymore. At first I hated it because it's nothing but one big ole rip off of React, and I hate React so much; its hook system is the most disgusting anti-pattern I've ever seen in the entire JS ecosystem. This gave me the incentive to try out Svelte instead, but after doing so, I look back at Vue 3 and noticed that they're kinda similar... why are so many JS devs allergic to classes? You can have much better written code that way. Idk, I'm waiting for vue-class-component and vue-property-decorator to fully migrate. In the mean time, if I'm gonna be forced to write composition based code, I might as well use Svelte.3
-
Fuck you, magento and yes, fuck you, customer as well.
After 2 days of fixing crucial things like missing discount functionalities, taxes being displayed as 'tax' because some monkey hardcoded the term in the template instead of getting the tax class name and overall fumbling in magento's core just to make this broken shit do its job, the customer emails me, asking if we're making 'progress at all because the test link looks pretty unfinished'
Burn in hell, you two!12 -
The CS instructor who was (maybe an adjunct?) who no matter what homework we turned in gave us randomly different grades. We actually all handed in the same hw one time to see what would happen (only changing variable names and such), and confirmed it. Also, he used to call me J-Lo when I'd raise my hand to answer questions. (I was fit and am Latina) The second time he did it, I sternly corrected him in front of the whole class. He stopped after that. And yes he was gone from the school soon after!5
-
So I'm helping my vocational school teacher with his Programming class as a graduate. While we were alone and talking about normal stuff (plans for the class and stuff like that), he brought up discord and after that I told him "I really wanna work for them, but I don't wanna move" and he continued to tell me how I have so much potential, how nothing stops me, how I am going far and that I'm going to do a lot. I wanted to legit cry inside because I've always thought the exact opposite of myself and always just thought about living a normal life, with the same dev job, nice home yknow the norm.
Idk man that talk happened in the afternoon today and Im still overwhelmed with the positivity.3 -
Second rant today....
Can the class explain the following query and why I started wishing the author might suffer pain even after death?
$date1 = strtotime($_REQUEST['year1'].'-'.$_REQUEST['month1'].'-01');
$date2 = strtotime($_REQUEST['year2'].'-'.$_REQUEST['month2'].'-31');
MONTH(FROM_UNIXTIME($date1)) >= MONTH(FROM_UNIXTIME(timestampColum))
AND
MONTH(FROM_UNIXTIME($date2)) <= MONTH(FROM_UNIXTIME(timestampColum))
But... The drugs the author must have taken to write this must be frigging awesome.10 -
v0.0005a (alpha)
- class support added to lua thanks to yonaba.
- rkUIs class created
- new panel class
- added drawing code for panel
- fixed bug where some sides of the UI's border were failing to drawing (line rendering quark)
v0.0014a (alpha) 11.30.2023 (~2 hours)
- successfully retrieving basic data from save folder, load text into lua from files
- added 'props' property to Entity class
- added a props table to control what gets serialized and what doesn't
- added a save() base method for instances (has to be overridden to be useful beyond the basics)
- moved the lume.serialize() call into the :save() method on the base entity class itself
- serialized and successfully saved an entities property table.
- fixed deserializion bugs involving wrong indexes (savedata[1] not savedata[2])
- moved deserialization from temp code, into line loading loop itself (assuming each item is on one line)
- deser'd test data, and init()'d new player Entity using the freshly-loaded data, and displayed the entity sprite
All in all not a bad session. Understanding filing handling and how to interact with the directory system was the biggest hurdle I was worried about for building my tools.
Next steps will be defining some basic UI elements (with overridable draw code), and then loading and initializing the UI from lua or json.
New projects can be set as subfolders folders in appdata, using 'Setidentity("appname/projectname") to keep things clean.
I'm not even dreading writing basic syntax highlighting!
Idea is to dogfood the whole process. UI is in-engine rendered just like you might see with godot, unity, or gamemaker, that way I have maximum flexibility to style it the way I want. I'm familiar enough with constructing from polygons, on top of stenciling, on top of nine-slicing, on top of existing tweening and special effects, that I can achieve exactly what I want.
Idea is to build a really well managed asset pipeline. Stencyl, as 'crappy' as it appeared, and 'for education' was a master class in how to do things the correct way, it was just horribly bloated while doing it.
Logical tilesets that you import, can rearrange through drag-n-drop, assign custom tile shapes to, physics materials, collisions groups, name, add tag data to, all in one editor? Yes please.
Every other 2D editor is basic-bitch, has you importing images, and at most generates different scales and does the slicing for you.
Code editor? Everything behavior was in a component, with custom fields. All your code goes into a list of events, which you can toggle on and off with a proper toggle button, so you can explicitly experiment, instead of commenting shit out (yes git is better, but we're talking solo amateurs here, they're not gonna be using git out the gate unless they already know what they're doing).
Components all have an image assignable to identify them, along with a description field, and they're arranged in a 2d grid for easy browsing, copying, modifying.
The physics shape editor, the animation editor, the map editor, all of it was so bare bones and yet had things others didn't.
I want that, except without the historic ties to flash, without the overhead of java, and with sexier fucking in-engine rendering of the UI and support for modding and in-engine custom tools.
Not really doing it for anyone except myself, and doubt I'll get very far, but since I dropped looking for easy solutions, I've just been powering through all the areas I don't understand and doing the work.
I rediscovered my love of programming after 3-4 years of learning to hate it, and things are looking up.2 -
Didn't happen to me but to the other class at my university.
As you all know all universities changed to studies online this semester. So a teacher asked students to try solving an exercise and he forgot to stop sharing his screen. Few moment later, porn started playing 😂
Turned out he told the administration later that it was his son who did this (not sure if that's true) and he stopped working after that anyway.
I memed the hell out of that incident lol -
So I come into CS class and the teacher, whom my opinion of is not excessively high, gives us a pseudocode task to do. After 10 minutes or so he says he'll run through it with everyone.
He then proceeds to opens python IDLE and starts typing pseudocode.
At this point I'm like 🤨.
Then he tries running the pseudocode. Now I'm thinking he must have had a really bad day so far or is just being stupider than normal.
When it doesn't work he starts getting annoyed and changes some = to == for what reason I am not entirely sure (though I'm not entirely sure why he thinks pseudocode is python either).
Everyone's been telling him that what he's doing is not going to work, but I don't think he really likes listening and continued frustrating himself.
After a bit we just leave him alone and carry on with what we were doing before he decided to gives us a lesson in what the purpose of pseudocode is not.1 -
I would rather create a circular inheritance class for my last task before I'm out of the company. And make some changes to the dependency injection module. Leave it blank documentation. So the one who take my position after me would get enough lesson and reason why he's not to join the company.1
-
I did my biggest mistake of my coding life today (I've been coding for two months).
I did a program in my coding class. I said to myself : "I will try when it will be done". After 3 hours of coding, I finished the code. I tried it and... almost all of my script was trash. Best feeling ever.2 -
I learned to program with Game Maker, downloading examples and changing variables to see what they did. After that I wanted to make websites so I followed tutorials and just see what happened if I changed variables and functions. Then came High School where we had exercises with Java and just experimented with the possibilities.
Then in Uni I learned about OOP and Functional which opened even more worlds. After a class on design patterns and designing the architecture of a system, programming was never the same.
And even until this day, I haven't stopped learning better ways to code. Oh how I long for those days where everything is new and how I can build a hello world application and be truly excited about it! That is how I learned to program and why I won't stop anytime soon. 😁 -
Bad interview experience:
Went to HR interview: boring company's history class first. Asked what projects do they need me for. He didn't knew but he was able to underline some letters on my cv, based on what I was choosed to come: wpf.
After one week I went to technical interview. Still no answer about what/where should I work within their company. Apparently this developer's job was just to evaluate me. So I had few questions to answer. While I've talked about stuff, he was chatting on keyboard and smiling.
I'm sorry I didn't left at that moment and stayed until the end. After that nobody contacted me again with any refusal. -
(Day 1 of Database Class)
Database Prof - "Your final project is a program or app that deals with big data and showcases data analysis. Make something that can be used by consumers and has real-world application."
(After the Day of Showcasing Projects)
Database Prof -
(What he should have said on Day 1) - "Make something that makes me laugh with added data." -
While attempting to quit smoking and after spending a full day trying to understand why the previous devs took this approach to encrypting a string and my lack of nicotine addled brain not allowing me to see that this was a “Secure”String and so uses a machine specific key (that’s why the code that worked locally wouldn’t run on production 😑) this is my rant on comments added to the helper I had to write
/// <summary>
/// If you are using this class and it's not for backward compatibility - then you probably shouldn't be using it
/// Nothing good comes from "Secure" strings
/// Further to this Secure strings are only "useful" for single user crypto as the encryption uses the login creds, transferring
/// this data to another client will result in them never being able to decrypt it
///
/// Windows uses the user's login password to generate a master key.
/// This master key is protected using the user's password and then stored along with the user's profile.
/// This master key then gets used to derive a number of other keys and it's these other keys that are used to protect the data.
///
/// This is also a broken crypto method via injection (see Hawkeye http://hawkeye.codeplex.com/) plus the string is stored in plain
/// text in memory, along with numerous other reasons not to use it.
/// </summary>
public class SecureStringHelper
{3 -
I hate buzzwords so much, once in school our class of 7 people got a presentation about some program which should have made our life easier. The problem I had was that the person presented with every second word being a buzzword. At some point a just shut down my mind for the rest of it. After the presentation when the class talked about it and I refused to use the program. The whole class had to use another one because of me.2
-
We had this teacher in uni that was teaching several lectures and one of them being mobile computing ( actual name, but it was just android dev).
So on the first lecture he started to add a single button on the screen and trying to add an onClick functionality. But once he started to write the code he got errors (didn't include Button) and said to everyone:
"Ok, this is normal and now when I click on IDEs save button this will go away" ofc it didn't go aways.
So after 5 minutes of trying to write the full code from head he just opened another project and copied the code he need and tried to run the app (it crashed).
So after about 2/3 of a lecture I stopped laughing and went over to his desk and just hit alt+enter to import the lib and built the project without errors :D
Never went back to those lectures but I passed the class with highest grade by just demonstrating an app I built for fun without any proof that it is actually mine. -
Trying to convince the class that test-driven development + DTSTTMPW ("do the simplest thing that might possibly work") + pair programming is the way to go, our software dev prof had us split in groups of two that would each get a turn to
1. add a unit test
2. edit the code so it passes the test
3. commit the change
The goal was to write a java class that converts integers to roman numerals.
Each group had only 2 minutes before the prof made them revert their changes.
After 45 minutes the code was just 10 lines of this:
if ( n == 1 )
return "I";
else if ( n == 2 )
return "II";
else if ( n == 3 ) ... -
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 -
Quick background:I'm am a student at a university in Alabama. I am also working full time and have a family.
My beginning C++ class was online and the teacher was...unique to say politely.
She would post lectures while she did some of the programming examples. That wasn't so bad, except she would cough frequently in the lecture(which wearing headphones would make me jump), and the tempo of her lecture would lull me to sleep after a hard day at work.
What was worse, she would post "projects" for us to do and tell us she would give a guideline in the code.
Well most times what was asked for in the project was topics we hadn't covered fully or she never explained well. Her "guide" was randomly saying a loop should be here and an if and an else should go here, but nothing else would be referenced.
Dropped her the first time, got a Day the second because I just could not follow her lecturing. I later took the class physically and with a different instructor and had the highest grade in the class.
I later had her for web development course and she wasn't as bad on assignments, but damn her coughing still hurt.2 -
That moment the client asks to add a single link to a header and you think: "easy enough". But then you notice their CSS.
Not a single f*cking class is used in the entire header, everything is done using :nth-child selectors etc... 🤬
Also, did I mention, the CSS is used for several headers, so adding an element to the header and modifying the CSS might break any other header in the application.
And this after they mentioned last week that they don't use a library like Bootstrap because it is too cumbersome.
I'm so mad right now, have been trying to fix this for half an hour. A task like this shouldn't take more than five minutes!6 -
Well not actually a "loss" but in my previous class, a year ago, I've lost one of my USB-Sticks.
And suddenly, a year later, some random teacher got into class and asked for my name, then gave me my USB-Stick back! After one year!
I didn't remember the stick in the first place but then I realized it was the one I've lost!
Btw it was a 2GB one, with just a few files on it... -
Easy one,
Got there for job Interview,
Then a 1week internship with another person,
After the week they called me upstairs and said I got the job.
Few Weeks later I signed the contract.
And no the other Person didn't get the job but is now in the Same school and class as me. Irony is a bitch... -
I´m learning C # basic concepts and a question has come up after doing this exercise:
using System;
namespace exercise
{
class MainClass
{
public static void Main (string[] args)
{
console.WriteLine("Type your name");
String name = Console.ReadLine ();
console.WriteLine("Type one city");
String city = Console.ReadLine ();
console.WriteLine("Hello"+ name + "wellcome to " + city )
Console.ReadLine ();
}
}
}
Question: its necessary to put the last
Console.ReadLine ();?Why?8 -
<rant class="sysadmin">
Fuck you windows, haven't touched my PC in 2 months and I boot it first had to restore basic functions after that a Windows update came that broke everything in Windows, now I'm learning PowerShell to fix my broken windows and to install updates in the hope I get a working installation back. -
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.
(Val titanLannister=xx)
(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 -
After spending almost all the day trying to find out what was wrong with my code, re-reading all my class, thinking that the universe does not make sense anymore, I find that one loop control variable that I was changing had a duplicate inside the loop. Damn you compiler, why did you not warn me?1
-
I regret ever picking my CS major every time I stare at my VS Debugger and am stuck reading the values stored in a List<Int>. Why, List<Int>, as the backing for my shortest path, do you not have the proper values after I walk my tree.
I have lovingly set up my Priority Queue. I have followed the class notes and lectures.
Oh why, my List, have your forsaken me?
Oh.
It's a recursion bug. I'm not updating nodes properly.
I'm a dumb ass.2 -
I was around 12. My mother just took a new position as Algorithmic and programming teacher (Mathematics before) for high school seniors. (Around 16-17 in Russia back in a day).
So sometimes, I waited for her after school, listening (just a bit) what she was teaching.
Then one day I was waiting while she was giving an exam of 2 hours to seniors (End of year exam). In 20 minutes, I doodled a thing on a piece of paper and showed my mother. I was correct on all questions and all flow diagrams (Was not called like this back in a day).
From this moment, I knew, programming and logic are for me.
At the end of high school (So I was 17), I received the collective message from most girls in my class saying : “ You felt in love with computers and ignored us”. They were right ☹, I realised it way later.3 -
So here is my take on a shitty teacher.
I once had a microcontroller teacher, who tried to teach a class of non programmers how to code, from a broken compendium. While he was teaching he would correct errors that he found. Most of the classes would be pure theory on C and no exercises.
Needles to say after the first two semesters none of the students could program, and over half of the class had left the school. -
What the fucking fuck. Arquillian you piece of shit.
I have a service that needs to go to production soon, it contains Arquillian tests. The tests work locally but not when going through our new Jenkins pipeline. The error message simply says: "Could not start Arquillian container".
Well fuck you too.
After 3 fucking days of rewriting configs, changing up things and I dont know what else I did, I stubled upon the most hidden error message in the history of error messages, a small little line that says "Could not find or load main class ".
Those 2 spaces are intentional btw, because the fucking error was that when starting arquillian and reading the config there was A FUCKING SPACE too much in my JVM arguments. This piece of shit iterpreted it as my FUCKING MAIN CLASS. Whhhhyyyyy, whhhyyyy. Who the fuck... AAAAAAAAAHHH
Btw I snuck myself on devrant a few weeks back and managed to get my 100++ today. Really love this place 😊1 -
very interesting how uni stressed me tf out but is still better than school has been.
I'm taking a class which has a theoretical and practical part, and there is a guy leading the practical lesson. and after struggling to find motivation for studying, this class somehow probably gives me my hopes back... even though I'm way less capable than the rest in what we're doing, I still can follow everything, which is very suprising to me because I'm always behind and the class has some recommended classes I should've taken before (but I failed some or didn't take them at all)... I still can follow the class somehow?
so... school taught me to not ask question because even if they say there are no dumb questions... the possibility still existed that I could ask a dumb question (shoutout to my math teacher in 3rd class). so... I stopped and when I didn't understand something I gave up.
now... this class makes me feel differently, I can ask questions and the guy I've talked about talks to me normally, talks to me as human beings should talk with each other and doesn't judge me for making a mistake, because... mistakes are human and when I allow myself to ask questions I can learn from it.
this is really a weird epiphany I had this week
and I also don't know if anything of this makes sense1 -
After 6 months of C++, switching back to C# for personal Unity project feels so much nice, albeit only in my personal time.
Specifically, when you create a class, it's just a single csharp file, instead of fucking header and class files.
Breath of fresh air.9 -
So I started this morning with 22 emails from an automated system at my university thanking me for signing up for every single fitness class being offered this semester and asking me to fill out a health information form and waiver. (22 emails, one for each course.) Because the semester started last week, and I had added a class (after some drama with the system not behaving correctly at first), I spent a few minutes making sure I had not accidentally signed up for something I had not intended to.
Later in the day, the school sent out an email apologizing for their script which had sent an email for each class to every student on campus. (So each of several thousand students got 22 emails this morning, most of them unnecessary.) To compound the problem (at least in my opinion) they asked the students who should have gotten the message to treat the email barrage as their legitimate notification, and everyone else to ignore the messages. (They should have invalidated all the messages and re-sent the legitimate ones. Never treat erroneous messages as a legitimate notice. Separate the two and do things properly.)
I normally don't get to see my school's IT side looking this incompetent, so my morning was quite amusing. -
So in the school we had to do the “court hearing” performance for the Civicis class.
Of course no one would write the script, so I sat down with my dad and wrote it (it was inspired by A War movie from 2016 [I think it was named also Krigen], really good movie). I actually still got the script on my Google Drive. Anyway, I wrote it, printed it 5 times and the next day I showed up. I gave them it, and one said “it sucks”. So I’ve replied “maybe you’ve should have done something instead of complaining now?”. He didn’t replied.
So anyway, the class began, our group was the last one. The others had really mediocre stories, so I was pretty confident. We sat down, I was the judge, we had a defender, accused, accuser and the witness.
I hope everyone knows how real court hearing looks like? There is lengthy beginning, overall it’s boring, and remember - the defender, accuser and judge read most part from their notes? Okay, note that.
So as we started, I started to speak the introduction monologue, and then all of the sudden, the teacher in the middle of me saying said “why is it so long?”. I’ve ignored that and continued. After like 50 seconds, she again stopped (not me this time) and said “why are you reading all of this?! You should have remember all of it!”. First of all, she didn’t said ANYTHING like that to other groups, second how come you remember such a long script (even tho we had a week to prepare it). At this point I have tighten my fist.
Anyway, we’ve continued. After like a minute or so this fucking bitch AGAIN stopped us and guess what she said...
“It bores me”
Well FUCK YOU then! Most of the court hearings are BORING. It’s not a fucking Hollywood!
Anyway, we’ve finished our performance, she gave us “3” grade (that is like in the middle). I was super pissed, and yeah...
tl;dr2 -
Got the GitHub student developer pack in 10th grade (highschool)
I recently made an application for GitHub student developer pack which got accepted .
If you don't know what this pack is all about , let me tell you this pack gives you free access to various tools that world-class developers use. The pack currently contains 23 tools ranging from Data Science, Gaming, Virtual Reality, Augmented Reality, APIs, Integrated Development Environments, Version Control Systems, Cloud Hosting Platforms, Code tutorials, Bootcamps, integration platforms, payment platforms and lots more.
I thought my application wouldn't qualify because after reading the documentation , I thought that It was oriented more towards college and university students but nonetheless I applied and my application got accepted . Turns out all you need is a school -issued verifiable email address or proof of you current academic status (marksheets etc.)
After few minutes of the application I got the "pro" tag on my GitHub profile although I didn't receive any emails .
I tested it out and claimed the Canva Pro subscription for free after signing up with my GitHub account.
I definitely recommend , if you are currently enrolled in a degree or diploma granting course of study such as a high school, secondary school, college, university, homeschool, or similar educational institution
and have a verifiable school-issued email address or documents that prove your current student status, have a GitHub user account
and are at least 13 years old , PLEASE APPLY FOR THE PROGRAM .
Checkout the GitHub docs for more info..
Thanks !
My GitHub GitHub Username :
satvikDesktop
PS. I would have posted links to some sites and documentations for further reading but I can't post url's in a rant yet :(5 -
Just ordered my first ssd as a sort of self-reward for managing to get my groups project to get the 2nd highest score in class after many sleepless nights refactoring and optimizing the codebase
Honestly I’d have been happy with a C just so I passed the damn class. But my individual grade was an A and the group’s collective grade was a 86. The second highest group grade in class2 -
My face learning Android in class, when being answered with "I don't give a shit" after asking how to do the program with best practices.4
-
So this year, one of the guys in my class was complainig about someone leaving eraser shavings on his desk and moving around his monitor. Meanwhile, I also complained about my monitor being moved around.
Well, we discovered somehow that we were sitting in the same seat.
A friend of mine left an eraser under my keyboard that said "oh boi!!! Here we go..." so I took that eraser and left some eraser shavings on the other guy's desk as a joke, and he moved around my monitor.
The real funny part though was the group chat eraser emoji war that ensued. I posted an eraser as a reaction to all his posts, which got the eraser taken down. And then put back up again. Until I sneaked it back after the whole thing was over heheheheheheh
The year before, there was an all-out prank war. But that's another story for another time -
There was a time in class, I was sitting next to my friend while fixing a couple mistakes in my HTML, at some point he looked at my screen and said "there's a random nine right here"...
I looked at it, I stopped whatever I was doing and yelled "nein" after he said that, then proceeded to take out the number he was talking about.
I'm actually part German, so I have a /pretty/ good angry German voice... (and Scottish actually, if I'm just a bit annoyed, haha)3 -
I needed to create a c# wrapper class for an activex element which has functions for sudoku.
Then create a wpf interface to play it.
So far so good. Ive had c# wpf, so no problem.
Finished that
"Make another interface in asp.net mvc"
I thought to myself, sure how difficult can asp.net be?
Very difficult apparently.
At least, if you want to make a grid which you can change per cell with an x and y.
I just went to bed after i gave up, when I suddenly got an idea. It ain't pretty, but just might work -
Decided to try something new, so enrolled in a karate class where my fiancé does her kick boxing after watching her get her black belt last weekend.
Have my first “proper” session tonight after having a free taster session on Tuesday.
Anyone else got hobbies, or recently started one which doesn’t involve computers?3 -
At my first exam of the first course that I learned java, Eclipse IDE stopped working just after exam started. Teacher told me that there is nothing he can do and advised me to use notepad. I knew I couldn't do it in notepad so first half hour of the exam I was on web trying different solutions to fix Eclipse while rest of the class were coding.1
-
React, it's declarative way of doing things, and the functional programming methodology it prefers.
Realized how much I've moved on from for-loops and class/object instance to maps, filters and immutability/observers when I worked on a Laravel project after so long and found myself forced to do things in the, erm, "PHP" way, despite spending my initial year and a half of programming working exclusively in PHP.
Sure, there's Class Components and imperative techniques in React but I had blissfully settled into using the flexible nature of doing things enabled by both native JS and React, with hooks, Lodash/Ramda and (almost fanatically) pure functions1 -
One of my colleague ask me to review other team's code. I saw the code. It's terrible. Importing data from text file based on line break count and 52 'if else's conditions in one function and overall 173 'if else' conditions in one controller class. Fuck after seeing that code, I realize people in my project is more better than others. Thank God.
-
5 fucking days of Google search after Google search. Error after fucking error. Deadline getting closer by the fucking minute. teammates interrupting me every 10 minutes over discord asking for help on their fucking part of the project
and it turns out the solution was just one damn line
One fucking line in a forEach to iterate over the model data sending the necessary aspects to the Javascript function to create map pins for the database locations
5 fucking horrible days all amounts to 1 line
Really shows how much I still have to learn. And the yelling at my screen reveals my need to take an anger management class1 -
Wow, i've been gone a while, huh?
I partly refactored that shitty emulator of mine, and after some tweaking and such, got it using a class and such instead of a bunch of global vars. However, it runs slower and got 1KB larger... how did practicing "better" coding habits make it worse?5 -
!rant
So got into a small debate (actually a civil one, surprise surprise) about the final project for a class. Basically the final project involves a team of 3-4 coders making a website for an actual client that either they find or provided by the professor.
The exact point of conflict was that the work is pro bono. The student argued that the work should be paid since after all, real work, real client. My argument is that because the clients don’t exactly choose the designers (or have little to no knowledge of most of their work) there will be high variance in quality and contract work would cause more conflict if done in class.
So just wondering, what do people think about this? Logistical issues aside (earning money for technically school property/ownership and money for learning essentially)6 -
SOAP in PHP is hell of a shit. I thought of generating code for an easier php client. Oh boy there is a SoapClient::getFunctions, a SoapClient::getTypes and a classmap option. Maybe one can script a little bit to generate class files.
After some fiddling I noticed fields missing in the classes that are present in the response. The missing fields are always defined in a parent class definition.
Google gave me this:
https://bugs.php.net/bug.php/...
What the fuck? Please? So simple to fix and 10 years later. TEN YEARS!!! Nothing.3 -
Today is thursday. Oh no.
At thursdays I have a 8h30-19 schedule (I have 1h30' of free time to go home and cry after I finish a class at 15h30 though) and there's this one class I DREAD. It's a 2h class at 17h and it's an exercise class. This wouldn't be so bad it I actually understood the code behind the exercises, because they don't teach us code in the theory classes (btw it's C. I hate that language because of all this). The teacher pretty much tells us "do this exercise", waits like 10' and then starts to (try to) explain what we're supposed to do. Oh my god.
The other day he was like "write "exec ( ... "text" ... )", compile and execute". It didn't work. Of course it didn't why would it? I was switching around between terminal, manual and text editor, to no avail. In the end he explained but I don't think I got it.
Every time I think about this class I die a little inside and start to become somewhat anxious to be honest. The theory is not that that hard, the practice part is what is killing me (I have test in 2w but I'm just gonna start studying earlier so I can go watch this match LoL).
Does someone know a good book (preferably online, if possible) or a good website on C? I really need to read that, that language is killing me.
Bonus: the other day I had to do a homework that was to be delivered. We had to write a program that read the program and its arguments like this:
./program_name
numArgs
arg1
arg2
etc
I wrote the code, had some bumps in the way, asked a colleague for help because we needed to have a custom function made that was to be done in the class but that I couldn't make because of the reasons above. Then it came the time to test. My VM broke (I think I'm gonna format my PC to try to fix that. Have installed some other versions of the VM but the installations fails or the machine doesn't start) so I sent it to said colleague to test. She said it did OK and so I sent the work to this website we have to send our works to.
"2 errors".
What? What happened? She said it worked just fine.
Looked at my code, couldn't see anything wrong.
Asked the same colleague for help.
Turns out I missed a space. A SPACE. I don't think I've ever felt so frustrated in my life. A presentation error in Java is a good thing, at least we know the program works fine, it's just the output that's wrongly formatted. But C? Nope, errors all around, oh my god. I'm still mad about it.
And I owe her a chocolate.1 -
1/2 dev and a fair warning: do not go into the comments.
You're going anyway? Good.
I began trying to figure out how to use stable diffusion out of boredom. Couldn't do shit at first, but after messing around for a few days I'm starting to get the hang of it.
Writing long prompts gets tiresome, though. Think I can build myself a tool to help with this. Nothing fancy. A local database to hold trees of tokens, associate each tree to an ID, like say <class 'path'> or some such. Essentially, you use this to save a description of any size.
The rest is textual substitution, which is trivial in devil-speak. Off the top of my head:
my $RE=qr{\< (?<class> [^\s]+) \s+ ' (?<path>) [^'] '\>}x;
And then? match |> fetch(validate) |> replace, recurse. Say:
while ($in =~ $RE) {
my $tree=db->fetch $+{class},$+{path};
$in=~ s[$RE][$tree];
};
Is that it? As far the substitution goes, then yeah, more or less. We have to check that a tree's definition does not recurse for this to work though, but I would do that __before__ dumping the tree to disk, not after.
There is most likely an upper limit to how much abstraction can be achieved this way, one can only get so specific before the algorithm starts tripping balls I reckon, the point here is just reaching that limit sooner.
So pasting lists of tokens, in a nutshell. Not a novel idea. I'd just be making it easier for myself. I'd rather reference things by name, and I'd rather not define what a name means more than once. So if I've already detailed what a Nazgul is, for instance, then I'd like to reuse it. Copy, paste, good times.
Do promise to slay me in combat should you ever catch me using the term "prompt engineering" unironically, what a stupid fucking joke.
Anyway, the other half, so !dev and I repeat the warning, just out of courtesy. I don't think it needs to be here, as this is all fairly mild imagery, but just in case.
I felt disappointed that a cursed image would scare me when I've seen far worse shit. So I began experimenting, seeing if I could replicate the result. No luck yet, but I think we're getting somewhere.
Our mission is clearly the bronwning of pants, that much is clear. But how do we come to understand fear? I don't know. "Scaring" seems fairly subjective.
But I fear what I know to be real,
And I believe my own two eyes.11 -
Adding a new feature to a mobile app that has a bunch of classes for getting URLs! Want some examples?
FallbackUrlProvider
CompositeUrlProvider
CompositeRouteUrlProvider
CompositeBaseUrlProvider
RootUrlProvider
I was half expecting to find FallbackRootBaseCompositeUrlProvider!
Not only that, but there were a load of interfaces that sometimes didn't match the name of the class!!!
For example,
class RootUrlProvider : ICompositeUrlProvider
Ugh! But I managed to get the new feature in... Somehow... After trying something... Throwing it away... Trying something else... Throwing it away...
😭😭😭3 -
The Rise and Fall of Helper Classes
New method doesn't seem to fit into one of the existing classes so a developer creates a new class and innocently called it "helper".
Another dev had a similar conundrum and adds a couple more methods to the "helper" class.
And a few more methods added...
A couple more methods surely wouldn't be too bad. It has unit tests anyway.
After a year, the helper class has now grown to about 10,000 lines that no one is brave enough to refactor.
CTO now says, "Ok let's park this project and build a new one in Go." Fun times!2 -
Finding a lack of courses on Web development at my university (1996) I went out and bought my own HTML and JavaScript books. Then I used my employer's servers to set up three web servers and did a PR site for them. After that, I hung out a shingle and built sites for a private eye agency and an art gallery. The university asked me to teach a continuing education class on Web design. Then I got hired by an insurance startup programming ASP/MSSQL/IIS and the rest is history.
-
💻 Four months ago. 💻
The Systems & Networks's professor said "You've to do a program that simulate the ARP table, in C."
...
After one week I had done the program!😎 (About 400 code lines)
And the rest of the class?
... One week... Two week... Three week.
Somebody had done the program, somebody else no.
Have an "informatics-stupid class" is funny and makes you look smarter. 😂🔝 -
We had a test in class where one of the questions was "What is SQL injection?" and I wrote what it was and even gave a bang on simple example where I showed how you could end up with a truncate statement on your customer db. The last part of it was:
"This will be the SQL that gets executed:
INSERT INTO Customers (Name) VALUES (' ';TRUNCATE Customers;--);
When I got it back after we had a session of "grade each others work" I got the comment: "What makes this an attack against a database?"
I mean, I'm not sure what I could have written. That it truncates the database? And, correct me if I'm wrong, but if a user truncates your DB, is that not an attack? -
Once I helped one of my friends writing a coding project for an interview for him.
We worked out a solution in C++. I showed him all the class hierarchies, how the flow worked and so on.
The day after he told me he re-wrote it in C# as he was more confident with it. Fair enough.
He changed most of the names using camel + underscore notation, sometimes starting with a capital letter, sometimes not!
But the best (or, rather, worst) was to convert the class hierarchy in a big class with all stuff in it, called "CMother". That got me. This class had a couple of static methods that took a lot (if not all) inputs that somehow coincided with the member variables of another class and did some work with them (like a constructor of that class would do).
Needless to say, he didn't got the job -
I've been trying Flutter the past 2days. I liked how amazing Flutter framework is but I also hated how UGLY the Dart language is. First of all, I've been doing Java(Android) and JSX(React). So, after coming from these languages, Dart seems awful. Here are the things that I hated the most:
1. JSON parsing: The worst part of Flutter/Dart. No GSON/Jackson equivalent. not even possible to make one as described in the doc
2. Redux for flutter. I tried and I hated it. So, Tried some other state management libs
3. the way static functions are written in a class
4. Widgets hiarachy
5. Ambiguity - "this context is not the context we need, we need that one to make it work. so, pass that even when you don't have it" (if you have used flutter, you will know what I mean)4 -
So i'm a new-baked developer, educated through a company's Accelerated Learning program and starter as a junior consultant this month. I met this guy at a school event and we talked about their company and their future project and we had a good chat. So I asked our recruiters a couple of days later if there was a possibility to be presented as a consultant for the company. A week later or so I receive a call from the recruiter responsible for said company which ends up in a scheduled interview. Yay!
The interview was scheduled for yesterday. In the morning my recruiter calls me and tells me that the interview has been cancelled. She tells me the she had not been given an explanation to why, but that she'll come back to me after lunch with an update. No call..
So after lunch today I try to call her and no response. So I leave a message to show my interest and to aski if she heard anything and if there might be a new date coming up.
The afternoon passes and by the end of the day still no reply. But 2 of my class mates tell me that they're going for an interview tommorrow, after having talked to the very same recruiter on our company. I feel so backstabbed. I started this whole recruitment process and now they've just tossed me out? What the hell is this?!! I'm so raging right now!
Gonna give the recruiter another call tommorrow morning, and after that I'm taking it to her manager. Any suggestions on what to say?1 -
TYPO3: You can use this hook to modify all links generated on the website. Well, all links except those few over there, which for some reason use a completely different class that does basically the same thing, and will even call your hook, but then ignore the result completely.
Me: Fuck you! I've spent almost a day trying to find the right hook, because they are all undocumented, have stupid names and every time I get close to a solution, some other part of your code decides to circumvent the hook.
Also me: After spending hours sifting through the depths of the TYPO3 core, I seriously wonder why it works at all. Spaghetti code, classes fetching properties directly instead of using the getters, loads of global variables... Wtf is wrong with that thing?
And people say WordPress is shitty code.1 -
Nothing like IT you're using actually being competent after you broke something (or more accurately pulling a pin that you didn't realize would blow up in your face).
Was dealing with a issue in the learning management system, decided to check a checkbox, ended up with every student receiving 1000% in the class. Went to our LMS support, said "oops I broke it", and they resolved it in 2 hours, and did what I was hoping for at the end anyways.1 -
Happy Teacher's Day
Who thought learning would stop after School/College? Have been learning since childhood (though not as much as I should) and it will continue forever. I thank all the Teachers, Class Mates, My Parents, My Brother, My Friends, My Colleagues, My Seniors, My Juniors, My Managers and other Superiors. Everyone contributed their part 🙏🙏🙏
Edit - Totally Forgot Google and Co. Thank you won't suffice
Much more learning to come! Happy Learning :-)4 -
tldr; I failed a web class once, then practically taught people actionscript. Now i love JavaScript/Node.js because flash is icky.
-full story more or less-
I failed my first web design class in college due to not having enough time to actually study(I worked 2 jobs and took 6 classes like a moron). Anyway took a flash class prior to retaking my web class, I picked up on action script really quickly. As in I ended up helping other students better than the instructor was(she hadn't touched flash in like 5 years and was just an adjunct instructor). I got hooked with action script so I started teaching myself JavaScript, knocked the web class out like nothing after that and loved it. -
Senior year of highschool (5 years ago), my friend and I were bored in Calculus class. The calculators we used were the TI-NSpire CX cas (the most advanced Texas Instruments graphing calculator at that time). After figuring out we could get a Game Boy Advance emulatir on the calculator, we decided we should try making out own game for it. That was when I figured out what I wanted to do with my life and havent looked back yet
-
So last semester for my English class, I had to learn a "new skill" and write an essay [the final] about it. So naturally instead of taking the time to learn something new, I just slapped together a c# (in which I'd say I'm already fluent) calculator app with winforms.
When it came time to present my "new" skill to the class, everybody was overimpressed. Then at the end of my little presentation, one guy goes "Oh! Is that all done in HTML?".
Without giving it a thought, I instinctively replied "No, it's a programming language". He just looked so confused after that. -
So a certain functionality in one of our critical systems has to be refactorised and changed to accommodate a new workflow.
So after several days of CTO, CEO talking with me, as I lead this project. We don't have a solution, so the CEO solution is asking fucking everyone in the company.
Juniors that can not tell between an interface or an abstract class come to my desk to tell me how the system should be designed.
Thanks a lot management to make my life easier. -
Fuck Java. Why does the syntax have to always give me such a headache. It is a language where I know what I want to do, have a general idea of how to do it, and have no fucking clue what the syntax looks like.
My guess is that it all makes sense after 3 years of use. I don't want a Java job, I just want to pass my class. Fuck Java.5 -
Learning Java after learning python for School and helping the new programmers who are in the class I finished last term. I see python code and get nervous because there’s no semicolons or curly brackets, but then again I’m like “Fuck I miss python!”
But I’m usually the go to guy when people need help because I make YouTube tutorials for my colleagues to help them understand what I’ve learned, and share flash cards on quizlet, and generally tell anyone if you need help I’ll help. -
FUCKING FUCK FUCK FUCK
So yesterday following Java class i went to my next class everything went well (or so i thought) and in my next class my phone blows up with notifications (changes in grades notify my phone) i look down and my Java grade goes from an A to a D in seconds and i was just so confused, after he finished grading it goes up to a C but i was still confused. So the next day I go into class and talk to him about my grade and he says, “you never fix your projects so why would i grade any of them, i’ll just give you f’s” to which i responded, “i am confused what i’m doing wrong (it was a few simple projects where i had to make shapes with stars for example a triangle) my outputs are correct” and he responded with “Oh well i can’t help you” so now i have a C and i did everything right but of course because it wasn’t his way it was wrong.
he just makes me so mad, when a student asks for help who decides to respond with i can’t help, he can but he just won’t.
Fuck him.5 -
Probably not worst but back when I was in graduate school I used '=' instead of '.equals()' for a string, by mistake. My professor was so pissed and taunted in front of whole class about how dumb people are here without taking any names(btw I didn't realize that guy was me until later) and gave me a low score
I told her later it really doesn't matter if I used either because '=' worked just fine in my case. She was a little more pissed after knowing that I wasn't wrong. 😜6 -
Even though my coding bootcamp was pretty shitty, I did make friends with the person seated next to me on the first day. We were assigned seats next to each other. We bonded over our thoughts of “we’re adults wtf is up with assigned seats” and “I would never sit at the back of the classroom.”
She really helped me out when I didn’t understand some things in class. I helped her with notes on days when she was absent.
Even though we don’t socialize much after bootcamp, I still consider her a great friend.1 -
Today, my co-workers went nuts about the fact their version of our product doesn't work on the pre-production since everything is fine on their local dev machines ^^
After a quick sighting, I figured out what was going on.
There was a package called from non-dev code which was required as a package for development.
The build plan of the application consists of a task which purges dev-packages within the vendor folder, using composer install --no-dev ^^
So the build plan runs perfectly fine, without a single error, but runtime was yelling about a missing class.
It's a delight to be one of the only guys with dev-ops experience in the whole damn building.
xD -
So here is the question.
Am a CS student and interested in app development languages like C++ and C#. And leaning a lot about those languages and practicing.
Today in our class some member from **** company came and they told us that are going to arrange a 2 days workshop for php, JS, Ajax, HTML and CSS languages. After that they are going to offer a internship also. 😃
So should I go or not?
Intrested in app development but still wanted to have knowledge about web. Really confused on what to do! 😕😕😕8 -
Had a lab for class that asked for something super simple in Java. All you had to do was submit your source code when it was done, go through some test conditions, and if it passed you were free to go. I finished the work in 10 minutes, yet spent the next 40 trying in vain to submit it. The work was fine, I knew it was right, but no matter what I changed, the damn thing wouldn't accept my work. After countless attempts and changes, getting the professor herself over there looking at it, I finally figured it out.
I was submitting the class file by mistake.
Some errors are harder than others, I guess. -
Last week I was working on a web development assignment (php and bootstrap).
I had a few problems but the most annoying was that bootstrap didn't want to apply to one specific element.
I sat there, looking for the error for about 2 hours. When I finally found it I was raging inside. I mistyped a - instead of an = after the class attribute (i.e. class-"Foo").
The mistake was hard to spot because of a combination of the font and the low screen resolution - 2 hours wasted because of that shit -
Here's a story about why putting util functionality in a generic parent class is baaaad. So we run into a bug where an online shop module we develop causes a third party module to break the entire site until the session expires.
We track the bug down to the fact that the third party module has added some functionality to the part of the shop that deals with the cart and that functionality expects that one of the module's libraries is initialized. But as it turns out another of that module's libraries that is loaded earlier is fetching the cart and thus triggers our module which adds gifts to it.
Now, since we need a deeper integration with the cart to make gifts depend on the cart contents we call the part of it that now depends on the third party module's unloaded library.. So we think changing the order the third party libraries are loaded will fix the issue, only to discover the unloaded one is a child class of the first and the cart is fetched in the parent constructor. The parent of course then turns out to be a generic util class, inherited by all the module's libraries, so whatever order we load them in, the constructor is always called, so we had no other choice but to dynamically disable our module during the initialization of those libraries and then patch the updated cart contents into them after they've all been initialized.
At this point we get curious what that module's doing with the cart contents only to discover.. nothing. It's just that the parent class is full of utils and data fetching that the vendor reuses in all their modules.. -
aight cool so this is fucking stupid thanks Tk
my python teacher is putting us through Tkinter right after "this is how to do basic math" in a class meant for those with no programming knowledge at all
and i remember now why i only do CLI
i've got 2 lines in a func (because "command" params in Tk are fucking retarded), the first changes the text on a button and then the second does shit with os.system ("have this button change this other button then do *something*" ok sure) and yet the button's text does not update until AFTER THE OS.SYSTEM COMMAND FINISHES. I can't even insert a moment between them for it to update in case it needs a sec as time.sleep does *FUCK ALL*
fuck tk, luckily we're gonna move on to files next
(goddamn prereqs, sticking me in this shitty class...)8 -
Way back in university, I was trying to do an assignment for an OOP class and it had to be written in C++. I was writing a simple function since I was a beginner at it and I couldn't understand why my program wasn't working. I spent an entire practical class lesson trying to work out what the hell was wrong and in the end, I got my friend to look at it. After only 2 minutes of looking, he asked if I had declared my functions. Obviously I had not.
-
my sophomore year of highschool I went to a public hangout / study area after class was over and installed a raspberry pi above the ceiling tile. I ran a cord along the wall and into the ceiling to power the device. I ran a sniffing script over the next few weeks and collected all the user/pass data that went through in plaintext. You'd be surprised what goes unencrypted... ;)1
-
Started online college. I don’t have a problem with the class or anything but right now I’m just trying to figure out times I can actually fucking program. I want to finish my current project so I won’t feel like I’m shit and can’t do anything even though I know I can.
On the brighter side of college. I have to eventually take a C++ class and a class on algorithms in my degree and I’m very excited because I’m not good with algorithms yet and it’s a perfect way to help me learn. And I’ve intended to revisit C++ and make it my bitch so that works out too. I just wish instead of Two Java classes I could take two C++ classes and one Java class. But whatever I know I won’t use Java after I get the degree for anything professional so I’m fine with it.3 -
We have an automated check for code coverage. One of the rules "It shouldn't decrease after the change".
And then you delete unused code from the class :)
Now total number of lines decreases and % of uncovered lines increases :/ -
So, after studying software development and games programming, I ended up working as a Salesforce developer. Been doing it for over a year now, but it's still not something I'm passionate about.
I got invited to an interview for a different job. Games industry related, using golang to do backend work.
Switching from Salesforce to Engine. From frontend to backend. I have faith that I can do it, the question I'm struggling with is... Should I?
I have no idea what the pros and cons are, junior dev In both roles, pay is about the same but for the fields themselves, is being a backend dev better than frontend? Is golang a desired language? Do I have career security by learning these things?
Or should I stay where I am now, give up enjoying my job in favour of something I class incredibly easy?
Any advice would be greatly appreciated.8 -
Sometimes i feel really messy in my code and unorganized.
after a while i regret what i did and in order to fix this mess i re write the class all over again or i end in an endless errors which is time consuming.
So what's the best way to write a clean code in your opinion other than commenting and identation1 -
I'd tinkered with computers for a long time but the breakthrough moment for me was a robotics class in elementary school where I programmed Legos in TC Logo.
That summer, I made a washing machine with multiple cycles and a door sensor to interrupt the cycles.
Soon after, I played with the code for Gorillas in QBasic to fix a race condition when running it on my 486 at home.1 -
Started with flow chart programming in a robotics club after class in middle school.
Joined another club where I spent the first 3-4 weeks learning Python and JS basics on freecodecamp.
Programming classes on algorithms and frameworks in high school and college.
Beyond that, mostly reading documentation, stackoverflow and some udemy courses. -
C- let's See
C is a procedurally developed language follows sequential method of solving a problem.
Example
If a teacher of an Institute teaching various subjects, Maths, English, Science and History.
Case1.One student comes and asks teacher to teach English
and next student to teach Maths,
And the other to teach History.
Case2.Next students comes for English
Case3.Other one for History.
So what I understood regarding C is procedural language is
It completes first case1,next case2, and then case3. (Task after task)
Here English is taught 2 times seperate
And History too 2 times separately making time and process complexity.
C is a platform based high level language support only desired platform. If I program in windows with i3 processor , it runs only on the same OS and Processor, if code is run in other computers.
Single threaded, if a code is interrupted in between, stops there and doesn't allow other part of the code to run.
Java
In this if the same above cases encountered then and tell
Computer to create a Class of English and tell all the students to attend the class(time saving, No complexity and not repetitive)
Same way Creating History class and make all students attend the class at once.
Students may be the objects created.
Multi threaded language, if a task is interrupted following code cannot be stopped. Allows other part of thecode to run.
JVM- Java virtual machine allows Java code into signs that can be understood by computer. Where as C converts into binary code.
A class concept added to C language become C++rant support rant learning to code want to code jvm newbie asking high level languages are cool discussions java c mistakes3 -
So we got this new teacher last year. He is a decent programmer but has never made anything using C#.
When he had to start teaching it to the first year students he wanted to practice.
He made 1 cli program that only used 1 class besides main and that wasn't even used properly.
His words after he was finished: "I'm now a C# expert"
What!? No you're not! Why don't you just take the student course so you know what you have to teach next week!? -
I'm currently writing a discord bot using the discord.py library and I cannot decide how to structure my code.
I was thinking of writing it in modules, with a core script that would load any valid module class that would include an array of all the event hooks it wanted, whether it wanted to send messages and so on.
It's a nice way to practice python after my last working bot that I wrote in (Sit down for this) PHP using an outdated and abandoned wrapper (Yeah, event-based programming in PHP, I know)
Are there any better ways to do this? I really don't want to hardcode all the functions in, only to have it fall apart later after adding another feature...1 -
Was assigned a ticket to figure out why some links disappeared when you navigated back and forth through the web application... After a few hours of digging and a bunch of var_dumps later, I find a gem buried in the newer part of the codebase that basically equated to:
$active = "get active flag from DB later";
I confronted the blamed developer and was told: "That statement is truthy, it works."
Another hour or two of passing session data through the obtuse class structure of this monolithic PHP app and the wonky behavior was fixed. -
Couldn't figure out why I had to make so many cats meow to learn how to program. I wanted to move things on the screen and create sounds. Then, dug up an old c64 and programmed myself a monitor and got into assembler which was a breeze compared to programming dumb text outputting felines.
After learning computers from the ground up, I started realizing that C++, C#, Java etc. actually wasn't at all about constructing and deconstructing cats or its base class animal.
I had one final go and it all just clicked! -
TLDR: Wrote a custom class for writing apibtest cases for a project with zero code test coverage.
We have a project with zero test coverage. Recently, i was tasked with writing api test cases for said project, it might have taken me months to write tests for all endpoint, plus the main issue was that each endpoint needed to tested for all available user roles and permissions.
I tried the main stream approach of writing api tests, but ended up running into a lot of issues directly linked to our projects roles/permissions architecture (cherry on top some endpoint are apikey specific). Don't get me wrong in my opinion this is by far one of the best user roles architecture out there, but writing test cases keeping it in mind is pain in ***.
After trying out different testing methods and frameworks, i decided to write my own class by extending django test framework (which uses unitest)
- It has generator and validators for request and response.
- Supports testing for user roles and permissions.
- We won't have to make any changes to code after user role or permissions changes
- I just have to copy and past request and responses from postman api collection.😂1 -
So I walked into my class and sat down and didn't realize until after the class that someone had literally written "harambe" hundreds of times on a piece of paper and left it for me. My faith is now restored in this country.
-
Theory should be minimal courses, just something to think about and not something that expands through the entire curriculum as if anyone was to use it. Theory and fundamentals are enough, after that have career paths over what students want to focus on depending on a class that takes them through each different field: web development, db development, micro controller programming, os programming networking programming etc etc etc.
Basically, not :hey! here are some shitty basic programming classes, ok now let us move into calculus 1, 2, 3 etc etc. Most people come out of schools with no knowledge of what happens in the real world.3 -
most annoying "feature" in C++: the semicolon after a class definition. It just doesn't make any sense!3
-
I tend to overengineer. Why? Because I had a view in JavaFX with its controller that had a bunch of key listeners which changed the UI. I wanted to change the view based on wifi connection/no connection with a server, which was managed in a Client class. The controller took the client to give it a message that client then had to send. For "separation of concerns" I created a separate view + controller for the "not connected" state.
Now the Client knew all about the connection, so I put up the Observer pattern and wanted the Main (Application) class to swap the layouts as an Observer of the Client. After an Exception on FX thread and Platform.runLater(), to solve the issue, I faced a new problem: the key presses weren't executed anymore. I still don't know why this happens. Maybe I'm missing something.🤷
Then met with one of my group partners (it's a uni project):
Let's attach the Observer to the original controller. Have only the original view that changes due to the controller updates as Observer. Let's see if that might even remotely work...🤔
It worked🤦😂 -
Someone in my programming development class at college asked "is php or c++ lower level" and after having worked with a large php codebase for over a month at work I wanted to laugh in pain1
-
Studying a programming focused studyprogram.
Having to do minor software projects spanning about 2 weeks on average on a regular basis with regular classes in between.
Projects more often than not involve coding knowledge we haven't been teached prior during class.
Literally get told most of the stuff we needed for certain projects right after we already finished them and therefore already teached it to us ourselves.
Sitting in class bored because of this right now and will be probably again and again...1 -
How can I, in JS, make sure a class (Vue) is instanciated only after a certain element is inserted into the DOM?
Currently, things are executed in this order:
1. Create modal
2. Append my-element to modal
3. Show modal
4. Instanciate Class (Vue)
Gives me "Vue cannot find my-element".
However, it works if I instanciate Vue in the console after modal is visible.4 -
Maven simplejavamail dependency import, build email, try send it: jakarta.mail.messageexception whatever, not class def found. After some googling: Depends on jakarta-mail. Find jakarta-mail dependency, include it in pom, start again: jakarta.mail.someotherclassexception, no class def found.
Yeah fuck you, too...2 -
I'm at college and I was learning Java. While we were practicing in class, one of my friends was having a problem with his code, it was printing that he needed to use java.lang.String.
Because he only told us after class, we didn't have the teacher to help us, so we tried debug it. After a long time, we realized that he was trying to create the class String...
We still talk about it. -
My friends were talking about modding their brawl to give them weird powers, so I signed up to take a programming class in high school. After that, I was hooked.
-
I had written a feature that stored some data for all methods in a code base. And it worked in 99.9% of all cases, but for some projects, somehow there were errors in the logs that I couldn't understand.
After hours of debugging, it turned out that I inserted the method objects into a map, and the (existing) base class for these objects used the character offsets for the method's start & end in the hashCode() implementation. This meant that in the (extremely rare) case of two methods in two files with the exact same start and end offsets, inserting them into a map would overwrite the previous value.
Once uncovered, this bug was trivial to fix ;) -
ohhhhh I am pissseddddddddddd
itss the fucking pytorch.module class it would seem !
I do exactly the same goddamn shit as its supposed to do in a goddamn notebook and run it step by step and the fucking model trains and the output values change !!!! and the loss decreases !!
I do this in the goddamn class derived from model with a call to model.parameters() and the fucker fails !!!
why ???
why ?????
why ??????
is it cloning the goddamn parameters so the references aren't there ????
seems to work goddamn fine when i call a layer and activation function at a goddamn time chaining the calls one after another !!!!!!
UGHHHH IT LOOKS LIKE IF YOU DEFINE THE LOSS AND OPTIMIZER OUTSIDE THE FUCKING CLASS IN A SEPERATE TRAINING FUNCTION IT DOESN'T TRAIN !!!!!!
WHY ??
A REFERENCE IS A GODDAMN REFERENCE !!!! -
When you have to do something as a group in class and you don't do or say anything
I just stayed in the back, maybe a bad idea...
They just did a bunch of crap, titled it "fuck bitches get riches" and put my name under it, I drew over my name, but they've been calling me leader since then, after lunch they continued with teacher, sendai, and eventually father
What a bunch of idiots -
I implore ANYONE... please...
Have you EVER written a SINGLE Jest test that didn't have some sort of bullshit spewing stuff like this:
"ReferenceError: You are trying to `import` a file after the Jest environment has been torn down."
"Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."
and yet running on a device, features work flawlessly and quite well, no errors or even warnings in sight logged
This is the most fragile pile of garbage I have ever seen.
I hate this.
inb4 your stupid ass todo boilerplate garbage you wrote tests for in freshman year. i'm talking about a REAL app with HUNDREDS of components.
where the grownup testing tools at? it's a question I've still not answered after a year of fucking around with this framework1 -
I was in junior college working on a mechanical engineering degree taking Calculus 1, some other classes, and a beginner level C programming class.
I decided being a ME wasn't for me as I couldn't handle the math, but the programming was a lot of fun. I ended up dropping Cal 1 and changing majors only to find out that I needed to transfer to a 4 year school to continue on the developer track. A few years later in December of 2013 I graduated with my BS in Computer Information Systems and a couple of years after that I had a great job as a dev. -
Week 1 Day 2
Today was an eye opener. Tried to make a simple class to model a fraction, and forgot pretty much everything. I realized it's been close to one and a half years since I did any serious programming. All I did today was spend a few hours going over all of the basics, and double/triple checking my OOP skills. Tomorrow I plan on familiarizing myself with Android studios and Android device basics. The day after I'll start the actual curriculum. Still feeling really good about all of this and hopefully it'll stay that way. -
Learned HTML in 7th from my sister's web designing book(she was doing some course from institute), then in 10 class met with C++, Sql because they were in the course, in college first year met with PHP as my roommate was searching how to do phishing attack, then met C++ and after that Java, Javascrip, Android development, Javascript and many more all because of various projects i did.... glad that i took those projects. 😊
-
Not the 'most embarrassing' part but not my proud moment either.
My sir have recently put me alongside him as the teacher assistant in this summer's batch. Last week he had to go somewhere so he asked me to take a github session with the class( well not exactly asked, but i just voluntarily commented) . mind you am myself a novice, never done anything beyond pushing data commits and pull requests. (But sir was fine with it , saying he wants the students to atleast enough knowledgeable to submit there homeworks.)
Fast forward to Night before class and i am trying to sleep but couldn't. I had all ppts prepared, hell i even prepared a transcript( hell i uploaded it to pastebin thinking i will look at it and read ).
But worst shit always has to happen when you do a presentation.
When the class started, the wify was not working. Those guys had never had done anything related to it so first thing we did was to make sure every of them gets git installed(with lots of embarrassments and requesting everyone to share their hotspots.not my faluts, tbh).
Then again, am a Windows-linux user with noobie linux and null mac experience. So when this 1 girl with mac got problems installing, i was like, "please search on SO" 🐣 .
So after half an hour, almost everyone had their git/github accounts ready to work, so i started woth explaining open source and github's working. In the middle of session, i wanted to show them meaning of github's stars ("shows how appreciated a repo is"), nd i had thought of showing them the react js repo . And when i tried searching it i couldn't find it (its name is just react, not reactjs ) so ,again :🐥🐥🐣
So somehow this session of 1-1.5 hour got completed in 4 hours with me repeating myself many many many times.
And the most stupid thing: our institute has every session recorded, so my awkward presentation is definitely in their computers 🐣🐣🐥🐥 -
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 -
What's the general consensus on the forced training courses? We now have a 3rd party arranging a course about FooBar and our managers though it was a great idea for everyone in my team to participate. Since...well you don't know when you need FooBar, so it's good to learn it now! And any education is only good. Makes employees smarter.
Except that I am not interested on FooBar. I don't use it. I can google it when I need it. I can read a book. I could travel to a 3-day course with 9 hours of straight lecturing per day and 200 slides with 10 second pause between them. But I am dead shit sure that after 30mins you lose the focus and after 1 week you remember nothing.
And everyone who's ever been on any company arranged courses, you know that there's always some guy who already knows everything. So starting from the first second he wants to challenge the trainer. Have a dialogue. Discuss about the problems that he has seen. Noone else cares. So you have 30 people listening to 2 guys debating.
But hey, maybe after 6-12months our company starts using FooBar and then we have a couple of dozen geniuses who have taken that multi-thousand-euro class. Or not.
At least you get a cup of coffee and a sandwich on mornings and afternoons.2 -
Fuck VS! C# sucks! F# sucks!
I found no way to debug C # and F # without VS(At least the official did not give a plan)! And I can only use macOS now.
After downloading VS for mac, I found that it installed mono automatically! And there is not even a button to open the folder!
Why do you have to wrap a class outside the main function? And their pointers are not flexible at all! Also, unlike C, Go, and Rust, the compiled files are binary files. WTF does DotNet give me? debug directories and .dll files!
I originally planned to learn DotNet core for the convenience of using Azure.
But I found that, through Python, JavaScript, Ruby, C(LLVM-Clang), Go, C ++, Rust, Haskell, Azure can also be used, which gives me more sufficient reasons to give up C #, F #!14 -
I just had this field with certain class type that acted so $h!++y on me that I almost believed I had finally gotten insane from all those coding.
I’m talking about Unity C#. When the code runs after a domain reload, I find that this specific field always comes prefilled with “an instance of that class whose properties were the default values.” So every time when I change something in my code (which causes a domain reload,) this field becomes an instance of the class with default properties **without any outside interaction.** All my null guard code fails and what follow are thousands of null reference exceptions because my scripts tries to access the properties of that instance, which are null.
Turns out, it was maybe because the class in question was marked with [Serializable]. When I remove it, the behavior completely stops.
This behavior was so unexplainable in clear words that googling for such behavior was pure impossible. Like WAT. I don’t even know which of C# or Unity caused this weird $h!+ to happen.2 -
When there are multiple third party services getting used in your spring boot application. How do you manage their API creds.
Like I use Aws Secret Manager for the keys and different account level info. But after fetching in the application in runtime should we create classes to hold such info or just class variables are enough?
I'm more curious about the coding standard practices of different developers in the globe.10 -
!rant
Once I was in a programming class, and the teacher was explaining the subject for the class, and this guy asks something (about using an else after an if condition, because of efficiency, I think) and he replies with something like "yeah, you know, I like to live dangerous". I kid you not (yes, he said DANGEROUS instead of DANGEROUSLY). I had to try not to laugh out loud. -
so my friend got told he had to stay after school for math every day he had math to catch up on work but this idiotic teacher told him he had to stay every tuesday and thursday...the only days this week he didnt have math class, yeah our school system sucks
-
Tool question, I can't find any after some googling. But are there any tools out there for dotnet that help you find class, method, and property references outside a solution.
Say I have a bunch of solutions and I need to know where a class is referenced to determine whether or not I can deprecate it. Is there anything out there that would scan other solutions for references to that class?8 -
I recently started working on laravel. As the community says it was easy to get along with the framework and its methodologies. But then i had to do multiple login with framework in same domain.
Oh man, i spent a week to make it work. All those guards and middlewares realted to login was driving me crazy. The concept was clear, but somehow the framework was like "You! I shall make you spend a week for my satisfaction". The project demo was nearing and i was doing all kind of stuff i found. Atlast after continous tries it worked. Never in my 4+ years as a developer i had to face such an issue with login.
So here is how it works,if anyone faces the same issue:
(This case is beneficial if you're using table structures different from default laravel auth table structures)
1. Define the guards for each in auth.php
Eg:
'users' => [
'driver' => 'session',
'provider' => 'users',
],
'client' => [
'driver' => 'session',
'provider' => 'client',
],
'admin' => [
'driver' => 'session',
'provider' => 'admins',
],
2. Define providers for each guards in auth.php
'users' => [
'driver' => 'eloquent',
'model' => <Model Namespace>::class,
'table' => '<table name>', //Optional. You can define it in the model also
],
'admins' => [
'driver' => 'eloquent',
'model' => <Model Namespace>::class,
],
'client' => [
'driver' => 'eloquent',
'model' => <Model Namespace>::class,
],
Similarly you can define passwords for resetting passwords in auth.php
3. Edit login controller in app/Http/Controller/Auth folder accordingly
a. Usually this particular line of code is used for authentication
Auth::guard('<guard name>')->attempt(['email' => $request->email, 'password' => $request->password]);
b. If above mentioned method doesn't work, You can directly login using login method
EG:
$user = <model namespace>::where([
'username' => $request->username,
'password' => md5($request->password),
])->first();
Auth::guard('<guard name>')->login($user);
4. If you're using custom build table to store user details, then you should adjust the model for that particular table accordingly. NOTE: The model extends Authenticatable
EG
class <model name> extends Authenticatable
{
use Notifiable;
protected $table = "<table name>";
protected $guard = '<guard name>';
protected $fillable = [
'name' , 'username' , 'email' , 'password'
];
protected $hidden = [
'password' ,
];
//Below changes are optional, according to your need
public $timestamps = false;
const CREATED_AT = 'created_time';
const UPDATED_AT = 'updated_time';
//To get your custom id field, in this case username
public function getId()
{
return $this->username;
}
}
5. Create login views according to the user types you required
6. Update the RedirectIfAuthenticated middleware for auth redirections after login
7. Make sure to not use the default laravel Auth routes. This may cause some inconsistancy in workflow
The laravel version which i worked on and the solution is for is Laravel 6.x1 -
PAGE BREAK AFTER IS FUCKED UP. FML
ok guys, if you have any recommendation or alternative to page-break-after, please let me know. im desperately in need of a goddamn solution.
heres my problem, ive got a table, inside the table is the tbody, now i only want two rows to be displayed in each page (im doing html for pdf docs). so what ive been trying to do is adding <tr class="display:block;page-break-after: always !important"> whenever it meets the condition (rowCount%2!=0).
Ive been trying to figure this out for the last 12 fucking hours. cheesus fucking crust. ik this isnt stackoverflow but stack hasnt really been helpful as well :( FML6 -
line breaks after 100 or so characters suck. function chaining will look bad in one line, but it doesn't mean we need to limit all our lines to a hard length.
ex:
config.logger.e(TAG, "func() called with: p1 = $p1, p2 = $p2, p3 = $p3, p4 = $p4, p5 = $p5")
this is a standard log that i add at the start of my functions . its easy to autogenerate in intellij , even if my class and variable names are much long (like mVideoAnalyticsManager) . when these variables and their string names add up, they will easily go out of the screen and i won't mind scrolling a few seonds to the left to ensure everything is correct (which 99.9% is)
but a fucking ctrl+alt+l and all strings are broken with a fucking +
+
+
+
+)
AAGh its just irritating ://////4 -
When the teacher asks you to design a class hierarchy and after a week designing he comes and says "You know what? We'll work with a design a I made" and throws your design to the trash2
-
When you find out you already finished coding a module a week ago after coding the same thing earlier the day cuz you were so busy jumping around projects and using different class name....
-
I want to run a simulation like rolling a dice N times and find out what's the distribution/probability of getting certain SUMs after the rolls.
However the dice is more likely to land on a lower number, and/or depends on what the number it landed on previously.
Stats wise I think ideally I want to be able to just input the avg, standard deviation, and skewness into a Random class constructor, and then ask it for N "random" numbers.6 -
When i took CS operating system class few years ago there was discussion on layout of memory and how to retrieve things faster. There was a point where we were asked question on locality and i was first to shoot my hand and prof looked at me : i was eager to answer locality of refrences, i knew temporal locality but i forgot the other one. That is when he told me to remeber Einstein and his space time principal. Instantly i remembered spatial locality. Till this date after so many years i remeber the concept! Woohoo to all the awesome teachers!!