Okay, here we go. I’m going to spit out some bullshit and home someone corrects me if I’m wrong. I’ve looked for some explanations and this is what I’ve gotten.
Are you ready?
The Factory Pattern.
My understanding is that the purpose is a function to return any of several types of objects, but a specific type, not just an interface or whatever they might all inherit from.
I think most languages now have something like a “dynamic” keyword to solve this issue by allowing determination of the type only at runtime. (To be used with extreme caution.)
But most of the time I see the Factory pattern, it’s used unnecessarily and can only return one specific type. Why they would use a Factory pattern here and not just a plain old constructor confounds me.
Yeah most uses of the factory pattern are unnecessary and it’s mild code smell IMO. If your factory only returns one type you should definitely just use that type’s constructor.
Factory pattern can return a mock type for testing or a production type, as needed, which makes it possible to unit test the code that uses the produced object.
This quick guide explains it well. Then it improves on it by explaining dependency injection.
That one dude still using Delphi is getting screwed.
Also, these salary numbers seem… real low. I get that it’s the median so maybe a huge number of overseas engineers are pulling the results down but in my neck of the woods 105K is less than what we pay juniors.
As a developer I object to your assumption that I need a mouse to do my job. The only thing I need a mouse for is outlook and I’d definitely be more productive without it.
I’m a senior engineer now and I’m a big mouse user. It’s more intuitive for me. My productivity is certainly not bottlenecking on how fast my hands move on the keyboard. .
My productivity is bottlenecked by the number of meetings I have to attend, random slack messages that need to be responded to, and distractions IRL.
Nah fuck the haters, the keyboard-only workflow may be technically more productive, just like a Dvorak is better than a QWERTY, but what matters is your output and your quality.
Thank you for this, now I know I have 26+ registers to store stuff in as well as the system clipboard! Honestly been so busy I haven’t touched my computer in over a week.
I choose to eschew my mouse when I can because it’s easier. I don’t have to move my arms around as much, and I can work quicker. It’s more comfortable. All of this is a preference thing, why should anyone do something my way if it’s not how they prefer?
It’s for navigating web documentation when arrow keys are too fine but page up/down keys are too coarse.
I guess you could hit tab 9000 times to get to the right hyperlink. I’ve done that when setting up Hyperland on an Nvidia GPU and my cursor was there but invisible.
Good opportunity to say how annoying are update notes like “We are continuing to improve our application. We fixed a couple more issues to make it more stable”. Corporate style, uselessness and the fact that this update can contain some stupid redesign is disgusting.
I’ve reached a point where I avoid these types of updates. An update post like that either means nothing important changed or they’re up to something.
A while ago I saw that style of patch notes, updated an app, and suddenly I can’t use it anymore because it got limited to a maximum of 2 devices. Another time I updated an app putting a harmless “we improved the user experience” message, they put dark mode behind a paywall. This isn’t counting the number of times an app got redesigned to make the user experience worse for no reason. Maybe they wanted to justify hiring 5 UI/UX interns in that quarter or something.
The patch notes look harmless, but my god, they are usually up to something.
Yeah. I do the same. That “we are making improvements” text is corporate for “we don’t have anything remotely close to change management or quality assurance”.
Honestly the first one is the only one that works when people define the first day of the week differently. On the other hand, it does make you wonder. If Sunday is the first day of the week (as it is in many places) then how is it also part of the weekend?
But if you’re worried about locale, you can’t assume people use the string “Saturday” to describe Saturday either. That solution only works in English.
I’m not using it as much as I should be, but it is genuinely a pleasant improvement over sitting all day long. A really expensive chair can do you a lot of good, but nothing beats the mobility of standing. When I read something or watch something I can do some light exercise for my legs, squatting a tiny bit and moving my upper body left and right for example. For a lot of people it can be a good start to moving their body a bit more.
If you go running every other day you don’t need it, I’ll give you that.
Slap some buttons down and have them do math. I made an NPC generator for every RPG I ran in VB as a teen. I felt like I was a hero putting out something that looked “good” for the time.
programmer_humor
Top
This magazine is from a federated server and may be incomplete. Browse more on the original instance.