Details
-
AboutI'm just a random programming nerd. I write code at work and as a hobby. I don't shy away with any project or task. Actually, I could be a masochist in that regard... Since the harder it is, the better.
-
SkillsC#, js, vb, vb .Net, c, c++, Java, node, python
Joined devRant on 7/12/2019
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
-
@nitnip I'm not mad about conventions, or for having to write in HIS way. What gets to my nerves is when ppl say something is more readable when it's just that they are used to do it that way.
I don't really care how to code while I'm getting payed for it (provided that everyone involved in the project uses the same conventions, I wouldn't even mind to switch between tabs and spaces for crying out loud)... but I could do it without him berating everyone who does not adhere to his way (even people working on other projects that have nothing to do with this one).
He is a nice guy, I get along with him quite well. But he offen makes it seem like he is the only one with a sound answer and everyone else is just smearing his code.
I mean, I get it, I sometimes feel the same way about code I did not write, but have the common sense to realize that my way is not the only good way. And I am open to learning from others. -
@Fast-Nop that really is usefull to know. I'll have it in mind. Thak you!! :)
Luckily the adaptor I ended up buying worked like a charm with the device I had to use. -
@frogstair It really was the last thing to come to my mind. But the delivery company was runing a week late and I needed the adaptor for a proyect for which the deadline was getting dangerously close.
The delivery company kept reporting that I was not home, even when while working from home due to the pandemic, I do not leave my home on weekdays... what is more, the window from where I work is 2m away from my door....
So I went, i bought one and sincerelly told the delivery company to go fuck demselves.
Their customer service even told me that "although they didn't want to imply that I lied, it was my word agains the delivery guy"
It goes without saying that I will never work with them again.... -
@Sumafu Now you make me want to refractor some of our codebase with crying and angry emojis....
-
Also, the emergency exit light looks like it is on
(the reflection in your monitor) -
Oh, that's easy, mine is...
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Process dozingncoding ended
Press ENTER to continue -
@12bitfloat
Lets write everything in assembly then...
Is the same piece of code slower using LINQ than using loops?
Yes
Does that mean that whenever you use LINQ you shouldn't be mindful about performance?
Absolutely not. -
@datanerd
Count() will evaluate the condition on all elements in the list. Now suppose that list to be extremely huge, and the condition's evaluation to be relatively complex.
In this particular example it would be way more efficient to write for example:
var element = HugeList.FirstOrDefault(Condition);
if(element != null)
DoSomething(element); -
The first one helps
The second one renames
The third one searches
The fourth one usually shows properties
The fifth one refreshes
Don't know what the sixth one does
The seventh one corrects spelling mistakes
And well, I don't know what the rest usually do... -
sorry @powerfulparadox, I deleted my last post arguing against such practices as soon as I read your last post, understood your you are not defending that, and seen my comment was no longer relevant.
You don't have to apologize. -
Not only does it look unprofessional, but comments like that tend also to be wordy.
Go to the point.
Comments exist to help others (and yourself in the future) understand what certain piece of code does or why it os written in such way. -
@StefanH Havent seen that video.
But my response to that guy would be:
What is the best way of defeating those script kiddies? Acting like one? -.-
Wouldn't it be better to implement some strong authentication and then follow conventions so that the api is easy to communicate with? -
Well heck, isn't this api a cavalcade of random fuckery. Some of those actions returning 404 do not actually return 404, but 302 redirecting to another resource that returns 404. But the cookie I want is only returned with the 302 response, so I'll need to disable automatic redirect following for some of them...
Amazing... -
@12bitfloat
Tell that to our customer, they have around 2k warnings per project...
And they consider it to be normal... -
Remember, few things are more private than a pubic variable...
-
@karma according to googe, 5 years ago I was walking in my city and suddenly got the urge to go to a city 460km away in a straight line at 1341 times the speed of sound just to come back.
It also looks like I sprained my ankle since I only was able to come back at 104 times the speed of sound... -
It's the devil's doing.
<histeric>The devil I tell you!!!<\histeric> -
90 more to go
-
@NoToJavaScript
Don't worry, I'm used to it. It happens to a lot of people, with both Any and First or FirstOrDefault ;) -
https://docs.microsoft.com/en-gb/...__
-
You can use your lambda expressions inside those any calls and remove those where calls. It would make it more readable (at least for me). I also tend to use class initials instead of x or xx (p for project and t for task for example) but that's more how I like tk write it.
-
I have found many devs who are unable to distinguish between what happens at backend and what at frontend.
More often than not those people I found were used to using server side components like webforms. -
@RandomJavaDev
I.... Can't recall how... It was just a dream, dreams don't usually make much sense. Do they? 😅
The only thing I remember about the dream is fixing things by debugging their functionality (somehow) -
I dreamed once that I could debug anything (even a microwave)
-
Bad (the very same code after going through sales department): it works and it has also some nice "features"
-
@dodomo
Another way:
display: grid !important !super !duper
Important should be avoidwd in css whenever possible. There are other ways of overriding styles, and I have always found a dickish move whenever a framework includes some !important style. -
Whenever I have to delete or update data in a database, I always write a select first to see how many rows would I affect to, then reuse the where clause and write the rest.
It requires more work, but reduces my level of stress when someone asks to change data in production. -
I have to keep switching between c#, vb, vb .Net, javascript and occasionally python or php. Even if you get used to it, you'll keep wondering why a semicolon is an error sometimes, until you realize you are in a different language. But I do believe is positive to expose yourself to different languages
-
Easy
😀 +😀 = 2😃
Older equivalent
😀 = :)
Therefore
2😀= t2
So
😀 + 😀 = (Terminator 2) -
Programming speed is often not the keys you press, but the ones you don't press (making use of intellisense)