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 - "method"
-
This story is 100% true.
I got hired onto a team of construction workers to build a house. We set up a meeting with Management to find out what kind of house they wanted us to build, where’s the floor plan, what it’s going to be used for, who it’s for, etc. Management said that they didn’t know all that, we should just get started. They told us that we were going to use “Agile” which means that we just work on small deliverables and build the thing incrementally.
The developer team lead argued that we at least need to know how big the thing is going to be so that we can get started pouring the foundation, but Management told him they just don’t know. “What we do know,” Management said, “is that the house is going to have a bathroom. Just start there, and we’ll know more when it’s done. You have two weeks.”
So we just bought a port-a-potty, and screwed around on the internet for two weeks. Management was outraged. “You call this a house? This is the worst house ever! It doesn’t even have a tv!”
So we bought a tv and put it in the port-a-potty, attached to an outdoor generator. We were going to buy a a dvd player and get it hooked up to cable, but Management rejected the expense request, saying that they didn’t know if we needed it, and we’d come back to that later.
Management decided that we definitely need storage space, so we bought a boxcar and duct-taped the port-a-potty to it. Then to our horror they set up some desks and put a few miserable business interns in there. It went on like this…
After a few years the boxcar grew into a huge, ramshackle complex. It floods, leaks, it’s frozen in the winter and an oven in the summer. You have to get around in a strange maze of cardboard tubes, ladders and slides. There are two equally horrible separate buildings. We’re still using just the one outdoor generator for all power, so electricity is tightly rationed.
Communication between the buildings was a problem. For one of them, we use a complex series of flag signals. For the other we write notes on paper, crumple the paper up, and toss it over. Both of these methods were suggested as jokes, but Management really liked them for some reason. The buildings mostly talk to each other but they have to talk through us, so most of what we do is pass messages on.
It was suggested that we use paper airplanes instead of crumpled up balls, but the fat, awkward fingers of the Business Majors who inevitably take those jobs couldn’t be trained to make them. I built an awesome automatic paper airplane folder, but once again they couldn’t be trained to use it, so they just went back to crumpling the notes up in balls.
The worst part of all this is that it’s working. Everyone is miserable, but the business is making money. The bright side is that this nightmare complex is done so now we know what kind of building they actually needed in the first place, so we can start work on it. Obviously we can’t tell Management anything about what we’re doing until it’s finished. They noticed the gigantic hole in the ground where the foundation is coming in, but we told them that it’s a cache reset, and they mostly ignore it except when the occasional customer falls in.
I’ll probably be out of here before the new building gets finished. I could get a 50% raise by switching jobs, but Management still doesn’t think I should get a raise because I missed a couple sprints.7 -
I got an F on my first Java assignment in high school. I decided to use a List to store stuff as opposed to his method of creating 8 variables and copy-pasting method calls to interact with them. Apparently he doesn't like students using concepts he hadn't taught yet.20
-
"there's a problem with your API"
Me: "why?"
"I get no data"
Me: "what response code are you getting?"
"405 - Method not allowed. But only on the /version endpoint"
Me: "Soo... What request are you sending?"
"POST"
WHY THE FUCK WOULD YOU SEND A POST REQUEST TO AN ENDPOINT THAT **GETS** THE VERSION OF MY API???!!!!
Me: "Read the documentation. It's there for a reason"13 -
I wrote a complex method for about 6 hours. Then I decided to test it via a console application...
It didnt print any output. After 2 hours of searching for errors I found the mistake: I never called the method. Guys... that's how you waste 2 hours of your life.10 -
Every time I have to Google a method/function, that I know I have already looked up and used a million times previously.9
-
Today I checked out a Repo on Github to help a friend.
Holy shit is this code crap!
Basically one single method contains the whole logic.
637 LINES OF PURE AND UTTER DOGSHIT.
SIXHUNDREDTHIRTYSEVEN LINES!
ONE SINGLE UGLY METHOD.
If I have enough time and energy, I will probably create a PR in 2021.
Some people... wtf.
(not my friend's code, he just uses the program)
(Edit: I had to remove the rant and censor names in the image)25 -
SUPERVISOR: You wrote this 140 lines method, it's too long. You should split it up, it's not readable
IHateForALiving: Bruh be serious, this is a single switch-case; I can't split it.
SUPERVISOR: Fine, I'll do it.
HIS CODE: He split the 140 lines method into 2 methods: the first is 4 lines long; it's a try-catch surrounding a call to the other method, 136 lines long.9 -
One of my colleagues at work has cooked up this amazing amazing method.. and guys brace yourself.. This code is on production..17
-
public void method()
{
// :(
}
instead of
public void method() {
// :)
}
bothers me more than it should19 -
// I can't be the only one...
public static void p(String inpt) {
System.out.println(inpt);
}
...
p("That much typing is unjustified.");13 -
If you ever come across a Java codebase with capitalized method names, RUN. I should've taken this advice years ago.
-
And here Ladies and Gentlemen, we see some Code I hatte to discover.
(Actually the same method get's called)9 -
So our method of complying with user removal requests for GDPR is:
audit.record("user {user.name} removed their account", serialize(user));
user.delete();
🤦8 -
When you spend 15 minutes writing the code, and 4 hours coming up with the perfect name for the class/method/variable5
-
So, should I refactor this into a .greatGreatGrandParent() method, or should I just go hang myself?
(Thanks former colleague for this gem)10 -
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
-
Deciding a domain or project name, got to be the next worst after naming variables and exposed method names14
-
My code be like:
"Call the method cronk...
WROOOONG MEEEETTTTHHHOOOODDDD!!!
Why do we even have that method "2 -
Yesterday I had to ask a classmate what the arguments of a method were (no documentation).
He said: "Uhmm it doesn't matter in which order you put the arguments into the method?"
No more to say.5 -
When the method name was too long and it's like describing the entire function.
Like getUserByUserIdOrderByAgeAndHaveAtLeastOneChild ()
:)2 -
Method 1:
1. Read others' people answers on wk70
2. Apply
3. ???
4. Profit
Method 2:
1. cd <ProjectName>
2. git init
3. dotnet new sln
4. dotnet new console #or webapi/lib
5. code .
6. git commit -m "Initial commit"
7. git remote add origin <github link>
8. git push origin master -u
9. profit1 -
Pet peeve of the day: People littering code with comments that repeat already obvious method names.
// Submits public key password
SubmitPublicKeyPassword(string psw)
{
//...
} -
My professor asked my to write a method that recursively reversed() a linked list. Wrote an iterative version with the same name and called it in the recursive method. How I felt after she wrote 100 for my presentation...6
-
Editing this method for half an hour. All of a sudden I realized I was editing the wrong method. This was me.
*Slowly presses CTRL-Z 100+ times*4 -
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 -
I inherited some Java code from a guy that thought you could only return strings from a method.
So how did he ever pass anything other than a string, I hear you ask? He had a (hand crafted, using no libraries, and not escaping anything properly) toXml() and fromXml() method on each object.
Yeah...15 -
No IntelliJ, just because my API CLASS has an unused method, doesn't mean IT SHOULD BE MADE PRIVATE!2
-
Explaining what a method does:
"""Python has docstrings"""
/** Java has javadocs */
SwiftHasSuperFreakinLongMethodNames()
Seriously Apple...7 -
How to teach a 5 yr child to code?
The method is simple you don't need to teach him to code just help him to understand the method to execute a task. It took me years to understand that coding is a way to express what you want to say- the method and also is our expression. So, if you can help him/her to understand what to express, then I believe the method on how to express is totally unworthy. He/she can say printf("I know this") or print("I know this") or #I know this or he/she may create a new language.
Which you might call: The Baby's Code in future
If you like it do ++7 -
My friend ask me what this method do?
Me : It's self explaning method bro ;)
Friend : doNothing() ???? 🤔🤔4 -
Spent an hour and a half renaming a method everywhere in a project from `feature_name` to `feature_name!`. There are a lot of constants, symbols, and other methods that use "feature_name" as a prefix (plus comments and spec descriptions), so was a little more difficult than normal.
Should have taken like 5 minutes with a proper IDE refactor tool. but noo, it was too difficult for RubyMine. wah wah wah. Stupid thing. Not even the search tool was useful -- it's limited to 100 results, and there were around 250 for that substring.
I ended up having to run specs repeatedly to find all the remaining instances, which took freaking forever. blahhh20 -
I fucking hate chained methods. Ok, not all of them. Query things like array.where.first... that stuff is ok.
Specially if it's part of the std lib of a lang, which would be probably written by a very competent coder and under scrutiny.
But if you're not that person, chances are you'll produce VASTLY inferior code.
I'm talking about things like:
expect(n).to.be(x).and.not(y)
And the reason I don't like it is because it's all fine and dandy at first.
But once you get to the corner cases, jesus christ, prepare to read some docpages.
You end up reading their entire fucking docs (which are suboptimal sometimes) trying to figure if this fucking dsl can do what you need.
Then you give up and ask in a github issue. And the dev first condescends you and then tells you that the beautiful eden of code he created doesn't let you do what you want.
The corner cases usually involve nesting or some very specific condition, albeit reasonable.
This kind of design is usually present in testing or validation js libraries. And I hate all of those for it.
If you want a modern js testing lib that doesn't suck ass, check avajs. It's as simple as testing should be.
No magic globals, no chaining, zero config. Fuck globals forced by libs.
But my favorite thing about it that is I can put a breakpoint wherever the fuck I want and the debugger stops right fucking there.
Code is basically lines of statements, that's it, and by overusing chaining, by encouraging the grouping of dozens of statements into one, you are preventing me from controlling these statements on MY code.
As an end dev, I only expect complexity increases to come from the problems themselves rather than from needlessly "beautified" apis.
When people create their own shitty dsl, an image comes to my mind of an incoherent rambling man that likes poetry a lot and creates his own martial art, which looks pretty but will get your ass kicked against the most basic styles of fighting.
I fucking hate esoteric code.
Even if I had to execute a list of functions, I'd rather send them in an array instead of being able to chain them because:
a) tree shaking would spare from all the functions i didn't import
b) that's what fucking arrays are for, to contain several things.
This bad style of coding is a result of how low the barrier to code in higher level langs are.
As a language or library gets easier to use you might think that's a positive thing. But at the same time it breeds laziness.
Js has such a low learning curve that it attacts the wrong kind of devs, the lazy, the uninspired, the medium.com reader, the "i just care about my paycheck" ones.
Someone might think that by bashing bad js devs I'm trying to elevate myself.
That'd be extremely stupid. That's like beating a retarded blind man in a game and then saying "look, I'm way better than this retarded blind man".
I'm not on a risky point of view, just take a stroll down npmjs.com. That place is a landfill. Not really npm's fault, in fact their search algorithm is good.
It's just the community.
Every lang has a ratio of competence. Of competent to incompetent devs.
You have the lang devs and most intelligent lib devs at the top. At the bottom you have the bottom.
Well js has a horrible ratio. I wouldn't be shocked to find out that most js devs still consider using import or await the future.
You could say that js improved a lot, that it was way worse beforr. But I hate chaining now, and i hated back then!
On top of this, you have these blog web companies, sucking the "js tutorial" business tit dry, pumping out the most obscenely unprofessional and bar lowering tutorials you can imagine, further capping the average intelligence of most js devs.
And abusing SEO while they're at it, littering the entire web with copy paste content.2 -
Spent a couple hours writing a new feature yesterday, and finished it only to discover that somebody lazily wrote the global method that my feature was utilizing. Emailed them and told them that I completed the feature and asked them to fix the bad method. Figured that I wouldn't commit my code changes until he fixed his method. He proceeds to fix the method, and then completely redoes the feature I ALREADY TOLD HIM THAT I FINISHED. He removed me from the backlog story that I was assigned to and did the feature the exact same way I did. Motherfucker I already told you that it was done, you just needed to fix your lazy shitty global method. You did twice the work and wasted my time. If you wanted credit for your work, that's fine -- you could've created a new story to fix your method. Now I've wasted hours of my time writing a feature and then reverting the changes because you couldn't follow directions
-
I don't use rubber duck debugging method. I use the "I really need the money" debugging method.
Works perfectly!1 -
I hardcoded credentials into source code because I was too lazy to write the method to read them from the database properly.1
-
THIS FUCKING DEBUGGER IS IGNORING MY FUCKING BREAKPOINTS
GO TO HELL YOU PIECE OF SHIT
AND RSPEC: FUCK YOUR LIMITED METHOD HIT-COUNTING BULLSHIT! ONE HIT-COUNT PER METHOD FOR THE ENTIRE SPEC IS NOT GOOD ENOUGH!
FJA;KLGAKLGJFKSDHG17 -
Hate it when people call themselves a Web Backend developer and all they know is POST and GET method.😡4
-
Friend: why do I get this error help
[I check the logs]
Me: uh,its a OOM, did you allocate enough memory for GC?
Friend: wait hold on
[changes a method]
[works]
Friend: I shouldn't use this experimental method
Me: Cool man blog it2 -
different kinds of doneness:
- The German kind: The method is thought through, implemented, documented, errors are handled and thoroughly tested.
- The "other" way: The method is there ... somewhere3 -
When I get stuck I usually try a variant of the duck method. I find someone not involved the project and explain my problem to them. I always figure it out before I finish explaining3
-
- What did a Java static method accused of criminal possession of a weapon said in his deffense?
- "THIS does not belong to me!"1 -
Nothing like writing summary comments on methods to make you feel smart. It's like:
<summary>
ObviousWellNamedMethod is a method that does obvious well named thing
</summary>
<param name="WellNamedObviousParameter">Represents the well named obvious thing used in the obvious well named method</param>
I hate coding standards sometimes.4 -
What the cinnamon toast fuck is this?!
This dude combined template literals and the good ol' fashion string concatenate method. But whhyyy9 -
I was fixing an issue where I have encountered a Java class written by a recently hired senior developer with 1K+ lines of code.
Inside that class....
One Method => 1K lines🙄🙄
I don't know where to bang my head now😐😐6 -
When you find out the last 3 hours of your life has been wasted finding that some numbskull confused the Round method with the Random method in the currency conversion logic1
-
import time
time.travel('now-10 years')
self.slap()
time.travel('now+10 years')
Does anyone know how to get the travel method working?3 -
Can GET method be renamed to "accio" and DELETE to "Avada Kedavra"?
Harry Potter on my mind today.1 -
So the incompetence of this knob-head are unbelievable, so in our company there's a particular method that required to return object specific way like
{
'a' : 'b',
{
'c' : 'd',
'e' : 0,
}
};
}
which somehow will be use everywhere in the project, I decided to create a constant class therefore anyone can use it and prevent redundant code. (re write the same thing over and over again). He decided to tell me to rewrite the same method for every-time I needed to return data.
My method is to avoid writing the same thing in repetition , that is why I place a method in a constant class where I call every-time I need to return those data in the specific way.
But he prefer writing it in repetition. OMG13 -
Spent half an hour arguing with my teammate about where a method should be.
Then we discovered that both ways were wrong.. -
That moment when I have to give my method a name, so I wonder if it will return a boy or a girl, and I check every baby names book at the library.
But none of them suit my need, I don't see myself calling a Mathew or Charlotte in the future.
I feel the stress in my bones, beneath my skin. The method is almost complete. And then it comes, like a shooting star through my mind.
There it is.
I shall call my method:4 -
The Fibonacci sequence also known as he fingerprint of God is the most efficient memory maintenance method in computing as well
#weirdcode11 -
My favorite method to study a new tech or framework is to make a little research and try to write an article.4
-
Attracted by Python's powerful built-in libs, I learned it by myself. However, its naming convention is confusing me. It even can't correspond to itself in an object. For example, a dict object has a method named has_key and a method named popitem. So I need to check up on the function names frequently.6
-
My code be like:
Call the method cronk...
WROOOONG MEEETTTTTTTHHHOOOOOOOOOOOOOODDDDDDDDDDD!!!
*climbs out of alligator pit*
Why do we even have that method -
I asked an intern to write JUnits to increase test coverage and he mocked the method itself which was being Unit tested.2
-
This Vue project I took over uses document.getElementById(...).innerHTML = stuff in its async created method.
That's the rant.9 -
Just another day of trying to figure out The purpose of a public method with zero documentation and cryptic variable names🙇🏼🙇🏼🙇🏼6
-
You just know that feeling when you finish writing the code and its probably the best method you could think of doing!
-
When you're debugging a method called
GetPatronByPatronId(id) and see these lines of codes at the end3 -
RSpec:
Undefined method 'agent_authorization=' for #<Periodic::Payment:0x000000C0FFEE>
Rails Console:
> Periodic::Payment.last.agent_authorization = "PPD"
=> "PPD"
> puts "Hmmm."
=> "Hmmm."rant oh rails you drunk rspec i've spent two hours on this already rails too tired for your shenanigans11 -
After searching for half an hour in some legacy code for the corresponding opposite of a method "addSomething()" I realised that the method was there hiding in plain sight and used in several places. The name was not "removeSomething" as expected, but "addRemove()".1
-
I had a mid semester test and there was one question on how we should create class names. I was very tired, so the test started like around 9-ish. Instead of saying Camel Case method I said Camel Toe method.
Makes me wonder how did they come up with the name "camel casing" anyways?4 -
#5
Of course the previous dumbass dev could not use the findOrFail() method, because he didn't used any models.
But he just implemented his custom get404() method.
😓🔨2 -
I was working with a stable installation of an elaborated platform. Some plugins were installed. After upgrading the installation by 2 patch level the customer registration was not working anymore.
In these two patch level a method in an interface got an additional optional parameter which had a major impact on the behaviour the implemented method. A plugin decorated the implementation without knowing about the new parameter. Therefore when calling the method the decorating class did not pass the new parameter in to the decorated implementation and the fallback value was given instead.
The caller expected the method to do something and did not branch into an alternative way but the default value disables the expected behaviour. Eventually nothing happened.
Breaking changes in patch levels woop di fucking do.2 -
Create a copy of a huge method, I mean a complete fucking copy of a huge method, to change one small piece just because the behavior needs to be different in his specific case. Then, when the method is called, put an "if is my case, call my fucking copy".
Maintenance? What's that?1 -
An identity platform where you can find each other, get the other's public key and preferred contact method. And the entire key exchange and choice of contact method are negotiated automatically. No vendor lock in, encryption happens on your own device. Effortlessly and securely communicating, no searching for skype name, email, phone number, setting up shit. It would just work.7
-
Cocktail for disaster:
- TDD
- Mocking
- Multithreading
- Averagely well written, testable code
- All tests pass
- One test methods still shows some vague stacktrace in a worker thread ❌ but the test passes ✅
- Run only that test method and no stacktrace.
So I've been pulling my hair for the last two days trying to figure out what was throwing in that test method. Turns out that thanks to the multithreading going on, some other, similar method threw the exception in parallel. And apparently a different test method was already running when the exception was finally caught.
🖕
When I discovered that, it was fixed in a minute. 😭1 -
When you find a method called GetCategoriesNewNew(). what does GetCategoriesNew() or GetCategories() do differently?!1
-
I created a class Log with a method d(String tag, String text) to replicate Android's log method in Flutter.
class Log {
static void d(String tag, String text) { print(tag + ": " + text); }
}
I replaced all 'print' into 'Log.d' in my project and I wondered why emulator kept crashing for the past two days.
Now I know..4 -
Been watching some videos on Algorithms and my mind bleeds. Do people who know this stuff really calculate complexities for each method they write?6
-
in college ages ago, professor was "teaching" us overloading in C++, he goes something like this:
"so you can overload a function by changing the number of arguments, argument types, or method return type"
I dare put my hand up: "emm .. you can't overload by just changing the return type"
"you can"
"but, but.. how would the compiler know which overload I'm invoking when I call the method?"
pause..
"it depends on the type of the variable receiving the method call result"
"what if I call the method without assigning the result to a variable?"
agitated by now: "ah these are complex compiler concepts that are too complicated blah blah"
although I was unhappy, it was useful to realize no one knows everything5 -
“Does it work? No.
But at least we have great method names.”
———
5 people just spend 15 minutes debating on how a method should be named. Including myself. This was the conclusion.7 -
So COSMOs hasn't implemented a proper clearing method for lists... Having to do this to clear my output list hurts!7
-
For everyone, who uses any IntelliJ based IDE: Ctrl + Click on a method or variable, you will see all uses of that var or method. If you are clicking a usage of it you will jump to the method reference, even from libraries or for example from the Java runtime library.3
-
senior: we have no reason to change/mutate this property, we don't need a setter method, just set it once in the constructor
also senior: there's no reason to change/mutate this value, but i want you to write a setter method for it3 -
My favorite method is the .split() method in Java. It simplifies things so much for so many situations for me even though it would be trivial to write this method on my own, I still love this method!
-
They call it security questions.
I call it social engineering backdoor.
I'm supposed to enter those questions after logging into my account and I'm not able to skip it nor to set a proper two factor method.
Well, fuck you. Did you ever thought about dying by a two factor method? Ever watched a Saw movie? You got the idea. -
When you have to edit a 100+ line method but you discover that it has 0 test coverage.
Feels bad :/5 -
The German Wikipedia article about brute force defines it as "decryption method" 🤔🤔😂
https://de.m.wikipedia.org/wiki/...2 -
I've been dreaming about an eat() method in, I guess, Javascript. It would accept a string as parameter and set the cursor position further by the width of that string in the current font and size without displaying the string. A bit like a span with FG == BG.
But the best was the debug mode: the characters would be printed, but a yellow duck would appear from the left and eat them in Pacman style.1 -
I've been working on an ERP system for several years and we had a module to record your presence time.
The code was absolute shit but at least the method names matched.
The method to record the end of your work was named "outhouseRecord".
One translation for outhouse seems to be a toilet outside. -
Lmfao, in a book teaching Java, there's a chapter that contains a class called AddMeth to illustrate adding a method to a class.
They could have used a better name, though..7 -
Went bug hunting only to land in a controller method that's 125+ lines long, riddled with side effects, and.... no tests!
-
Today, I fixed a dodgy unit test by stopping time.
(I overrode the time() method to always give the same result) -
After reading Clean Code principles:
Before you rename your method, remember to use the refractor option
😌4 -
When I'm having some issues, I use the Fenix Method on my developments.
BURN IT THE CODE AND BEGIN FROM THE BLANK ASH.1 -
So this is my first experience of shitty code written by colleague
God, for REST API she used ?id=<int>
Not only that,
if the route was /cms
she used GET method for /cms/get/?id= to get single record and
/cms/getAll again in GET method to get all records
Damn15 -
I just used Visual studio c++ for the first time. In comparison to intellij it just sucks, so many features are missing, im fighting with the editor all the time.. For example Code completion, visual studio suggests me the method name, i press enter, new line inserted, wtf? Apparently only tab is working here, next try, visual studio suggests method, I click tab, method name inserted but whithout brackets, omg. The standard shortcut for commenting out code is CTRL+K followed by CTRL+C, if you want to use the code again you need to use CTRL+K followed by CTRL+U. HOW STUPID IS THIS? Refactoring of code, e.g. Method names also sucks...5
-
> Mister BossDeveloper, I'm calling this method called "consoleLogger" and I'm not seeing anything in console, why is that happening?
> Mister IHateForALiving, it's redirected to some pm2.log file
The 180iq move: create a method, explicitly call it "PRINT TO CONSOLE" and make sure it doesn't print to console, ever.4 -
when you start using java again and can't figure out what's wrong all because of the stupid ".equals()" method1
-
onEnlightControllerActionPostDispatchBackendPluginManager
Who needs docs if you've got such speaking method names.2 -
I wanted to cry so much when I saw my original 2-method interface turns to have 34 methods of unrelated shits.
-
public static Map<Integer, List<Integer>> stuff(arguments) {
HashMap<Integer, List<Integer>> map = new HashMap<>();
method(map, otherVariables);
return map;
}
public static void method(HashMap map, otherVariables) {
map.put(things);
}
So... You know how to return a map from a method. Then why do you create the map outside the method and make it an argument that does not get returned, making it confusing because the map gets created empty, given to a different method, then returned, making it look like you're returning an empty map...
...instead of just creating it inside the called method, returning it and assigning it to a map in the calling method? Even if you think that would create another map (it doesn't), the compiler is intelligent and can optimise that away.9 -
Optionsbleed - HTTP OPTIONS method can leak Apache's server memory
https://blog.fuzzing-project.org/60... -
Today I've landed on a legacy project which still uses mail() method in PHP. Just gonna enjoy this one.5
-
Visual Studio : *No definition for the method Method with the argument of type int*
Me : Oh ? *F12 on method name*
VS : public void Method(int) {...}
M : There, so it should wo--
VS : *No definition for the method Method with the argument of type int*7 -
Why developer of c# (Anders Hejlsberg) when developing (TypeScript) not implemented method overloading and interfaces' methods implementation with same names.3
-
Spring JPA might be annoying sometimes...
public MyResult findFirstByIdentities_CompanyIdAndIdentities_UserIdAndFromDateAndToDateAndFormatAndIdentities_SourceAndStatusInAndCreatedOnAfterOrderByCreatedOnDesc(String companyId, String userId, Date fromDate, Date toDate, String format, String source, Collection<String> status, Date createdOn) {...}
I know I know, efficiency is weeping in a dark corner. Will deal with it later2 -
fuck, took me a whole hour to debug an issue in my game that causes the start menu to switch right to the game itself, only after an hour i realized that i named the start game method as a default start ( a default method that executes at the very start of the scene). feeling so dumb now.
-
I really like Julias typesystem, but method dispatch makes it easy to accidentally match against methods you didn't intend.2
-
I added a method to an interface. Was to lazy to find all use cases so I just hit Run and waited for the compiler to throw all places where the method is missing. #effectiveJava1
-
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
-
var dayInMyLife = function(data) {
var checkDevRant = setInterval(function() { openDevRant(); }, Math.random()*10000),
workday = (data.day.toLowerCase() == 'saturday' || data.day.toLowerCase() == 'sunday' || data.holiday == true) ? false : true;
if (workday) {
var schedule = {
'wakeup': '06:45',
'travelToWork': {
'time': '07:10',
'method': 'walking'
},
'lunch': '11.00',
'travelToHome': {
'time': '15:30',
'method': 'walking'
}
};
while (atWork) {
keepZeroInbox();
beAmongDinosaurs();
if (checkForProjects()) {
doProject();
};
while (noisyCoworkers) {
useNoiseCancellationHeadset();
};
};
spendPreciousFreeTimeWithFamily();
enterSleepMode();
}
}
var today = dayInMyLife({'day': 'monday', 'holiday': false});1 -
Write down the song you're currently listening to as a function/method call
I'll start with with this one
jump(us) // Let's jump5 -
Did a programming test today(written), a fking small box for a method with 15/17 lines and a full A4 to write a method with 5 lines maximum...
Just wtv.. -
Coding JavaScript... Makes an object, creates a method, Uses 'this', 'this' points to the object... Good...
Calls another method, uses 'this'... Now 'this' points to the window object...
Why... WHHYYYYY... :'(3 -
while(people say something){
Listen();
Smile();
Agree();
DowhateveRtHeFUckyouaregOintodoAnyway();
}
PS: that's some heavy method naming😂 -
Did I screw up or is it ok doing this?
1. Calling another method inside the same factory file
2. Calling a method from another factory file
3. All factory methods are static because they only depend on their passed parameter(s)7 -
That moment you find the method build is just a alias for the method new.
https://github.com/rails/rails/... -
Method passing as argument.
Fuck you who are doing that.
FUCK YOU !!!!
Use fucking STATIC !!!!!!!!11 -
I haven't looked into the isUserAMonkey()-method in the Android library, but sometimes I feel like this must be it:
return true; -
When, after trying and debuggin everything else, I realized in the shower, that I forgot to annotate my method.
-
Working with Yelp API.
Had a working method to return Restaurant List in a separate project.
Moved that code to a new project.
Spent 3 hours trying to figure out why the tried and true method was returning an empty list.
I forgot I had also made a helper method in that other project to turn km into meters.
Instead of searching a 5km radius, I was searching a 5 meter radius...
(Prior to that I mixed up my longitude and latitude, and searched for pizza places in the antarctic. Spoiler: There are none.) -
class test:
def __init__(self, x):
self.x=x
def printer (self):
print self.x
class new(test):
def __init__(self, y, z):
test.__init__(self, y)
self.y=z
def printer (self):
test.printer(self)
print self.x
super(new, self).printer()
print self.y
N1=new(1,2)
N1.printer()
Is this correct in all respects ??
If erroneous, where ??3 -
It took me about half an hour to get why pressing the button didn't start the method... Do you see it?5
-
When you decide to learn JavaScript and you make a object and realize it is a method, nothing like Java objects😑9
-
So this is the scenario:
A Database Error Occurred: You must use the “set” method to update an entry
This is the code:
$this->db->where('id', $id);
return $this->db->update('contractors', ((array) $contractor));
And it gives me the error A Database Error Occurred: You must use the "set" method to update an entry.8 -
if you ask me how the method i wrote works because you don't understand it, and you don't let me finish my sentences without interrupting me, then you deserve to be punched.
LET ME FINISH WHAT I HAVE TO SAY YOU DUMB SHIT
I WROTE THAT FUCKIN METHOD
I KNOW WHAT IT DOES AND WHY -
I consider myself not all knowing, but even I understand that if there is a base-class, which requires its derived classes to implement a method to return, for instance, the EndOfLive date for the instance of that class and one chooses to implement that method to calculate and return a date, which isn’t always the right date, and then assume that who-ever calls that method magically knows that the result should be re-calculated and converted using an obscure, undocumented correction-method, located somewhere in a undisclosed utility, outside of that class which the person created not to long ago, that there is something structurally wrong with that implementation of said method and something structurally wrong with that person in general.
If a method should return X, then don’t return Y and expect that everybody magically knows that the result needs to be converted to create X. But, FFS, return X! -
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 -
A tale of wireless cracking:
Have learnt brute force method. Evil twin method: check. WPS hack: Done.
What worked?
nameOfThePlace@123
smh3 -
How do you balance what your boss wants, and what the client wants?! 😣
We had design and requirement discussions with clients and they said they want method A.
After doing internal design review and writing up documents, client agreed and sign off on it.
However, during last moments of development, I encountered a minor issue in the design and brought the team together to discuss about it.
Boss went on about how his idea, method B would have been better and is what the client wants, etc. Mind you, method B is quite different from method A that clients want.
I explained to boss that his method is different from what the client wants and also what have been documented and signed off.
He told me he doesn't need comments of such from me and they can always tell the client that method B is better and should be the way.
I feel so fucked because we are currently rushing with only 2 days left in our deadline and there will not be a bonus if we are late.1 -
I use this little guy as a rubber ducky now. He's useful when I'm trying to study stuff which is particularly hard to remember.5
-
What's the most popular online payment method in Malaysia? I'm Chinese developer, creating an ecommerce product for Malaysia.3
-
Feeling useless over something probably ridiculously simple and straightforward.
Test written: check
Route defined: check
View created: check
Controller method defined: check
Testing... Error: Controller method not found
Save me stackoverflow!!3 -
Have you already used fullscreen video as a background/intro screen in one of your designs ? Do you have a preferred method of implementation ?1
-
TIL meth is abbreviation for method and not anything else.
Thought it's very fancy name of some python built-in. Meh.1 -
I kind of hate people who use the JavaScript array method Array.reduce(...)
It rarely makes sense but makes code unnecessarily complex to read.12 -
Tried to change a overriding method in my C++ class to override another method using "refactor - rename" from my IDE, ended up changing the header of the parent class which is not even in my source tree.
-
When you saw the code of the whole product, and the best way to describe is the best example of a bad coding practices.
-
Why when adding payment method (debit card) in Google Play it requires home address?
Why i need shipment address for a digital app?2 -
Just another method name "givePromoPointsToCustomerWhoBoughtTicketByPaymentMethod".
Why the hell not :) -
Java has the worst kind of union type where every method returns the union of Exception | null | value.17
-
3 hours in to work and I've already wished Java had two more features: native tuples and partial application in method references.5
-
Writing on a small c programm that somewhere calls a method that has a pwrite() in it.
I now wanted to know how long that method takes.
So I add a:
startTime = clock();
In front of it.
The funny thing is, that makes the pwrite fail.
I remove it, it works.
I add it, and it fails again.
What the actual fucking hell.3 -
I used a PHP procedural method of Library Management System, is it still deserve to upload it online?6
-
I want to break my win 10 password which I have forgot . I know one method of breaking the passcode by using bootable Device . Is there any other method to other than using bootable device for breaking the passcode? please suggest some technique9
-
TFW a method is acting weirdly, and after much investigation you find that you forgot to change the contents of the method when you copied it.
-
I was on a call with a colleague and we talked about my next tasks.
He was building some stubs and shared his screen with me so I knew what to do after he pushed these changes.
We talked about refactoring one method and he wrote "throw new NotImplementedException()" in the first line of the method and said: "I'm evil ;)". -
Is it just me or anybody else doesn't like the React render method. I really think it messes up the code readability.2
-
Best way to measure code quality is by using wtfps method. Less "what the fu#*s per second" you get, better the code is.
-
Working on weekend, shitty internet and trying to find some method like .getCurrentProductQty(), only to find out that there is no such method, fuck me, fucking useless api3
-
What’s your favorite method to deal with using and securely storing usernames and passwords?
Example: parsing information from a part of a website requiring a login
Everyone I talk to at school has their own different method and now I’m curiously looking for as many methods as people are willing to share13 -
write comment above block of code
or pull block of code out into method and work the comment into method name11 -
Why the fuck is it not possible to pass a pointer to a multidimensional array in C++? Like who the fuck though a pointer to a pointer to an array was an elegant solution? I still can’t get my head around how to access the fucking array!!! And this is for a project too that solves poisons equation using the finite difference method none of which was EVER explained!!! Does anyone have a clue about this??????
-
Todays website fail:
Notice: The called constructor method for WP_Widget in FollowMeWidget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/vapingst/public_html/wp-includes/functions.php on line 3893
Notice: The called constructor method for WP_Widget in FooterContactUsWidget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/vapingst/public_html/wp-includes/functions.php on line 3893 -
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
-
My fellow worker adds amazing method names in JS:
makeDataTablePagingMuchMoreComfortableIfNeeded
arraysHaveObjectsWithSameAttributes2 -
Am I the only one to think C#7.0 Is screwing things up. I mean like a method inside another method?? WTF?3
-
Just to clarify my previous rant:
In this case, refactoring meant changing class, method and variable names -
That kind of devs that creat unit test for a method never used in code instead of deleting it. #CoverageGoals
-
"Re-org" is the legal method used by companies to merge entities in order to increase workload and fuck you in the butt!3
-
I had a splash of inspiration. I would like to develop a method for analyzing unknown bitstreams of data. The method would involve determining the format of the data by trial and error machine learning algorithms. This would allow determining data types and byte formats and meanings of streams of data. Could be useful in data forensics. I would call the method: heuristic translation machine learning. I am currently developing code that does this. It will be fun to learn about reinforcement algorithms.5
-
recently i discovered edmonds-karp implementation of ford-fulkersion method (to solve my coursework problem) and i can't get over how beautifully it works!
-
When you add a new method, two unit tests and the build breaks because you didn't use constants the way sonarqube wanted....4
-
Hey hi guys I m new in this app
I have question for you
Design a method to accept only no which
Is <10.8 -
My teacher was shit, no experience, no knowledge, no nothing... Although I stil maintain that self taught is a valid method
-
whats your code sprint soundtrack? -- for me its alot of propeller heads, Crystal METHod, & Dual Core
-
Coming up with tests that show we have met the requirements on the project, some of the requirements are "Use method X" to perform this computation, boss says "we can't simply refer to the documentation/source code demonstrating that this method is used" ... WTF....
-
was doing a matrix determinant solving and came across this method of solving it via gaussian elimination. just one question, WHY?
there's the simple method of solving them, why to use complex stuff. ://6 -
Still on this : https://devrant.com/rants/1430952/...
So I understand that on the framework of the company, to store data in your cache, you use a method, called
Load.
So yeah, that seems kinda okay somehow. But this method is called by another one called GetOrLoad, that will get or load the data.
Is my english bad or is it really ambiguous given that context ?2 -
I know lets create a method that does nothing like this other method, but call it the same thing with 'get' in front. Won't confuse anyone at all that3
-
PDPs are just a manipulative method for the capitalist to find out how you could get more exploited.8
-
Online resources that discuss testing recommend the following pattern when writing your unit test method names:
given[ExplainYourInput]When[WhatIsDone]Then[ExpectedResult]()
This makes developers write extremely long test method names.. and this is somehow the acceptable standard? There must be something better.. I think I've seen annotations being used instead of this.5 -
The more I learn, the more easily I get triggered at little things.
Read heapq python documentation to implement a min priority queue
Intuitively wrote heapq.push and heapq.pop in my code
Got to know that it's actually heapq.heappush and heapq.heappop
TRIGGERED! -
compareTo(Obj obj) !!
For me !
Most of the custom classes are written with a distinction on defining this method. -
How to create rest API routes in Laravel 5.4
I want to call controller method through my API route3 -
Fustration? Every time, I'm not good at design, from choosing colors to aligment.
I always end with the try and error method to get something works. -
I usually search for a new method, factory, or design when what I know doesn't work or doesn't work well.
-
What I use to stay productive (and works):
1. Pomodoro method
https://youtu.be/dnt2lTdcn8g
2. Arnold Scharzenegger's speech
https://youtube.com/watch/...5 -
Last week i met my teacher for my final project. He said i must compare 2 method that written in journal with the program that i make. I said okay i will do that.
Today i showed him the oop and mvc journal he said both of then is not a method. Method should have a calculating formula you must compare a method that you can calculate and make a new formula with both of the journal.
Can someone tell me if that is wrong or not? Im confused. Is oop and mvc does have calculate formula? As far as i know oop and mvc only have relationship between the object.1 -
Why use vue pagination when you can create pagination using Laravel paginate (https://cloudways.com/blog/...) method?1
-
```
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
```
(ノ≧∇≦)ノ ミ ┸┸)`ν゚)・;’. -
If (method-exists (devrant->rantAboutBreakingUpWithGirlfriend ()){
Echo "This seriously sucks %#$@£¥";
}else {
Return false;
} -
Frick frack facks! I can't get my efing method to work well! **fck it I'm going dota2 to get even more frustrated**
-
to method java doc or not to method java doc
i'll do whatever we're supposed to , but i dont see consistency in industry or my slave drivers
i remember when i first did i was told not to, but then a new senior hire comes in does it and nobody bats an eye1 -
Any recommended react native tutorial? i am a beginner and i wanna learn react native using project-based method
-
Do companies still use the Merise method? It seems a bit off to me.
I am learning it at school, but it makes many tables that I think could be merged into one...3 -
Just found a service method that saves an entity that isn't related to that service, that returns a ModelAndView object. I think my brain just broke. 1) Single Responsibility Principal. Do not save ObjectB in ObjectAService. 2) Services should not be aware of your view context. That's what controllers are for. Do not return a ModelAndView from a service method.