if yall think agile is bad, pray you never have to work at a place that implements SAFe
― diamonddave85 (diamonddave85), Thursday, 11 April 2019 14:44 (seven years ago)
Moysey certainly couldn't manage it
― cherry blossom, Thursday, 11 April 2019 15:15 (seven years ago)
Underlying principles of SAFe
1 Take an economic view2 Apply systems thinking
― Andrew Farrell, Tuesday, 16 April 2019 15:28 (seven years ago)
We had some SAFe ideology at a previous employer. The concept as a whole could never fly because developers still had a strong say in how to manage projects.
― John Jacob Jingleheimer Schmidt, Tuesday, 16 April 2019 21:59 (seven years ago)
Hey, do this thing, it's quite urgent.
Ok, here you go.
Thanks, here are 6 pedantic review comments to slow you down...
Gah!
String processRequest() { // do something here // and here String messageId = sendReply(); return messageId;}
void someMethod(String input) { if (input != null) { // code that does something with input }}
― koogs, Tuesday, 30 April 2019 11:44 (seven years ago)
(the crime in the first one is that i could just return the result from sendReply, i don't need the local variable. the local variable makes it clear what the return value is and allows you to attach a debugger to something should you need to debug it.
the crime in the second one is that input cannot be null because the calling method has already checked it. i see no harm in checking it again just in case. also, you can't guarantee that future methods won't call this method with a null)
i hate the nitpicking that is rife in programming. is it a male thing, i wonder. men will argue over anything.
― koogs, Tuesday, 30 April 2019 11:51 (seven years ago)
I'm with you on point 2. what if someone else changes the calling method so it no longer checks for null?
― thomasintrouble, Tuesday, 30 April 2019 11:58 (seven years ago)
Never submit anything 'perfect', always leave a little low hanging fruit. Though goes more for QA than PR!
― cherry blossom, Tuesday, 30 April 2019 12:00 (seven years ago)
code looks fine on both of those, people need to stop nitpickingif it’s some public library that’s on github or w/e maybe standardize the style a little but, on the other hand, Microsoft’s samples for their Azure services that they publish on github is much worse
― mh, Tuesday, 30 April 2019 12:15 (seven years ago)
*are much worse
I wish those were the types of issues that came up in code here!
― Colonel Poo, Tuesday, 30 April 2019 12:32 (seven years ago)
that's my point - they aren't issues 8) why flag them and delay the fix that they wanted in the first place?
meanwhile, the new team lead, see above, is stinking the code up with cryptic syntax and bad config file formats but has such a superiority complex that he won't listen.
― koogs, Tuesday, 30 April 2019 12:48 (seven years ago)
yeah I don't mind either of those. we deal with a lot of 3rd party software that uses our stuff so the more null checks the better.
also like it when code is easy to debug. I always get irritated when people write one line methods that invoke five separate calls, which can be really irritating to debug when something goes wrong. though Java 8 streaming and lambdas sorta encourage you to write this way, I've (luckily) never actually had a problem with those...they're like the one thing that actually work exactly how you want them to
― frogbs, Tuesday, 30 April 2019 13:22 (seven years ago)
the impossible bargain of using higher-level APIs that just work 90% of the time versus the struggle to wean people off them when you've outgrown that use case
― mh, Tuesday, 30 April 2019 13:29 (seven years ago)
My life has become easier due to recent versions of Eclipse (the Java IDE we use) having a debug variable for "that function we just came out of returned this!"
― Andrew Farrell, Tuesday, 30 April 2019 13:39 (seven years ago)
I would have probably asked you to put in a null check if your method didn't have one. As much as possible you should never assume that any checks are going to be made before a function is called. This is basic stuff I would think.
First one is definitely a pointless nitpick.
― silverfish, Tuesday, 30 April 2019 13:47 (seven years ago)
had a fun time refactoring something yesterday...we call a module which returns a bunch of class codes, which has four components...two numeric codes, a description, and an indicator. for whatever reason the programmer decided to return this as an UnmodifiableVector of String[], which you have to read vertically (vec.get(0)[index] + vec.get(1)[index] etc) to return a full result...which I guess worked fine until we had to filter some out. I don't understand why people don't just create objects for stuff like this. Creating objects makes your code so much more readable and it is also fun and rewarding
― frogbs, Tuesday, 30 April 2019 13:52 (seven years ago)
I definitely agree that anyone nitpicking over this code has too much time on their hands. For the second, my personal preference would be to reverse the logic of the null check- ie if it’s null, throw- to reduce nesting, but I wouldn’t ever ask anyone to change it.
― o. nate, Tuesday, 30 April 2019 13:56 (seven years ago)
I've really started to like the defensive coding strategy where the entire first section is null checking, validation, etc. and then the rest is just "do stuff"
also lets you throw the right exceptions more easily
― mh, Tuesday, 30 April 2019 14:05 (seven years ago)
That vertical string array is one of the craziest things I've ever seen.
― Andrew Farrell, Tuesday, 30 April 2019 14:56 (seven years ago)
IME reviewers do this when they don't feel like they have any other substantive to add, whether it's a gendered thing idk!
― Perfect Leee Cromulent (Leee), Tuesday, 30 April 2019 16:48 (seven years ago)
True, I've done it myself, just to prove that I've read it in detail. But always try to phrase it as a comment rather than something that's wrong and must be changed
Certainly I don't keep insisting it's a problem after the writer has explained his reasoning, as happened here. (For example, I said that I used a local variable because it makes using the debugger easier and I was told that I should instead set a breakpoint in the calling function and use the special return value thing in the variables window. My way I get to *mouse over* the variable name *in the method i'm debugging*, no extra windows taking up screen space, nothing. Plus it explains what the return value is, whereas the method name isn't always obvious)
― koogs, Tuesday, 30 April 2019 18:31 (seven years ago)
https://www.youtube.com/watch?v=AEBld6I_AKs&feature=youtu.be
― How I Redd One of the Blecchs (James Redd and the Blecchs), Monday, 6 May 2019 17:44 (seven years ago)
https://www.youtube.com/watch?v=AEBld6I_AKs
― How I Redd One of the Blecchs (James Redd and the Blecchs), Monday, 6 May 2019 17:45 (seven years ago)
xp An error occurred. Please try again later. (Playback ID: gmdBDNX-8DB0KXgZ) lol
― just another country (snoball), Monday, 6 May 2019 17:45 (seven years ago)
Please open a ticket
― How I Redd One of the Blecchs (James Redd and the Blecchs), Monday, 6 May 2019 17:56 (seven years ago)
If the ticket management software is anything like the one I use at work, I'll have to make a second ticket when the ticket management software crashes when I try to make the first ticket.
― just another country (snoball), Monday, 6 May 2019 18:05 (seven years ago)
What hub are you on?
― Careless Love Battery (James Redd and the Blecchs), Tuesday, 7 May 2019 01:30 (seven years ago)
Please send a screenshot to the following distribution list: sixfootmeneh✧✧✧@vax✧✧✧.c✧✧
― Careless Love Battery (James Redd and the Blecchs), Tuesday, 7 May 2019 01:34 (seven years ago)
Would it be cromulent to ask an intern candidate to differentiate a function that I need for work because they list calculus as a concentration?
― Soccer Team's Philosophies and Hypotheses (Leee), Wednesday, 8 May 2019 01:34 (seven years ago)
Is that something they'd probably need to do on the job?
― but everybody calls me, (lukas), Wednesday, 8 May 2019 02:30 (seven years ago)
they opened the door
― j., Wednesday, 8 May 2019 02:46 (seven years ago)
Not normally! It's just that I'm working on a feature that requires equations that algebra can't solve, and I like human feedback to complement what Wolfram Alpha has given me.
― Soccer Team's Philosophies and Hypotheses (Leee), Wednesday, 8 May 2019 05:31 (seven years ago)
I want, not I like.
― Soccer Team's Philosophies and Hypotheses (Leee), Wednesday, 8 May 2019 05:39 (seven years ago)
Is SQL knowledge among developers something that's on its way out? And I don't mean DBA-level knowledge, just simple familiarity with basic selects, joins, etc.
― In a station of the metro / My milkshake brings all the boys to the yard (Leee), Friday, 7 June 2019 17:17 (seven years ago)
It's all about the nosql now, I fear.
― koogs, Friday, 7 June 2019 17:20 (seven years ago)
Probably, which is dumb, because databases are good, and it’s possible to use them in smart ways, but only if you know SQL, and nobody has designed a language other than SQL for RDBMSes that can actually use all their features efficiently as far as I know.
― don't mock my smock or i'll clean your clock (silby), Friday, 7 June 2019 17:26 (seven years ago)
idk how common this is but where I work each team has its own database person. not that we really get any special privileges but we do get to optimize stupidly complex queries and run endless scans for marketing people
― frogbs, Friday, 7 June 2019 17:27 (seven years ago)
I certainly haven't used sql in 5 years.
Database layers in code always used to be a faff, as was waiting for the DBA to write you a stored procedure to do what you needed.
That said, getting errors at 9am every morning because you've gone over your opaque iops limit in an aws hosted dB somewhere gets old quickly too.
― koogs, Friday, 7 June 2019 17:30 (seven years ago)
(first job I had involved the sql-based Informix report generator language and I used to love crafting those reports)
― koogs, Friday, 7 June 2019 17:32 (seven years ago)
i just used an sql query the other day!
― j., Friday, 7 June 2019 17:59 (seven years ago)
it reeeeally depends on what you're doing
persistence and mapping frameworks are good enough now that, unless it's really high traffic or a very complex table structure, it's a good idea to *not* write your own queries
I think the new status quo is fine because developers wrote too much bad sql
― mh, Friday, 7 June 2019 18:24 (seven years ago)
I wrote a few queries the last few weeks but they're being used in a data transfer tool
btw I'm all in favor of Apache NiFi now, as long as it's used intelligently. nice software!
― mh, Friday, 7 June 2019 18:26 (seven years ago)
The trouble is using ORMs exclusively will not teach you how to design a database well, and depending on the ORM can teach you actively bad ways of using a database.
― don't mock my smock or i'll clean your clock (silby), Friday, 7 June 2019 18:32 (seven years ago)
oh, for sure. someone else should be designing your database, but the majority of the people actually writing software to hit the database, no prob
do NOT do the code-first, auto-generate the database path if it's going to be hit by more than one application. a particularly bull-headed jerk of a former coworker apparently was the software architect for a piece of software where he did exactly that and he completely fucked the project and I think people realized he wasn't as good as he liked to claim. dude should not have been designing anything used by more than a couple people imo
― mh, Friday, 7 June 2019 18:36 (seven years ago)
"Payment amount£54.2400"
dunno who's doing the QA at (large electricity provider)'s website but they need to be better than they are.
had an hungarian tester once who did a report which contained a *mix* of european format numbers and english numbers. wasn't even consistent within the same one page email, really confusing. ie:
25,456 = 25 thousand 4 hundred and fifty six in english, 25 and 456 thousandths in hungarian
4.294 = 4 thousand 2 hundred and 94 in hungarian, 4 and 294 thousandths in english.
https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html
― koogs, Friday, 12 July 2019 18:03 (six years ago)
While not a “programmer” I love SQL - so simple, so elegant
― calstars, Friday, 12 July 2019 18:39 (six years ago)
Me too! I love that its grammar is so much closer to natural (english) language than anything else I've worked with. It's intuitive! More so for "verbal" people than "quantitative" people, I think, if that's a real distinction
― Dan I., Friday, 12 July 2019 19:12 (six years ago)
It’s a language for writers
― calstars, Friday, 12 July 2019 19:14 (six years ago)
y'all would love COBOL then :)
― frogbs, Friday, 12 July 2019 19:32 (six years ago)