Details
Joined devRant on 4/16/2017
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
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Maybe try to stop drinking coffee. I used to drink 1.5 to 2 liters of coffee every day at work until I realized that coffee doesn't make you sleep less, you have to make up for it in your free time on the weekends. And I just don't get paid for that.
It took several months before I was able to work and live without caffeine as I had done with it. -
What makes you think that if a class happens to have methods of the same name and signature that this class is this implicitly implementing the interface?
Lookup what homonyms are for just one reason why this is a bad idea. -
Does Atwood's law apply to job applications as well? Haven't seen one written in Javascript, yet.
-
Just write a script to replace all remaining variable und function names in your entire code base with underscores. Then lean back and watch everything burn. Only then they will truly understand your point.
-
Remove the small battery on the mainboard then and if they wonder about wrong date/time settings and funny error messages on startup then tell them "as required by the spec"
-
Before you leave, contact his boss and tell him that this (screenshot) was the reason why they didn't get their apps. If they treat people like shit then this is exactly what they'll get in return.
Otherwise they'll blame you alone and that guy won't suffer any consequences. -
@halfflat I've never heard about that idea of formatting code. There is no such option in clang-format for good reason. As @iiii already said: use parentheses ffs or at least learn operator precedence. This is basic knowledge in any language.
std::cout << a++ * b + c;
Head -> 🧱 -
@halfflat It usually isn't very common to write down code that needs special formatting attention. Sure there are cases like matrices, where you need to see the NxM grid in source code rather than just a list of comma separated value, but if you need to you can always enforce manual formatting for a code region.
Most cases however where developers feel the need to adjust formatting to match their personal taste of readability are a waste of time. Think about the number of hours spent discussing about formatting details and personal preferences, arguments with colleagues who didn't follow the guide, and teaching new team members the set of rules (which they dislike).
All that disappears with automatic code formatting. I've had your point of view a couple of years back. My main issue was trust. In didn't believe how damn good these tools are today and how well they do what I would manually do the same (or close enough). Once you get used to such tools you don't want to go back. -
@halfflat there is always disagreement about how to format this and that detail, regardless of how detailed or strict you define your code style guidelines... Until you introduce an automatic code formatter like clang-format. That's because of people don't have to spend time on formatting any more they stop thinking about these details, but instead think about stuff that really matters. It is a tough transition for anyone who is a formatting hardliner who likes blaming others for not following the code style to the point. But even those will thank you at some point, believe me. I used to be one of these guys in the past.
-
Works for me
-
@SortOfTested Haha that would be funny, but only if I did it anonymously.
-
@SuspiciousBug Regarding the measurability of a software developers' work I have to disagree. Any job where you have to process a certain number of tasks of nearly unique size is more measurable than software development. The more complex a task the more risk is attached to it, which generally makes any two such tasks incomparable. Sure you can generate a whole bunch of funny numbers, but how meaningful are they? Risk causes imprecision of any measurements done, even afterwards.
That's the whole point of why so many project managers fail at managing software development related projects if they originally come from other companies where they had to manage other types of projects. Most fail to realize that managing software development is mostly risk management. That's why scrum or agile in general focuses on what has been learned and constantly updating the plan rather than on planning ahead too far based on wrong assumptions. -
@SuspiciousBug I highly doubt it. Upper management won't let themselves being taught anymore. I think they're preparing that shit for weeks if not months. Simply convincing them would imply that they would have to admit a mistake, which won't happen.
Instead they need to realize themselves that software development is not assembly line work, in which case they'll simply silence the issue and promote something else. Something new. Something even better. But it is to early for that.
I'm not sure if I want to be the one who told them upfront, because otherwise I'll later be the one who remembers the truth. Like the one who knows the murderer.
I think that managers starting at a certain level are generally good at "not making mistakes" by either successfully blaming others or by distracting from the error made. Otherwise they would never have reached that position in the first place. -
In my experience your observation that every good programmer drinks or smokes is not true. There are some obvious external factors like taxes on alcohol and tobacco, general social acceptance, or even habit among colleagues that make this a local phenomenon.
-
did the seller tell you which year's Nov 5th?
-
@stub sure I could, but should I?
-
@electrineer @bols59 I'm aware that there are many alternatives, most of which are probably better than Google play music with regard to playing local music. Doesn't change the fact that the app still did what it was supposed to do and that I was surprised that it was discontinued.
-
@jespersh actually I was surprised, but if they really warned about the end of life of this app, they warned on channels I don't read. In my defense I'm not at all interested in Android development and I'm a pure user, so to speak.
-
@rooter Most streaming services I tried so far offer a very poor collection of music I like to listen to. I'm not the mainstream music guy.
-
"Note that QThreadPool is a low-level class for managing threads, see the Qt Concurrent module for higher level alternatives."
-
My programmer voice says "why use floating point numbers for an unsigned integer counter?!"
-
@AlmondSauce Well, not exactly on my own ofc, but I did a fair amount of work myself. Otherwise it would have taken *years* to finish. However, I'm particularly proud that I drew the whole plan of the building. I started with a graph of rooms which I wanted to be interconnected and on the same floor, then drew several versions with pen and paper while balancing tons of requirements and constraints (terrain course of the hillside property, course of the sun, walking routes within the building, flexibility in exchanging function of some rooms in the future, minimization of wasted space such as hallways, considered the acoustic between certain rooms, etc...) , later with SolveSpace and finally built a small scale version with Lego bricks because my wife lacks some spacial imagination 🤪. In addition, I have done everything you can do as a hobby craftsman.
-
Jokes about your boss?
-
Simply plot the difference of your funktion and ln x:
On a linear scale (adjust x range at the end) :
https://wolframalpha.com/input/...
Using a logarithmic x axis :
https://wolframalpha.com/input/... -
The only alternative would be to use one of the ancient chairs. However, none of them meets my personal ergonomic requirements. Some have no armrests, are worn out, or wobbly. Actually, most of the chairs here should be replaced by new ones, but as I said: my employer is too stingy when it comes to this topic.
-
@Tarak311 two possible reasons why they ask this in an interview :
A) they want you to say this code has UB.
B) they are idiots. If they don't know about UB you should look for a different employer 😉. -
@Mvzes That's why this code has undefined behavior in C. A variable cannot get updated more than once within a sequence point. Different compilers may generate different code for this.
-
@bytecode nope, it's just a regular "over the air" patch cable.
-
Java is not cross platform, Java is a platform. Without the platform being installed Java does not work.
-
Beginners All purpose Symbolic Instruction Code!