News for hackers. Stuff that matters.
Re:Write Junior Code by TeMPOraL on Sunday December 29, 2019 @07:38PM (#21909775)
Or, just don't hire junior developers :).

This reminds me of what my boss from my second-ever job told me when he tasked me with starting a new project: "I know I promised you you'll get to choose your own tech stack, but you're going to write it in PHP; I know you'd like something better, perhaps Ruby, but when it comes to hiring developers to help you, I'll have to pay a Ruby developer $X, and I can get PHP developers for $X/2".

I guess it makes business sense for bottom-feeder development. In my case, it burned me out completely.

Anyway, I work in Common Lisp professionally these days too, and we don't shy away from using both simple and moderately-complex macros. There's nothing magic in them. Sure, tracing a problem with the expansion of someone else's macros can be a cognitively taxing work, but you're going to have to do this kind of work somewhere anyway - if not here, then when trying to figure out a convoluted call graph of 20 functions or methods that macro would have abstracted away for you (which was a common thing to do at my previous job, involving Enterprise Java).

Re:Write Junior Code by nine_k on Sunday December 29, 2019 @08:57PM (#21910128)
Not hiring junior developers makes sense when you are still unfolding, and have a really small engineering team (< 5-7 people).

As you grow, you will see that not all work is equally important, and you want your more senior guys work on harder problems. And you will also note a number of good, smart developers applying to you who do not yet have the experience of a senior engineer, but could quickly grow.

Then you can start hiring junior engineers, and nurture them.

[Edit: grammar]

Re:Write Junior Code by nicoburns on Sunday December 29, 2019 @09:59PM (#21910428)
I'm currently working for a company whose first 4 technical hires (other than the CTO, who wasn't always involved in day-to-day development) were juniors. This was a terrible idea, as there are basic architectural mistakes baked into the codebase all over the place, and lots of issues with data integrity and things that only work most of the time. They'd have been better off with a single senior.

Agree that it makes sense to hire juniors once you've grown though.

Re:Write Junior Code by gravypod on Sunday December 29, 2019 @08:32PM (#21910024)
If no one hires junior developers then how will we make new developers?

If no one writers code that junior developers can understand, then how can we hire junior developers?

Re:Write Junior Code by eru on Sunday December 29, 2019 @11:48PM (#21910890)
> If no one hires junior developers then how will we make new developers?

Independent of the serious answer given by BurningFrog, it's also useful to understand that what's best for the world at large is not necessarily best for your company.

Re:Write Junior Code by BurningFrog on Sunday December 29, 2019 @09:29PM (#21910295)
The suggestion was to not hire junior for certain projects, where that makes sense.

This does not at all imply that no one should ever hire them. So get up from that slippery slope and start walking again!

Re:Write Junior Code by mcqueenjordan on Sunday December 29, 2019 @08:35PM (#21910036)
> Or, just don't hire junior developers :).

1. You miss a lot of great talent this way.

2. Growing and developing juniors is part of what makes a "senior."

3. This isn't sustainable advice -- if noone is hiring juniors, then where are the new seniors coming from?

Re:Write Junior Code by Eikon on Sunday December 29, 2019 @08:46PM (#21910074)
> 3. This isn't sustainable advice -- if noone is hiring juniors, then where are the new seniors coming from?

Well, as much as it is short sighted, the really is that letting some other company spend money training juniors is money you don’t have to spend.

Re:Write Junior Code by michaelmrose on Monday December 30, 2019 @01:47AM (#21911330)
If this is truly a profitable choice why are you assuming anyone will do it?
Re:Write Junior Code by kortilla on Monday December 30, 2019 @05:35AM (#21912410)
Because there are companies doing boring work that have huge developer infrastructure in place to help cheaper juniors do the mundane stuff (i.e. all of the big tech companies).
Re:Write Junior Code by Rapzid on Monday December 30, 2019 @12:36AM (#21911059)
"Junior" might as well be an IQ classification.. How many people change their IQ?

The reality is something nobody really talks about.. When a company doesn't want to hire a "junior" it doesn't mean they don't want to hire somebody without X amount of experience in a tech stack or without X amount of experience in the industry.. They don't want to hire people bellow a certain aptitude.

Many "juniors" will never be "senior". Even if they get the title and salary. We all know "seniors" in salary and title only.

Some people are inexperienced "seniors" year one.

Re:Write Junior Code by TeMPOraL on Monday December 30, 2019 @04:14AM (#21911989)
Viewing it from this lens, it still doesn't make sense to sacrifice productivity of people "with aptitude" for the sake of expanding your hiring pool to include people "without aptitude". Instead of bringing down everything to the lowest common denominator, one can try to assign different types of work to people with different levels of aptitude (or care).

(Personally, I feel what makes "forever juniors" isn't aptitude, but lack of care. I don't see it as flaw of character - the factors like structural anti-intellectualism in the industry, lack of enthusiasm due to work being meaningless, and that not everyone is into programming beyond it being a 9-to-5 job all contribute to some people not learning. This suggests to me that expecting people to learn and making learning part of their jobs - actual part, with paid time set aside for it - can overcome this problem.)

Re:Write Junior Code by nsomaru on Monday December 30, 2019 @05:12AM (#21912310)
> anti-intellectualism in the industry

Could you expand upon this point?

Re:Write Junior Code by TeMPOraL on Monday December 30, 2019 @07:07AM (#21912762)
A bit more here: https://news.ycombinator.com/item?id=21909816.

But the gist of it is: the industry prefers to work with dumbest tools possible and throw cheapest bodies they can get at a problem, instead of expecting people to keep learning, improving themselves, and applying these improvements to their work. This article is an example of that - it advocates discarding advanced tools given to the programmer by Haskell, in favor of writing dumb code that's easily digestible for beginners. Most of the advice about avoiding "clever code" is a form of that too.

I find it a penny-wise, pound-foolish approach, because when you do this trade-off, you're losing in two places. First of all, you handicap your skilled team members. But secondly, the cost (in terms of time, money and incidental complexity) of a project grows faster than linear with the number of people you get involved in it. It'll be O(n!) if you do it naively, O(n logn) if you arrange people into hierarchies, but the problems still grow faster than they're solved as you scale up.

The alternative approach I'm encouraging is to make responsible but full use of the power of the tools you have, and if this goes over the head of some new hire, then teach them until they understand and can make use of that power too. Embrace and encourage learning as a part of this job (actual, expected, and paid-for part). Push the industry upwards, instead of dragging it down.

Re:Write Junior Code by mikojan on Monday December 30, 2019 @05:26AM (#21912370)
> How many people change their IQ?

Literally all of them. However, if someone never progresses to "senior" they might've just lost interest in software development. People in general are remarkable at learning about subjects arousing their curiosity. This is an important fact, too, because environments can be designed specifically to foster just that. Not everything will be working for everybody, of course, and some might never develop an interest in that field again. But that's okay, too.

Re:Write Junior Code by sanderjd on Monday December 30, 2019 @11:16AM (#21914327)
This isn't forbidden knowledge, it's just not correct. People learn and grow with experience. Some projects can't afford to support many, or any, people in that growth stage. But lots of projects can afford it, and the investment in their growth makes sense. I think it is probably also true that some people never become competent enough for many projects, but in my experience that is diminishingly rare, whereas junior developers who are still developing their skills are extremely common (unsurprisingly, since more and more people enter the field constantly).
Re:Write Junior Code by zackmorris on Monday December 30, 2019 @04:20PM (#21916807)
Funny, I've done my best work in PHP. But, I have a semester of Scheme under my belt and have been doing object-oriented programming (or more precisely, moving away from it) for decades.

I really, really wish there was a rapid application development language like PHP or Go written over a functional language like LISP.

I've thought about writing one, and get all the way through it in my head until I come up to the inevitable problem with monads. I believe I can make it work by treating the monads as imaginary numbers with hidden contents and never really solve the problem of mutability, but I don't know what that would look like in practice yet. The language itself would basically be Javascript without mutable variables. There would be no async/await, instead, everything would be synchronous blocking with message-oriented streams in place of messages. Like the Actor model but executing immediately as a graph so it's fully deterministic.

Facebook kind of made one called Skip, although I feel like they might have been working on another one with a "z" in its name, or maybe someone else was, can't remember:

http://skiplang.com