Details
-
AboutSoftware Developer
-
SkillsC#, SQL, AngularJS
Joined devRant on 5/16/2016
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
-
> Is it just me?
No. I tend to focus more on error handling+logging.
When you access an external resource (web api, database, etc), are you logging enough information to troubleshoot the issue *when* it fails? What do you want to tell your future self about this area of code, because 6 months from now and a phone call at 3:00AM, you won't remember any of this.
Ex. This morning our access to Oracle cloud was broken. The only error logged was the JSON serialization exception. No context, nothing to indicate that service was the problem. Took about an hour for the dev to figure out it was a 404 response. He didn't ensure a 200 response before trying to deserialize. Oops.
If he had logged what the actual response was, the URL resource, he could have figured out the problem in about 3 seconds (and keep about 6 other techs from scrambling around pointing fingers at each other) -
@retoor > "I love coverage"
I do as well. I believe if the code can be tested, it should be tested.
If the code can't or doesn't need testing (why would anyone test a method that sets a=b?), then don't.
We've had our share of TDD zealots that created quagmires of complexity just to say "My code testable!"
Creating an IDatamanager with 100+ methods and mocking this&that, or worse unit testing POCOs/models,
ex. customer.firstname = "foo", Assert.IsTrue(customer.firstname == "foo"),
does not serve the customer.
One of the worst examples is our web team created their own testing framework. It enabled them to have before/after scenarios (TL;DR) and "easily" have hundreds of tests. All was good until a .Net upgrade broke "something" and none of the original developers were here that knew how to fix it. For a long time (they had to re-write all the tests), our site had zero testing before deployment. "If it builds, ship it!" was the process. -
@PaperTrail > Part 2:
Mgr: "but..but...if we have 100% code coverage, making changes is easy!"
T: "Two words. Technical debt. Test code is debt. Nobody, I mean nobody wants to change someone else's 5 year old test code. 100% code coverage is a lot of debt few are willing to pay. I've worked with Cerner and 100% code coverage is non-negotiable. People's lives are at stake, so they are willing to pay the price. Here? You guys write CRUD apps. I'm sorry, trying to get 100% is a feel-good number."
<Mgr, pissed off, walks out>
I almost wanted to give him a hug. I've been saying that ever since the dev mgr came back from some big shot Gartner Group training. My guess is he ate lunch with someone who asked him about code coverage and the mgr couldn't answer him. -
We've been fortunate that all our in-house trainers have been working developers that 'teach on the side'. They had the "this is the theory, but this is what works ..." mindset. YMMV
Boring history lesson part 1:
Ex. many years ago we had a trainer come in to teach the 'proper way' to unit test (the dept mgr was pushing for 100% code coverage, TL;DR, and he believed a 'professional' could come in and shame us into shape)
Day 1, the dept mgr was trying to nudge the trainer into preaching the glory of 100% code coverage.
T: "Yes, 100% is the ultimate goal of TDD, but I've rarely seen it in practice. You have to set the goal to what works best for your team. If your coverage is 20% and you're stakeholders are happy, then that's fine. If it's 100% and developers are afraid to make changes because of broken tests, then that's bad." -
@tosensei > "having money is no indicator of having any kind of qualification. only of 'being lucky'"
100%. #iamafraud -
@Lensflare > "programming in MS Word"
Programming? No, everybody knows MS Word is for web site development. :)
Our early intranet content (before Sharepoint) was written in MSWord. Users had shared folder for the docs and would "publish" (file->save as html) directly to a shared folder in the wwwroot.
My gosh those were simple days. -
@JS96 > "Visual Studio has the best UX, UI and performance in my opinion"
There are some that feel writing code at a command line level makes them superior.
Are they? Probably.
If I have to go to a command line (powershell, etc) to do my job, I'm doing something wrong. -
@tosensei > "you don't know that rider exist"
Let me check my success record ...bank account...401K...both kids college paid for 100% (no student loans) hmm..tools like Visual Studio has worked out pretty well for me and my family.
Could I use rider, notepad, pen&paper? Sure, but I'm not smart enough to do what I do and succeed using those tools. I'll have to leave them to the experts.
#iamafraud -
@tosensei > "who TF is even using visual studio at all?"
Using it right now. Got about 20~ish devs here also using Visual Studio. -
@Demolishun > "G502"
Nice.
My G602 switches wore out after many years of faithful service. I think I paid around $30 back then, I can't think about paying close to $100 for a mouse now. Been watching the sales and refurb market for a < $50 (wireless) G502. Dealing with my $10 backup TechNet "gaming mouse" in the mean time. -
> "Bought Logitech gaming mouse."
Which one? -
> "over-engineering patterns, and stuffing every piece of code with interfaces to make it testable."
Amen!
Our code base is littered with IDataAccess interfaces that are simply data access repositories. -
I'm fixing an old dell laptop that the HD crashed and thought I'd play around with linux (on a new HD, of course), is Ubuntu a good choice? Others? Lots of distros out there with everyone saying "The one I use is the best!!!"
-
Examples? We can't make fun of the code without some examples.
-
I use Glary Utilities (https://www.glarysoft.com/) to clean up my computers. Nag screen every once in a while, but for free, it's OK.
-
> "this thread is more about empathy and awareness"
Don't stress Microsoft politics and its pushing something new ever year or so.
I've had this argument with some pretty smart folks over the years with .Net. I say, it's all the same, just a different suffix and has zero impact in my life. Other get giddy, scared, stressed, <pick your emotion> over .Net this, .Net that..when it changes nothing in our code base.
J: "OMG! This <random feature> is going to save the company 100,000 lines of code!!"
Me: "Are you going to re-write our entire code base just to use that new feature?"
J: "No, that would be stupid"
Me: "So, that feature will save the company ... zero lines of code?"
J: "Smart ass." -
@mostr4am > "i do not think trump will do shit."
100%. I wish we had better choices.
I'm surrounded by 24/7 Fox News watching family and I'm so sick of them rambling on about how Trump will "fix" all their problems.
Then the other side thinks Trump is still President. Wife's cousin said
T: "I'm voting for Kamala. We need someone who will turn this economy around. Trump ruined everything."
Me: "You do know Trump hasn't been President for the past 4 years, right? If you believe a President has any affect on welfare checks, why would you vote for Kamala?"
No response, but if looks could kill.
I swear I'm in the movie "They Live!" and I'm all out of bubblegum. -
@jestdotty > "why are you celebrating that you're profiteering off taxpayer's and war."
Celebrating or is it a realization that the world is always at war? Either real wars (Ukraine) or made up wars (war on drugs, war on terrorism, war on women, etc).
Rule of Acquisition #34: War is good for business. -
@mostr4am >"remember the brave .."
*yawn* Who?
#winning -
@mostr4am > "Stay in your retarded US if you like it that much."
It is pretty sweet here. -
@mostr4am > "when the russian comes we'll just blow them up"
Blow them up with...? From who?
If *any* European country could stop Putin, he would stay in Russia.
But don't worry, when the big bad bear knocks on your door, we'll be there to protect you...again. -
@mostr4am > "1 billion a piece F35. It's not a gift to us, retard, it's a gift to lockhead."
And my 401K thanks you for the purchase. -
@Demolishun > "europe is fucked without US support."
I'm waiting for the Europeans/socialists to jump in "We have the U.N.! We have NATO! We don't need the US!!!"
I remember the panic...PANIC, when Trump threatened to stop paying to support NATO/U.N.
Russia is literally at Europe's doorstep and shows no restraint on expanding its territory.
What would Putin do if Trump says "Screw you guys. We're out."
Would Putin say "Oh no! The UN will surely stop me now. Better stay in Russia and drink our vodka."
or
"Ha ha ha....excellent" -
@mostr4am > "It's how russia won ww2."
<opens history book>
Um...russia did what? -
@Demolishun > "USA is now guns and fat as impression"
I don't know what got him on the subject, one of my nephews asked me what would happen if China invaded the US (my guess his 24-7 Fox News watching grandma was talking to him).
Me: "A blood bath"
B: "Don't they have like a billion people they could send over?"
Me: "Doesn't matter. Too many crazy people live here with a hero complex. It would become a game. Contests with prizes kinds of games. California might fold pretty quickly, you know the liberals and socialists love China, but Texas, Florida, Oklahoma, Missouri, geez. Send 10 billion and they still wouldn't have enough."
B: "So, we'd be OK?"
Me: "How many guns does your grandpa have in his basement?"
B: "Its full of guns. Every corner has a stack of em'"
Me: "Exactly. Me, your dad, your grandpa, all of us would never, ever let anything happen to you and your brothers and sister."
B: "What you are saying is your part of the crazy ones?"
Me: "100%"
God bless America. -
@TrayKnots > "Keep us updated on this."
Maybe the best thing with Zoom right now is their API documentation. Its not out of date and consistent. We've got two other teams working on integration and after helping them with authentication and initial API calls, they haven't bothered me.
Almost want to reach out to our Zoom contact and say "Thank you for making your API boring." -
@Demolishun > "I learned the gimp word in late 80s to early 90s."
A previous dev mgr here is a diehard Tarantino fan and talked about all the weird sex stuff Tarantino put into his films. Never noticed the feet thing before either until he pointed it out. Too weird for me. -
I wonder after the release of 'Pulp Fiction' the makers were like "Oh crap, now everyone will know what a Gimp really is"
I had no idea. Now anytime I open Gimp, my mind goes to that scene. -
I use Brave for youtube. Haven't seen a youtube ad in years.
-
@retoor > "I said last couple of years"
I don't think racism is any worse, I think the liberals/socialists/far-left has fired up their base as victims (again) and using race (again) to make themselves legitimate.
Before my far-right friends jump in and scream "YES!!", the same thing happens when I hear "Christians are under attack!" or "They want to cancel Christmas!!!"
When our local high school allows a LGTPZ-whatever parade down the halls during school and bans a student led prayer group in the lunch room *before* school, then I'll say we're under att...oh crap.