Programming as a career

Message Bookmarked
Bookmark Removed
Not all messages are displayed: show all messages (903 of them)

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)

i hate the nitpicking that is rife in programming. is it a male thing, i wonder. men will argue over anything.

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)

four weeks pass...

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)

one month passes...

"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)

I agree that SQL is intuitive and expressive for a large range of problems. Unfortunately it also leads developers to put a lot of business logic in the database which is kind of an anti-pattern.

o. nate, Friday, 12 July 2019 19:35 (six years ago)

It never ceases to amaze me how much “mission critical” shit is written in toy languages designed to be intentionally “dumber” than Real Computer Scientist code

El Tomboto, Friday, 12 July 2019 19:39 (six years ago)

lol dan have you tried a little language called ~applescript~

j., Friday, 12 July 2019 19:47 (six years ago)

SQL itself is adequate, it’s relational databases that are truly a great invention

president of deluded fruitcakes anonymous (silby), Friday, 12 July 2019 20:22 (six years ago)

On the other end of the (in)comprehensibility spectrum, I find myself forced to trial-and-error my way through a regex thing (program? query?) today and wow, I fucking hate this. This kind of Perl-like bullshit needs to die forever

Dan I., Friday, 12 July 2019 20:59 (six years ago)

(I know, it's "powerful" or whatever, but as a human being--*barf*)

Dan I., Friday, 12 July 2019 21:00 (six years ago)

Oh I see, Perl descended from regex. That makes sense

Dan I., Friday, 12 July 2019 21:02 (six years ago)

perl is ludicrous but with regex I'm grateful to not have to write 50+ lines of complicated loops just to do a search and replace.

The Pingularity (ledge), Friday, 12 July 2019 21:23 (six years ago)

I saw the best minds of my generation destroyed by Perl-induced madness.

Vini C. Riley (James Redd and the Blecchs), Friday, 12 July 2019 21:26 (six years ago)

SQL is fun. But it’s when dealing with massive amounts of data that things get frustrating. Large amounts of data is rarely organized in a way that allows you to write “elegant” SQL, unfortunately.

John Jacob Jingleheimer Schmidt, Friday, 12 July 2019 21:40 (six years ago)

perl is the most wonderful language i ever learned and you are all monsters

j., Friday, 12 July 2019 21:44 (six years ago)


You must be logged in to post. Please either login here, or if you are not registered, you may register here.