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 - "it class"
-
Ok so 10 yrs ago:-
Professor: Make this web front-end with blah blah blah pages.
*I create the thing and submit it*
<Next lecture i come in class and the projector is showing my website>
<I get excited that im bout to be praised for my work infront of whole class>
<I grab a seat>
Professor: I had high hopes from you. I did not expect PLAGRISM from YOU.
Me: Wwwwwwhaaaaaaaaaat the faaaaaaaaaaaaq??? Where is it which part????
Professor: Ive seen "lorem Ispem" before somewhere else. This is fucking plagrism.
<I sat 15 mins in disbelief>
<Got out of class>
<Dropped out of the course>25 -
*me coding in Atom in world history class*
*Teacher walks over*
Teacher: Are you on task?
Me: I'm taking notes.
Teacher: It doesn't look like it.
Me: I set a dark theme for Microsoft Word.
*Teacher walks away*13 -
manager: we need to design an admin system for a veterinary centre
dev: ok, this is it, remember your training
class Dog extends Animal {}13 -
"Python is such a hard language. It has so many rules" - Undergraduate Student who sent out mass email to the class
*Professor makes the next assignment in ARM Assembly*10 -
Shouldn't a friend class be called a friends-with-benefits class, since it can touch their private members? 🤔🤔🤔9
-
(Me using the CMD in class)
Schoolmate: What are you doing?
Me: Using the CMD, it makes stuff really easier.
Schoolmate(loudly): *MY NAME* is hacking the schooooool.
Ignorant idiots now I am not allowed to use my laptop in class anymore.25 -
In networking class today:
Student - "But this is just in theory, how does it work in practice?"
Lecturer - "In theory, theory and practice are the same thing."15 -
Teacher: "Whats that key thingy?"
Class: "You mean the keyboard?"
Teacher: "Yes, that one!"
I shit you not, she was my IT educator for a year.
Send help.5 -
In other news:
Today a team of a total of six developers helf a 45 minute meeting to decide upon the name of a class.
It was later made clear that the class would be renamed anyway later in production.6 -
before programming class:
"yes easy af, imma finish this in a few minutes"
during programming class:
*types everything in 10 mins*
*compiles and runs perfectly*
"wtf this isnt supposed to happen"
*spends 30 minutes trying to find the bug*
"fucking hell, it should fucking work by now"
end of programming class:
"oh i put int instead of float, good job, my time was wasted because of one fucking word"9 -
The magical solution to everything.
It reminds me of the time when we were watching The Great Gatsby movie in honors English class. The the projector wouldn't work.
As a joke, one kid said, "try turning it off and turning it back on."
The whole class roared with laughter, until it actually worked. They stared at it in silence.3 -
A sweet girl of my class asked me yesterday, if i can help her to refresh her IT skills. I said "yes ofc im glad to help" . Today she repeated it, while whole class was listening. Other classmates said" yeah good idea we want to join"
Well, fuck it..38 -
My professor once asked us to brainstorm a good topic for our IT seminar/workshop.
I suggested version control using Git.
She simply shrugged it off. She said she needed a topic that the class can use. WTF.1 -
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
-
I was talking in class. Teacher saw me. She asked me to explain the topic she was going to explain. It was Network Security. I started explaining how we can prevent tracking of our online activities by using VPN and all.
Teacher (to class): Do you all know about VPN?
Whole Class: No.
Teacher (to me): They don't know about VPN. Now, how will you explain?
Me: I won't.
*Cyanide out*7 -
In computing class - Teacher asks for disadvantages of open source.
"It may end up like Linux..." <I stopped listening after that>
>.>13 -
In my programming lab, lecturer just scolded me for using stack overflow calling it useless and saying it has all the wrong information. Class I was so excited about just turned out to be the annoying one.6
-
/*
Pickup line by a dev-
Hey girl,
I always thought `love` was a static class till you made an instance of it!
copied
*/2 -
!rant
I managed to do a chunk of programming in class today without my partner to hold my hand through it. It may be simple, but I am proud of it nonetheless.24 -
It was fucking weird when our teacher in web programming class told to make a PHP page but he forgot to give us root access to Apache server and most importantly more than half of the class didn't know what the fuck a web server was and what is Apache.
Rest in peace college degree.1 -
Looking into a helper class written by someone who was clearly not a master of their craft. The class deals with some string IDs...
public getIDPosition1(String id){
return id.substring(0,1);
}
So far so useless. But it gets better. What is declared immediately below the above method?
public getIDPosition2(String id){
return id.substring(1,2);
}
And below that? You guessed it:
public getIDPosition3(String id){
return id.substring(2,3);
}
This continues to position 10.... -.-7 -
Just spent 20 minutes implementing a utility class.... then realized I don't need it...
The solution is actually much simpler... only takes 1 line of code...7 -
I'm freelancing and there was a guy who needed help with JavaFX. He gave me code only to his view class so I don't steal the rest... It was around 5k lines and it was full of compilation errors because of missing classes. While checking the code I realised something is really wrong with his model classes. So I asked maybe he could send me this one model class that was suspicious. So he did and it was around 10k lines long and had around 200 fields... ALL OF THEM FUCKING STRINGS except 3. You know what the rest of 3 were? 2 Lists of strings and a boolean... It was his "main" model class, he was using it for everything. It had setters for all fields and empty default constructor, so he would just instantiate the object and would set the fields that he wanted to use. Need new functionality? Just add 5more String fields and set them!2
-
Our first programming class was about how to prepare a cup of tea, how to write the pseudo code of this process, then how to write it using any programming language... It was the greatest lecture ever...5
-
I'm holding a programming class today, it's an open-door event, so anyone can come and try it out.
Nothing too much, just basic things.
I've been holding it for 30 min... To no one... No one showed up...7 -
Why are all my classmates building their web applications in PHP for our thesis? I know it's used a lot but for smaller projects there's tons of better ways to build a web application. Besides myself and another guy in this class (I'm using Java and mongoDB, he's working in ASP.NET and Microsoft SQL), nobody else wants to use something different. We only did PHP in one class so this seriously can't be the only language 2/3rd's the class knows.
Oh God it probably is.8 -
Writing all the major functionality of our app in a 10000 line class ( I shit you not) and then call it Utils.java.2
-
So yeah. There is some problem on production. I'm working on it for over a day, and can't make it work. The bad method is 500 lines. The method that calls it is almost 1000 lines and its class is 5k. This is the second one. FML :(16
-
When you document your class just right, so when you encounter it accidentally while debugging, you feel like digging in a base class, because it's so well documented and perfectly written.1
-
!rant
In my Software Engineering II class, our teacher begins a overview of NoSQL DBs. A buddy of mine leans over and asks me "A SQL DB walks into a NoSQL bar, do you know why he left?"
I said, "No idea".
He said, "Because there were no tables".
Our teacher heard me laugh, so my buddy had to explain the joke to the entire class. Needless to say, the whole class got a kick out of it! -
- Hey I have to add new field, but this class is autogenerated, I do not know what tool generates it"
- Your fingers
- But this class has over 20k lines of codes and the header says it is autogenerated.
- It is a inside joke, it was generated by hand6 -
I feel like at some point it'll become more shit than it's ever been. Partially due to the fact that it seems like EVERY school is trying to get the students into computer science at this point.
NOT EVERYBODY BELONGS IN COMPUTER SCIENCE. PLAIN AND SIMPLE. IT'S NOT FOR EVERYONE.
I feel like some kids that are being forced to do computer science will basically be like "huh there's money in this, maybe I could do this" but they're completely shit at it, when they would have been MUCH better off doing something else.
Side rant, somewhat related actually:
I had a teacher last semester that has to teach one of the computer science classes starting this year (I was not taking her computer science class, it was an unrelated class). From what I've seen, she does not seem fit to teach the class at all.
She's supposed to be teaching some simple programming (no clue what languages, I didn't bother to take the comp sci class). And she knows that I know the stuff, so she would ask me about the simplest things. Which is 100% fine...if she wasn't teaching a computer science class.
She just does not seem fit to teach a computer science class. I'm sure that the school basically just threw her in there because they needed SOMEONE.
I'm honestly kinda scared for the students in the class that might want to go further into computer science, only having taken that class and having met the requirement for a more advanced class, but then being thrown into a class where they don't know a fucking thing.6 -
*How to graduate in style*
(And prob get arested)
(Because i am graduating soon)
-Make a simple reverse_tcp payload with persistence and encode it with veil or do it yourself. Make sure it connects to your VPS.
- Give it to your classmates and teachers! Sharing is caring!
- make a wallpaper that says "Happy graduation class 404!" (Isn't our class number awesome?!)
- wait until graduation to... i think you know what i plan to do ;)29 -
I don't even remember why the teacher asked us this as it was a first aid class, but it pops into my head every now and then.
Teacher: "What's the first three letters in any website address?"
Me:"htt?"
Everyone else: "www"10 -
Just found the comment
// Wins a prize for the longest class name.
in a class with a 36 character name.
Didn't believe it and checked all classes: We do have a class with a 68 character name.4 -
I took my old project and I was like "Why don't fix it and open source it?". So from 2785 lines of code in main class, I've cut it to 1662 lines of code while keeping same functionality plus some more...4
-
I've discovered now that on VS Code when you point over a CSS class it shows you an example of the element it reffer to. 😲
I don't know if it's something new or if it's already present in other editors, but I found it now and I love it!5 -
The assignment needed me to implement a class that behaves like a vector<int>. I tried the obvious hack not expecting it to work, but surprisingly it did.7
-
Last year in my computer class, i was sitting next to the girl i likED. One day we were doing a classwork and i asked her for the IP adress (everyone in the class was supposed to know what is it and how to check it). Five minutes later she came back telling me the adress (streets, numbers) of the school...
You were perfect until that moment...7 -
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
-
On my first year of high school made a flash webpage for my class. It is still online.
...
Too embarrassed to share link.8 -
I wonder if devrant actually uses a `new Rant()` class in the source code like it does on the sticker2
-
Friday Eve: Closing eclipse project happily at work. Everything works sorta fine.
Monday morning: Opening eclipse project again. Everything is like i left it. "Main class could not be found."
What the fuck eclipse?4 -
* creates new class in visual studio
* needs to make it public
* writes "pubic" instead of "public" again...3 -
I started attending this IoT class in some computer training school. During my first class, I was early because I had the raspberry pi class earlier in the day. A guy came up to me and started chatting to me, he was bragging about how he created some big projects, how he works in his dad's company which develops IoT products (he codes it). Later on in class he talked about how he hacked his school's server or something and changed his marks. Whenever he brags, he has a tendency to use a deeper voice (which is pretty annoying).
Anyways so I thought he is pretty good and maybe I can learn a thing or two from him. A few class later, I started having my doubts, why? Because he doesn't know how to debug code, he copies the lecturer's code and still copies it wrong, and he doesn't know what variables and constants are. He uses IE and doesn't know about GitHub.
Now he asks me or the guy in front for help in class. He makes the class more fun, it's funny listening to him brag. Love it.2 -
Has anyone told themselves they just want to fix one thing, then have it turn out to be writing a whole new class with 385829 lines of code?1
-
The guy that developed this template redefined every bootstrap class and now i have to maintain it... kill me please6
-
personalproject C++ codebase:
- Clean code,
- 1 class per file,
- naming conventions
- comments .
- No more than 10 files per folder
Work C++ codebase:
- 22 classes per file.
- Classname not the same as file name
- weird variable names CmdStng
- All files in one source folder.
- Source control from 20 years ago
Me every time I cannot find anything I wondering why it is in a different file on line 3574 inside another class with an unrelated filename6 -
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".
-
No IntelliJ, just because my API CLASS has an unused method, doesn't mean IT SHOULD BE MADE PRIVATE!2
-
So my dumbass coworker did it again.
He included 600kb to the initial load of one of our platforms to use ONE FUCKING CSS CLASS!!! Wtf man?3 -
Mechanical Engineer friend took Machine Learning as an elective subject in college thinking that it had something to do with the Physical machines.
His reaction during the class was priceless.3 -
Was just told by a guy in my class proudly, “yeah, I’m pretty good at typing. It comes in handy for when I code stuff in class.” Awesome, that’s cool. I ask what he’s doing in the class. “We learned Scratch last semester and now we’re starting Java.” -______-6
-
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 you give a Deep Learning scientist a clean whiteboard.
This is literally 5 minutes into the second section of the class 😂😂4 -
I've been fucking around with arch since 9pm and now it's 2am...I have class tomorrow...why did I do this to myself? oh that's right because it looks beautiful.5
-
I hate this guys in my class who are asking me for a solution for the programming homework but they don't even try to solve it by their own...😔7
-
Manager: we need to design an admin system for a veterinary centre
Dev: ok, this is it, remember your training
namespace Vetcentre{
class Dog : Animal {
}
}1 -
Me : "Hey, your class is internal, I can't call it remotely"
Other team : "Oh okay, wait *change it to public* Done, you can call it now"
*some days later*
Other team : "*switch back*"
Okay then, I guess it's a way to say "Fuck you" with commits2 -
My computer science class in school is learning c# so slowly that last year it took 3 weeks for them to learn what an integer is.
I learned most of the language on a vacation last year and now I don't show up for class.
and actually, my teacher doesn't mind it, she encourages me about learning more and doing projects.
best teacher I've had so far.
recently the class teacher noticed me when I go home instead of going to class and he made me come to every lesson. Really frustrating.10 -
When you've been studying development for 5 years and a teacher explain to the class what a curly bracket is and where to find it on the keyboard...2
-
conversation between me and coworker via slack:
me: why ffs does this class extend this class. Calling it as a static?
me: it's called as a static exclusively throughout the entire project. shouldn't it be moved to a core singleton class?
me: yup, moving it to core
me: thanks for being my rubber duck -
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 -
😂😂😂
OBJECT ORIENTED THINKING
A boy tires to look at girl in a class.
GIRL: It is bad manners
BOY: No it's not
GIRL: Why?
BOY: "Members of the same class can access private data"...
Old but Interesting5 -
So this phallus decided to make my day a night mare, I coded the Interface in separate class for each distinct services, He just told me to re write it to one class, before he don't understand it.
I wrote documentation, he said it is not professional. and now the fucking codes are containing redundancies.
For instance if he use my method, all he need is call my function once, and call it everywhere. But now the code is messy as fuck, calling the same thing over and over again which can be done by separate it to a function once, and reuse it.4 -
I really wish every school curriculum made a basic programming class mandatory. At worst, it would give everyone somewhat of an idea of how computers work.6
-
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 -
When your code is brilliantly modular and class based, but no one gets your joke about it being super classy...
-
In my software development class today, the teacher asked us what a double equal sign means, and I swear to god, a student said “it double equals that value” 🤦♂️4
-
I'm 19, and I was given a $1500 scholarship to take 80 hours of Office 2016 classes. It was going to disappear if no one used it. I get to stay home for the online courses, and it doesn't count against my vacation time.
I get paid for 8 hours a day while I take each class, even though I get an hour lunch and usually get out of class an hour early.
I know 99% of Office capabilities already, but this is a good stress reliever. Life is good4 -
There is this abstract class with a single public method in it.
Above it a comment, change back to protected ASAP.
That comment is from 20131 -
Shameless blog plug, but it does count as a rant 😅
Seriously folks, stop calling everything a service.
https://likelikeatemyshield.com/pos...15 -
Do you sense something weird on this dead simple code?
The teacher showed a similar code recently in my C class. It was weird to me since I know C for years. I want to know what you guys think about it.22 -
This kid in my software development class comes up to me and says, "this class is the best class to get hungry in. Because it is all about the bytes"2
-
A group member in my senior level computer science class is afraid of the command line so they change code through the GitHub website, essentially using it like Google Drive.
-
We had a quiz in our class recently that some students from our class made.
One of the questions was "Who made Google?". Later when correcting the answers she it was fucking Steve Jobs!!!! Wtf!!! How dumb can you possibly.2 -
dev/ChoosingBeggars
Condition : Deadlines in 7 Hours. Submit on Class
MyClassmate : "Have you done the last Assignment?"
Me : "Technically Speaking, yes, i've done that in Python, since we need to use C, i need to Translate it first"
MC : "Can you teach me?"
Me : "I wouldn't say i won't, but it's 1 AM, time is short, need to sleep, I can give you the python code tho"
MC : "wait, so you will submit the python code without Translating it first?"
Me : "Of course not, i can translate it less than 30 minutes, i'll finish and submit it before class"
MC : "can you translate it now, so you can email that to me at <his email address>, so i can sleep now and we can submit it together this morning"
Me : "i can't tell you are serious or not, anyway, see you in class"
🤦♂🤦♂🤦♂🤦♂🤦♂ <screenshot in indonesian, just for proofs>12 -
Someone in my class disabled my networking card from BIOS. Took an hour to find out why it was not working.
-
In a class i attended we learned about advanced image synthesis and had to write OpenGL in the exercises.
It was incredibly difficult and i put incredible amounts of time into it and solved the tasks and was incredibly happy when it started to work ☺️2 -
what the fuck is wrong with boomer professors ?? I enrolled in a front-end development elective at my uni in hopes to just brush up on some little things I may have missed on my self taught education.
this class has been an absolute tragedy. he spends about 1 hr each class trying to figure out how to configure docker... FOR A PROJECT THAT IS JUST BARE HTML CSS JS. WHY??? he is so adamant that we use DOCKER for this class. I don't understand why.
most of the students are BRAND NEW to front end development and know Jack shit. and here this professor is insisting on nuancing the class with docker. it makes absolutely no sense.9 -
So, first a bit of background:
We've got a parent class, owned by another team, and two child classes, owned by my team. One of the children is unused. (Already sounds bullshit right.)
On to the story:
6 months ago, I had to modify one of the children (add new functionality).
I try to modify the base class to add it, the senior dev in charge says "no, just add it on the child". So I do, then merge it in.
Yesterday I wake up to a high priority bug. Turns out the senior guy wants to add another child class, and wants the functionality I put in my class on the base class.
Even commented on my PR from 6 months ago asking why I didn't do that.
The fucker opened up a high priority issue assigned to me, asking ME TO DO THE CHANGE I WANTED TO DO 6 MONTHS AGO THAT HE SAID NO TO.
Fuck this shit. I have a meeting with him and my boss in an hour. My boss is pissed, I hope he tells the other guy to go fuxk himself and do the change himself.14 -
OKAY BUT WHY THE FUCK DO PEOPLE HAVE TO ACT LIKE THEY'RE SOME KIND OF GOD WHEN THEY CAN'T EVEN PASS AN INTRO CLASS. Some background: I go to an early college in high school program which offers computer science where you take two college classes a semester starting you junior year in high school. AND THIS GIRL TALKS ABOUT THIS PROGRAM LIKE IT'S AWFUL AND SHE HATES IT AND HOW THE PROFESSORS DON'T TEACH AND SHE FAILED AN INTRO TO PROGRAMMING CLASS WHICH TEACHES JAVA BUT THEN SHE ACTS LIKE SHE'S WAY ABOVE THE OTHER KIDS IN MY CLASS BECAUSE SHE'S RETAKING IT. SHE'S ALSO A STUDENT ASSISTANT IN MY CYBER SECURITY CLASS BUT DOESN'T KNOW WHAT THE localhost IP IS. I UNDERSTAND THAT I DON'T KNOW EVERYTHING BUT AT LEAST I DON'T ACT LIKE I DO. IT'S SO INFURIATING!!!!!!
-
ITT graduate in 2005. I think I'm the only student in my class that actually got a career out of it.
This has been a long time coming.1 -
Anyone have any good book recommendations? They can be language specific or universal. I'm halfway through clean code and love it. Wondering if there're any other world class resources y'all have used.7
-
In highschool i was pretty much high all the time, my friend and i had to make a project for our final year and although I'd work on it, my stoned ass couldn't concentrate whatsoever and I'd always be watching netflix in class.. needless to say, we got a pretty bad grade and failed the class3
-
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 -
A massive thank you to the DevRant staff for sending me this 1st class to London! Can't wait to add it to my laptop - pics to follow.4
-
!rant
That feeling you get when you write a fairly complex 800 line long class without testing anything and it compiles without errors on the first try.2 -
Today I had to give a step-by-step guide on how to open a rar file (and explain what it is) to my software engineer classmate in the software engineering class...5
-
Whole class: makes an sql database using phpmyadmin. Simple, easy, meets the requirements
Me: fuck it. Use python with pyqt5. And Microsoft sql server Spend unnecessary hours on making repetitive functions, cause my stupid ass can't figure out how to pass more than one parameters in class methods.
All in all, it looks good. I feel like I did something, learnt something new. Took on a challenge. Its a wierdly good feeling, somewhat rewarding.5 -
scar tissue riff by red hot chili peppers now helped me get laid twice. first was in high school, second was yesterday. it works like a fast track first class level skip access to that pussy
going without it takes days
with it takes minutes6 -
We'll build an mathematics-6th-grader-calculation-game in IT-class. ("Math-Tetris")
In Java.
I hate Java.9 -
I’m most proud of my first website. Just plain html and css. It was the first time I was introduced to GitHub too. I was taking a class at the library. The teacher was the best because she showed the students how to find resources for web development and told us to don’t bother looking at the out of date workbooks. The students were cool too. It was great to be in a small class and see people of different ages learning how to code.
-
This would've helped a lot in chem class: https://youtu.be/IAJsZWhj6GI
Maybe. Or at least made it less monotone...1 -
My first experience with any kind of development was in a web mastering class in high school. I got super into it and started going really far ahead in the course materials.
During the second semester most students in the class were not interested at all so I decided to start a business of selling custom tailored assignments to about half the class. It didn't make me rich of course, but it felt good being the HTML / CSS god in the class.
The best part honestly was getting caught. The principal was so impressed at the amount of extra work I'd been doing that he just gave me a detention. Thanks Mr. Murray, for being so cool and not putting me down for doing what I love. -
So how many programmers it take to screw in a lightbulb?
- None
( Lightbulb is a class which got method screw(), so it can screw itself 😉 ) -
(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
-
When spend hours trying to write that decorator class and then find out that there is already a package available for it.4
-
"I learned C in one of my class at Uni, but that's pretty useless, nobody uses it."'
And that's when I killed him your honor.1 -
Vs studio 17, Y U NO COMPILE MAH C++? It's literally one tiny program, with only one "Rectangle" class. g++ likes it and compiles it clean, why can't you be more like him? :(11
-
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 -
Lint rules that keep shouting at you unless you arrange the methods of a class in alphabetical order. What fucking value does it bring? Who fucking cares ? Why do we have them? Whhhyyyyyy ?18
-
I recently got into an argument with some people, and I want your opinion. I did a speed code in Java (just sped up clip of programming, because it looks cool lol), and someone commented:
"Way too much static abuse here. Jesus"
In which I replied:
"Actually, sir. There is near none at all, just because I use static methods does not make it static abuse. A static method belongs to the class, and is somewhat permanent. It is not a type (instance, cat, dog, animal, etc.) class, it is a Utility class, much like other dependencies you'd use are Utilities and not types."
To which they reply:
"Getting and setting is a Utility?"
Boi. If it is a static variable, yes. Like, what?5 -
I get this compliment when I just started to learn C# and wrote a class to convert DB time zone on azure windows and Linux app services.
“Wow, didn’t know you can convert nullable datetimeoffset this way, I’m going to use this class in rest of our Projects. “
It really boost my mood for weeks.1 -
Oriented Object design class today, introducing inheritance with squares-rectangles and circles-ellipses.
No don't do that.
It's the worst example ever. It does not work. Just no, stop3 -
I know its been quite a while since ive posted last but it is safe to say that i am back! And boy do i have some stuff to bitch about.
This semester, Im taking mobile app development as a class. I chose to take this class over the introductory c# class, so that i wouldn't need to work with Windows or really do anything else to touch Windows. Well the joke is on me. Here i was thinking that we would be using a bit of Java from time to time while only really learning best practices and concepts.
Never did i think that this class's curriculum would be entirely based off of Xamarin.
Seeing as I need either this class or the two c# classes to graduate, I had to bite the bullet and just accept that my semester would be full of irritation during this class.
Its been about seven weeks in, and i have turned in 8 assignments.
All 8 of those assignments have been Windows Form Applications doing simple shit like dividing two numbers.
We have not made anything for multiple devices. We have not made anything for even one mobile device. We have not even discussed how to do this in the class.
This wouldnt bother me so much since these are typically easy programs that take about 30 minutes to make and test and submit for grading. It does insanely bother me, however, that it takes Windows so FUCKING LONG to boot, or when it freezes every 2 minutes because i clicked into another program, or it just HANGS ON THE UPDATING SCREEN AT 36% FOR THREE DAYS, or when it took 4 different reinstallations of Visual Studio 2017 before i could actually open without an error code.
College, Ive learned, tests my patience way more than it has ever tested my knowledge.2 -
Interviewer: Could you please make a class to force it create one instance at most?
Me: Sure!
(I didn't know the singleton pattern)
class A {
public static bool isCreated = false;
A() {
if(isCreated == true)
throw new Exception();
isCreated = true;
}
}5 -
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 have a friend which have a hoarding disorder when it comes to coding. Here are some of the things he does:
1: If he rewrites, remove, or in any other way refactor a function, then he keeps the old one in the file commented out.
2: If he deletes a class then he takes the code and paste it into a class that he have just for old code. AN ACTUAL CLASS! Not just some random text file somewhere. Even though it is commented out, he leaves it so that you can initiate his garbage.
3: In point 1, the code is not pasted on the end. It inside all the other actual code.
So if you try to help him with something, then you have to dig through a mountain of shit just to find some code.5 -
On Friday a bunch of sophomores are coming into our computer IT class to see if they want to join. We are setting up stations for them to learn, listen, and interact with to show them what it's like in our class, and I wrote the code so they will write a HTML document that tells us basic info about them!!3
-
Hate my fucking ‘Logic’ class. Teaching us if, or, and, etc statements and when something is true or false so far. Fair enough, part of logic. But fucking 6 classes on the same topic, isn’t helpful. Especially since it feels like the same shit I learnt myself when I was 13 and a junior in High School.
People are all surprised at it, even the Computer Science majors. This shouldn’t be a shock to you on how these statements work if you’ve coded for a few minutes in the University. You should’ve learnt it in your first programming class.
Ugh, just how I feel about this class. Have to take it to get my degree, otherwise I would’ve dropped it by now >.> Waste of time and money for me.12 -
Is it fair to say that my professor is unprepared to teach if he refuses to use visual studio 2017 in favor of 2010, which may be unable to open my 2017 projects? I'm guessing not, since it's his class, but the Syllabus doesn't mention the class using such shitty technology. I honestly refuse to download VS 2010 until my grade depends on it.4
-
I always spend minute or two to delete "Hey It looks like you are using ad blocker" popup div and some overflow-hidden css class by pressing F12.
I'll do it again and again and again...
Fuck those annoying advertisements.13 -
Worked on website that has Twitter Bootstrap, including the fancy grid classes. Colleague adds new class with the brilliant name 'paddington-bear'. Class only had padding: 0 13px;.
Really had a good laugh about it. Other colleague went furious on Paddington colleague couldn't appreciate it at all. Had myself another good laugh while the colleagues were bickering.3 -
Hiii devRanters, I have a TypeScript question for you...
How do I dynamically import classes?
I have a class like this:
export default class Foo implements Bar {
...
....public getName(): string {
........return this.name;
....}
}
and then I have another file with this:
import(`./class-cmd/${file}`).then((command) => {
....winston.debug(command);
....winston.debug(command.getName());
});
the first command spits out something like this:
debug: default=class Foo {
....constructor() {
........this.name = "foo";
....}
....getName() {
........return this.name;
....}
}
and I would expect that the second command will work, however it throws this:
UnhandledPromiseRejectionWarning: TypeError: command.getName is not a function
Any idea what I might be doing wrong?17 -
LOL I totally forgot about the school today.
I went to job as usual, opened up Vscodium and started to write some stuff.
Then it hit me 😅 Oh god...
It took my 5 hours to remember but I'm in class right now.3 -
They’re making us use netbeans for class. Like I have a whole lab on learning how to use it. I’m not going to class, I finished the lab in 2 minutes. This one particular class is so dumb, we’ve had labs on ms word, PowerPoint, excel... they could have just done an optional workshop for people who don’t know how to use them. Waste of 2 hours every Thursday. And the teachers a dickhead7
-
<!--begin rant-->
When you take an online class thinking you can work at your own pace, but the teacher expects work on a Monday and Thursday schedule? The reason I took the class is to work at my own pace, wtf? If I had time on a Monday and Thursday I would've took it in school those days. Smh!! -
You enter in the University class of programming and the teacher talk about what is a Variable and how to use It :I
So Interesting for me.....4 -
I just found an old util class of mine for messing with some data before sending it to the api.
The methods are called:
burnId
mutilateDate
cleanseDates
cleanseData
unfuckLocalDateString
fuckDate
I love it. -
I'm going to do my os class in uni and need a Linux environment for it.
Which distro should I go for?
+ Would be if I could do webdev on it too (performance)
Coming from windows23 -
This class adheres to the single responsibility principle: it is singularly responsible for the entire application.
-
Am thinking about giving a class on "How to waste time". You should attend it. It is not going to be free though. Otherwise, it would be a waste of my time.4
-
In my previous job, we had in c# a class called static manager. This abomination was thousands of lines long, every member static. Eventually the dev responsible, did split it in to multiple files each thousands of lines using partial class. Worst part? It wasn't even legacy code yet.1
-
So I see this code:
class ViewWithDisplayLayer {
func viewDisplayLayer() -> CALayer? {
FatalErrorMustOverride()
return nil
}
}
If only Swift bad some way of defining some sort of interface or protocol with methods to be implemented by a class without using class inheritance and wouldn't it be great if that feature also gave a compile time error if you forgot to override/implement said method(s). If only.....
😳 -
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 -
Classmate from final year of computer engineering class: my computer is acting strange, I think I'm gonna have to give it a formation.
😧2 -
When the browser reads 'clas' as 'class' and things oddly work as expected. But when you fix it to be 'class' everything breaks horrifically.1
-
So I had to chuckle at this: https://www.devrant.io/rants/93746
My gf asked what was up. I tried explaining OOP to her (she does not have any coding knowledge) and I used the following example:
Let's say there is a class humans, you are an instance of that class and so am I. There are certain variables like hair color and height and those are different for you and me. There are also functions that we both can do and those are defined in the class.
I thought it was a neat idea. -
Started an open source css library, consisting of class based animations
Check it out and please suggest some points to make it more better.
VOV.CSS
https://github.com/vaibhav111tandon...4 -
Not exactly a co-worker, but another student at my data structure class, the guy freaked me out, he would stand up in the middle of the class whenever he finished the assignment first and walk around like he was about to jump.
I did beat him the first time though and that's when I noticed it was like a race for him, I still fear he will end me for that. -
It’s very annoying that at my school we barely get any coding at all and to top it off it’s in a typing class using block coding. Considering it’s in a TYPING class you’d think they’d’ve used their typing skills to use but no, they instead use block coding meant for like 4th graders. This is why I say we need more coding classes in schools. Not only that but make it more mainstream1
-
Working with jquery:
When I was there, all was perfect.
Came from vaykay, nothing works!! In my comments it said, DONT NOT CHANGE ANY `${anyNastyWord}` CLASS NAME!!!1 -
TFW the mock class has way more code than the real one.
Testing big infrastructures can be a pain...
Or maybe my team is just not so good at it.
My time spent:
Adding new feature to the real class 15%
Extending the mock with the same feature 55%
Writing tests 30%7 -
Java rant...
If public field declaration is so so bad, why can't all class fields in java just be private by default? And make it a pain in the ass to expose it as public?
I can't actually remember a time declared a class field as public, it is muscle memory now... Private bla Bla Bla, return, private bla Bla, return...4 -
Other peoples' code... (in C++)
I am finding what some people consider good code is not as described. I found a class that provides strings. Great it gives me paths and stuff. I incorporated it in a new project.
segfaults
Hmmm, it must have an init function... It does, but not in the class. It has a friended init function:
friend init_function(). If this function is not created and called external to the class then the class will segfault...
okay...
I implement this. I use code from another project that implements this correctly. The friend class allows the private constructor to be called to create the main instance of the class. So its a fucking cryptic ass singleton. I look at this class. It uses a macro to decide what to function call in the class. The class already has function names for each call it needs to make. The class is literally a string lookup table. I vow to redo this shitty code, someday...
I start to wonder what other fragile code I will find. Not long later I keep getting errors on malloc. Like any malloc that is called results in a segfault. The malloc is not at fault though. I run valgrind and find a websocket library is returning an object a different size than the header file describes.
WTF...
Somebody has left an old ass highly modified definition of the websocket header in a location in that I include headers (partly my fault). I eliminate that from my include path. All is well, everything behaves. I will be making sure this fucking header is not used and it is going to die. Wasted a bunch of time.
Lessons learned: some code is just fucked and don't leave old ass shit you tried laying around.5 -
Him: "dont put your constants in a standalone class, it defeats the purpose of OOP. A class is for methods and such."
Me (in thoughts): THIS IS PYTHON YOU OEDIPUS, WHAT ELSE SHOULD I DO IF I DONT WANT MY CONSTANTS TO CLUTTER THE FILE??1?
But using the enum-class as superclass maakes it ok for him... -
When you are modifying a test to accomadate for a new class implementation and manually calculate the expected output. Theoretically, this should not be much of an issue as its parent is an abstract class.30 mintues later and still banging my head, I decide to walk my dogs and then it hits.. I calculated the expected value incorrectly, the test was fine. Time for bed , its late -_-.
-
Guy: Hey you know computers right
Me: sure
This guy takes his computer apart during class and wants me to see what it wrong with it. I'm like dude what the heck the Professor is teaching! Freaking crazy. -
I'm currently missing a university class because of a wincrap update I didn't consent to. It didn't even ask if it can reboot, it just randomly did it while I was working.
Do I have some sort of legal grounds to sue?12 -
“Your code is so shit I could use it to torture people.“ - Some random kid from my Computer Science class (No, it wasn’t directed to me)
-
First c class. Techer starts by telling us to use void main() and that it is necessary for program to run correctly. Someone kill me.4
-
rant == false && help == true
I usually don't like posting non rant stuff here but I need help.
How do you usually design your service communication class?
I am working on a mobile app which contains talking to a REST service, I usually put all network calls in one class. Down side if it becomes a big class it becomes a pain to maintain. Any thoughts?
For a backend service I usually go with Repository design and it is working out well for me. But for mobile Apps I'd like to see if there is a better approach4 -
Taking a class at my local university for fun where the point of the class is to build some kind of project for local companies. The teacher talks a lot about Wordpress and how great it is... He's not a dev, and has only worked as a business consultant/pm.... It's gonna be a long semester, but at least he's funny and has good choices in tv shows to include in his lectures.1
-
Took a college class - think it was called "Programming for Designers" - and the "teacher," aka CS grad student, just sat and played Pocket Tanks the whole time.
-
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
-
Reading documentation for 3rd party software... come across a code snippet which references a class. The class is spelt correctly in the comment but wrong in the code!
What??? Surely if you're going to get it wrong it would be the other way round :/ -
So past week our Web Design teacher proposed a little HTML5 project for the class to make. I have been since that day until today trying to implement an OBLIGATORY drag and drop functionality to reorder a list and back it up to localStorage, but for some reason it wont work as it should. But what a surprise, today I arrive at class and he has changed the specifications of the project, allowing us to not implement that, or implement it differently. That singlehandledly made my day.2
-
Testing every little class and stateless function is a brilliant way to spend a lot of time doing nothing.
At the same time, if I didn't have to test it, I probably wouldn't have turned it into tiny classes and mostly stateless functions.2 -
During my freshman fall semester in college in my intro to Java class, the professor gives us an assignment and says we need to submit it, so I print it out and try to submit the code on paper. Is it my fault he didn't specify how to turn it in?1
-
Data Structures professor enters class, today's topic being RBTs. He opens slides, forgot to redact the name and university from where he blatantly copied it from. Continues anyways. *Facepalm*6
-
In my high school we just finished our prelims (Aka, Test Exams, Just to see how we are doing). I failed everything except computing. In Higher Computing I got a B (3-4 Marks off A), and I was the only person in my class to pass, and we are the only higher Computing class in the school. And there is no Advanced higher Computing class.
And I was one of only 3 of the S5s taking it, Everyone else was S6.
I feel more proud than I probably should.2 -
In my class, we had just finished learning php and our final project involved using everything we learned... it was due in just 3 days... we only saw php for 2 days...
-
I just saw this rant: https://devrant.io/rants/841846/ which gave me flashbacks of my first programming class using C#.
Our professor made us write for the whole semester our code using a pen and paper (for tests).
Her grading was "easy." She would write the code in the computer exactly as we wrote it. If it compiles, you got an A, if not, you got an F.
The average test would take at least 5 pages...
Overall it was an interesting class, and I have to admit that I learned a lot.5 -
Don't people learn the basics of how things work anymore ?!
I am cleaning this project, where some juniors have implemente a lot of the code.
Apparently, the way of deleting an entity from the database is:
1) SELECT the entire row and cast it to a model class
2) CONVERT that model class to a DTO class
3) READ the Id property from the DTO class
4) SELECT the entire row, again, and this time cast it to a DTO class
5) CONVERT that DTO class to a model class
6) Use you pancy-pants ORM delete method using the entire model class as input argument..
FUCK YOU !
inb4 what about reference checks ?
- Nope. That is done separately using only the Id
inb4 what about checking if someone else has altered it before deleting
- Nope, the entire entity is not used for that either.3 -
When I overhear a senior dev explain a static class to a dev who makes twice as much as me it kind of pisses me off.2
-
You know you're going through extreme insanity once you start a class for the third time and it still doesn't work as planned
-
So my computer crashed while I was coding in eclipse. I turn it on and the class I was working on is absolutely empty, only one empty line
It wasn't a big class, but that still hurts2 -
OOP is so ass, classes that extend classes that need objects, of classes that extend classes , passend to their constructor which constructs an object to be given to a constructor of a class that extends a class that implements three interfaces. And in the end it all could have been done with a single function and all of these classes get used a single time.19
-
Debugging an issue last week that involved a duplicate class. Took about 10 mins of debugging (console.log) to realize the function wasn't being called.
Me to the person I was helping: we should comment that this is deprecated, can you add it?
Today while reading over the (unchanged) code, I see a comment block above the class **that I wrote awhile ago** which says exactly that...1 -
Salesforce Lightning Component
I am creating a salesforce lightning component to list the leads of the current logged in user.
I have managed to write the following code, but when i add the component to the page, and preview it, I dont see any leads.
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" >
<div class="slds">
<table class="slds-table slds-table--bordered slds-table--striped">
<thead>
<tr>
<th scope="col"><span class="slds-truncate">Company</span></th>
<th scope="col"><span class="slds-truncate">Annual Revenue</span></th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.leads}" var="lead">
<tr>
<td>{!lead.Company}</td>
<td>{!lead.AnnualRevenue}</td>
</tr>
</aura:iteration>
</tbody>
</table>
</div>
It will be great, if someone could tell me what is that I am doing wrong. Visit here! https://goo.gl/7jNnWu
Thank you3 -
In CS class I had a only 10 lines long python script (everything else was commented out). It didn't work and I searched the bug for ca 20 minutes. I asked a class mate (who commented the other code out) if he could figure it out and he just says: "The indention of the comment is wrong". We had a discussion that it doesn't matter how to indent comments. In the end he selected all the lines, pressed tab and it just worked ?!?!6
-
If in emergency you have to hide porn..
Just put all in one folder and then compress
it with zip/rar and change the extension which none of your computer program can understand or just change it to .class or .cpp!5 -
I have a single WinForm class, stuffed with all the logic it needs. 11k fucking lines of fucking nightmare code!!!4
-
So today I logged into devrant and noticed that all of the ++ buttons were gone. Apparently the Fanboy's Annoyances filter list (which I enabled recently in AdGuard) includes the "plusone" CSS class, which is the class name Devrant uses for the ++ button. Whoops.
I think I might remove that filter list entirely. There's a lot of other very non-specific stuff it blocks that might break a lot of websites.1 -
I'm still learning so take it easy on me, I'm trying to learn typescript and Factory pattern, hope I did it correctly this time :)
Link: https://pastebin.com/99AL3qah
Its only one class in hope I got it right so I can continue with the others9 -
I remember when I first heard about the general concept of a stack, I wasn't quite sure how you would use it.
Now im learning about stacks in java algorithms class as well as learning about how the memory stack works in assembly class. This probably seems small to you pro devs, but ngl, it kinda blew my mind how useful this structure can be.1 -
java
@ValueImmutable
I have used this to generate code
I try to use this to generate code again for a new class
it doesn't work, doesn't generate anything, can't tell what's different outside of new class being in a test package
thanks obama
yes i'm too retarded to figure out the problem from googling and trying to read some documentation5 -
in my OOP class the prof spent most of the time telling us OOP is dying, but we have to learn it anyway.4
-
Perfect use of DI in .NET Core project.
> Passed logger object in UI project's controller class constructor.
> Then pass it to internal class.
> Then pass it to business project.
> Then pass it to another class and finally used logger in a method to log exceptions in try-catch1 -
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 -
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 -
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... -
My co-worker told me that he doesn't use class mutators because it just makes the class long and dirty. Should I be afraid?1
-
I don't really remember... That can mean one of two things... It was to long ago... Or don't know how to do it yet... I do remember my first programming class, when my teacher said, "you just need to do a printf ..." And I asked, "what is that?" He looks at me, eyes wide open, for a huge amount of time, and then left without answering...
a side note, it was university class.1 -
My best CS teacher experience? Well, I've only taken one computer science college class(dual enrolled while in high school) but I think that I got the best possible teacher for that class. He wasn't a full time teacher, he was just part time from another company and was teaching Java.
It was great to have a teacher who was not a teacher by profession and actually knew the industry. Again, this was my only CS class, but I think that, from stories I've heard, I got lucky.1 -
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 -
Jesus Christ, Minecraft source code (with forge in this case) is such a clusterfuck of spaghetti logic. It's especially fun when it uses a lot of reflection and dynamic class lookups...3
-
I had been building dumb Minecraft mods in Java for under a year, and my parents wanted to know how much I was actually teaching myself. (I was 15 at the time.) They signed me up for a CS introductory class that taught Java at a local college.
One semester later, and I passed it with flying colors at (I think) the top of the class :D8 -
At internship with a fellow student from my class, making a SqliteHelper class in php to make things easier. Delete methods only have only one parameter (Primary key)
Coworker: "Why do you use the primary key as parameter? The user has no access to it!"
I can't express in words how close I was to snapping. -
I remember coding a hierarchical website crawling interpreter without using TDD in a library class.
Standing whole day in the flat, think about the working code have to be written.
It was like:1 -
Generics look kinda cool. But it doesn't takes long before it becomes a giant mess. And then a manager asks for some new functionality and you end up changing every class that inherits from it. I hate and love it at the same time. A confusing relationship.3
-
If somebody needs a project idea how about a really dumb JS Framework that allows you do basic DOM Manipulation, just like jQuery, directly in the elements class attribute.
For example this is how a document could look like:
<body class="init-hide-id-otherElement">
<button class="onclick-show-id-otherElement">
<h1 id="otherElement">Hello</h2>
</body>
What this does is first, at the body's init-* class, it hides the element with id otherElement at page load. Then, when you click the button, the element with id otherElement gets shown. Instead of *-id-* you could also use *-class-* which selects a class.
Basically the syntax is:
<event>-<action>-<id/class>-<the elements id/class>
Of course this has a lot of limitations, for example the selectors are very limited, but it would still be very cool!3 -
It's a good intention if you want to separate your code in logical units and split it into multiple methods, but could you please stop handing the control flow through about 20 methods before even really starting with the actual logic? This mess is 10 times as long as it needs to be, because someone decided to make everything go through 10 "validate one little thing" methods for every method with actual logic!
Edit: DevRant didn't allow me to post first, now I've analysed the code a bit more and the control flow actually goes out of a specialised class into a generalised class and back (not by returning, but by calling the specialised class from the general one) and the parameter that says what specialised class to call gets written into a class variable, then read from there and passed as a method argument, then back into another class variable, then the code changes it up a bit as a local variable, then passses it as a method parameter again... First it seemed like it knew what class to call using black magic, but no, it actually just hid the fact really well that it did in fact pass the class reference through in multiple forms from beginning to end. -
Some hint on how to take an php 3 old code and transform it to php 7.3 without rewrite all the class ...
Like an auto converters or i dont know ?10 -
Back in game dev final year, working on GameCube kits, I encountered a weird rendering bug: half the screen was junk.
I was following the professors work and was bewildered that mine was broken.
The order of the class (c++) was different...
I think there was a huge leak somewhere and the order of the class meant memory was leaking into VRAM. I never had the chance to bug hunt to the core of it... Took a while to realise it was that...
It opened my eyes to respect memory haha.2 -
Wow spent another 20-25 mins mapping out the stack calls to see why varchar was trying to be converted to Nchar which isn't supported and found in my mapper class one fucking method had rs.getNString() which I swear I never touched the mapper class since I made it and was working just fine!!!! I swear IntelliJ is straight up fucking with me2
-
The whole world use greek letters in maths. Greeks just only use letters. It has to be horrible to always feel like in a maths class.1
-
Although it was simple
My coolest project I made was a 2 game java app(minesweeper, tic-tac-toe) it was for the java class last year
But now I am working on a sudoku game project for the artificial intelligence class and I am having hard time with it since I am obliged to use game editor to make it, since game editor doesn't help in debugging 😭😭😭😭😭 -
Lil' update: so I never went to linux class and I had to learn it within a few days for my exam and I passed hehe1
-
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. -
Played a game and ate pizza DURING our android class! It was disappointing because we students should learn and focus but man!!! Pizza made it fine! Lol
-
Don't you love it when your in a class, let's say a Web Dev 1 class at a community college, and your surrounded by classmates that are completely computer illiterate and have to help them every step of the way, including reminding them what git clone does10
-
Randomly generated CSS class names make customization of sites much more difficult.
Randomized gibberish CSS class names like "r-acJ79b" are used by some sites like the new Reddit and the new Twitter web apps, which makes it impossible to customize the appearance of the site and to hide "trending" spam. The only way hide annoying and spammy page elements is through user scripts which scan the page for it every second and then hide it. But until then, it appears on screen for a short period.
I once thought this is caused by react JS, but the react JS front end of the video platform "Odysee" does not have randomized CSS class names.10 -
I remember being a TA for an intermediate java class. I tried helping as many people as I could, but some of them were doomed. Their code looked like it was written by Satan himself. I would try explaining why their code was bad, but it was like speaking another language (no pun intended). It was also the first class where people needed to use git... I don't need any more explanation there.3
-
I actually hate to work when there are kids around.
I get so unfocused when they run amok and shout around that I put points in front of my class names in DOM elements.
<div class=".fuggin-hell">
OF COURSE MY SELECTOR WON'T FIND IT!
Yet another reason to not be a parent, I guess.5 -
Couldn't sleep most of the night because was thinking about dependency injection (Spring) and unit testing...
And came to the thinking that pretty much every time you need to create a new method it should be in a new class, wrapped with and interface?
So then how do you decide whether to create a new class/interface vs a private method in an existing class?7 -
I wonder why the css class inside the css file throws an angular compiler error at '{' ... shit, it was configured with sass, not scss 🤦
-
I was working in my windows VM in class, just typing some C# code, when suddenly... "Updates are being installed".
Without notice, it just shut down while I was typing stuff. How??5 -
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.
-
A few years ago and today very shameful: Griefing Minecraft servers with an own "Griefer-Class". The class was completly enclosed into a simple ArrayList ( with {{ }} ) to hide it in JD-Gui (decompiler many are using) and had a own remote client that could send own as well as server commands via kinda like a telnet connection.
That were times... 😏2 -
My comp lecturer accidentally created a duplicate of an assessment submission online and just renamed it "Duplicate Hand in (can't remove)" because he couldn't remove it. I'm a bit worried he was lecturing my second year OOP design class....2
-
When comments find their way to class tests:
“TODO: Finish conjugation of montre in the whole text”. I had no idea of the conjugation and finished under time pressure so this stayed in the class test (gave it back last second) and I was well aware of it.
Just wondering what the teacher must have thought. Didn’t say (or write) a word about it tho.
Should see if someone tweeted or posted this (I mean someone wrote a book only with examples of stuff like this)
Idk, I should ask if I’m allowed to write class test in an IDE. And set MARK, TODO, etc. Would make them a lot easier.30 -
My It teacher told me to fix their *SmallBasic* chat-client which they use for our class. And it is holidays!!
-
Found a bug
- Calling function sent wrong parameter.
- Calling function itself was shit. Changed it.
- Few hours later, revamped whole class, updated all references and pushed to production next day.
Till date that class has not changed and still works flawlessly!
And probably first time I used queues in java. Algorithms FTW -
What do you guys think is the best method to teach juniors web dev? What are some things that would make you love a uni class and learn it?
I am teaching web dev and I find it very hard to engage all the students as almost half of them are not interested and I think they see the class too difficult(web basics?!). This is my first class teaching and I want to gather some feedback here and implement it in my class.
So, basically let me know of anything that makes you love and hate abclass because of the teacher's methodology. Thanks a lot3 -
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 -
what kind of sorcery is this? how am i suppose to call this class( or whatever it is)'s functions?4
-
most annoying "feature" in C++: the semicolon after a class definition. It just doesn't make any sense!3
-
Created a simple pip package to authenticate incoming slack requests. It provides an out of the box Django permission class to authenticate slack requests.
I've made it open for anyone to check out and use:
https://github.com/dev-prakhar/... -
I am trying to isolate logic in React with functional components. Is it a bad idea to forwardref to a custom object that I use to expose actions? This way I could model the ref behavior from old class-based components where it was perfectly normal to represent a capability as a class method.
-
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.
-
Are there any class based JavaScript test frameworks? I dislike the whole describe/it setup. I know it's basically the same thing, but I prefer the class setup in .net with xunit. I like being able to write abstract classes for tests..2
-
In typescript (angular) if i have a table USERS in the database and in typescript when i model this table
1) is it a good practice to write all fields exactly like i have in db table column?
2) in typescript am i supposed to write those fields as a class or interface and when should i use class and when to use interface?
While creating a model for the json response and request. Thanks3 -
Am I the only one having a really hard time grasping code when it involves more than just a few classes devided into several files?! I simply can't follow what happens when method a in class b instantiates class c and d while implementing interface e injection dependency f and extending class g...!?
Does this make sense? -
So, the main system we develop and "maintain" is a horrible monolithic huge project that has the majority of the code in one and only one god class.
On top of that, all the main logic is implemented directly in the "main" method (yes, the "public static void main"). Now every time you have to create a method to use it in the main logic, it has to be static!
God, I hate to even look at this class, let alone touch it, I feel dirty, like I'm touching a pile of shit. -
High school, prepping to go to class, I take a book that I needed for class, while picking it up from the book shelf the latin vocabulary fell and landed on my hard drive which was on top of my MacBook, two birds with one stone :(
I now have three different external hard drives and planning to get an off-site solution as well. -
Hey guys,
I´m trying to create a generic class, which inherits from an Interface, which is also an generic.
My problem is to instantiate the interface with the correct type, cause the new class should use all classes from the instantiated interface.
Is this possible? It´s a bit complex ^^ but that´s just my thought :)3 -
public class praise() {
System.out.println("I'm new here and I love it now" + "/n" + "This is a really Good idea for Devs" + "/n" +
"Sorry for my broke Englisch") ;
thumbs +=1;
}1 -
Is it safe to subclass an Hibernate dialect class at 17.30 on Friday?
Commit and leave the building!1 -
I just start reading about tensorflow.
Is it a crazy idea to train a model with about 40 classes?
How much images should I use at least for one class?4 -
Guys, i just placed a div of class row in my form legend,i don't know if this is a best practice but it works 😅7
-
Noob question
Is it better to implement a cryptpgraphic algo in a function or in a class? Also how?
More info:
I have a cryptography class and I really enjoy implementing the different techniques that we study in class. At first I was just implementing the techniques in a simple function with 3 parameters; key, message and a bool for encryption or decryption. But as they are getting more complex, it is becoming harder to continue implementing them in a single function block. So I thought of using a class but ran into the problem of how do I even do that? Do I make different methods for key generation, encrypting and decrypting?
P.S. It's really just for learning how the crypto technique works and not for anything serious.12 -
ICT class.
Class title: Excel as DB
It was about filters and sorting.
The closest thing to a db was that I found an INDEX function while I was bored... -
Ripped apart nice class, which had nice asynchronous callback interface, add sleep() where needed.Renamed it as sync class.WTF
-
Has anyone here actually developed anything in scheme? I'm considering taking a class which teaches scheme, but not sure if it's worth it. Any thoughts?4
-
I'm a student and we are forced to still have "ordinary" classes like Danish English and such. So we were having our English class. When out of nowhere our "skps" aka those who haven't found a company. That wanna take them in as a student but anyway they started looking around the class for turned on pcs. I asked my friend what the hell they were doing. Apparently a dhcp server from our class were hooked up to the schools lan and were faster. So it leased out ips with a lease time that was 8 days long. yeah they fail configured it, the SKP had pinged the server to find out it was called Pikachu. So the whole skp was on pokemon hunt til they found it at the table we all were sitting at "side note" it caused the whole lan network of our school not to be working"
-
Does anyone know how install Oracle 11g on Fedora 28? I need it for a college class and I had to distro hop just to install the rpms.8
-
In python, is there a way to make this work?
----------
# list of people
people = ["Nick", "Sue", "Bob"]
# class instance
Bob.pockets = ["gum", "paperclip", "coins"]
# convert string to prefix of a class instance
Print(people[2].pockets())
----------
This is the simplest way to show what I'm needing to figure out.
I need to convert a string into the prefix of a class instance.
I'm having trouble figuring it out.7 -
I was in my class on Thursday around 12 PM noon Indian standard time.
I couldn't access github on mobile (connection refused error) but at 2 pm once I was out of class could access it.
Any guesses if it was related to recent ddos attack on dyn ?
Location: India2 -
Love it when a react module doesn't allow custom class names. /s
Now I'm stuck with both BEM like classnames and long ass selectors to style the module. x_x2 -
SWIFT 3 sucks! SUCKS I TELL YOU! swift 3 changes the NSError class to its own Error class, now the categories (i.e the extensions) that I have added to the NSError class (like convenience inits and NSDictionary map to my own variables) are ALL LOST !!! MORE THAN 100 LINES OF CODE LOST!! because of this piece of shit mutation of the DATA TYPE ITSELF!!! when objective C code is used in Swift (using the mix-match technique) DONT UPGRADE TO swift 3.0 GUYS DONT DO IT!!! especially if you have legacy code in your project !!2
-
How do you keep shared libraries used by multiple microservices in sync?
For example, a model class in a shared lib used by some of your microservices. If a new field is added, how would you quickly identify which microservices need to be updated, redeployed? And do it quickly.
Or say the model library has many classes, used by different services. 1 class changed, and only 2/10 services reference it. Do you target only three 2 or so of them? Or would those be bad design?21 -
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. -
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 -
When all the feedback you get from a damned class diagram was "Ok looks good :)"
Not sure if good because it doesn't look like a complicated cobweb anymore or because the relationships established were right - though I doubt you can say that just by looking for a mere 30 seconds at a class diagram with more than 20 classes. -
In high school I had a digital media class, where we mostly learned Adobe design software and video editing and whatnot, but one project was to actually code using Programming (the software) and I loved it. Later that year I used a free project in the class to learn arduino per my teachers recommendation. Absolutely loved every second of that project, and have been coding ever since.
-
This semester I'm taking a class in my university about Cloud computing. You know, how to use the cloud better, when to use it, and we are using AWS in the class. That mother fucking class takes a lot of my time, I couldn't sleep for 2 nights in a row doing homework, and now EVERY TIME I go to YouTube to chill and see a video I GET A UDEMY AD TO LEARN AWS. WHY??3
-
Week 2 of learning Scala in my Programming Paradigms class. Is it just me or is Scala plus IntelliJ the best thing ever?1
-
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 -
How did I learn to program?
I got bored and didn't want to wait until my AP Java class, so I taught myself it over spring break1 -
Today I made a class to do one simple thing. Duplicate a database entry along with a few of its relationships. At first it didn't make sense to create one class for that but I decided to follow my SOLID gut. It ended up being almost 100 lines long with just one entry function working as a route controller. Thank God for SOLID principles...
-
My journey along Java continues and so I have discovered something I didn't know before:
If a subclass tries to call a method on its parent which it has not overridden, then it will call the method as if you hadn't used the keyword 'super' (and I think it will try to find it in the classpath and SDK).
Example 1:
public class SuperParent {
public String test(){
return "SuperParent";
}
}
public class Parent extends SuperParent {
}
public class Child extends Parent {
public String testChild(){
return super.test(); // same effect as test();
}
}
public class TestInheritance {
public static void main(String[] args) {
System.out.println(new Child().test()); // returns "SuperParent"
}
}
Example 2: with getClass():
public class Parent {
@Override
public String toString(){
return super.getClass().getSimpleName();
}
}
public class Child extends Parent {
}
public class TestInheritance {
public static void main(String[] args) {
System.out.println(new Child()); // prints "Child"
}
}
This here is of course a special case: .getClass() will always return the class name of its caller, so naturally in this case it returns Child and not Parent.
You would expect it to return "Parent" since you use 'super' in the overridden toString() but it returns the Class name of the Child (then there's something in programming languages such lexical scope and execution scope, which I'm not sure if it applies here).
The solution for this example is of course .getSuperClass().
Inheritance isn't always straight-forward.
References:
https://stackoverflow.com/questions...
https://stackoverflow.com/questions...2 -
I am starting to teach competitive programming in my college. And now I am tired of people asking me if they should bring their laptop or not. I mean seriously. I wrote pdfs on tutorial and notes for them and they are like laptops are heavy.
And I am getting irritating at questions like first class if we will be doing something important in first class or not.
How can I say if it will be important or not. It depends on how good you already are in competitive programming and CS concepts.
I upload every pdf for class on githubs and shared it. Why don't you just check it for yourself.
Damn irritated. -
In a Phaser game, I was unknowingly overriding a method of a parent class. It must've been Phaser.Group or Phaser.Sprite that my class was extending, I was calling destroy() on it without realising I was calling the parent class' method too and was baffled about why shit wasn't working. Found out maybe two days later and changed the method 'destroy()' in my class to 'pokeItWithAStick()'. This was at a previous job, but I'm mostly sure that it stays that way in the codebase three years later.2
-
We have this C# class which is like the core of our entire business logic. If you are in another class and it doesn't contain an argument in the constructor and/or property of that core class you're gonna have a bad time.
That core class has lots of useful business logic bools, "IsSomething", "HasSomething" etc. However that core class has a parameterless constructor which is sprinkled dangerously throughout our app, meaning the object is often not initialised properly and it's a 2 day mindfuck to make sure your "IsSomething" bool is actually false and not just false because the other business logic that bool relies on wasn't initialised and the bool has never had a chance to be true.
It's difficult to trust even a simple "if' statement. And if you're somewhere were you've had a list of that core class passed in, you need to trace how the list was initialised to make sure all your bools have been set 😴4 -
I can't count likes form my database for an specific post. I made a function that will count all the like by "post.id". It shows the like on the web page when I clicked on like button and it disappears when I refresh the browser. but likes are still remaining in the database but it won't appear on the webpage.
Here are the flask code:
def like_count(post_id):
if request.form.get('like') != None:
if (Like.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Like.query.filter_by(post_id=post_id).count()
else:
return 0
def dislike_count(post_id):
if request.form.get('dislike') != None:
if (Dislike.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Dislike.query.filter_by(post_id=post_id).count()
else:
return 0
Here are the html code:
<!--dislike-->
<form method="POST" action="">
<input name="dislike" value="1" class="input-style" >
<input value="{{post.id}}" name="post_id" class="input-style">
<button class="fas fa-thumbs-down" class="like-button" >
<div class="like-count" >
{{dislike_count(post.id)}}
</div>
</button>
</form>
<!--like-->
<form method="POST" action="" >
<input name="like" value="1" class="input-style" >
<input name="post_id" value="{{post.id}}" class="input-style" >
<button class="fas fa-thumbs-up" class="like-button" >
<div class="like-count" >
{{like_count(post.id)}}
</div>
</button>
</form>8 -
Thats how my class mate stole a cap 🎩 from the head Master's office.
And Boom!!!,
His father wore it to P.T.A meeting😭😭1 -
!rant
I have to choose between a couple of optional classes in my course. Although I'm more into the filmography side, I love coding.. now We have a. Umber of optional subjects, and we have to choose two. I have chosen Motion Graphics as one, now I want to know whether I should take Java as a second class.
is it something I can learn on my own like I learnt PHP, JS, Swift? Or is it something that will really require a class?
If it's something I can do on my own, I can consider taking another class related to cinema.3 -
Last week, a story was discussed of moving code from one class to utilities class that 2 similar actives can use. I'm on 2-dev team (out of 4), and the lead dev was going out early for a convention. Originally he was gonna do it, until I realized 4 other stories depended on this one!
Today he came back, saw my work and got pissed. Said I changed too many things, unsure if the code will even work, that it wasn't "surgical" enough. Also complained that I extended both classes from the similar code class (which extends the first classes's original extended-by) instead of using an interface to a class where the similar code is... his title says lead dev, but he's only got age rank on me as far as I can tell. -
Should I get the oracle certified associate certification? I just took a Java class in college that apparently prepares me for it. But it's $245...
-
i always get sucked into this "cute code" hell whenever i am working with a b2c codebase, and especially with kotlin code.
here's a scenario:
task : build a debounce logic for an input view where each user input is currently triggerring an api call.
my steps
1. read what debouncing is.
2. see if any code is available on the internet
=> found a code piece on the internet with some level of abstraction ( basically a simple final class that implements the input event callback and encapsulates the debounce logic)
3) copy it, run it , it wokrs
------
for any sane coder, these steps are hardly 10-30 mins and they can move on with life. but its your truly that made this task into a 6hour research only to come up at similar solution. my curiosity led me to stupid places
1) why this class is final? what if someone else wanna use it but with a different behaviour? lets try open(non final class) .
2) why even use a class? it extends an interface, lets try to wrap the logic in interface itself (kotlin supports interfaces that don't require implementation)
3) umm , the interface works but it looks ugly, with all its global overridden variables. what about we make it extension?
4) yeah the extension approach is also not very good, lets go back to open class.
5) but extend is super nice to look! lets keep the extension and open class too
6) can we optimise the implementation? why it uses an additional handler? what if we provided everything in constructor? how about builder pattern?
FUCK MY BRAIN! there are so much fucking options that i forgot that i spent 4 hours on this small thing
the simplest approach would have been tk just shove all the listeners and everything in activity and forget about it :/
senior devs on this platform, how do you stop yourself from adding every concept that you know into the smallest possible task?6 -
my professor is showing the fast inverse square root video in class, which he does every fucking semester. does it have anything to do with the class? no.
it's a cool video, but come on, half the people here have already dropped this class once or twice, change the script a bit7 -
For the people investing in crypto: http://imgur.com/a/C32Taqt
A small reminder I made in IT class of course using the best programming language of all times about the best coin of all times. -
Stayed up doing all the projects for my CS class the day before the last day of classes. It was simultaneously worth it and not worth it
-
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 -
Instead of deprecating the class and adding a comment, why don't you just replace it with the new stuff? ffs, we estimated for replacing!
-
I am so grumpy today. I like SCSS, but to make it more flexible like toogling dark-light mode are so difficulty to implement. Now i have to refactoring my class and follow what SO suggested. I hope it work!1
-
Is it a good practice to use inline styles?
I'm always lazy to add a new class to a new div. So I just write css, inline.9 -
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 !!!! -
Using twig templating language. It gives you error messages, but it only tells you the error of the line in the twig template. This is ok until you go to that line and it calls a twig function, which goes off to a load of different classes. Why not tell me the exact class where the error is, or even the line number in the class. Instead you have to unpick it until you find the bug yourself!
Am I missing something? Or is this just the way it works? -
Thinking of developing sublime plugin that would convert font-awesome 4 icons to 5. The plugin will search for all files with configured extensions and replace the icon classnames. Eg <i class="fa fa-cab"></i> will become <i class="fas fa-taxi"></i>. It wont work for inproper spacing and dynamic icons.
Is there anything already developed?6 -
In Spring/Boot if you annotate a class as a Service is it started on a different thread? I used @PostConstruct to start listening to a connection.
The class with main () seems to just load Beans defined in the AppConfig?
I need it to start a thread that listens to a Mongo Changestream and trigger some action on each.
I noticed a log line under the watch() is never reached so seems it's blocking...8 -
When every class you write inherits from threading.Thread. It doesn't need use threading.... but meh, you never know....
-
How the hell can a framework like Zend 3 have an instance of a class, this container, this service manager, that is basically responsible for instantiating everything but not have it accessible on a global level? Why do I have to create a factory class for every class that i intend to have access to this service manager? Zend is bull-fucking-shit.
-
I've a classic class in C#: RelayCommand. It's just a general purpose ICommand implementation. I want to use a dedicated namespace for it. I cannot use MyCompany.RelayCommand because using the same-class-name as namespace causes problems. What do you suggest?2
-
OOP question: Can someone fucking explain to me what does it mean to hide complex implementation behind an interface?
Also whats the point of using interfaces when you can define methods in an abstract class and just override them in subclasses in order to get class specific implementations?18 -
last day of bug fixing, 2 little bugs left, the last modify broke EVERYTHING (never touch an animator class on unity if u don't remember where and how many times u reused it)
-
Creating a new class to help implement a new feature. Start with my tests (going full TDD).
Feature gets more urgency given to it, write slightly less tests as deadline approaches (half TDD).
Out of time, any future tests are burnt (no TDD) as I frantically wrap up the class with not even the time to write down a plan, it's live coding at this point. -
Everytime i go to my class for java i forget a shit ton of what i learned last class.... and i hate it
-
The most fun thing in boring online class is when someone accidentally switch on mic and speak things unknowingly🤣🤣🤣... It will wake the class for atleast some minutes😂4