HNHacker News
TopNewBestAskShowJobs

chamilto

9 karma · joined December 18, 2016

submissionscomments
chamilto··on Things I learnt the hard way in thirty years of software development
> When you're designing a function, you may be tempted to add a flag. Don't do this. Here, let me show you an example: Suppose you have a messaging system and you have a function that returns all the messages to an user, called getUserMessages. But there is a case where you need to return a summary of each message (say, the first paragraph) or the full message. So you add a flag/Boolean parameter called retrieveFullMessage. Again, don't do that.'Cause anyone reading your code will see getUserMessage(userId, true) and wonder what the heck that true means.

What about in languages with named parameters? I think keyword arguments solve this issue pretty well.

chamilto··on Ask HN: Can you actually get a dev job without doing a stupid quiz?
> You’d be surprised by the number of candidates who say they are “senior software engineer” or “10 years experience as a lead developer” who still can’t do FizzBuzz. Or the ones who can do it but takes them 100 lines of code.

I see comments similar to this one all the time. Are folks literally referring to the 'FizzBuzz' problem, or is that just an alias for a problem they subjectively find easy?

chamilto··on Ask HN: Keyboard for Coding?
I love my leopold fc660c
chamilto··on Is Rails still relevant in 2018?
First of all, zzzeek, thanks for your great software. While working on SQLAlchemy, have you ever run into situations where you really missed static typing? Do you ever see yourself wanting to introduce Python's static typing behavior into that project, and why or why not?
chamilto··on JavaScript is Good, Actually
The most common issue I run into is with datetime objects, but there are well documented workarounds. For more complex objects such as ORM objects, I think a lot of people use Marshmallow. That being said, I don't have a lot of experience, so I could be missing something obvious. What issues have you had with Python JSON serialization?
chamilto··on Learning Web Development? Skills to Make You Stand Out
> If web developers don't already all know this then what knowledge do they have nowadays?

Read the article's title. This article is clearly aimed at people who are starting to learn web development. It is not aimed at experienced web developers.

> ...these were all skills I had mastered before even attempting to define what type of development I wanted to do

Many people learn how to program by working on projects they want to work on, and a lot of people want to build web applications.

chamilto··on Memoirs of an Ass
You casually read literature written in Latin?
chamilto··on Why We Don’t Employ Female Developers
That is exactly what it is. I'm really surprised other folks aren't able to sense this.
chamilto··on Ask HN: What has HN given you?
I absolutely relate to this. But hey, knowing that there are other engineers out there feeling the same thing when they read HN makes me feel better. So, thanks.
chamilto··on Ask HN: How much time do you spend on “marketing” your open source projects?
I love you.