982 karma · joined Jul 7, 2016 (10y ago) · 339 submissions
comment 8y ago · link · parent
You make a very good point.
Over the years, I learnt that almost nobody except the developer and maybe one or two peer-developers cares about good quality code. The management just wants to ship services/products. They don't care how good the code is. All they care is that they can meet their deadlines. Of course, good quality code can increase the chance of meeting deadlines, but working long hours can also increase the chance of meeting deadlines. Management does not understand code, but they understand working long hours.
If I ignore this and still care enough to write good quality code, in nearly all projects, I am not going to be the only one to work on the code. There is going to be a time, when someone else has to work on the code (because responsibilities change, or because I am busy with some other project). As per my anecdata, the number of people who do not care about code quality far exceeds those who do. So this new person would most likely start developing his features on the existing clean code in a chaotic manner without sufficient thought or design. So any carefully written code also tends to become ugly in the long term.
In many cases, you know that you yourself would move out the project/organization to another project/organization in a year or so, and the code would become ugly in the long term no matter what you do, so why bother writing good code in the first place!
It is very disappointing to me that the field of programming and software development that I once used to love so much out of passion has turned out to be such a commercial, artless, and dispassionate field. How do you retain your motivation to be a good developer in such a situation?
184.
Ask HN: How do you disable JavaScript based annoyances on browser?
6 points · by foo101 · 8y ago · 4 comments
comment 8y ago · link · parent
I think comments like these, although said in jest, undermine the work of many programmers who are creating useful technological solutions for a living.
comment 8y ago · link · parent
For example say if I join company X today (where X could be Intel or Cisco or a similar company) and I have 40 RSUs vesting over 4 years. After 2 years I decide to leave X. 20 RSUs would have been vested.
I clearly understand that I am going to lose the 20 unvested RSUs completely. My question is about the 20 vested RSUs. Is there a maximum time limit before which I must sell these 20 vested RSUs? Or can I keep these vested RSUs with me for life and choose to sell them whenever I wish?
If it is indeed true that I can keep these vested RSUs with me for life, how exactly would I be selling these RSUs, say after 20 years? I mean, the company does not give me these RSUs directly on printed paper. The RSUs are held in an account in a website of a finance company such as UBS. I log into my UBS account to access my RSU details and sell them. What if UBS goes out of business in 20 years?
comment 9y ago · link · parent
comment 9y ago · link · parent
I routinely code tree traversals at my work, so my judgement may be clouded here, so I am genuinely curious here to know if most people here think that it is unreasonable to expect someone to code a BST from scratch.
In my opinion, BSTs are one of the easier things in programming, with a complexity that is maybe only a little above a for-loop. Most often, in real world, the more complex stuff happens in the business logic, or API contracts, or that sort of thing outside tree traversals.
comment 9y ago · link · parent
It's not obsession. It's just a matter of convenience. git add; git commit; git push; and all my experimental code is safe on someone else's server that is managed much better than I can manage my set of USB drives and hard disks.
> The internet needs less stuff on it, not more.
I disagree!
comment 9y ago · link · parent
If the answer is that contributions to scientific papers can be very fuzzy, e.g. it is hard to determine which contribution is more important than others, then I agree alphabetical order makes sense. But is it really so in most of the papers?
For example, in the RSA paper, Adleman clearly knew his contribution was less than Rivest and Shamir and he insisted that he put his name in the end. I believe, in most papers it would be obvious to the co-authors that someone's contribution is more significant than the others. If this is true, why do they still choose to follow the alphabetical order convention rather than the contribution order convention?
[1]: https://github.com/tensorflow/tensorflow/graphs/contributors (example)
comment 9y ago · link · parent
What I do after the office hours is really none of your business. I should be able to do whatever I please (write code, play guitar, etc.) after office hours without you raising concerns about it.
If you believe I do not bring my clear focused mind to the office, then that is a separate issue to be discussed separately without bringing in what I do after office hours into the discussion. It is my prerogative, not yours, to decide if I need to give up what I am doing after office hours in order to focus better at office.
comment 9y ago · link · parent
What makes software engineering different from surgery is that when a surgeon learns something new, he does not have a live patient at his home to practice the new thing he has learnt, but as software engineers, most of the times we can immediately fire up an editor and write a PoC or a toy project to practice the new thing we have learnt.
Its strange that such natural and obvious curiosity and desire to try something out outside of work deserves the kind of criticism that it is receiving in the original article and some of the comments here.
comment 9y ago · link · parent
Just because we do side projects does not mean that we do not have a life outside of coding.
comment 9y ago · link · parent
As someone who has been doing personal as well as public side projects for possibly 20 years now, I think I can share some insights about why I (and perhaps people like me) work on side projects.
I grew up in a time when we had computers with 3 MB of memory and 300 MB of hard disk were considered powerful machines in my school. The students would get only 30 minutes of computer time per week. These were times when you boot your computer, type GWBASIC, press <ENTER>, and start coding. This was one of the very few ways to use a computer meaningfully. Writing code in GW-BASIC became like a mindsport for some of us. I would write tiny games, draw diagrams or solve math equations with code. It became a hobby.
I guess everyone has hobbies. I have some too. Coding is one of them. It's not the only one.
About 10 years later, I learnt that this hobby could become a career and I chose programming and developing software as my career. Is it fair to now be considered a "human machine" who "work 80 hour weeks" and have "absolutely no evening or weekend plans" just because my career also happens to be one of my hobbies?!
comment 9y ago · link · parent
This looks very much like deflecting the disappointment experienced at the boutique app firm to all people like us who do love to code in spare time. I believe it is unfair to paint all of us with the same brush. I know plenty of people (myself included) who love to code in their spare time and still have weekend plans that have nothing to do with computers.
comment 9y ago · link · parent
This is false. Nothing in the forum implies that if one of the participants of this thread were to be found guilty of an inappropriate behavior, then they should be excused.
In fact, most of the discussion in this forum implies that if one of the participants of this thread, or anyone in the industry were found to be of inappropriate behavior, then it needs to be dealt with seriously.
comment 9y ago · link · parent
I don't think a story like this should be delisted. This is a major problem in this (and many other) industries and should be discussed!
comment 9y ago · link · parent
> C++ has a neat feature called Resource acquisition is initialization, a.k.a RAII.
Is this really a feature of C++, or is this a design pattern/best practice that developers have discovered and use to write safer C++ code?