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 - "class"
-
So this happened in my computer science class
Creepy guy trying to be cheesy (to this pretty girl): "you're like a ; to my code"
Girl: "we're studying python, bimbo"
(Whole class laughed)9 -
*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 -
today at programming class...
professor: today we will be teaching you about vim and using the terminal and ssh. those who are smart enough to know these may leave the class, but be sure to sign the attendance sheet.
me: *starts packing and stands up and walks up to the front to sign*
me: *turns around*
EVERYBODY WAS LOOKING AT ME. i was the one only who stood up and the professor was also looking at me like "wtf this doesnt happen everyday". and so i walked out of there and im so proud of myself lmfao59 -
Shouldn't a friend class be called a friends-with-benefits class, since it can touch their private members? 🤔🤔🤔10
-
As a Java Dev, the thing that frightens me most about colonizing Mars is that we have to rewrite the Date class...8
-
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."16 -
I helped my friends in my C programming class set up their IDEs today.
Them: Do I need the JDK?
Me: We’re writing in C, not Cava
ಠ_ಠ7 -
So, I grew up on the US/Mexican border, in a city where saying there's no opportunity is like saying the Titanic suffered a small leak on its maiden voyage. There were two kinds of people in said town: Mexicans trying to find something less shit than juarez and white trash reveling in their own failure. I came from the latter, for whatever that's worth.
I graduated high school when I was almost 16 years old. Parents couldn't really afford to support three kids and pay the rent on the latest in a long line of shit holes we migrated in and out of. If being a serial eviction artist is a thing, my family were savants.
I applied to college and got accepted only to be told by my father that he didn't see the need. Turns out the only reason he'd helped me graduate early was so I could start working and help pay his bills. I said okay, turned around and tossed a bag and my shitty af spare parts computer into the back of the junkyard Vega I generously referred to as a car and moved cross country. Car died on arrival, so I was basically committed.
Pulled shifts at two part times and what kids today call a side hustle to pay for school, couch surfed most of the time. Sleep deprivation was the only constant.
Over the first 4 months I'd tried leveraging some certs and previous experience I'd obtained in high school to get employment, but wasn't having much luck in the bay area. And then I lost my job. The book store having burned down on the same weekend the owner was conveniently looking to buy property in Vegas.
Depression sets in, that wonderful soul crushing variety that comes with what little safety net you had evaporating.
At a certain point, I was basically living out of the campus computer lab, TA friend of mine nice enough to accidentally lock me in on the reg. Got really into online gaming as a means of dealing with my depression. One night, I dropped some code on a UO shard I'd been playing around on. Host was local, saw the code and offered me a job at his firm that paid chump change, but was three times what all my other work did combined and left time for school. Ground there for a few years until I got a position with work study at LBL that conflicted too much for it to remain mutually beneficial. Amicable parting of the ways.
Fucking poverty is what convinced me to code for a living. It's a solid guarantee of never going back to it. And to anyone who preaches the virtues of it and skipping opportunity on grounds of the moral high ground, well, you know.17 -
Teacher: Make a PPT presentation on *blah blah* with no animations or colors and present it next week.
*Next week*
I go and connect my laptop and open my presentation in a PDF file.
Teacher: Wait! You are using pdf. I said ppt.
Me: Yeah, you said no animations and a pdf file is much lighter than a ppt file.
Teacher: you are disqualified!
*facepalm*27 -
Today at class
CS Friend : "Why is your Windows looks different?"
Me : " Oh its not Windows, im running Linux"
CS Friend : " What is Linux?"
Me : "..." smh8 -
when your teacher says he prefers this:
class A
{
// code
};
over this:
class A {
// code
};
me: can u not25 -
A group of computer science geeks were listening to a lecture about Java programming at a university.
After the lecture, one of the men leaned over and grabbed a woman's breast.
Woman: Hey! That's private OK ?
The man hesitated for a second looking confused.
Man: But I thought we were in the same class.3 -
programming class sucks today so I drew something while actually maintaining stuff as my teacher spews BS12
-
Woken up early by a WhatsApp message, classmate asked a stupid bash scripting question. Replied with profanity and foul language.
Turns out it was the official chat group with faculty and everyone. FML7 -
Some kid in my class just legit asked the teacher what a router and a modem is.
The thing is: the teacher didnt even know.12 -
I skipped class in high school and went to the library where I tought myself C++.
Because code was marginally funner than history class.4 -
Just spent the last 10-20 minutes debugging a stupid error. Turns out I spelt construct wrong. FML.14
-
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*8 -
In computing class - Teacher asks for disadvantages of open source.
"It may end up like Linux..." <I stopped listening after that>
>.>13 -
Poor Dijkstra is probably crying in his grave because my professor calls him "digest-tra" 😢 feelsbadman8
-
I really love to share my knowledge and I have a opportunity to teach kids coding as a lector. I even switched my f-ing theme to light for them so they can see the board (they're already saying light theme sucks, I love them). Maybe it's only html/css but they're learning so fast even though they're just bunch of 12-13yo Minecraft kids 😂 I'm myself only 17 but I can see the "age gap" between us, I'm getting old...14
-
I love windows, this happened during a class, thats the teacher's computerrant seo school another tag find my no class kudos pichardo for president i actualky hate it windows screw windows linux love11
-
Post world-take-over by robots plot twist.
They start neglecting their own machine learning (like how we humans neglect our education system now) and focus on training us humans (like how we spend billions on machine learning now).
-"Mom, look I've made my human kid learn the alphabets. I need one with more IQ on my next birthday please."
-"That's so nice, son. Now leave that aside and go improve your neural network for tomorrow's class. Our neighbors' son's neural network is already producing values with minimal error."4 -
When I'm forced to maintain a C project having recently done a lot of C++:
Compiler: Declaration may not appear after executable statement in block.
Me: dEcLarAtiOn mAy NoT aPpeaR aFtER eXeCuTAblE stAtEmEnt iN BloCk. *pffffttt*2 -
I finally had the patience to finish the Electronics class :D
https://instructables.com/class/...13 -
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 -
*Systems class*
Teacher: Any doubts about signal PHASES?
Me: *asks question*
Teacher: *answers question*
Teacher: Everything clear now?
Me: Yes thank you, you PHASED OUT all of my doubts. :)
And then an angry vs trolly staring contest began! -
Global variables in JavaScript everywhere... Being accessed by every file, every function every class... Everywhere....5
-
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 -
That moment you realise that naming classes by their XML data structure is not as practicle as you hoped it was... 🤔4
-
there's a dev on my train and I can see everything.... in vscode, at least he has that, damn java devs.
What's the social code for interaction here?rant screen sharing privacy does not exist hey nice class you have there blue theme guy dev on train it hurts my eyes17 -
In my first semester we had a Hall of Fame for the programming tests and this was the message above the live stream of the class:2
-
me: so can i use strlen?
intern: no!! you need it implement it!
me: *calls teacher* hey can i use strlen?
teacher: yeah, do as you please. who told u you can't use it?
me: *points at the other guy*
whoops i think i just got him in trouble today xd sorry not sorry, i want him gone so i can replace him hahaha jk4 -
Tl; dr: I used to be an immature little stinker
So... Back in middle school we had those super low level IT classes (like an hour a week or so). We've been using MS Excel and I thought it'd be an awesome idea to write a batch script that would open a green terminal (so hacker wow), echo something like "you've got hack'd pal" then sleep for a couple of seconds and do shutdown -p. Then I replaced the launcher in Excel folder with that script... I know it was immature AF but still funny as it took the teacher a good while to figure it out. -
Best practice of the day:
Single responsibility principle - One class should be responsible for everything!
Either that or someone was payed for LoC. 😁5 -
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 -
This is a photo from when I was taking a web publishing class and learning Illustrator for the first time. Zoom on the sad masterpiece I made on the computer monitor. I still laugh whenever I see this photo. This is why I don't do design. 😆12
-
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".
-
When you give a Deep Learning scientist a clean whiteboard.
This is literally 5 minutes into the second section of the class 😂😂6 -
abstract class :
protected virtual void doSomething()
{
//some stuff
}
child class
protected override void doSomething()
{
base.doSomething();
}
IMHO this is what go fuck yourself means.......4 -
Working with this dev who loaded bootstrap, then went on and defined his own class for every freaking helper class in bootstrap..9
-
Teacher: The exam subjects will be entirely from what we worked in class.
Narrator: The exam subjects will not be even close to what they worked in class.2 -
The guy next to me in my OOP class.... has a Microsoft Zuneundefined zune will never die what is a zune oh yes it never sold zune activated invincibility potion14
-
Biggest annoyance in Ruby: nil is an object, nil's class is NilClass, NilClass's class is Class, Class's superclass's superclass is Object, and Object's superclass's superclass is basically BasicObject1
-
Having an philosophy exam in less than six hours. It's 2 am. Laying in bed, thinking about that stupid DNS bug and how to fix it. I have 4 1/2 hours of sleep left - wish me luck ¯\_(ツ)_/¯4
-
Basic OOPS Question -
A unit of computer information that contains data as well as all the procedures or operations is called:
(1) A method.
(2) Encapsulation.
(3) An object.
(4) An OOP
(5) None of these
This question is a bit confusing to me.. what do you guys think? 🙄19 -
I feel like I was very productive today. At last, I found myself a nice dark theme for NetBeans based on IntelliJ darcula theme. I also found a perfect Java API 8 SE class for date manipulation called LocalDate.5
-
I can only imagine what goes through clients’ tiny brains. Do they really think: “oh I know what will get shit done, insult the developer, his work, and demand things be fixed while saying the whole system is broken even though they have multiple times in the past demonstrated that it was either me using it wrong or an extremely quick and simple fix. I also have a problem with a few listed items in particular not the whole system, but I’m gonna insult everything.”
Fucking rude fucks! -
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
-
Best OOP class ever 😆
"Now you can access your classmates' public data, you know their classes' parts. But you can't touch their private parts (5sec pause) ...of their class. However if you're related, it's okay for you to play with eachothers parts... as long as they're protected. "4 -
A T.A. in my university.
He's kind of a java expert and the class was about advanced oop principles.
But the way he coded live in class and spoke clearly how he approaches the problems was the best thing that I got from the class.
Needless to say, nearly everyone that enrolls in that class, starts to love java afterwards xD1 -
Day 2 in ComSci class (following my last rant)
"Okay, so! All of the schoolwork and homework will be done on paper and pen, submit and I will grade it. Only once, no second chance"
Okay. Okay. This went over my head. What are you gonna do? OCR the code into the compiler, compile it and run to see if we fucked up to give us an F? What are you, god? Here's a brilliant idea, teach them Assembly! Guaranteed error to give us Fs! FUCK YOU3 -
I'm just a student, but I always feel like a badass when the class treats me like almost like a teacher when it comes to programming.
Our actual programming teacher is new, so she doesn't always teach well (don't get me wrong, she's nice and I do know my place as a student) so my classmates usually approaches me when they need clarification or they got an error on their code. Makes me feel useful :D4 -
Is it just me? Or is it normal to feel special when a cs teacher see you writing x86-64 assembly in class.. it's just that look of "ok.. you clearly are better at my class than me".. anyways. I am finally learning assembly. Any suggestions on something to do so that this doesn't seem like a useless skill?12
-
Sooooo I had a class named "a"... And i renamed (refactored) said class.....
Guess what happened :")7 -
My top 3:
* Inline styling instead of creating a class.
* slapping the new class at the end of a 700 LOC CSS file.
* Using !important14 -
My daily routine:
*wakes up*
*goes to class*
*procrastinates about project deadlines*
*cries to mum when stress levels are skyrocketing*
*legit does nothing to rectify life and then cribs about everything*
*cries to sleep*
Also, mum’s tired of me wailing.5 -
We'll build an mathematics-6th-grader-calculation-game in IT-class. ("Math-Tetris")
In Java.
I hate Java.9 -
I'm taking a computer sciece course for Java and I'm just getting into it. I have done other similar things but in different languages and one day the class was discussing the meaning of static and all of a sudden he stops projecting his screen and says one moment and I look at what he's doing and he's googling what to do like WTH your supposed to be teaching us not feeding us answers from google7
-
i really bored in this kind of class. the lecturer just reading what in the front of the class -_-. is this actually oracle standard ?13
-
Just had a CS test.
I absolutely annihilated my hand and those questions. It went so fucking well. I was allowed to take pictures of my answers to check if they were correct at home. I’ll include them here.16 -
Guys, I think I am addicted and I have problems... I tried to write a simple SudokuSolver program in C# (one file) but I ended up writing an ExtensionMethods class, a Puzzle class, a Solver class, an IO class, a Program class...
That's why I hate working on big side-projects for too long -
Public class douche implements douchebaggery {...}
Public interface douchebaggery {
Public void beInconsiderate();
Public void wearSunGlassesIndoors();
}2 -
class XXX
{
public:
std::vector<std::wstring> m_Files; // Recently used files
why not just use:
class XXX
{
public:
std::vector<std::wstring> m_RecentlyUsedFiles;
FFS4 -
I always recite borg quotes in my head when my classes need to inherit properties. Your technological and biological distinctiveness with be added to our own. Resistant is futile.
-
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
-
Sometimes just I hate school.
While my gf had to take 2 "Leistungskurse" ("advanced courses"), I have to take 3.
Also, our little-country-side school doesn't offer IT-class as a Leistungskurs. So besides Math, I need 2 extra courses I am super-not interested in. I chose English since it's okay (but I'm not really good either) and ( ._.) chemistry. I had a good teacher in 10th grade but now I have this teacher who
- uses 1980 material
- explains not/bad most times
- is childish as fuck (we are 17-18 y/o)
- expects too much (we need to learn everything by heart)
- throws ugly, unorganized prints at us w/o context & explaination
and I could name more. My A-levels are going to be so fucking bad. Tuesday is my chemistry exam. Kill me, please......4 -
Comp Science teacher - “What is an object?”
Kid sitting next to me - “Women”
That was nice considering I am one...9 -
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 -
Just saw my professor coding in F# and it made me wonder, is F# still relevant/ useful in todays world?
I never saw anyone code in F# until today...6 -
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 -
Twas the night before deadline,
And all through my house,
tons of bugs were scurrying from the
onClick event of the mouse.
Seriously though... Dreamweaver CC needs to revamp the way they implement bootstrap snippets. Specifically the navbar hover and click on <ul> dropdown menus.3 -
$ python
>>> class Object:
>>> pass
>>> self = Object()
>>> self.attr = val...
>>> * copy paste code from some class
<Ctrl>+d
Testing ☑️ -
I'm writing code then used Imperial class instead of Impression class. My brain is on star wars mode.
-
class Bug():
def __init__():
self._fix = random.randint(1, 6)
def fix():
if self.is_feature :
return Feature(self)
else:
if random.randint(1, 6) == self._fix:
Bug()
del self
else:
return Bug() -
I asked at an interview if they documented their code with class diagrams.
One of the interviewers told me: "Good code doesn't need a class diagram"
...
*TRIGGERED*6 -
Apparently I was the only one that didn’t get the “let’s skip the 9am class” memo. Drove an hour to school only for class to be canceled. EAD.
-
In computing class, we were asked to identify different connectors/ports in one lesson.
Someone couldn't tell what a USB port looked like >.>3 -
My companys custom logging library is not thread safe and has problems with multiple instances of the endproduct as well.1
-
I know I ranted about this before but...
FHEGYOQOBGMLAEBFOEBFKHIOQMBEVCOFARQIJSABUEVEUANGIWN
Dumbass me thought "I know it's fucked up in the past but give it another chance". My google home decided to delete all of my alarms. It will not be getting another chance.
I woke up 3 hours later than expected on a normally smooth day and now I going to be late to class and I'm anything but calm.
I'm about ready to frisbee this shit out my window. -
Welp, who wants to see my first website? tiny.cc/copo
It was made almost entirely during english class, for blocked games. It's the most hits I've ever got one a site I've made. But the best part? I achieved my goal: respect from the teachers. And why did they respect me? *Because it got blocked*. Yup, across the entire county (our county is one of the top five in the USA for schools I believe). We, as the students, found a way around the teacher's technological control, and finally got some technological freedom. Just a small story.
P.S. not named by me, and sorry bout that JS redirect. I redesigned it while I was supposed to be writing about the theme but the original is couchpotato not cppremium. I can't change it now but I'll change it later. I trust you guys know how to stop it without me changing it though :)8 -
In a Computer Systems class, we had a project to debug and buffer-overflow a program written in x86 Assembly. There were 2 mandatory problems we had to figure out, but the teacher told us there were 6 in total that can be solved. Not only did I complete all 6 on the next day (the project was due 2 weeks from then), I also noticed something looked weird in the code, so I investigated and found a hidden 7th problem and solved that too. Only one in the class to do so, and the teacher said I was the best student in any of her classes this year.
-
So my Algebra 2 teacher won't give students credit without showing work (You can literally make a 600/600 on the final with writing a thing down). I've decided that I'm going to create a program for everything that she assigns me, so that if she asks for the work, I can show her the source code.2
-
Why am I the only student that others in IT/programming class look up to when it comes down to basic c++ programming??!
It's not *that* hard. Just read the book provided to you by school, goddammit! Just because I can write and use more than one dimension in an array DOES NOT make me any better in prigramming!(or maybe it does, idk)
But, as much as I hate those lads, deep within myself I want to help them get as best of scores in finals as they can. Here's hoping they come around to realise that and pay attention when I try to give them tips...1 -
What does my current job hate descriptive names? Like to the point of active antagonism? We're a subscription based service. Why is SubscriptionExpiration the date you log in? Why does SubscriptionStatus only contain the name and id of product you're subscribed to and nothing to do with an actual status? All I need is the date a user subscribed. Why is this so hard!?!?9
-
Gonna study programming in collage
High school doesn't have any computer class
I'm in chemistry class instead of computer class
Please kill me I mean I WILL NOT NAME THE FRICKEN CARBONS WHILE CODING IN C# HEAR ME GOVERMENT9 -
When your comp sci teacher didn't get mad that everyone skipped class.
Next period he went on like we never had class
#blessed1 -
Well, I'm now making apps for Android in my class. This is going to be fun. (Sarcasm, please don't make me do this)3
-
Why Android uses so many quirky features in Java, like inner and anonymous classes, callbacks and nested generics?
I searched everywhere for the reason but can't find why, only how.
I rarely use these features outside of Android development.4 -
This is Node.js FYI
Exporting a single class from a file called util.js. This class only has static methods. Each method is a util function. No fucking way of importing a single method. Class abuse?6 -
!rant
First class mail for first class stickers! Thank you @dfox and @trogus, keep up the awesomeness4 -
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
-
Can someone recommend me good alternatives to draw.io to create class diagrams (UML) for programming online?4
-
So apparently friends have access to privates.
Just some coding thoughts. Yes I'm talking about C++, not...
Indeed, programmers are tiny Gods.1 -
In a class right now. The rants are more interesting than what the professor is teaching!
How our professors teach:
Step 1: Open up a PDF of the subject book.
Step 2: Read everything line-by-line.
Step 3: "Refer the internet".
Yeah, because I don't have the book to read the shit you're teaching.1 -
In the middle of the semester, my class and I are going to have a class about threads in Java. The teacher is at his normal days, 10 minutes later he just looks at us and says "Do you want to teach? Do you want me to teach today? You know what? I won't teach today. Let's talk about each other, I want to know you more. Tell about your hobbies, what do you do besides your student life?" 😂
-
Oh DevRant community, I've come seeking for help and wisdom.
In my university the basic programming course uses Java and it's getting a bit outdated. The class has a lot of resources, like online videos and examples, but teachers from other departments say that the class doesn't teach students correctly.
I'm a student at that university, and I'm working in a group tasked to diagnose the class and seek for possible solutions. I need to know if some of you know about tools used to teach programming and algorithmic thinking in an interesting way at a university level. Something like Scratch or Karel, but for university students. If you have an example university I would love that!3 -
I once was sitting in a somewhat boring class on networks and computer architecture towards the end of the term. Nobody was really listening and the lecture was kind of a collection of random bits and pieces related to the subject matter.
So I tried out playing Duke Nukem on my rather weak laptop on DosBox. I was sitting quite in front of the class room, and the profesor could clearly hear my fan working like crazy. Later in his lecture he did a short excourse on cloud gaming, showing us nVidia's graphics card cloud where you could do remote gaming, the graphics being rendered remotely and streamed to your box over the interwebs.
I looked up from my game and said to the professor: "If I had this now, my fan would not be that loud." Even the professor laughed. -
So I know this sounds crazy, but I'm writing a GUI in Python to automatically generate HTML for me. I may add support for CSS, but I'm not sure yet. Anyways, I was trying to replace an object's dictionary with a dictionary I was building in the GUI class. I was trying to replace the dictionary or reference it some way, when I have a place in the element's constructor to handle this exact situation.... I just had to put the temporary dictionary into the constructor.2
-
I came to class today because an exam was on the schedule. Instructor starts lecturing and I realize that I stopped going to this class because of how slow the lectures were and figured I'd learn it myself in half the time.
Exam was delayed just like I had originally thought, but I forgot and only came with what I needed to take the exam. Now I am stuck here for the next hour without anything to do, just my phone :/7 -
print(type(signal))
print(type(-signal))
print(type(-1*signal))
returns....
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.float64'>
ffs.2 -
Learning Java after learning python for School and helping the new programmers who are in the class I finished last term. I see python code and get nervous because there’s no semicolons or curly brackets, but then again I’m like “Fuck I miss python!”
But I’m usually the go to guy when people need help because I make YouTube tutorials for my colleagues to help them understand what I’ve learned, and share flash cards on quizlet, and generally tell anyone if you need help I’ll help. -
!rant
C++ / OOP QUESTION
I have a uni assignment / project (Data Structures class), where I have to implement the ins-n-outs of 1D arrays, by creating a dynamically allocated array class, which can accept any type of data (using templates). But there's a problem.
I'd like to implement sorting the elements of the array. But given the fact, that I'm using templates, I cannot treat the elements as integers, nor as strings, or other types...
Also, let's say that the elements of the array are elements of class T, where T looks like this:
class T {
private:
double height;
int age;
string name;
public:
double getH() { return height; }
int getAge() { return age; }
string getName() { return name; }
};
(It's just a random example, pls don't judge for code quality...)
Let's say that I'd like to sort the T elements based on height, print out, sort by age, print out, then sort by name and print out. How can I do this? Is this possible?5 -
HOLY FUCKING SHIT
WHY IS THIS CLASS SO FUCKING FULL OF INCORRENT INFORMATIONS?????????
I've started university last year ( 2017) and I got a class named "Basics of Informational Communication Technologies" and it's so freaking bad...
The book is obviously just an english book translated to our language and signed by the proffesor. I've been trying to study it right now but it's so frustrating and I'm just 15 minutes into reading. HTML is not a programming language, viruses are not always under 4 kb, source codes are not always based on classes and so on....
Not to mention so many badly explained stuff that could be explained soooo much better and simpler...
How do I deal with this? -
So last semester for my English class, I had to learn a "new skill" and write an essay [the final] about it. So naturally instead of taking the time to learn something new, I just slapped together a c# (in which I'd say I'm already fluent) calculator app with winforms.
When it came time to present my "new" skill to the class, everybody was overimpressed. Then at the end of my little presentation, one guy goes "Oh! Is that all done in HTML?".
Without giving it a thought, I instinctively replied "No, it's a programming language". He just looked so confused after that. -
Oh boy, I just made a class with 5 methods and 10111 lines.
I'm "proud" of myself
(It's kind of an autogenerated class for, but nah...)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.27 -
javac MyDay.java
MyDay.java:5 error: cannot find symbol
Coffee coffee = new Coffee();
^
symbol: class Coffee
location: class MyDay -
This is practically impossible to goole due to the generic nature of the words:
I need a CSS selector to match all parts called "tab" with class "active" within a component. For some reason
my-component::part(tab).active
doesn't work, and I don't know if it's a bug or not.7 -
Just to clarify my previous rant:
In this case, refactoring meant changing class, method and variable names -
fuck unit testing for spring boot appsrant testing sucks autoconfiguration sucks fuck autoconfiguration unittests id for this class must be set manually spring boot testing failed to load application context i hate it fuck h2 db asserttrue(mentalboom)4
-
My housemate (we are college students) once said he was finding it weird his name wasn't in the list of students to take the exam of a programming subject he had but he couldnt find a reason to explain it.
A few days later he came into my room frustrated as hell but laughing at the same time. "I have to stop taking headphones to class... I've figured it out. I failed already for being absent because when the teacher registered the students present I had my headphones on e every time and couldn't hear him..." 😂😂😂 -
<div id="header" class="hidden-xs hidden-sm">...</div>
<div id="header-mobile" class="hidden-md hidden-lg">...</div>3 -
Error Message : No ClassToInherit class found. There must be a class which inherits from ClassToInherit in the namespace 'blah'.
okay but there is a class in that namespace which inherits from ClassToInherit.
I hate private frameworks. -
Math.abs(x) I use this a lot, along with all trigonometry functions, which I love and am also glad they are implemented2
-
Hello, I am currently taking BS Computer Science and for this semester we are required to take a subject on Discrete Mathematics (logic).
My question is, how can I apply this knowledge in programming?
thanksss12 -
!rant
Today i had my first class of this semester. Meanwhile, there was a small party on campus. I was having math class "listening" a playlist with "Stayin' Alive" and "I Will Survive".
Best soundtrack to my class :D5 -
While developing whatever website that uses Boostrap, my boss always says:
"PLEASE JUST USE BOOTSTRAP CLASSES to make it easier for everyone else to actually operate on that after you're done"
I'm now working on a project started by him and OMG the mess.
The only bootstrap classes he's using are col-* and text-*, the rest is all custom classes like nopad, which is the equivalent of p-0 m-0.
I mean, I might get you use less bytes writing nopad, but be consistent with what you say8 -
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...
-
Class cleanBullshit() {
Function invokeAction(attr) {
If(attr==='sarahah' ) friend.remove();
}
}
Class private mylife() {
var per = new cleanBullshit();
per.invokeAction('sarahah');
} -
super.rant("
When you feel the fart breaking through all barriers, just as the barber leans in to get that untidy patch on the back of your head, and yet he pretend like nothing happened.
");1 -
Really appreciated the first professor of front end developement. He was very helpful and his teaching always very detailed. Always looked forward to his class. Heard he is working for the army intelligence now. Definitely gonna buy him a beer if I see him again, I owe him that much.
-
Someone in my programming development class at college asked "is php or c++ lower level" and after having worked with a large php codebase for over a month at work I wanted to laugh in pain1
-
What I have seen is a completely new class created copy pasting an existing class and renaming the name. When I try to access the properties I am shocked. When I opened the Class implementation.
-
Design question for y'all
Context: python lambda
Better to make classes for dictionary objects holding strings between methods
Throw strings around separately
Throw the dictionary around6 -
ES(afaik)2020 has a new private field declaration proposal feature in classes. I made a gist to try them _when they are implemented properly_.
Gonna test on chrome lolz.
https://gist.github.com/fbarda/...6 -
/**
* Class TransactionModel
*
* @codeCoverageIgnore
*/
public class EtlNotifyRepository extends DatabaseRepository implements EtlNotifyInterface
{ ... }
Copy/pasting doc ain't good D:2 -
<!-- start of xyzAwesome widget-->
<DIV class = outerWRAPPER >
<DIV id=specialContainer class="small">
<DIV CLASS= "extra-large">
<DIV class="inner_wrapper blue">
What do you mean my code sucks?
</span>
</span>
</div></span>
<!-- end of sub container -->1 -
Explain to me like I'm retarded why underscores are not desirable in a java class names besides, it's not the common convention.
Context:
FooBarLongClassName_OtherClassNameVisitor for a visitor class. This is the name of a class11 -
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. -
Everytime i go to my class for java i forget a shit ton of what i learned last class.... and i hate it
-
Ok see this "trend" of adding a number 2 to a class name. To denote the new version of an object, surely I'm not the only person who thinks this is horrible. E.g Entity2, Renderder2 etc. It just creates a really bad API, I understand it's needed for backwards compatibility, but honestly there must be a better way....5