News for hackers. Stuff that matters.
Re:Things I Learnt from a Senior Software Engineer by harrisonjackson on Sunday August 25, 2019 @10:12PM (#20796978)
For me, it depends on who is creeping. A junior engineer, I'd probably pull them up and start explaining what is going on. A fellow senior engineer I'd probably take a welcome break and ask them to grab a coffee - the only reason they'd be lurking lol. If it is a PM or someone else it might put me on edge - likely because they wouldn't have the context to understand what I was working on and if they didn't say anything I'd just be wondering what they wanted...
Re:Things I Learnt from a Senior Software Engineer by Scarblac on Monday August 26, 2019 @03:56AM (#20798124)
So in all three cases, your focus is gone and what you were doing has stopped.
Re:Things I Learnt from a Senior Software Engineer by SamuelAdams on Monday August 26, 2019 @08:28AM (#20799259)
Eh, not really. Not all engineers work in high-pressure environments where focus is essential. Some senior engineers really enjoy teaching others. Some of the best mentors I've learned from were the ones who were happy to spend an entire Friday afternoon showing me how they would solve an interesting problem.
Re:Things I Learnt from a Senior Software Engineer by aspaceman on Monday August 26, 2019 @05:10AM (#20798354)
Helping a junior and maintaining relationships with your fellow seniors is a part of the job too.
Re:Things I Learnt from a Senior Software Engineer by monsieurbanana on Monday August 26, 2019 @08:13AM (#20799155)
But surely there's ways of doing that without making people lose their focus.
Re:Things I Learnt from a Senior Software Engineer by nickpsecurity on Monday August 26, 2019 @10:25AM (#20800093)
Such as assigning times for focused vs collaborative work.
Re:Things I Learnt from a Senior Software Engineer by bochoh on Monday August 26, 2019 @10:38AM (#20800219)
Yes, a vibrant meme room in a "management expects you to respond to business issues in this room" channel on <slack|teams|etc>
Re:Things I Learnt from a Senior Software Engineer by SolaceQuantum on Monday August 26, 2019 @09:20AM (#20799624)
Actually, is there?
Re:Things I Learnt from a Senior Software Engineer by OJFord on Monday August 26, 2019 @12:59PM (#20801501)
Yes, you pick the moment (much) better than wandering over to peek over their shoulder when 'something interesting is going on'. IMO that's exactly when you don't, ask them about it later.

To borrow from that cringeworthy scene in The Social Network: He's wired in!

Re:Things I Learnt from a Senior Software Engineer by chasd00 on Monday August 26, 2019 @03:04PM (#20802679)
also, imo explaining something complex to someone junior often leads to answers to other questions. For some reason, talking through code out loud helps the problem solving process.
Re:Things I Learnt from a Senior Software Engineer by harrisonjackson on Monday August 26, 2019 @07:20PM (#20804700)
Which is _okay_ as long as it doesn't happen too often. I work remotely now, but most offices have conference rooms or quiet spaces or respected headphones on policies for when you need headsdown time. If there's no way to signal that you are busy, then that's probably a separate issue than the 3 cases here.
Re:Things I Learnt from a Senior Software Engineer by inflatableDodo on Monday August 26, 2019 @01:34PM (#20801876)
The first one, less so. Explaining what you are doing to someone (as long as they get the basics) can be a great way to cement your understanding of what you are currently doing.
Re:Things I Learnt from a Senior Software Engineer by rakamotog on Sunday August 25, 2019 @11:47PM (#20797334)
The only time I (a PM) would do this is when you are working on validation messages / error messages / user facing text.
Re:Things I Learnt from a Senior Software Engineer by afarrell on Monday August 26, 2019 @02:53AM (#20797944)
Error message phrasing is really very important, but it’s probably better to have that refined in code review or to have some explicit step for it.
Re:Things I Learnt from a Senior Software Engineer by dotancohen on Monday August 26, 2019 @04:31AM (#20798227)
Error message phrasing should not be in code. It should be in localization files, even for the default language, and not require a developer to modify.
Re:Things I Learnt from a Senior Software Engineer by SamuelAdams on Monday August 26, 2019 @08:30AM (#20799275)
Depends on the requirements. I've had many internal-only applications only require one language: English. At that point you can hard code many things, which skips the loading other files, checking different languages, etc.
Re:Things I Learnt from a Senior Software Engineer by OJFord on Monday August 26, 2019 @01:03PM (#20801554)
I'd still rather the exact wording isn't in code, personally:

    get_msg('fail_add_address')
vs.

    'I\'m sorry, we\'ve been unable to add the address %s at this time,' \
    ' please try again later.'
(... but that's an ideal I have without ever having worked with it, so what do I know, and ymmv, etc.)
Re:Things I Learnt from a Senior Software Engineer by rakamotog on Tuesday August 27, 2019 @09:54AM (#20809570)
And what is this localization file called? We do not have a system where non dev can commit any change in our product.

We do have a constants file which has all the messages but a PM does not access to code/commit and has to go via a Dev.

Re:Things I Learnt from a Senior Software Engineer by rmetzler on Monday August 26, 2019 @11:43AM (#20800751)
It really depends on who‘s the target group. I hate localization in Developer Tools etc, because googling it is harder and a lot of times English is just easier to understand. It’s different for a shopping site.
Re:Things I Learnt from a Senior Software Engineer by high_derivative on Monday August 26, 2019 @07:29AM (#20798917)
How would you know this without entering their personal space?