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 - "classes"
-
Love working with atom using this theme in coffeeshops, making people think I'm a top hacker, when in reality I'm just stuck with css classes or something. Equally stupid.25
-
She: "I am not getting anything out of these classes!!"
Me: "Try making some Objects first"
*Awkward silence*8 -
Another rant about my gf
She tried HTML and well, cause there are h1, h2, h3... instead of classes, she used div, div2...17 -
Yes, that's an 18 arguments constructor.. there's 21 other classes and I'm afraid of looking into them.49
-
Researching to making a small 2D game using constructor classes and while building out classes, was working on my Tree method using fractal geometry and made a wallpaper out of the tree 🌳12
-
Manager: I read an article today
Dev: oh here we go….
Manager: We must pivot to only functional programming, which means only using functions instead of classes
Dev: Actually functional programming is a bit more nuanced tha—
Manager: Any use of classes going forward is not allowed. Everything must use functions! Classes are an outdated way of programming, using classes is why we continue to miss our deadlines. Functional programming is lean, classes are waterfall.
Dev: What about the libraries we use? Many of those use classes
Manager: Wrap them in a function then, that way they are pure which is one of the requirements of functional programming. You would know that if you spent as much personal time as I do keeping up with the times.34 -
Just finished writing a script with all the classes and variables named after the characters from Sherlock Holmes. I regret nothing.7
-
Volunteered to fix a brittle component in our app. Turned out to be 26 classes of mostly copy pasted code that is riddled with todos and void of feedback for the user. Here's a pretty representative sample of this code's quality:5
-
Googled "prevent memory leaks in delphi".
Came across a library called TCondom.
Talk about naming your classes aptly.4 -
Playing Warcraft and similar games prepared me for understanding Classes and Instances in Object Orientation later.5
-
Why the fuck would people use non English html classes and IDs, or just randomly mix languages. Please don't fucking do this14
-
Introduce a subject called "proper use of search engines" and make every kid attend it regularly, just like gym classes.5
-
The time I had to explain to my CS professor that HTML elements can in fact have multiple classes.6
-
I go to college online and I was really excited to start my classes for my major as I finally wrapped up general ed classes. This is a week 1 assignment for Introduction to Computer Science....14
-
The bane of my existence is people who get into computer science classes because they just want to make video games and get angry when they actually have to learn things6
-
The only way to feel comfortable coding on PHP is using classes and methods, I feel like home (Java)9
-
OMFG BOSS STOP CHANGING MY INTERFACES INTO CLASSES WITH REDUNDANT CODE AND IF ELSES BECAUSE "IT DIDNT DO ANYTHING" OMFG WE ALREADY WENT OVER IT YOU STUPID FUCK!!!2
-
Once in college I was walking around campus when I noticed that one of the classes were still teaching Fortran to their students as an introductory programming language.16
-
* !rant *
So I've been working since the summer on an app that uses NLP to record audio (I was thinking of using it for school classes), transcribe it and summarize it automatically
I've been using it at school and it WORKS
IT WORKS
I've actually put an app that I made to make my homework and sum classes up and IT WORKS8 -
Sometimes I don't give a dam naming my classes since I know not a lot of people will see this. At least I'll make a dev laugh!3
-
If naming classes, methods and variables in your (not english) native language seems like a good idea, please get another job.9
-
That moment you realise that naming classes by their XML data structure is not as practicle as you hoped it was... 🤔4
-
JavaScript classes don't need private fields. JavaScript doesn't even need classes.
STOP TRYING TO TURN JAVASCRIPT INTO JAVA.16 -
The only good thing about morning classes is going back home to sleep and still waking up at a reasonable time.4
-
Dear fellow frontend devs: either name your classes like-this or like_this, but don't mix the two, because I will punch you.10
-
I just started a job as a junior C# dev.
My project at work includes:
-no coding style
-multiple classes in one file
-all classes are static
-who needs interfaces?
-typos in variable names
-more than 3 levels of inheritance
-conf files such as "blabla.xml"
-comments? documentation? nope
-copy&paste everywhere
Client outsourced this project to us to get the job done properly :D
Looks that I have some opportunity to show my talent.10 -
Self documenting code is a fucking myth you bloody sheep.
Write “self documenting code” then add a fucking comment or two explaining why the fuck the code deserves should be there because nobody can see what the fuck it is doing or understands how the whole collection of microservices works. I’m sick of spaghetti code bullshit full of accidental redundancy because it is impossible for anyone to realize why something is there at a glance.
I renamed different “Contract” classes today by adding numbers before code review.
Contract
Contract1
Contract2
Contract3
All of these classes are supposed to be the same but somehow they aren’t and you self documenting dumbasses missed it. Don’t gripe about the numbered classes in the repo… fix the fucking code and collapse the classes so we don’t have four sections of code describing the same fucking structure from a http get with different interfaces because four people couldn’t read the whole like some fucking computer.11 -
Best exp:
( ͡ ͡° ͜ ʖ ͡ ͡°)
\╭☞ \╭☞ learning python and working with big data
Worst one:
(╯°□°)╯︵ learning php and visiting classes of programming at my college1 -
I should have known this job would be bad in my first week when they told me most of the classes are just copy-pastes of each other with different names7
-
Ever find when you're working on a personal project that you spend more time trying to think of good names for classes than actually writing code?5
-
Somebody made a fake review on my app! That's how I dealt with him 😂
The app is "My Classes" on app store6 -
Has anyone felt the astonishing effect that is writing a whole bunch of test classes, hitting run for the first time and they all pass.
I'm kinda sitting here staring at my screen in disbelief, either these tests all passed, or I've really missed something and they passed anyway, or it's just a lying piece of shit trying to question my own abilities... all are possible right now.
And no, they are not " assert(1,1) "rant i think it's lying to me tests classes first go all pass i'm a run these again to be sure i don't believe it4 -
So my old friend was in introduction to computers about 5 years ago.
My Teacher: Alright, go to the Desktop and start Photoshop.
My Friend: Where is the Desktop?
My Teacher: It's the Start Screen, like when you log on.
Everyone died laughing and he still hasn't lived it down.2 -
So c# has its own system.collections.list and system.collections.generics.list<type> classes. And this guy wrote his own list (no generics) using an object[] array which always had same size.4
-
Step by step here:
1. Choosing a stack
2. What to put where(folder structure)
3. Naming stuff(variables, classes etc etc)
4. Finish what I started.1 -
Sometimes naming variables and classes. Because the name should be relevant, short and understandable. 😊2
-
You lousy fucking test class of an ass wipe,
TLDR; it fails and it passes all at the same time.
So during a deployment, one of the pre-deployment test classes fails, not something anyone has worked on so figured I run it manually to see what’s going on, but no the shit of a thing passed second time around.
Now because we can’t deploy without 100% of the test classes passing so I have to organise another deployment which it fails again. Fuck this,
Unprotects master
Git checkout master
Git merge dev
Git push master -f
Protects master
Skrew this!
Well would you look at that, it works now 😰 -
That moment when you don't attend classes coz you already know what is been taught in the class and then you get a warning letter for low attendance... Fml4
-
I just corrected my CS teacher about 5 times while explaining generic classes.
WHAT THE FUCK, EDUCATIONAL SYSTEM?!7 -
Just found out that IE11 doesn't even support ES6 classes...
I couldn't care less about but still...6 -
after 20 years of programming i finally understand objects, classes and methods. what a waste i am!9
-
Got rebuked by the Java teacher today at the University for using proper long names for variables in the code. She though I was just wasting time being lazy in the lab. "If something can be achieved by a single character, why type that long variable again and again?". *Everyone in class laughs*
Then, there was an error in my code [turned out to be long long int in Java is weird], and I had no clue what was going wrong [I'm a week old in Java]. So, I had initially called her to help. She made me change all private methods and attributes to public. When asked "why?", got trolled again.
Now, I know it's okay, and not that I really care about what my classmates think of me, but getting this kind of treatment really sucks. And if this is how future software developers are crafted today, maintainability is surely going to be an issue tomorrow.
Maybe staying in this stupid country was my worst career choice. I should have tried harder and gone abroad.11 -
I freaking hate school curriculums, I have only 5 classes this semester, only two of them are career related and one is about QA, I want to focus on my code, projects, things that really matter but instead I have to do Socials homework, learn how to do research papers, learn about marketing. I really hate this. Besides the classes I have on development are extremely light. And I have to pay for this crap12
-
7 page resume
13 jobs, some only lasting 3 months
TONS of grammatical and spelling errors.
Descriptions of each job has several lines just saying he "created functions; interfaces; abstract classes; classes".... For a jr/senior level developer job? Why are we interviewing him?8 -
One of my favourite things in JS is the absolutely cursed shit that it lets me do.
Did you know that you can return anonymous classes from functions?17 -
I remember when I first started programming and used to be scared of classes. I was thinking about it after I wrote several today like it was nothing.3
-
There are not enough words in the English language to describe how much I fucking hate general education courses and math.
I don't even want a CS degree anymore just to escape the hell that is called required general education courses.
Like why do I need two fucking lab based science classes? Sure, if you were doing the Computer Science with a focus in Chemistry, that makes sense. But I wasn't doing that.
Why do I even need a lab science of CS to begin with, let alone two.14 -
Our 10th grade computer classes in school consisted only of writing 1 printf statement in C, which earned you an A.1
-
Trying to investigate why the team of new Devs are reporting a particular set of modules is not properly maintainable, found this little gem at the root, written in 2014.4
-
Im 17 and Im studying IT in Norway. I started learning to program when I was 9 years old (web design) and then later moved onto Object oriented programming. Now in some classes we do web design, I can watch Netflix in programming classes6
-
I have an interface implemented by 11 classes, coz u kno, it's "SOLID". But today i felt my life is a lie when a developer refactored my code and deleted all those classes and placed them in a Utils class with static methods, and slapped me with "Let's make it simple".14
-
The struggle of being a gay CS major is that all of my classes are 95% guys but all of them are painfully straight. Send help7
-
that moment when you have to learn Docker at work, so you convince networks teacher to do that in classes.2
-
When you start using CSS classes like this: class="fontsize-16 fontweight-700 height-100 text-center button-border padding-2 color-red display-block lineheight-3"1
-
React developers, What do you think about the new hooks api?
Will you refactor your codebases to use functional components or just stick with classes (even though the react community is moving towards removing classes completely)?
I think its awesome as it reduces the bundle sizes if you use function components though. I have been working on an awesome project for a while and I'm being tempted to refactor the whole codebase to use functions instead of classes. What do you think?19 -
So I'm tryna register for classes using my college's portal, and I click on "add/drop classes", and an entire Java stack trace gets dumped on my screen, with a warning at the bottom not to expose these errors to production in order not to let potential attackers know about how your backend works. I guess nobody at the college ever read that message.3
-
!rant
I just remembered some joke I said while we had C++ classes.
To see who will actually listen to me, I said : "Hey, I heard you can malloc a dynamic array."1 -
I was talking to a CS student here at my University the other day. We were discussing our high school careers. He had the opportunity to take 6 different CS classes, but he cheated his way through most of the classes.
Meanwhile, I had the opportunity to take a huge total of 0 CS classes. But boy did I desire the ability to take CS classes.
It's kind of sad that students who desire to learn get left out in the rain, while people who can take classes just cheat their way through the courses.1 -
!rant
I didn't think about it too much while I was studying. But my old university uses PuTTY for class enrollment and other stuff.
Meaning a student would log in, view what classes are available. Make their schedule, and then add them.
Through PuTTY.3 -
In my classes whatsapp group
*posts a ppt*
person 1:how do I open it?
person 2:use adobe reader
me:*bangs head in the wall*1 -
so wait, which color do i wear? The normal purple/gold? The white? BOTH???
the purple/gold is the standard one, the white is for excellence in accelerated classes10 -
Just wanted to admit that when I was in school, first learning about web, my first website used only IDs -- no classes.
I was so proud though.10 -
Teacher: "Classes and methods are pretty similar in java and c#. But in c they are a little different"
Me: "u cereal?"
Never say something you don't know shit about5 -
Y'all know those classes where you get 100s on the assignments and understand the material, and participate in class discussions, but get low 50s on the tests?
yea. Fuck those classes.4 -
I always hated CSS.
Then I realized it's not CSS's fault, it's the fault of the initial developer who wrote the HTML code and CSS classes in a weird way.1 -
CoWorker: “Yea then just use double inheritance to grab the methods off the two classes.”
Me: “Yea that doesn’t seem right... the first object is a string parser the second object predicts future occurrences...”
CoWorker: [louder] “No trust me, I’m taking a developer course right now. If you inherit both classes your new class can use all the needed methods!”
Me: “Okay, go for it bro.”
So tired of people who think they know what they’re doing...4 -
All classes (with a few exceptions) have nothing but static methods just so that I can call them like "Class::Method()" from anywhere in the project...5
-
5 more classes. i just gotta finish this semester and do my thesis and I'll be free. fuck this place4
-
I missed half of the Algorithm classes because of sleep but managed to keep the highest marks.
Faculty members that don't force on attendance are a blessing!2 -
An example of bad documentation? Unity. It has a list of poorly described methods of deprecated classes. The only reasonable documentation is the community. Docommunitation.10
-
1.)Not defining functions and writing the entire code everytime needed.
2.) Initialising objects if classes and using them only for next 2 lines and then destroying them. -
Powershell. Using classes. Can't create class libraries using regular .ps1 files (this way this **sort** of work). Using modules then. Can't easily refresh modules cache after any change to a class. Need restarting powrshell each time. Looking for more information. The issue is open since 2016 (just after the release of PS 5 that introduced classes). Once again, a Microsoft product turns out to be shiny at the beginning, but rusty when you go beyond the surface. Classes seem to be second class citizens in powershell. I feel frustrated and I would like to put pressure on microsoft but nobody seems to care. I'm stuck.3
-
Used ES6 classes 'cus I really like doing things the classy way..
...nice shit you can do there...
...
FOR FUCKS SAKE WHO THOUGHT IT IS A WICKED IDEA TO SPECIFICALLY NOT IMPLEMENT PRIVATES IN THAT SHIT.7 -
When three out of your five classes at school have to deal with computers or programming you almost want to go to school5
-
I'm boutta make a scripting language with classes, trait generics AND two kinds of value types
Call me Mr. Dangerous 😎14 -
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?18 -
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.
-
Java: each type is required being in a seperate file with the type's name, many of my projects have way to many files, half of them for really small interfaces or classes16
-
So out of curiosity, does anyone here with a computer science degree actually use any of the non-programming classes you had to take for your degree?
All those damn hours studying calculus and discrete math (ugh, I hated induction).. Not to mention biology, organic chem, history... Ugh11 -
Struggling to go to meetups between classes, my internship, and far-teaching. It's only about 45HR/week between the 3 but the constantly changing focus makes it all the more tiring.1
-
When you generate code to generate code (boilerplate classes and functions) you realize you're talking it a little too far 😄9
-
My colleague just did a commit with random method additions to the models classes in order to show to our teacher that he did "something".
This makes me cringe.6 -
It's obvious that a lot of product managers need to take basic stats classes. Your metrics are pointless and lack direction. 🖕2
-
For those of you that went to college or are in college currently, what programming language is the language of choice used in your classes?14
-
Why tf does IE6 not support js classes?! What in the actual fuck is up with that so called browser? We need to sink that motherfucker to the bottom of the gulf.14
-
Has anyone else struggled with CS classes that teach very low-level stuff like in Computer Organization and Architecture? I'm in that boat right now.2
-
Python abstract classes... Looks like a pain in the ass...
I'm just gonna create a class filled with methods that just pass or throws NotImplementedException
Good enough?2 -
Referring to this, about best programming languages,
https://devrant.com/rants/1322105/...
I’m more disturbed about Go didn’t make the list. At all.1 -
I was ranting about overusing classes on python, then I noticed I'm a person that creates new functions for 2-3 lines of codes for no reason..3
-
Trying to parse JSON to case classes and vice versa is like trying to parse HTML with regexes: A straight way to hell.
TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ1 -
So I'm required to take an intro Java course at my university, and can't test out...
My professor actually just described constructors as classes, not analogous to, or metaphorically. He said they were classes. All of the students are now confused out of their minds. Should I say something?7 -
People be like: “We don’t use comments cause good code should explain itself”
Then proceed to use complicated app architectures with classes all over the place.
Fuck.7 -
"Instead of writing classes in Python, create packages and use functions. Each function should do exactly one thing without being specific to the program you are developing." - Steve Waweru
-
This class adheres to the single responsibility principle: it is singularly responsible for the entire application.
-
Included a widget on a website (JS that adds its own code in a division, like Facebook like boxes). The script added its own CSS file that overwrites bootstrap classes, with !important and at the very end on the <head>. Even worse is that there's no alternative, its a widget from a government association and there's no API. And of course, the client insisted to have it so I had to rewrite some part to use custom classes instead of bootstrap's.1
-
Scanner scanner = new Scanner(...);
Which is fine until you're in a corporation where the (many) classes are so detailed that each one is 30 chars long...5 -
To Android developers:
ALWAYS use annotations for service classes when using minifyEnabled option in build.gradle!! I learn it in the hard way 😐 -
> Teacher uses a for loop to draw random dots
> Teacher explains we can't adjust the individual dots after the loop
> Teacher says we need to use classes
> Teacher creates classes
> Teacher doesn't show a solution to the initial problem
> Me is triggered as fuck3 -
I think for my next project I will give my classes and variables interesting names, so when anyone views the source - they can be entertained.4
-
"Stop using mixins in your SASS it's complicating the code for the team.
Extend your classes instead"1 -
U've seen one dev creating Java-Classes like 'GetLevel' which contain only one method that is called 'getLevel'. And it wasn't even a static method.4
-
(Day 1 of Database Class)
Database Prof - "Your final project is a program or app that deals with big data and showcases data analysis. Make something that can be used by consumers and has real-world application."
(After the Day of Showcasing Projects)
Database Prof -
(What he should have said on Day 1) - "Make something that makes me laugh with added data." -
If professors that teach programming classes are experts, why are they teaching instead of working for multimillion dollar companies?8
-
When your business classes curriculum hasn't been updated in over 15 years...
Today let's learn about folders! The "internet"!
Introducing Windows XP, the best OS yet! -
Feeling kinda ashamed.. I couldn't implement a graph in python using classes without resorting to a library.
Wanted to test my skills but I guess I'm not quite to that level yet :/2 -
Last week of classes and this semester is history. One step closer to attaining my dream job of being a software engineer.
-
Rant.
Our dev tooling is not in order.
Names of classes do not represent what they do.
Filename is different from class name and there are multiple classes per file.
I try to fix this hot spaghettis mess and off course our outdated source control gives another barrier! FFS6 -
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
-
Hotswapping/replacing classes on the production server
We call it "russian deployment" .. No offense -
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
-
Just been on a like 4 hour no pause coding session (which is fairly long on my terms) trying out random stuff in Java.
-Interfaces
-Classes but weird
-Weird Interfaces with weird methods
-Weird methods
-Custom types, essentially classes
-Depression
-Its 00:13 help7 -
When your professor doesn't know how to set their PATH and you have to do it for them. God, I hate intro CS classes.
-
I just want to use Jest to unit test my Typescript classes, but that appears to be impossible!
Testing the compiled Javascript instead doesn't seem to recognize any classname at all :( -
I hope this book finally makes me understand factories that make builders that make classes that make fucking objects.
Sorry for the bad light btw.8 -
Ok so Swift's module system creates implicit namespace, meaning gone are the days of Objective-c frameworks / classes having prefixes.
I get that, and its a great advancement. But when I'm using 3 different social media SDK's, a networking library and some persistence cocoapods and I have to use classes called "AccessToken" and "Manager" ... come on guys, name your shit better.
I'm looking at you Facebook and AlamoFire!!! -
Me looking for motivation to get out of bed and go to class in the morning.
"Devrant will be faster with the college WiFi when you browse in class rather than in your room".1 -
My first software boss who didn't like sharing the source code...
OR using built in classes
and insisted on using frames because "they prevent caching" 😂2 -
i wish i had no university classes (or at least, only programming classes) so that i could learn more about different technologies and had more time to code :(3
-
Part time job, that involves coding. Going to classes and also doing coding.... going on devrant... and also doing coding... I'm really amazed that I get anything done.
-
Social life? Do aikido/japanese classes count?
...Hanging out on discord and/or MMOs DOES count, right? Right?! -
When you got to get through the swarm of elective classes to get to the meat of the bones in a Software Development degree 😤
How many times do we need to take Math in order to get across that we only use like 1/4 of what is actually thought and apply it to IRL scenarios?!
My FASFA is gonna run dry at this rate and I just wanna start these Software Development classes already 🙄😭🙏1 -
Why does java have so many nonsensical limitations? Why? Why can't we have multiple heritage? Why can't we have friend classes? Why can't we make static abstract methods? Oracle, PLEASE.9
-
Lol, devRant good move by converting all the likes that one had received into binary system.
Rejigged old memories of converting binary to decimal at undergrad classes. 😂😂😂 -
Well, first off I want to actually pass my college classes. You know, the classes I barely find interest in that seem to be very minimal in my coding skills.
Next, take up or join a project for the summer. You know, get my name out there.
Third, make money
Fourth, make something significant in the OSdev community. I absolutely love low-level dev. Now (to myself) Let's do this! -
Studying is frustrating.
I'm in school for IT Engineering and my country decided, that universities have to be in half contact and half non-contact classes, so I have to attend bi-weekly. The other week I'm supposed to join online classes, where the whiteboard is recorded with a 2009 laptop's webcam and the audio is also internal, if even the freaking teacher manages to not forget to start the teams meeting.2 -
Working with someone who made repetitive css code like this:
#home {
x
}
#blog {
y
}
where x and y exactly have same child classes structure with small differences, making css file somewhat large.2 -
Was looking forward to this week, since classes were cancelled, was going to begin working on some iOS projects I’ve been holding back on.
Wake up today, and guess what, classes aren’t cancelled anymore.
Fuck the University.3 -
I don't like classes and I will fight anyone that over uses them for no logical reason what so ever !! 😐6
-
It makes me so sad to see such vast amounts of copy and pasted code at my new job :(
3 identical classes with only a few strings different 😡1 -
When you spend ages making a really nice for loop for handling multiple classes similar functionality, only to have it all messed up by one overloaded method1
-
Fucking dto hell...
Dear C#/.NET developers or any other developers, do you have a fucking smart approach/technique to handle the fucktons of dto classes throughout your webapi and not having to go to 5 different classes if you change some validation attributes ??
Seriously, that is the only thing I like about JS. It just does not fucking care...
EDIT: This rant came across and just fits perfectly: https://devrant.com/rants/68633813 -
That moment when the code that was supposed to be removed in only commented out!!! The guy butchered a bunch of classes by commenting out about 1000 lines of code
-
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 -
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 -
CSS has no parent selectors... and the codebases' element I'm working on has no classes nor an id...
kill me8 -
Currently learning programming (c#) and I can't wrap my head around classes can anyone give me some tips?9
-
Realizing my currently degree plan will not transfer to a 4 year university where I can get my bachelors, I have decided to stop taking all tech classes and focus on the classes that will transfer such as English, Calc, History and Government.5
-
Anyone else here who really enjoys writing pure functions or domain classes?
It's so amazing to be able to write dependency-less classes that have such simple, elegant logic and sometimes just a bunch of getters and setters. Pure functions with type hints are also one of my favorites.1 -
Attending classes on English literature at 8am while coding all night. What am I doing at uni again 😶😶3
-
All is see is people ranting about college lectures/classes , am I the only one who learns in most of my classes?2
-
Debating getting an ipad for note taking, anyone used them before? I’m a college student and I always see tons of kids using them in my classes13
-
My college is doing a "practice run" of conducting all classes online because just in case they have to shut down the school eventually, they want to be sure that everything works. So I'll be taking classes from home this week. See how that goes, I guess...
-
Working in an open space environment.. why not discussing as louder as you can about "why eclipse doesn't show the list of classes which implements the interface X"!!
-
For my BS, I paid people $70-90 to write essays for GE classes..
Is this wrong of me? Should I have written that paper about earthquakes myself?5 -
Is storing-of-data-in-classes-as-static-variables-to-access-them-later-on-from-one-page-to-another a good practice? It always seemed fishy to me...5
-
so close yet so far :(
anyone got any tips for how to remove unused css? is there any tool that can remove classes from bootstrap i don't use?12 -
Thoughts about the strangler pattern?
I just came across it today and it sounds like a neat thing.
My main concern is with redundancy and the risk that old classes or methods would further be used and expanded. I've come across enough obsolete classes which have been further expanded because the dev ignored the flag and didn't want to search further or create new implementations. I wonder how this could be avoided.2 -
Can someone plz tell me that are subjects like OOAD(object oriented analysis and design) or requirements engineering actually useful in real projects and jobs...?3
-
We are learning a method for reflecting on our progress.
The teachers use a wedding as an example in front of 5 classes of guys only.
Lost all interest -
when u see a bootstrap template use !important on multiple classes and id's u know someone kinda fucked up😅🙄5
-
JavaScript decided it wanted to be a Prototype based language because it needed to feel special.
Freaking Prototypes.
Classes > Prototypes3 -
First rant;
First of all I am an applied computer science student in the second semester.
We've got a few assignments and the first set went fine but this last week boy ohh boy - first of all today I got noticed by one of my two teammates that the other one won't get stuff done in this assignment (he also did next to nothing in the first)
Also the the assignment is unclear and the given methods and parameters don't care about naming conventions (for one method I don't even know what it should do). Also we have to use new liberies (java.io etc.) and learn them on our own so far it would be okay, the time limit is two weeks, also doable
BUT the same chair also made one assignment for web development with the same deadline and also no explanation how to do stuff.
I don't say I am perfect but the expectations are too high, while also studying for other modules1 -
!!shortRant
Took over a project of someone leaving the company. 5k loc in 1 File. 40 classes, mccabe average is 12.
FUCK THIS SHIT1 -
What was/is your plan to make the most of your college time ?
(You know lots of unnecessary classes , homework, etc)
I mean a plan to be acceptable in classes but also make money / or at least learn cool things6 -
A few people have posted about their Linux teachers/classes. Please excuse my ignorance, but what do you learn in these classes?
(Linux was still pretty new when I was at university, and, besides I was studying law and Humanities)5 -
Of all the browsers required to complete mandatory classes online for the USMC you would think they would support a modern browser and no IE6 or flash heavy courses only...2
-
How much of a red flag is it if a programmer gets concepts like interfaces and classes, but when asked what an interface is, can't give me a straight answer?8
-
Fuck school. Fuck AP classes. I don't even have a job yet, and I still have hardly any time for my own projects.8
-
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 -
Damnnn my Team lead is hinting that i write a test for the feature I paired with a team member.
But the large django code base is ridden with abstract classes and classes and inheritance etc...its going to be a long night -
Macromedia Authorware. Wasted 3 months of my life on a course assignment and classes for this. Shame really cuz I was hoping it would improve after Adobe took over.
-
Goodbye, cruel wairld:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 123736064 bytes) in /var/www/vhosts/hexicalapp/public_html/Classes/Services/Devrant/SearchService.php on line 1741 -
Making classes and functions without commenting what I expect each class and function to do. Which means that my classes and functions have really long names.
Example Code:
Class ReallySpecificClassToWorkWithThisFramework { ...
public void DoThisActionInTheFramework (obj TheKeyToTheWholeFunction) { ... }
} -
Original class has 185 LoC, unit test class have 315.
But it's one of the most important classes, with most states and corner cases.
And, thanks to unit tests, one of the few classes I'm almost proud of. -
I got a friend in the older class. He has C++ classes now. I’m constantly helping him, even though I don’t know C++ much 😂1
-
TIL the definition of Favela Architecture.
The blue spots are (copied) helper classes and everything is static. -
Microsoft Foundation Classes - MFC. Spent 1 month to make a fixed column on a grid. Counter intuitive APIs.
-
After seeing how big several abstract classes to write will be for some group work then just thanking the DevLord for IDE's that generate your getters
-
Talking to friend from school on Discord, and he asked for help with a Minecraft mod. I told him he should learn basic Java, and he said he had taken a couple classes already.(turns out they were small Minecraft modding classes) I was like ok, whatever, and after listening to him work on it, it's now obvious that he knows nothing about Java :/2
-
Hi, so currently in my Java course, I'm learning about abstract classes. I noticed how a method in an abstract class can use an access modifier, however, interfaces don't use them.
In addition to this, I noticed that IntelliJ didn't give me an error stating that adding an access modifier was redundant or useless. So I wanted to know if there is a point in adding access modifiers to abstract methods.
Thanks so much for anyone who can help me out with this!1 -
Im learning Javascript, where can I find some documentation about the methods and classes of this language?7
-
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 -
Had a Word doc to format for our so-called CS class. A classmate submitted my file under his name, but didn't realize that my name was in the metadata xD. The teacher almost failed him on the spot.1
-
I am considering which CS elective to register for this coming semester, and I am not happy with many of the choices. Basically, I can choose between Android programming, a web programming class in the grad school, and maybe Linear Algebra for CS majors class. I am trying to figure out what is worthwhile to take in college, and what I can learn on my own. Advisor thinks I should take a web class, because it's important to know, but I am not too into web and I feel like I can just learn that on my own. I would rather take a class that will help me understand how things work, rather than just how to use a specific technology. What do you guys think?3
-
After the instruction given by project manager to use snake_case names for CSS classes, now he tells everyone his contribution in project. -_-
-
compareTo(Obj obj) !!
For me !
Most of the custom classes are written with a distinction on defining this method. -
I have to let it out :
- Javascript is not Java
- classes in Javascript are bad
- Yes OOP can be done without classes2 -
June 2017:busy with oop in my cs101 course
August 2017:Still busy with oop
And I continue to hit my head against the desk when he says writing classes in Python is exactly the same as classes in Java.1 -
Spending hours troubleshooting with a customer, nothing works, until eventually it comes out that the customer lied in response to one of my first questions.
Congratulations, asshat, you played yourself.
This happened across multiple companies, multiple classes of products, multiple classes of customers. It is how my “rule 1” came to be (see previous rant). -
Helloo Seniors! Just a short intro, I'm currently doing my Degree in Computer Science and I would be eternally grateful if you could help me out to come out with a cool/interesting title for one of my projects. The system I be creating is pretty simple, It would go through the list of students and what classes are they taking and it would detect if any of the students' classes are colliding with each other, eg: starts at the same time.11
-
val true : bool = isFrustrated(me : Human)
1) Honestly fuck SML. Who's goddamn idea was it to make a useless fucking programming language that does absolutely nothing relevant unless you're trying to learn recursion. Who's fucking idea was it to not be able to even have side effects. And who gives a shit if you can explicitly declare the type of variables on every single fucking line that's what comments are for if you really need it. All this is aside from the fact that nobody ever has been like "OH UNMUTABLE TYPES? WOW IM SO HAPPY THIS IS SO USEFUL". At this point I feel like SML is basically a DFA - ABSOLUTELY FUCKING USELESS
2) Aside from that, who's idea was it to duplicate two classes. There's 15-122 (Principles of Imperative Computation) and 15-150 (Principles of Functional Programming). So far the ONLY fucking thing different is we learned about work and span in 15-150 - OTHER THAN THAT ITS LIKE TAKING THE EXACT SAME COURSE. BUT AGAIN. So then I have to fucking sit in lecture and pay attention for that tiny bit of information that is new amongst the giant cesspool of information that isn't. BECAUSE I ALREADY LEARNED IT.
Oh and did I mention that both classes are required to graduate as a CS major? Fuck me.
Thanks devRant for helping <3
Edit: We are 4 weeks into the semester so you'd expect we'd have gotten into the new stuff by now right????5 -
I just started a web dev course.
I definitely hate bootstrap, jquery-mobile and all their fucking classes.
Does it exist a good reference poster (or something else printable) with all these classes and what they do?3 -
Really taken aback after seeing my semester attendance is 93.43%. There was a time it uses to be 40%, online classes doing wonders.
@MicrosoftTeams -
I'm new at coding and im learning java but i can't quite figure out, how many classes is too many?4
-
TFW 'this' in functions loses its context when in promise chains and none of the blogs mentioned it :^)1
-
Does a non-awkward way exist to specify a child class as argument type in a parent class method in TypeScript when the classes are defined in different files?4
-
Allright, to settle a debate what is the more incorrect way of getting the last elememt of a std::vector?
Is it this:
auto i = myVec.at(myVec.begin() + myVec.size() - 1);
or:
auto i = *(&myVec.at(0) + (myVec.size() - 1));
I think the second method is better(worse) because it has more brackets and only works on Implementations where the vector's data is laid out concurrently (that is in the c++11 spec, but I've seen some shit)
My friend argues for the first method because it takes more time. (If IO is not a bottleneck)1 -
Any recommendation for good naming convention for methods and classes ? I'm looking for article or book.
-
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
-
So it's a basics question I know, but is the main difference between abstract classes and interfaces is just that you can use non-abstract methods in abstract classes but not in interfaces ??3
-
Yo grad school is a mark ass bitch. That being said I love it in a weird sadistic self torture learning new things kind of way ❤️
Serious question though. Should I take two instead of three classes next quarter? I have no time for a life with three classes. My gf is not happy with this. And if I’m not studying everyday there is no way to comprehend things at a basic level. If I take two classes I feel like I’ll be falling behind. Is it expected not to have a life in grad school? At least nobody is bothering me about jira tickets and when I’m gonna ship here.3 -
I once wrote a whole lot of classes with lots of functions and pushed them to the live server without testing... There were no errors 😎1
-
I'm starting to gain a dislike for OOP.
I think classes make it easy for me to think of the entities of a problem and translate them into code.
But when you to attempt to test classes, that's when shit hits the fan.
In my opinion, it is pointless to test classes. If you ever seen test code for a class, you'll notice that it's usually horrible and long.
The reason for this is that usually some methods depend on other methods to be called first.
This results in the usual monolithic test that calls every goddamn method on the class.
You might say "ok, break the test into smaller parts". Ok. But the result of that attempt is even worse, because you end up with several big tests cases and a lot of duplicate code, because of the dependency of some methods on others.
The real solution to this is to make the classes be just glue: they should delegate arguments onto functions that reside on its own file, and, maybe afterwards emit events if you are using events.
But they shouldn't have too much test code classes though. The test code for classes should be running a simple example flow, but never doing any assertions other than expecting no exceptions.
For the most part, you'd be relying on the unit testing that is done for each delegated function.
If you take any single function you'll see that it's extremely easy to write tests for it. In fact, you can have the test right next to the fuction, like <module>.xyz <module>.test.xyz
So I don't think classes shouldn't be used at all, they should just be glue.
As you do normal usage of this software this way, when a bug is discovered you'll notice that the fix and testing code for this bug is very usually applied to the delegated functions instead of being a problem of classes.
I think classes by themselves sound sane in paper, but in practice they turn into a huge fucking messes that become impossible to understand or test.
How can something like traditional classes not get chaotic when a single class can have x attributes and y methods. The complexity grows exponentially. And sometimes more attributes and methods are added.
Someone might say "well, it's just the nature of problems. Problems can have a lot of variables".
Yeah, but cramming all of that complexity into a single 200 lines class is insanity.12 -
Start working with ZK framework. When I download some examples from their site I get a lot of errors because of missing classes and jars. Help me pls!4
-
task: building classes for "yes, everything done and tested, okay"-API-Request1
result: the undocumented shit is broken, what a surprise.
alt.task: classes for request2
result: there is no controller named "ABC"
-.-*** -
Okay, so I had an object consisting of tables (basically classes) and structs (classes with only scalars as their properties).
I was about to serialize the object with vectors of classes and structs and wrote some nice tests for it wondering why they fail to validate the data after deserialization and why I only got garbage for the vectors of structs whilst the tables worked just fine.
Turns out there is an undocumented function called CreateVectorOfStructs which shall be used for structs instead of the regular CreateVector ...
There go three hours of blaming memory issues and running Valgrind over and over again ... -
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 say7 -
Back in school! Happy to say i'm taking classes i genuinely like, which are useful and challenge my brain.
Classes include (but aren't limited to)
SQL (and MS SQL Server, no MySQL sadly)
HTML/CSS/JS
Java2 -
Weekends
Before lockdown: Yay...Weekend is here...Time to go for social events, hobby classes and have dinner with friends outside
After lockdown: Yay...Weekend is here...Time to attend social events, hobby classes online and talk with friends on video calls... -
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 -
How do come up with good names for classes and interfaces? Mine always seem stupid and I want to change them, but cant think of anything better.2
-
Tailwind classes stopped working (only previously used and customly added classes work)
For some reason my tailwind doesn't work anymore. I was able to use any classes and they were being added to style.css with: "npx tailwindcss -i tailwind.css -o ./css/style.css --watch". But today it just stopped working, I can't apply even the most default class like text-red-400. I can only use classes that I have previously already used AND ones that I have customly added.2 -
I have been writing a bunch of classes, but I don't know how to write test. At this point, I don't know where to start.
-
I need to pick one terminology for shipping so I don’t forget my function names, css classes and labels.
I’ve used a mix of “Shipping”, “postage” and “delivery” and now I’m confused :-/1 -
What is your opinion on multiple classes per file?
and having the filename not the same as the class
names?15 -
Not a programmer just a CS student. Since I'm not appearing in my online classes I'm way far from my syllabus. I want to learn C# from 0. Suggest tutorials 😔14
-
I was in EE Engineering dept. I got A1 from programming class despite failing at all other EE classes. Couple years later of failing EE classes, I switched departments without hesitation.6
-
Emphasizing on:
-creative thinking
-good exercise systematic approach to problem (breaking down problem in to smaller workable pieces)
-open source
Far way better than text book based boring classes -
Once again the department head fucks up my degree plan!
I'm getting my associates degree in Cyber Security. So we have to take networking courses and what not. So my institution recently became a Cisco certified teaching establishment or something along the lines of that.
The department head said that everyone who was enrolled in classes before the upcoming fall semester would have to take the new Cisco networking classes and not switch to the new degree plan. (We would take 3 Cisco classes instead of the new degree plan which is 5 or 6) so we planned and register for those classes.
Now he comes back and says we don't have to take those new classes. So it just fucks up the whole shit.
Switching to the new degree plan would add like 3 semesters to my total semester count and I'm supposed to graduate. August 2018
Fuck this new shit. Even tho I need Cisco.
I plan on taking The Cisco classes after I graduate with my associates degree while I'm going to a university for a dual degree in Software Engineering and Cyber Security -
overclocked gd learned java lmao he said it was too easy for him
about my java experince:
(i still suck at creating classes and static methods which i need to learn more on especially inheritance for my java game)
Now for some kotlin and python time
just note that i completed all exersizes but im still at java classes category but how bad could the android api be?