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 - "methods"
-
If you name your methods a, b, c, x, z, etc
Then I hate you.
If the idiot wants me to help then use proper method names!23 -
Public class UnnamedChild extends Person implements Mirziteh {
public UnamedChild(String fName){
super();
this.fName = fName;
}
//methods removed for brevity
}26 -
Sad story about refactoring.
Programmer: I cleaned up the codes, extract reusable methods, reduced repetitive code and improve overall readability and maintainability.
Manager: why the page still display the same.
Programmer: ...7 -
Me 6 months ago: "This is fucking genius. Beauutiful. Look at that code. See how I did this? Wow, I love it. Fuck I'm good"
Me Now: " What. the. ffuck? Wtf is this? What was I thinking? Goddamn. "
*reduces 3 methods and 37 lines to 2 methods and 8 lines*
Well at least it shows I'm still learning.3 -
1. Find bug
2. Try 3 methods of fixing
3. All fail
4. Tell yourself you're trying for the LAST time then you'll go on to something else
5. End up trying 5 more times
6. Repeat step 4 20 times
7. Cry
8. Finally take a break
9. Return next day, try another method, it works instantly
FML!6 -
Today I was searching Android docs and found something interesting:
To write Android log statements, you use the android.util.Log class with the following methods:
Log.v()
Log.d()
...
Log.wtf() 😮😮😮
According to Google it seems to mean "What a Terrible Failure".
WTF?!?!?!12 -
Java: Ok, any ideas on how to make women more interested in us ?
.
.
.
C++: Make more exceptions ?
Python: Redefine our methods ?
C: Stop treating them like objects ?
.
.
.
*Java furious at C*
.
.
.
*Java throws C out of the building*11 -
If you're a developer that enjoys 200+ line methods with 5+ return points, and literal strings all over the place, please punch yourself, hard.7
-
Just spoke with another teams developer. (She's using Java)
Her: so we get a json object from your service, I want an array
Me: well that's not what you said in the specs... And it's not hard since it's just a Map
Her: what Map? It's JSonObject I need an Array
Me: give me the library your using..
Her: here...
I Google the documentation and methods and paste the link and the methods to use:
-length (she also wanted count)
-toJsonArray
This ain't JS, just use the . operator and go thru all the methods' docs... Or learn to use Google8 -
Had a friend who was forced to document his own code. He gave up after an hour of trying to figure out what methods 'somethingsomething()' and 'somethingsomething2()' did...3
-
NO JIMMY.
YOUR 45 IF/ELIF STATEMENTS ARENT FUCKIN A.I.
NOR ARE YOUR 25 METHODS THAT RETURN A STRING A FUCKIN BLOCKCHAIN
STOP FUCKIN USING EVERYWHERE THOSE FUCKIN WORDS
FUCK OFF2 -
The only way to feel comfortable coding on PHP is using classes and methods, I feel like home (Java)9
-
My boss has no idea what he is doing. Scary for a senior programmer, with 20 years of experience. The guy keeps calling methods statically, in a object oriented project. And can't understand why it won't work.4
-
Me: Bro look, I have learnt so many things from the past couple of days.
-Introduction
-Data Types
-Variables
-Arrays
-Operators
-Control Statements
-Classes
-Methods
-Inheritance
-Packages
-Interfaces
-Exception Handing
-Multi-threaded Programming
-Enumerations
-Autoboxing
-Annotations
-Generics
My senior: Congrats on finishing up the basics
Me: Those were just basics???...///!!! 😜3 -
Professor: Envision a person as an object, what methods would it have?
Student: Run
Prof: Yes, good example.
Other student: Jump
Prof: yes, people also do that
Me: Die
Prof: Well yes, but I'd prefer we don't take this any further27 -
Different girls follow different methods to slow down their ageing process --
Health trainer -- Exercise and Yoga
Normal girl -- Cosmetic products
Programmer girl -- Having a tattoo of Internet explorer3 -
Reverse the given string without using inbuilt java methods... 😭😭😭😭
Every time you will get this question even when you have more than 6 yrs of experience 😡11 -
A big part of the code of my project is done in French
all but one small part, which is English. But uses also some French methods and names.
So when you have an error because you put "Objet" instead of "Object" because it's in French3 -
If naming classes, methods and variables in your (not english) native language seems like a good idea, please get another job.9
-
I've taken over a project with legacy code, this is one of the methods:
private bool areEqual(string value1, string value2)
{
return value1 == value2;
}
Also, the opening brackets are on a new line10 -
while(freeTime == true) {
if(iHavePlans == true)
waitUntilDone();
/*
* TODO: Fix bug that causes
* coding to call the gaming and
* relaxing methods so often...
*/
code();
}7 -
001 REM Code review
010 PRINT "Nitpick nitpick nitpick nitpick nitpick"
011 GOSUB REFACTOR
020 PRINT "This function is too complicated, break it up"
021 GOSUB REFACTOR
030 PRINT "Why do you have three methods for this? Put all the logic in one method."
031 GOSUB REFACTOR
040 GOTO 020
041 REM ARGH
998 PRINT "Looks good."
999 STOP8 -
Sometimes I want to fuck customers with 30 samurai methods ! A few minutes ago, some one called me and asked me to make a website like Google for him with 500$ 😑14
-
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 -
Developers created IDEs with intelligent code completion and languages provide users with an annotation syntax to document their methods.
And then there is Python, nuking all the efforts of our ancestors by dynamic typing. And they are smug enough to call this laziness duck typing. "If it squawks like a duck, swims like a duck, walks like a duck its a duck".
Shit no, it ain't a duck because a fucking goose does all the same but is a mean bastard compared to a duck. You might pet a duck but only the craziest will attempt to pet a goose.
Fuck python and undocumented methods in particular!5 -
Fuck inheritance.
Looking for variables and methods in inheritance chain is like walking in Thailand and looking for a girl hooker on a street full of ladyboys.
You can find one but you never know.8 -
Php array methods, all of them, or should i say hash methods
They should fix them. I mean they should fix placing of callback and subject params, because.
I mean
array_filter(array, callback)
array_map(callback, array)
Or they should make array a object like js4 -
My boss sucks really hard at English... I would not have a problem with it if he didn't insist on naming methods and variables with a non-sense English that he thinks is right...7
-
Can https be decrypted easily?
(Or even by spending some time)
Plus what other security methods banks apply to prevent theft of sensible data?
Do they encrypt data using thair own private key thet is changed automatically?29 -
doUploadFile();
doActuallyUploadFile();
doReallyUploadFile();
doUploadFileToServer();
imagine calling these methods in this order so you can upload a file to the server4 -
After 20 minutes refactoring code and changing methods, you realize you have been editing the wrong file -.-'1
-
I’ve become the person who I said I’d never be. Writing spaghetti code in spaghetti project instead of trying to refactor methods and classes where I’m adding new features.
Welp. They want it “yesterday” , they’ll have it yesterday.
But hey, the money’s good.8 -
Found out today that the company wants to hire the consultant that thinks that unit testing is a waste of time, CI and code coverage metrics are useless, DI is mumbo-jumbo. But 500+ line procedural methods are fine, you just start the method with a small essay of a comment on what it does...6
-
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 -
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 -
after 20 years of programming i finally understand objects, classes and methods. what a waste i am!9
-
Managed to reduce a file from 1155 to 288 lines just by converting the 50 or so methods all calling the same API library with similar setups to use one line helper functions.2
-
Dfox and trogus I'd love to subscribe but are there going to be additional payment methods? As in, at least some people on here do not have Google play services and although i do, that's solely for notifications, I'd love to remove that stuff.20
-
We learned Java in school this year. Everyone who did not comply to the coding style defined in some stone-age books, got a bad grade, including me, who rather used a "normal" style everyone uses. They thought us this:
CLASSNAMES, Constants, MethodNames, VariableNames, etc.
Worse than that, they used german names for pretty much everything including classes, variables and methods.9 -
Had a classmate who loved the innuendo "flick the bean" so whenever he created a Bean class, me made sure to name one of the methods "flick" so he could call bean.flick()
-
me on my cover letter: i'm an experienced programmer
me irl: knows exactly two languages, has to google how to write basic methods2 -
When you have to write methods that can only be used in a specific way only just to make sure your coworkers aren't fucking shit up.3
-
I have a really huge admiration for people who works for the free software, those who made very good tools for almost everything. The Debian community, the FSF.
I'm also admirative in front of those who used computering as a science and made big discoveries in AI, compressing methods, pentesting...
I'm wondering how it is to work in these two worlds?2 -
I like coding in a way that anyonr who comes into my code base can understand whats going on. That way more people can maintain the code base.
However, I HATE having people in my code base. Since they leave shit undocumented, and have 10 variables called "data" "items" "o" "p" and another 20 methods called "processData" "convertItem".1 -
Our Professor gave us a predefined Datebase with access methods. The whole database is full of
value == 0 ? false : true
How can this guy teach programming languages when he can't apply a simple != operand6 -
The worst was an open source project I tried to look at.
It was written in Turbo Pascal.
I am not sure, never really got so far, but it looked like it was one single class with hundreds of methods and hundreds of instance fields for data.
Almost no data objects, if it needed for example 4 sets of 6 variables it had 24 instance fields and in some instances 4 different sets of methods for accessing said variables.
Around there I stopped looking ;)3 -
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
-
Sometimes, when bugs get a bit out of hand... You have to counter them with better debugging methods 🐥2
-
Uhm... am I the only one who thinks this is a vague as fuck answer and should've taken more than one sentence to properly inform users of their data protection methods? It can't be just me...2
-
Fuck jQuery. The only reason I see anyone using it legitemately is because of backwards compatibility. Almost every jq method is either native js or native css. The problem is, some devs become practically dependent on a library. By then, they are no longer js devs. They are jQuery devs. When you find yourself going to the docs of a lib before native methods 9 times out of 10 you've gone past the turning point. When you find yourself including jQuery instinctively, you're gone. StackOverflow is a great example of this:
Question - 1 up
Pure JS answer - 0 ups
jQuery answer (same length) - 2 ups and accepted
Come on man. It's 2018! We shouldn't be writing jQuery anymore. Native methods ftw!15 -
Forgive me for I have sinned.
I feel like I need a bleach shower after having had to write these methods in my Dart codebase11 -
function getUnstuck(){
var methods = [
"getting on devRant for a bit",
"adding new functionality to your program",
"refactoring a function or two",
"working on a personal project for a bit",
"zoning out on some music to clear your thoughts",
"getting up from your desk and going to talk to someone",
"getting more coffee",
"taking a \"lunch\" break at the bar",
"just fucking leaving for the day"
];
return "try " + methods[parseInt(Math.random() * methods.length)];
} -
Programmers are the digital equivalent to Wizards.
Funny thought:
Just like a wizard manipulates the physical world, creating spells that obey his intentions, a programmer manipulates the digital world, creating processes and methods that obey his will.
There are quite interesting similarities.... Now where's my digital wizard cape!?5 -
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
-
For the first time, wholeheartedly prepared for an interview for a major IT firm, only to be rejected coz i didnt know what methods are present in a library i had never used!! Wanted to throw the guy out of the window!! 😑3
-
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 -
When your project partner is an absolute coding genius.
But writes spaghetti code with methods named function1, function2, ... function20.
How the fk am I supposed to read that code?!?!?!
But I’ll give him credit, the program is works and is amazing. It’s just not possible for anybody other than him to understand.7 -
Making games for my TI-Nspire CX CAS is so much fun!
It's so simple but you can do a lot with it. It's also a bit of a challenge because you don't have a huge API with lots of methods and events. You have to use what you have.
Oh btw you can program it with Lua!15 -
No, my friend, you shouldn't put all the methods into a View Controller. Also 4000 lines in a method seems also a bit too much. No wonder you hate unit tests.
-
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 -
Me, consulting for a huge entertainment company:
Why do you guys have a 500 line method? And why is half of it so nested that it's indented half way across the screen?
Them: Oh, that was written by the best dev on our team. He holds a PhD.
🙃 so thats what kind of skill a PhD gets you these days?5 -
Developers who think complex code is good.
"Oh, lookie here, I can swizzle methods and inject dependencies in the runtime!"
"Although we have no valid use case, let's use dependency injection and follow the commandory stateor patterns because I watched a video."
Just because you learn something new that looks cool does not make it practical, you tosser.1 -
I think this is the first time ever on my team where I read someone else's source code and actually went "wow... This is pretty well written and structured". No god methods or classes.
-
When you commit code to the repo and a a junior on the team takes it upon himself to rename all the classes and methods coz he doesn't like them even though his changes make no sense and then sends them to you for a code review .....
Wonder what the results going to be ;-p1 -
Lint rules that keep shouting at you unless you arrange the methods of a class in alphabetical order. What fucking value does it bring? Who fucking cares ? Why do we have them? Whhhyyyyyy ?18
-
We bitch about JavaScript a lot, but I have never encountered a language with better out of bounds index handling for its array methods. It does make some projects considerably easier!7
-
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
-
!rant
when you find 3 spelling errors in the same line of code and realize that these are legit 'cause the objects and methods are actually coded misspelled.
That's when no one dare doing code review but simply it builds and its fine.
Luckily #NotMyCode -
Just opened a project that I'll be working on for work, first thing I notice is C++ like code formatting, which hurts my eyes (keep in mind this is Java)
But then decompiled Hybris classes came at me with not only that, but three newlines between methods.
I fear what I have yet to see...4 -
I am SOOOO tired of outdated, easily circumvented, methods of attempting to find rule breaking culprits...
especially when they can't even come up with anything more specific than 'suspecting' "unusual activity".13 -
Today I deleted a lot of stuff
Fields, methods, classes, files, even database tables
And for a change, it was all on purpose 😁
Feels good to refactor stuff and clear out the cruft!3 -
So I got some new methods to call, when I tried to call them the usual way, it didn't work quite well.
Surprised, I asked the coder of them.
"Yeah, we're using the new way, you don't mind ?"
nah, no problem, I'm starting to develop my skill in divination and mind reading, that was just my usual training.1 -
Taking over development of a system from some other guy who just straight up dropped it with zero documentation. The code looks like he wrote it after watching some getting started tutorial. There is no structure. Some methods and statements are just empty. And he spelt 'connection' three different ways in the same file.
God help me...1 -
How does random number generation work? I'm curious. What are different methods in which you can generate random numbers?
If you could link me to an article or some docs, that'd be appreciated. How far does your understanding of it go?
Thanks for your time.6 -
I'm literally laughing my ass off at how Google gave their fat middle finger to Object Oriented programming with Go's Structs, Methods, and Interfaces. F*** you Java and C++! :-P4
-
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 -
At what moment do you realize you need to stop coding? Mine is when the code starts bleeding together. Like when I start putting config file information into my methods, which I ended up doing tonight. 😖 God it's time for pizza. 🍕2
-
I hope one day i will stop writing dirty code to achieve a task, forget to refactor it and then struggle to use correct names for variables and methods when i need to move on other tasks.
-
I just found an old util class of mine for messing with some data before sending it to the api.
The methods are called:
burnId
mutilateDate
cleanseDates
cleanseData
unfuckLocalDateString
fuckDate
I love it. -
Who the fuck invented the glorified pile of shit people call laravel? Is this actually used in PROD for anything else than load testing a monitoring server by creating loads of error messages?
OOP exists for a reason, not to create bazillions of classes with static methods.
Dump that shit ffs!6 -
My biggest regret is not spending more time on Math. While I don't think it has hurt me directly, it has certainly decreased the chance of me learning some DL methods.
That and not pursuing a PhD.2 -
My C# class loves to come up with weird/unrealistic scenarios to teach a specific language feature... I feel like the more effective way to teach would be to mention a real life scenario where it makes more sense to use the feature and give it some context rather than coming up with some arbitrary series of classes to represent departments and employees and then say "write extension methods for them to write them out"
If you tell me that I'm going to go, ok this works, but is there a specific reason I should do this instead of using a for or foreach to do the exact same thing? Don't get me wrong I see the appeal of extension methods as well as LINQ but this class never gives any sort of context as to why we're doing stuff. This class could be good, I've had classes that focus on language specific features taught in ways that make sense... My Java prof did a great job...
Also all the slides are terribly written...
Like I attached an example of the description for extension methods... The slides then go on to explain how the syntax for them works and gives an example...
Like ok I guess technically you told me what they are and how to use them, but gave zero context...
On the opposite end of the spectrum, I go to MSDN for their definition of extension methods, and it is much more clearly written and gives context to where/why they're used... and this is supposed to be a 5th semester course...2 -
Not exactly a dream abour coding but my favorite instructor in college.
I dreamt the secret police came to arrest him on campus since his methods teaching cod were unorthodoxed.
As they were leading him away I was screaming and crying - “He’s the best teacher here, what are you doing!”
weird -
Ticket waiting for code review for days. I have to rename methods.
Tickets goes again to code review. Waiting there again for days. Oops! there is something the code reviewer didn't see before!
Ticket goes to code review again, waiting for days there.
Boss comes to me telling it takes me too long to close tickets. -
When you notice that the guy next to you is using Urban Dictionary to name public methods in modules.2
-
C# has static binding by default. Meaning methods aren't overrideable unless you specifically tag them as virtual. I love how in java you can take someone else's random class and override everything with some additional or alternate behaviour.13
-
It's sad because Django is a really great framework, but I can't understand how their serializers work.
I finally tricked to make my own using JsonResponse and alternatives methods, but I can't see why there is "serializers", "DjangoJSONEncoder", "JsonResponse", "json.dumps" and so on...
The documentation doesn't explain much about it :/6 -
Does anyone else think some of the Sonar rules are actually crap?
In particular the Put all you variables above methods one?
I have some static methods and variables and some object ones.
Apart from creating a new class for them which I think is over kill for just a few helper methods, don't you feel you should keep all static stuff separate?
Clean code shouldn't be about following arbitrary debatable rules, it should be preventing the horrible crap that any experienced developer would instantly call shit... If he didn't write it.
And I'm pretty sure I'm experienced so if I'm not calling a price of code shit...I don't see why Sonar should...1 -
When I cannot sleep or when I'm half asleep I always think "in programming code". Like if my daily problems or issues where actual classes and methods I need to fix or implement.
This is super weird and I cannot do anything against it. I'm wondering if I am the only one who does this.1 -
Java 17 and I see methods in the API that apparently were deprecated back then in Java 1.1! Shouldn't deprecation be the precursor to being eventually removed? Or is backwards compatibility so much important that is ok to have shit in this limbo state for decades?6
-
I don't think there is anything more painful than seeing some programmers writing badly formatted code.
I mean how can anyone use a single space or completely inconsistent spaces and tabs.
What is more painful is that you cannot scream at them because you don't wanna be an A-Hole trying to force your methods to others. -
WHY THE FUCK DO YOU FUCKING RETARDS USE TWO DIFFERENT AUTHENTICATION METHODS FOR THE PAYMENT AND THE CHECKOUT API AND DON'T EVEN DOCUMENT THIS SHIT PROPERLY!! 🖕2
-
Studying human languages.
They are so much more complex than a programming language and full of irregularities and stuff you can't really learn but have to 'feel'. This helped me a lot developing methods to learn new things quite easily and knowing foreign languages are kinda useful when I have to communicate with people too.3 -
I wanted to cry so much when I saw my original 2-method interface turns to have 34 methods of unrelated shits.
-
I was failing all the test cases for a CS assignment where we had to implement our own methods for strings in C++. After an hour of debugging, turns out strings don’t end with ‘/0’ in C++ like in C.
Fuck my life.5 -
Him: "dont put your constants in a standalone class, it defeats the purpose of OOP. A class is for methods and such."
Me (in thoughts): THIS IS PYTHON YOU OEDIPUS, WHAT ELSE SHOULD I DO IF I DONT WANT MY CONSTANTS TO CLUTTER THE FILE??1?
But using the enum-class as superclass maakes it ok for him... -
God damn it, if you (libGDX) have default values for public methods then make those constants public. Now I am writing wrapper and I either create my constant with same value as your private one, or do some reflection black magic which will probably break after obfuscation. *sigh* Going with my copy of the constant, not happy about that...
-
I had been struggling with writing some test cases for days - so I decided to delete all the test methods I'd written and start from scratch - took me less than 30 minutes!
I'm happy now -
Who else gets tempted into writing methods they believe they will use in the future. This over engineering is getting in my way 🙀8
-
Hello,
I have gone through all the options that your public API has for syncing data, and i can now officially say that stripping an iFrame of a Google Drive page would be better than the piece of shit mutation methods you have come up with.
Most sincerely,
A fucking annoyed dev that just wasted about 4 hrs on your shit. -
C# devs go crazy once they found out that kotlin has got extension methods
and some other c#-like features
Just use Scala.
There's a reason books with titles like 'Scala for Java/C# refugees' exist3 -
I will kill the next dev who justify its shitty code by quoting random dev methods/rules/ideas/cool-names he found online like "clean architecture" or "MVVM".10
-
I cloned the most recent copy of my coworker's app so I can help fix bugs when we go live tomorrow. These are the methods in the users controller:
beforeFilter
isAuthorized
login
logout
dashboard
viewAllOrders
viewCheckedOutOrders
viewOrderDetail
addNote
checkOutOrder
rejectOrder
getUsersByOrderStatus
completeOrder
viewOrderHistory
search
admin_addUser
admin_editUser
admin_addClient
admin_editClient
admin_editOrder
admin_createNewOcof
admin_editOcof
admin_viewAllAvailableOrders
admin_viewAllClients
admin_viewAllCurrentOrders
admin_viewAllUsers
admin_viewCheckedOutOrders
admin_viewOrderHistory
delete
userUpload
admin_adminUpload5 -
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 -
Working on a piece of code, first created in 1994 and has had constant changes and modifications till 2014
I need to take it and turn it into a procedure library and new methods and classes and I have 3 weeks to do it.
Worst off I'm a junior programmer and I only have 9 months experience with the language5 -
I wanted to deploy the code of the project I'm working on on the test server to try something.
The code wasn't deployed because the automatic quality inspector detected some methods used are deprecated. So I check the documentation of the methods used. The method is a pass-by to avoid some errors launched by the automatic quality inspector.
So the quality inspector stopped my deployment because I used something that should stop the quality inspector provoking errors.
god dammit5 -
Do you guys also feel difficulty when you try to write algorithms in the new language? I feel like I am stupid cause I don’t event know the methods for coding the algorithms which can be easy with the language I already know4
-
Had to extend the platform of a customer. For one part of my task (generating an encrypted string) there already was a class with encryption and decryption methods. This class is used in a gazillion places all over the code, so I thought it might be a good idea to re-use already existing stuff... Until I saw that the encryption method using basic Java methods (all fine with that) wrapped in a try-catch block, 'cause the Java methods may throw, returning err.getMessage() in the catch block...
Yeah...sure...makes sense... Instead of throwing an error or returning null just remove the possibility to handle the error.
So I decided to basically copy the methods and return null so I can work with that.
Created a merge request and was told by another dev of that company to remove my own impelemtation of the encryption method and use the already existing. Arguing that I won't have a possibility to prevent my code, that returns an URI containing the encrypted string, from generating something like "http://..../Encryption failed because of null" without success.
So I had to use the already existing crappy code...5 -
Wrote a REALLY bad, simple java method to generate the repetitive parts of c# classes
Now I’m curious about good code generation methods. How I probably should’ve done this
Think I could get some advice and links on how to start learning to write simple code generators?9 -
I really like Julias typesystem, but method dispatch makes it easy to accidentally match against methods you didn't intend.2
-
I stop and write some useless but fun classes/methods which takes my mind off the problem enough that I'm excited to get back to whatever I was working on. It's almost therapeutic reinventing a small part of the wheel in an empty project.
-
My ideal Saturday night is a few (or a lot of) beers and a room full of comp sci majors arguing about hypothetical sorting methods and their theoretical complexities.1
-
Any tips on how to organize the ever growing shit list that is my tasks list? Maybe some of you are using some awesome methods that I don't know about?4
-
Why developer of c# (Anders Hejlsberg) when developing (TypeScript) not implemented method overloading and interfaces' methods implementation with same names.3
-
!rant
Loving the the fact that constructors in Swift (initializers) can fail (returning null/nil) and be async.
In C# there is no other way than using static methods instead.8 -
If you have 5 classes using the same postfix... and inside, 4 methods en each, called EXACTLY THE SAME... Please, create at least an abstract class!! or else next week you'll have to make the EXACT same change 5 times!!! or more!!... I don't know man! just saying... Patterns exist for a reason!1
-
What is everyone's thoughts on dynamically creating html using templating or other methods with javascript or jquery?4
-
I really want to decouple classes from each other, but I also want to decouple them from any specific DI container, so this is what I came up with. Factory methods passed as arguments.
Is this bad? how would it be better done?2 -
Web service consumer: hey I need you to add new methods to this service
WSC: hey I need you to change the functionality
WSC: hey here are four new lists of fields to return from your service.
WSC: hey what are you doing the schemas are completely different now!! This has caused a lot of work for us -
Working on a new release. This release was tested locally and pronounced good. The release went to the QA environment. QA responds that a new feature is doing nothing. There are no errors reported, and work is being done on the UI, but is not get getting persisted to the database so all changes are lost when the session is lost. Do some investigating. I find that a web service had the code in two of its methods commented out. Why? No idea. No response yet from the developer who just had the two methods return a boolean denoting success while all other operations were commented out.
I need an appropriate punishment for this...3 -
The Rise and Fall of Helper Classes
New method doesn't seem to fit into one of the existing classes so a developer creates a new class and innocently called it "helper".
Another dev had a similar conundrum and adds a couple more methods to the "helper" class.
And a few more methods added...
A couple more methods surely wouldn't be too bad. It has unit tests anyway.
After a year, the helper class has now grown to about 10,000 lines that no one is brave enough to refactor.
CTO now says, "Ok let's park this project and build a new one in Go." Fun times!2 -
My worst habit(?) is probably loving to "waste" time, making api uri builders.
so I can chain a couple of methods instead of just typing out an uri :p -
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 -
Worst: Writing a quick thing in Python, debugging endlessly because some class I created wasn't being instantiated properly and then realising that I haven't added the holy "()" while creating the object and before using methods in my unit tests.
Best: Creating some pretty sweet algorithms because I was thinking more out of the box and trying things out just for the lulz. -
Im making my first opensource project, it's a web component library, but I find the naming part so difficult..
How do you Guys find good project names? And anything i should consider regarding copyrights/e.t.c ?
Suggestions/you naming methods are welcome 🤌5 -
First Rant on here!
One of the most frustrating things I have come across in PowerShell is non properly implemented ErrorAction methods in Microsoft maintained modules.
When you are attempting to write a quick script with simple yet proper error handling and Microsoft fumbles the ball at the 1 yard line! -
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 -
The evolution of code, in Python:
-Many scripts
-Refactor common functions into a Utility class
-Make the scripts into classes/methods with a "static main"
-Create a super script to run them all
I'd provide a screen shot of the last but to much propriety info... But yes it looks short and simple 😄😊 -
Spent an hour today deciding if something in my framework should be called functions or methods... Decided on methods and had to rewrite half of my documentation.... Productive day...
-
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
-
What IDE do you guys use?
I use notepad++, Codeanywhere and Visual Studio 2017 Pro.
I'm looking for decent code completion with internal referencing to keep track of methods and variable.
Would you recommend staying with VS or how about intelliJ?
Or something new?6 -
A friend frequently asks me for help with Java homework.
Today we spent half an hour figuring out how to use some ass-backwards linked list implementation his lecturer provided.
The list itself acted like an iterator, keeping track of a 'current' element that had to be reset to the list's head manually every time you want to iterate over the list. There were insert and append methods that call each other for no good reason and most methods would throw the same generic checked exception.
Also they're told to use BlueJ which has the ugliest debugging tools i've ever seen.3 -
At internship with a fellow student from my class, making a SqliteHelper class in php to make things easier. Delete methods only have only one parameter (Primary key)
Coworker: "Why do you use the primary key as parameter? The user has no access to it!"
I can't express in words how close I was to snapping. -
Best Explanation I found of every(), filter(), map(), some() and foreach() methods in Javascript
(at least for me as a non-js dev)
could help someone there
https://coderwall.com/p/_ggh2w/...2 -
I was just ordered by PM to remove my class wrapper and explode the massive contents into a function....
Why do I feel like I just had a dirty discussion with my parents... Perverted methods..... -
Javascript fatigue. Because the node scene is so new it doesn't have the established isms and methods of best practices so every few months the next best framework or library comes out promising to fix the problems we all face
-
It's a good intention if you want to separate your code in logical units and split it into multiple methods, but could you please stop handing the control flow through about 20 methods before even really starting with the actual logic? This mess is 10 times as long as it needs to be, because someone decided to make everything go through 10 "validate one little thing" methods for every method with actual logic!
Edit: DevRant didn't allow me to post first, now I've analysed the code a bit more and the control flow actually goes out of a specialised class into a generalised class and back (not by returning, but by calling the specialised class from the general one) and the parameter that says what specialised class to call gets written into a class variable, then read from there and passed as a method argument, then back into another class variable, then the code changes it up a bit as a local variable, then passses it as a method parameter again... First it seemed like it knew what class to call using black magic, but no, it actually just hid the fact really well that it did in fact pass the class reference through in multiple forms from beginning to end. -
It's really painful to go through a codebase when the other guy doesn't comment anything. It's a new project, you have the opportunity to make it not a nightmare to work with, and yet you choose to not document shit. I've been documenting stuff as I go along at least. Feels like I should have some linter forcing comments on methods at least.
-
Since I started living by Sandi Metz rules for devs, i feel like my code has really improved.
My favorites:
* Classes can be no longer than one hundred lines of code.
* Methods can be no longer than five lines of code.
I hope you find them as usefull as I did.2 -
If you are reviewing pull requests to your code base, what aspects do you focus?
I am asking, because a colleague of mine most of the time complains about minor code style issues, like the following:
"why is that method static, it belongs to the object. I am not used to static methods, please adjust"
"the methods are not arranged in a standardized breadth-first order"
"Please use that other kind of initialization..."
Those nit-picks make me crazy sometimes. Is it just me?
I mean, her reviews also contain valuable content, but those small complains about coding style feel like "I did not found anything else but I have to". ^^4 -
So i'm workin on a wrapper for an api, and it has authenticated endpoints. My request function has a check to see if the user has a token before making the authed request, but guess who forgot to actually mark like 20-40 different methods as authed : D2
-
wow I haven't been on here in a while. what are some of your revitalization methods to get excited about projects you are working on?1
-
When you try to teach a fourth grader how to make animations for her YouTube channel and everyone wants you to cough up money for simpler methods.
-
Doing a code review (Of code written by another person...different code styles and weird methods can really get you a gray hair or two :D)2
-
it's a bit annoying when you, as a consumer, have to rev-engineer the temporal coupling among dozens of rest methods.
It's not fun. NOT fun at all2 -
That moment when can't root my Asus Android devices😬😬😬
(If there are some working on all devices methods of rooting - please write below)2 -
Programming anxiety is when one of the similar methods could be 1% better in performance and you're stunned by such a tough choice, which one to use/test first.
-
Not sure if it's a rant but...
Less than a year as a professional software engineer and I'm at a small shop, like less than 10 of us.
I'm getting an overwhelming urge to break down these large methods we use into smaller more reasoned out methods we can just call.
Is this me being a n00b and trying to do things "right" or am I just trying to follow some best practices that have been overlooked?1 -
IMHO Rich Harris (of the Rollup and Svelte fame) is a rock star. I think I'd rant less of more people would follow his methods.
-
As a JS developer I wish that when I import a package, a list of all the Jquery methods comes shipped with it 🥺12
-
Coming from a Java background learning C#.
The only question is, why? Why do I have to be so verbose when defining 'virtual' methods?5 -
So I use Visual Studio at work, with IntelliSense et Resharper. And they work together quite neatly.
Except for one class.
The biggest one, with the most methods, and the most datas.
why4 -
Oh boy, I just made a class with 5 methods and 10111 lines.
I'm "proud" of myself
(It's kind of an autogenerated class for, but nah...)2 -
So, what are your most favorite methods of saving interesting articles about algorithms, functions or simply news so you can read them later when you have time? I find myself storing links to interesting web pages without really going back to them or remembering which link was what. I shifted to storing the links in evernote but it's still not what I'd ideally like to have...
If there are any recommended routines, apps or tools that make stored links insightful (like allowing me to add a quick description or automatically adding a sort of preview of the link), I would appreciate it!
Please note that this is primarily about saving a resource while I'm on the go or simply can't/don't want to spend too much time on the actions.17 -
You know ya listening to too much daft punk when you start calling methods after the song your listening too, SearchDaFunc Func returning to a polling Func, anyway here's Da Funk
https://youtube.com/watch/... -
When you decide to learn JavaScript and you make a object and realize it is a method, nothing like Java objects😑9
-
The classic! Just spent the last 30 min wondering why the method wasn't doing what I expected, until I realized I was running the wrong one out of two almost identically named methods.. Im going home!
-
Anyone ever seen the behavior with async methods and promises where at the end of what should finish the await in the calling code the function never progresses past the await even though it returned ?30
-
Im learning Javascript, where can I find some documentation about the methods and classes of this language?7
-
When I first, at school, set up a program to check how many devices there were on the network using nmap. Then I graphed it over a day and it made me feel real awesome checking out a network and getting info on it, however primitive my methods were
-
Used to love our old severity grading methods on my old project. Traffic light system worked a treat. Defect raised... Have we seen this before? Green light
Never seen it but it's on stack overflow? Amber light
Not on stack overflow? Red light and most definitely an "environment fault" -
What exactly is the essence of web frameworks introducing new syntax? Does it mean language can't be augmented without turning the syntax upside down? All js frameworks are guilty (think svelte is the exception). Php, eloquent accessors, laravel facades etc.
Then, in addition to learning their available methods, classes, folder structure and possibilities, etc, you have to grapple with silly syntaxes. Sad2 -
Unit testing with NSubstitute and Autofac
For the most part, I find it a lot simpler than SimpleInject (hmm) and Moq, which I have used previously.
But there are still some of those 'Oh, for fucks sake!'-gotchas.
I was trying to test a class today where I wanted to substitute all other methods in the class than the one I wanted to test == an actual unit test.
I had previously found out how to do this:
1. Make sure the methods that should be substituted are internal to allow substitution.
2. Substitute class with Substitute.ForPartsOf<T>(args)
3. Set up methods that should not be called with instance.When(a => a.Method()).DoNotCallBase()
This way, you can unit test a class properly and only call the method that you want to test, and also control the return values of the other methods if needed.
So as I said, I have used this before to great effect. But today I just could NOT get it to work! I checked and rechecked everything but the test code kept calling the implementations of the substituted methods!
I even called over another dev for help, but he couldn't see the problem either.
Aargh!
I scoured the internet, but everyone just told me what I already knew: follow the 3 steps, and all is well. Not so!
I ALMOST considered doing the test improperly, as in, increasing the scope beyond that of the method I wanted to test.
But then it hit me... My project was missing this line in AssemblyInfo.cs:
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
I always add a line to make internals visible to the test project, but I had forgotten that NSubstitute needs this line as well to work properly.
Sometimes when a test fails it will tell you that you are missing this line. And sometimes it just doesn't work.
Maybe I will remember this in the future now. Maybe 😅 -
Hi, what are some good practice programs to make when learning a new language?
For example you learn all of prints, inputs, variables, methods, functions, classes and what have you. Now how do you put it to use?
Basically what is the final beginner program to be considered an intermediate?3 -
Is there a search engine indexing pages that work without JavaScript?
Why?
- I use the Lynx text-mode browser
Why else? Maybe I'm naïve:
- At least without JavaScript the advert/tracking methods will not slow load times or break the page.
- This may be a nice way to highlight websites that don't have time to join an SEO/analytics arms race.8 -
I'm all for alternative methods of learning but this post on FreeCodeCamp is total bollocks.
How does someone take and complete a class in data structures in one week?
https://medium.freecodecamp.com/how...5 -
I do write a functions class for most used functions or methods but, some how end up copying some of those on every page.
-
Newbie advice:
Break large problems into smaller problems then use the smaller problems to name tour functions/methods -
Websites stopped having intuitive methods to change one's password. Looking at you www.devrant.com3
-
My code check-in today contains comments like "Last resort methods, never use except explicitly ordered by lead".
Gotta love legacy code hacks... -
Took me some days (considering I code every week or so since that when I open the IDE my motivation is nowhere to be seen) to realize that instead of writing "implement" to implement the methods of an interface I was writing "extend". I mentally facepalmed. Why are you so stupid sometimes brain
-
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 -
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 -
I guess coding is a coping mechanism for not matching on any dating sites and hence no dates...
I guess you could say it helps me find alternative methods to release my per up desires... Although I guess a real relationship is something it can't replace... -
Created a tiny Spotify client exposing some handy methods to play with :) Have a look fam.
https://github.com/rocktimsaikia/...1 -
When teaching JS, what would you say were the 5 most important base methods or properties such as 'length' or 'charAt()' ?7
-
My day is basically request methods going to my endpoint '/api/v33/nfwg/WHATDOYOUWANT'
Response '{ "primaryResp":"sorry no fucks were given"} -
So I'm doing angular 2 and I've started to notice that the time it takes to setup my website with al it's dependencies is becoming quite long. I know that longer load times are expected the bigger the site gets, but this is getting ridiculous.
Are there any general methods to reduce load times?1 -
Just spend two fucking days debugging a few methods in our program. I used unit tests to call those methods (don't want to navigate through the complete program workflow)...
Yeah, guess what: the test cleanup includes a fucking rollback transaction function. So NONE NADA ZERO FUCKING CHANGES WILL BE PERSISTED. Fuck me3 -
Good java books for beginners:
Moksh Jawa's book "Decoding Computer Science A"
Herbert Schildt's book (Oracle Press)
The Litvins' book "Java Methods"2 -
I'm just about done with this asp project and I feel like I've spent at least twice as long on JQuery as I have C#.
Who the fuck thought methods as string options was a good idea?1 -
A co-worker ask me to translate my "comments" (*which are in facts annotations) to french since it's private code and as it "plays hackers game". The same coworker writes his methods starting with a uppercase.
This is bothering me a lot.
I want to quit.1 -
Any c++ devs here,im looking for an explanation on how to distribute c++ packages with dependant libraries.what methods are there to make sure that every person who receives your application can use it without installing any libraries or dependancies.im currently developing on linux.2
-
Just some free knowledge that I'd like to pass around:
I wanted to free up some space in my MacBook. I checked out different methods.
Here are some methods that helped:
- Go to ~/Library/Caches and try to clean shit up.
- If you have Homebrew, (if you don't, just quit dev already) run `brew cleanup` -- only for people with Macs.
- There's this app called Omnidisksweeper. Check that out.
- Also, indexing Spotlight is something I've heard of but never tried.3 -
Currently work at frontier. Two job offers one at keystone the other at dk cannot decide so ran it through decision craft and the results are so close. How you normally pick which job to take. Any methods welcomed to be discussed.4
-
Why is React.js so hard to learn for someone from a JAVA back end background? I'm constantly asking myself "so should I set param as string? or int? Array? so many methods that's returning html tags! what collects all and makes it appear at WHERE??"9
-
Do you think that's a good idea to work with 4 developers on a shared development server without functional or technical specs and versioning software or testing methods/environment?
Just asking for a friend, not for my future employer...2 -
Not following the front end "standards" of the company I work for ( Sass variables, Methods, CSS frameworks, mixins, etc.) even though we had a meeting talking about following standards to improve the workflow a day before.2
-
Hey guys! In Laravel, what is the difference between the methods "url()" and "route()"?? I use "url()" for css and JS routes and "route()" for my own routes. Is it good what i'm doing? Or it's a bad practice? Thanks!3
-
A better half of the day wasted.
Why?
Because fabric8 k8s client probably has a bug, where it fails to deliver the last part of the exec() output. Or the whole output, if it's short enough.
brilliant... Aaaaaand we're going back to the official k8s client with ~10 parameters in their methods.
Fucking awesome. -
Any recommendation for good naming convention for methods and classes ? I'm looking for article or book.
-
Was working on fixing some test cases in js, tried everything i could but part of test case was never executing.
After couple of days of pulling my hairs, found someone had overriden the test lib methods by mistake😭😭3 -
Why are you so slow Kaggle...
(((preparing kernel)))
(((committing)))
I have tons of data to analyze with multiple methods...
sigh...1 -
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
-
Joined a new project.
The core of the application has references to pretty much everything in the entire codebase, both api and database layer.
On top of that it uses extension methods instead of mappers or normal methods on classes in order to "keep classes short", so many methods are unnecessarily hidden from view.
Tried to fix it, got told to revert back to the old version because "it might be wrong, but at least it's wrong everwhere". Guess I'm making bolognese for dinner.1 -
Today I found a faulty design choice in java, that seriously makes me hate java. Basically java prohibits abstract static methods. This -combined with the poor design choices for constructors - means that Subclasses cannot have a common constructor or static method calling the constructor.
Basically meaning that you can't just map a collection to objects without handling EVERY FUCKING CASE, WRITING THE WHOLE MAPPING AGAIN AND AGAIN, ADDING A FORCED PORTION OF SPAGHETTI WITH EVERY CLASS WHERE THIS WAS NEEDED.
https://stackoverflow.com/questions...
There seem to be other OOP languages with this faulty design. Can't say if I now hate OOP ingeneral or not, because maybe some languages may have provided a substitute for this6 -
There is this ERP/MES integration project in which I am involved as a developer who helps a team of industry engineers in my company to write some scripts (in Quickscript .Net god forbids) to consume a SOAP based web service developed by the ERP maintainer team from another company.
I will just keep every stupid technical aspect I ve seen unspoken and highlight the naming convention used in the web service methods.
One of the web methods named "zzwswo" which only after consulting a bunch of pdf nomenclature docs that I realized it means the following:
"zz" seems to be a prefix for custom db tables in the ERP system.
"ws" is probably Web Service.
"wo" is Work Order.
I lost hours trying to figure out methods. I think this is why not everyone should be allowed to write code. -
So a while ago I was complaining that tonnes of tutorials ignore CLI or alternative build methods like cmake or meson.
Was having trouble getting glew to link statically... Well only months fucking later do I realise that all I needed to do was add -DGLEW_STATIC to my fucking compiler arguments...
Why is past me such a fucking idiot! -
Adding extensions to Swift classes so that all methods have exact equivalents with anonymous parameters so you don't have to use parameters names when invoking which goes against the spirit of the language. #douchebagdeveloper
-
How do you handle your configurations of your prompt, ide, etc especially when changing or reinstall the pc? Do you use something similar to git repos with dot files or are there other good methods to manage all of this?1
-
Struggled whole day to remove duplicate objects from a list in java. Those objects (of a custom class) contain a unique id, the remaining properties can be identical across list items.
Wondered why hashset.add() always returns true and thus duplicates are still inserted.
Little did I forget about things like equals() and hashCode() 🤦1 -
When people write functions/methods with bodies smaller that the call header (-_- ).
Function calls are not free people! Just Inline that shit manually (or at least make sure the compiler does so)!
double degree_to_radians(double degree){
....return (degree / 180.0) * M_PI;
}8 -
How do you release your software to customers? I am interested which software, tools and methods assist you with releasing new updates to your customers?
We are distributing our programs and scripts in a zip, and most customers distribute it on their terminal servers.2 -
Deprecated API methods without any documented replacement methods or even justification for the deprecation. What do I do with this!?1
-
It annoys me immensely when I struggle with myself, criticizing my own lack of knowledge in certain areas and my colleagues say: "You'll learn by doing". No, I won't, that's a foolish dogma.
I won't and I have never learned by 'doing'. The best results I've obtained have been through understanding every last bit of what's under the hood of a particular functionality. I'm not going to understand the white box by constantly probing the black box, it's just unsatisfactory and insufficient information. It's even dangerous to base yourself on the black box results because you often might get false positives.
I got through university by massive multilateral sensory focus: kinesthetic (writing things down), auditory (listening to the professor), visual (observing graphs and models of the material taught), conscious (mentalizing it all and interlinking information so that later it's accessible from long-term memory). I can confirm this is necessary for the brain because a Neurologist once told me just that.
At least for me, I had the most horrible grades (D's and F's) in freshman year with the 'learn by doing' method and the best grades (A, A+) with the multi-sensory method in later years as I matured my studying methods. In fact, with that method I've continuously outsmarted other people who had 10 years more experience than me ('experts', 'consultants',..) but they preferred to stay in the ignorant 'bro zone' rather than learning things properly. Even worse, the day they arrived on the scene, they completely broke the production environment and messed it up for the whole team. I felt like banging my head on my desk. It just makes me disappointed in the system.
If you follow popular method, you'll soon find yourself in the same problems that arise from doing what everyone else does. What happens at that point? That's right, they have to call in someone who actually bothered learning things.10 -
How should I explain to my colleagues why to use a object oriented approach or even dependency injection when they write mostly only static methods in our projects?
Points like testing and maintenance don‘t sadly work.2 -
...I was telling my friends one of the methods of de-crapping fresh installs of Windows that I use, and for some reason, I thought about this (old) meme.
So, I created, too. Might as well share it -
I always try to make problems more ... interesting, fancy, challenging. As soon as it gets boring, my mind is wandering.
Like now, when I wrote like a gazillion stored procedures, connected them to the back end classes, connected them to the new WCF service methods, connected them to the front end ... That's when I try to do anything but work.1 -
Does anyone have experience with unit testing AutoCAD plugin applications? And || or UI testing?
Because you need a running AutoCAD application to test commands and functions it's very difficult to test the AutoCAD related methods.
I would like to know how you do it. -
Just found a few methods in the same file which does the same task written by different devs just because they did not know a method already existed in the first place. How tough is it for them to do a grep on the file?1
-
I’ve always wrote my own class to sql methods, but I used the Table Adapter in C# and I don’t think I will go back.2
-
Try to teach to my girlfriend what is a class and what is a object.
Class is methods and attributes
My girlfriend starting sing "dans l'attribut de Dana" 😂🤣
Course is finish for today 🤣6 -
I had written a feature that stored some data for all methods in a code base. And it worked in 99.9% of all cases, but for some projects, somehow there were errors in the logs that I couldn't understand.
After hours of debugging, it turned out that I inserted the method objects into a map, and the (existing) base class for these objects used the character offsets for the method's start & end in the hashCode() implementation. This meant that in the (extremely rare) case of two methods in two files with the exact same start and end offsets, inserting them into a map would overwrite the previous value.
Once uncovered, this bug was trivial to fix ;) -
Mouse starting to break down once again.... Any suggestions for a good durable/comfortable mouse ? Shouldn't be too big, I have medium-sized hands. Also open to alternative input methods (trackball, trackpad, etc) if recommended.19
-
hey frontend devs,
i got a qweshtiun:
how come half of yous communicate in wordsalad?
also: ur methods are functions and ur objects are structures. wth is it all about?13 -
What do you guys think of php's traits?
For those that don't know, traits provide copy/paste discount inheritance functionality. You can include common methods or properties. For example, I use the TimestampableEntity trait to include createdAt, id and updatedAt fields to my entities. They're really useful for simple stuff. You can include multiple traits in one class and it will error on clashing methods/properties3 -
Thank you modpagespeed to use shit methods to compress the source and your amazing work with client side cache. The whole site was fucked up for a day and I didn't notice.
Note: press Ctrl F5 20 times if you tweak anything in js. Even if it's 100% working, pagespeed can fuck it up. Turn that shit off.5 -
Its very simple to get PMs to leave you alone; have a good long talk with them about their goals, motivations, and methods. Try to understand their thinking, then preempt the visit to your desk with something to make them not come to your desk.
Or get a WFH deal and dont answer any comm requests. -
Still working on this oldass project. Casting enums to different enums.. longass methods call another longass methods at the end...
-
I feel like the "DEL | PUT | PATCH" verb are overrated. I still cannot see it's usefulness to this day.16
-
Almost give up but finally found a solution to my problem, fucking proguard!!! fucking multidex, fucking limit of methods.... android -_-...
-
What are types of load issues occurs in a Linux (Cent os) server and it is troubleshooting methods???15
-
How long is the "longest" EF core context you've seen ?
Without any additional methods.
Just DbSets and OnModelCreating.
Mine is 1338 code lines right now6 -
Funny to find out that IntelliJ has a Shortcut for getter and Setter after making a own Programm that writes those methods trough String building...
-
So a the noob I am, I have never coupled my programs with a GUI and only doing console apps, so I wanted to ask you; when making programs, methods and whatever, how do I link these methods to areas in a GUI to make a "proper" application for let's say windows? Any good places to go for ideas and whag framework is recommended?9
-
Just learned about nest.land which is the module repository registry for Deno. They use the Arweave to register a permanent version of any module, which by itself address some complaints of people had with Deno and it's module importation methods.
-
Wrote some awesome methods in my application which writes products and their variations directly to SQL for a WooCommerce shop, avoiding uploading any images and constant handshakes for thousands of API calls for each product.
Been heavily criticised for it though as bad practice and to just use the API. I say fuck you, it's lightning fast and works well. Sure the API spec could change in a year but these methods will scale well.
Who agrees? -
//In the code block below. What are both self methods refering to? do both self methods refer to the Suit enum because it is inside the enum block? I am trying to better understand self. Please see link for expanded question.
enum Suit {
case spades, hearts, diamonds, clubs
var rank: Int {
switch self {
case .spades: return 4
case .hearts: return 3
case .diamonds: return 2
case .clubs: return 1
}
}
func beats(_ otherSuit: Suit) -> Bool {
return self.rank > otherSuit.rank
}
}
https://code.sololearn.com/c9KIG0ab... -
NINE Methods _IN A ROW_ look like this. I can't bring myself to search for more. They are called 100+ times and after each call we check if they returned success.
VERIFY_XYZ SECTION.
V_010.
MOVE RETCODE$FAIL TO RET_CODE.
CONTINUE.
MOVE RETCODE$SUCCESS TO RET_CODE.
V_100.
V_EXIT.
EXIT. -
Just spent the last 8 hours writing Mockito doNothing().when(...) scenarios on mocked objects.... Then I realized mocked object methods already do nothing
-
1. Purpose: Being at the forefront of discovering how and helping to automate business processes in all domains and learn about "how things work"
2. Relative autonomy
3. Mastery (of languages, concepts, methods) -
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 -
My teacher wants me to find all the issues in "using agile methods in global software development", then find the slution of the issues, and then tell what is missing in that solution, and then propose a better alternative... In one day...
https://media.giphy.com/media/... -
Some people were lazy so they added throws Exception to all the methods up till main. No catch clause....1
-
Been trying to learn component-oriented programming to develop front ends for a year but still can't get beyond a simple app or game. Specifically, I have been learning Vue on YouTube, Vue Mastery, and multiple other blog posts.
Any recommendations or maybe new methods of learning?5 -
Learning C# coming from Java...
What's the fuss about properties? As i see it, theyre only usefull for binding, as else they just work as syntetic sugar instead of getter/setter methods.
But properties are also limited to give response back, like a successfull set, unless you start throwing exceptions..
And if a set property has if(age>5){this.age=age} then if i pass the property a 4, you will never know as a user that it failed (again, unless you start throwing exceptions)
Im kinda feeling like i want to use get/set methods until i need to bind, then of course use property ?? Am i all off here?25 -
OOP question: Can someone fucking explain to me what does it mean to hide complex implementation behind an interface?
Also whats the point of using interfaces when you can define methods in an abstract class and just override them in subclasses in order to get class specific implementations?18 -
There's no one correct way to get better. As with any skill, practice is one of the best ways to hone those skills. Various methods for that. Researching best practices, repetition, personal projects, professional development classes, online resources like codewars, codecademy, learn _ the hard way, etc
-
so we want to use this software for document mangement (versioning and stuff). i totally understand why the developer used rtf for document templates. but it took me freaking 6 hours to create a simple document header while finding out 500 designs and methods that didn't work due to the rtf format corset that differs more from word formatting abilities that i expected.
-
Why does EJB not allow me to access the methods. works, works, works for 3 methods and bam client access exception for the fourth one. Is there like a method count or something. I dunno if glassfish is unhappy for some reason. PermitAll, refershed Netbeans like a million times. I dunno could just use nodejs and javascript but project constraints.
Okay, enough for my first rant. I will debug away :( -
Bitcoin & Cryptocurrency Scam Recovery || Best Crypto Recovery Company
iFORCE HACKER RECOVERY can assist with the recovery of lost or stolen cryptocurrency assets.
In order to recover your stolen Bitcoin, working with the iFORCE HACKER RECOVERY team, who will go above and beyond. We've created sophisticated methods and strategies that raise the possibility of a full recovery. -
you guys know any free advanced MVC project tutorial video available? I would appreciate it because my ActionResult methods are becoming more complicated to manage based on params... thanks3
-
What do u think guys about the generic idea to add static methods in a class that will be some sort of "thematic helpers" that will be used in the whole app ?10
-
Here are few questions that you could expect when attending a Java interview
1 - In which programming paradigm Java 8 falls?
2 - What is MetaSpace? How does it differ from PermGen?
3 - What are functional or SAM interfaces?
4 - What are static methods in Interfaces?
5 - What are the various categories of pre-defined function interfaces?2 -
Writing javadocs for interfaces with quite complicated methods all day is so fucking exhausting. Programming itself is so much easier than documenting the written code clearly and precicely so that everyone understands it.
-
Your Bitcoin is Worth Fighting For: Discovering Pro Wizard Gilbert Recovery's Magic
In the world of Bitcoin recovery, Pro Wizard Gilbert truly represents the gold standard. My experience with Gilbert revealed just how exceptional his methods are and why he stands out as the premier authority in this critical field. When I first encountered the complexities of Bitcoin recovery, I was daunted by the technical challenges and potential risks. Gilbert’s approach immediately distinguished itself through its precision and effectiveness. His methods are meticulously designed, combining cutting-edge techniques with an in-depth understanding of the Bitcoin ecosystem. He tackled the recovery process with a level of expertise and thoroughness that was both impressive and reassuring. What sets Gilbert’s methods apart is not just their technical sophistication but also their strategic depth. He conducts a comprehensive analysis of each case, tailoring his approach to address the unique aspects of the situation. This personalized strategy ensures that every recovery effort is optimized for success. Gilbert’s transparent communication throughout the process was invaluable, providing clarity and confidence during each stage of the recovery. The results I achieved with Pro Wizard Gilbert’s methods were remarkable. His gold standard approach not only recovered my Bitcoin but did so with an efficiency and reliability that exceeded my expectations. His deep knowledge, innovative techniques, and unwavering commitment make him the definitive expert in Bitcoin recovery. For anyone seeking a benchmark in Bitcoin recovery solutions, Pro Wizard Gilbert’s methods are the epitome of excellence. His ability to blend technical prowess with strategic insight truly sets him apart in the industry. Call: for help. -
What are the best strategies to make an android application popular and increase the rate of downloads in playstore.
Strategy I heard to best is by choosing proper ASO. Any other methods are there ? -
So In Domain Driven Design, it is okay to have methods in your domain class to load children (lists) on demand? Example: Your aggregate root is Person. Then a person has a list of books that they’ve read. Is it okay to load that list of books by using person.GetBooks(); instead of loading the books when the person is initialized?2