TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Junior programmer? This may help you

25 pointsby ciokanalmost 9 years ago

11 comments

spdustinalmost 9 years ago
Deeply condescending commentary in those TODOs, and the commentary before it suddenly takes on a dark intent: to wow the junior with your wordsmithing and desire to lift them up, before tearing them down with the code review. Seems like the behavior of a bully senior, rather than a supportive mentor.<p>Sarcasm, insults and flowery nonsense like &quot;write poetry&quot; isn&#x27;t code review, it&#x27;s shaming.<p>And if we&#x27;re being honest: TODOs aren&#x27;t code review, either. Seems pretty amateurish, and worse, makes the horrible commentary part of the repo history rather than a separate artifact in an issue tracker.
makufirualmost 9 years ago
&gt; please break down these pleasant chunks of unreadable code into model properties and use them here and anywhere else where you have such kryptonian blocks. Good code is readable, semantic, and easy to follow and update. I pitty the poor soul who would have to participate here with you :). I, for one, would probably delete and start over to spend less time. I know there are situations where it&#x27;s unavoidable but this one clearly isn&#x27;t the case. Python really is beautiful, Python is english...write me some poetry please.<p>&gt; You have a lot of repetitions of datetime objects that can be stored in a variable. You have a lot of comparisons on the object that can be stored as model properties. Separate them and let these methods breathe please. This looks like callback madness in js. I can&#x27;t even follow the parenthesis to grasp the flow of conditions here. Even my IDE formatter left me.<p>Wow. If I saw someone code review like this on my team, they would get one warning. If this behavior was repeated, then they would be fired. There is no place for condescension in the team, even from Senior -&gt; Junior level developers. If anything, this is a great stepping stone for (kindly) teaching a jr. member how to refactor into code that is more readable. Unnecessary jabs like &quot;i pity the poor soul... clearly this isn&#x27;t the case... looks like JS... even my IDE formatter left me...&quot; and snide hand-wavy remarks like &quot;python is english.. write me some poetry&quot; are only useful to stroke e-peens and push people down publicly.<p>What would have gone a lot further, in my opinion, was refactoring the code then sending it to the jr. dev and telling them that you refactored their code for them. Tell them that - if they&#x27;d like - you&#x27;d be happy to walk through the changes and explain why those things were helpful&#x2F;useful. It&#x27;s not a contest about who can write the best &quot;poetry&quot;. It&#x27;s about getting along, helping each other, and getting work done.<p>Jr. devs, if you are reading this, please don&#x27;t despair. I promise that all teams aren&#x27;t this bad to work on. There are places where you don&#x27;t have to be afraid to be the butt of a joke in an HN post and you will actually learn things. If your team is more like the one in the post, you&#x27;re much better off just leaving for your own sanity.
romanovcodealmost 9 years ago
Oh god, you must be fun to work with. &#x2F;s<p>Next time you probably should take the guy and talk with him privately instead of publicly shaming?<p>Also &quot;Python really is beautiful, Python is english...write me some poetry please.&quot; <i>cringe</i>.
abrookewoodalmost 9 years ago
Junior Manager? This may help you: Don&#x27;t publicly shame your staff or you may find yourself working alone.
am8almost 9 years ago
Conceited. There is never an excuse for workplace bullying. You don&#x27;t know how to manage if all you can do is criticise in your &#x27;TODOs&#x27;. You are not as advanced a developer as you would like to think if your best solution is to rewrite.
cauterizedalmost 9 years ago
&gt; - if it takes me more time to understand what you wrote than completely rewriting it you&#x27;re of no use to me. Since I&#x27;m wasting that time anyway, I better write it myself and save the money spent on you.<p>So well put.<p>Too bad it&#x27;s not just juniors who write code like this. I wish I could show the sample code and the TODO comments to one of the &quot;senior&quot; engineers I work with. Because it&#x27;s exactly (and I mean, EXACTLY) like a few hundred functions he wrote in our codebase in the past few years.<p>How do you suggest this sort of change of approach to someone who&#x27;s your peer instead of a n00b you&#x27;re training up, without sounding condescending or insulting?
评论 #12224515 未加载
评论 #12222549 未加载
gattilorenzalmost 9 years ago
The page is gone... looking at the comments here, I would say he learned the lesson
hcarvalhoalvesalmost 9 years ago
One thing that might not be crystal clear on a junior&#x27;s mind is that we want code to read as close to &quot;business logic&quot; as possible - or as some people say, read like prose.<p>Sometimes they land on the job still on the honeymoon phase w&#x2F; technology, not having worked on a big enough codebase and stack, and not only take complexity as granted but actually find it exciting &#x2F; stimulating.<p>A seasoned programmer learns to hate complexity and starts valuing expressiveness more. It takes some experience to be well calibrated on the complexity &#x2F; abstraction axes.
erezyehudaalmost 9 years ago
Does anyone have a mirrored or cached version of the post?
gigatexalalmost 9 years ago
This was refreshing to read. I would have separated the checks out as simple functions as well or made it a class with more properties.
dacomptonalmost 9 years ago
Let the frustration flow through you.