Better HN
topnewbestaskshowjobs
Log inSign up

foo101

982 karma · joined Jul 7, 2016 (10y ago) · 339 submissions

Submissions

comment 8y ago · link · parent

> The good developers write code that can be replaced, rewritten, or rescaled later.

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?

comment 8y ago · link · parent

I think the context is pretty clear: microservices.

If it takes 10 people to manage one service, it is not a microservice by definition. It is more like a 10x-microservice or a macroservice.

comment 8y ago · link · parent

When you use a thing like "is blocker", do you still need a separate ad blocker or is the JavaScript blocker sufficient to block ads as well?

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

What plugins or techniques do you use to disable JavaScript while keeping the flexibility to whitelist some of the websites where JavaScript can be enabled?

comment 8y ago · link · parent

Please don't speak for all of us. There are many of us around who still take our usual jobs of developing software to be an art of developing useful technology.

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

Maybe each of the two kids were drawing what they thought they saw...the sun.

comment 8y ago · link · parent

I am curious why this kind of speculation is taken seriously.

I mean it's just a sketch on a stone without any further documentation.

Could it not be that these were just two kids playing and drawing something random on a stone?

comment 8y ago · link · parent

Have you ever seen the actual television show opening the car door? I have never seen that.

comment 8y ago · link · parent

Can someone tell me what the rules are from companies who are already listed on NASDAQ and trading publicly?

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

The host never opens a car door because the host knows where the car is. The host always opens a non-car door and gives the player a choice to make the situation interesting.

comment 9y ago · link · parent

Your code does not work for me. I get syntax error in line 20: https://imgur.com/a/mqI29. What did I do wrong and how can I get it to work?

comment 9y ago · link · parent

Well, if a neighbourhood is good and convenient, it is only natural that more people would like to move there, more energy would be consumed and prices would rise.

Besides this obvious thing, what exactly is your point?

comment 9y ago · link · parent

Is coding a BST and traversing it that big a deal?

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

> I do not get this obsession with putting everything out there.

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

I don't publish papers, so I don't have a strong opinion about it. But like you, I am genuinely curious why alphabetical order was chosen as the convention rather than the amount of contributions (like GitHub does[1]).

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

> I'd much rather have a well rounded individual who isn't moonlighting on other things but rather can bring his clear focused mind to the office.

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

This! And similarly, software developers should keep abreast of latest technical advances.

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

I like my job, and I like programming... But there are other things I like too. Such as playing the guitar and saxophone, writing side coding projects, mountain climbing and traveling. Do you realize that writing side coding projects is just one of the many things we like to do?

Just because we do side projects does not mean that we do not have a life outside of coding.

comment 9y ago · link · parent

I like to write side code projects. You might think I do not have a life outside coding, but I do. I do not spend more than 3 to 4 hours per week on side projects. I play the guitar and saxophone. I go out in the weekends. I love mountain climbing. Like the author, "I loathe hackathons" too. But unlike the author, I do have side projects.

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

> That "the best" is happy to drink into the Earth every Friday and has absolutely no evening or weekend plans.

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

Time for anecdotes. Twice in my career, an employer has looked at my GitHub and asked specific questions about certain projects, what motivated me to write the project, why did I not use a popular big data technology to write the project, etc.

comment 9y ago · link · parent

Can someone briefly describe how decentralization is achieved in archive.org?

comment 9y ago · link · parent

> If I read this forum, it sounds like nobody has never done anything wrong, behaved inappropriately in anyway, ever.

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

Sorry to say this but people like you who do not understand the gravity of the crime or the appropriate way to address it are part of the problem.

It is ironical that the same kind of people think they are in any position to grade an apology relevant to this matter.

comment 9y ago · link · parent

Did the mods just delist this post from the front page? I can't find this story anymore in the front page or any of the subsequent pages.

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

Software that is free only for non-commercial purposes is considered to be non-free software.

comment 9y ago · link · parent

My intention is not to nitpick but I am genuinely trying to understand this from a pedantic perspective.

> 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?

comment 9y ago · link · parent

> Poor rendering. Just use a good email editor, such beefree.io or others. Not a issue at all.

You want me to use an "email editor" that I had never even heard of before, and yet you claim that the reasons supporting text email are pretty wrong?

1
678
12