mundacho's comments

mundacho | 6 years ago | on: Programming with Effects

It's done a lot, it's used for mocking in FP.

For example, I hace a monad that saves to a database using effects. I change the effect to update an array instead and I have code that I can use in a unit test.

mundacho | 7 years ago | on: What No One Is Reporting About Caster Semenya: She Has XY Chromosomes

thanks for the link, it's very interesting. My next question (in general, not to you) would be to know how these people with the other combinations are classified by the sports organizations. It seems like a really complex issue, and to form an opinion one needs to really get into the nuances. I think the press pushing the narrative that women are discriminated against without at least a mention of the nuances involved is a bit irresponsible. The discussion here might help some folks to form a more informed opinion.

mundacho | 7 years ago | on: Intermediate Vim

Another simpler way (even simpler than macros) that works great for simple mass editing is visual blocks. In normal mode, press Ctrl + V and you get to select a literal block of text (not like visual mode, where the text is sequential). Then you can for example, do a "c" to change the selected text in each of the rows that your block covers. This is especially practical to remove a column. Just select the column, press d and voilà.

mundacho | 7 years ago | on: The Psychological Trap of Freelancing

My biggest mistake at the beginning of freelancing was that I sold more or less 8 hours a day of work. That's too much because as a freelancer you do not have vacations or paid sick days, and contract. So I corrected it to 120 hours a month, that means that:

* I can recover sick days if needed.

* I can work a little bit extra for 1 or two months to get a 1 week vacation.

* I can use the extra hours a day to do some marketing/networking/sales.

* It's easy to take half a day off and recover it in 2 or three days.

* I needed to charge more per hour to make it work, but now I'm pretty happy with it.

(Edited: Formatting)

mundacho | 7 years ago | on: Ask HN: How did you decide where to live?

I live in Bolivia. My parents and my wife's parents live here. Having our parents here is great because we have children and are helped a lot by them. (I studied and worked in Switzerland before moving back.)

So, how did I decide? I just knew I wanted to have children and that grandparents are a great help, so it's mostly a family related decision. I work remotely as a consultant in software modeling.

mundacho | 7 years ago | on: Some private equity firms are furious over a paper in a dermatology journal

In Bolivia, there’s a right to “job stability” in the constitution written in 2008. Supreme Court here interpreted it as “right not to be fired”. There is precedent of people complaining to the ministry of labour asking to be hired again after getting fired and getting away with it. It’s stupid, but it’s a counter example.

mundacho | 11 years ago | on: Ask HN: Programmers, how do you handle Copyright and IP in your contracts?

I recently started freelancing so I bought a standard contract for the Swiss market where I'm based. There is a clause for the copyright and licence that basically says:

- I keep the intellectual property for the code that I developed myself.

- If I use third party software or libraries, the owners of the libraries are keep all their rights.

- The client gets all rights to use, copy, and modify the software I provide. Basically, there are no restrictions on the use they can do of it within their company. I give them exclusive rights to that software and I cannot sell the same software to another client without consulting with them.

There are other clauses that are there, but those are the three I judge more important. It is important to keep the intellectual property because that way I can always reuse snippets of the software I developed in other projects.

mundacho | 11 years ago | on: Becoming Productive in Haskell

I think the problem here is terminology. A functor is the abstract concept and it implies having the map operation with the right signature and obeying the right properties.

The best way to say it is "The list type 'forms' a functor" or "The Either type 'forms' a functor". The fact that they form a functor implies that their map operation has a fixed set of properties, and these properties are independent of what exactly the data structure does and how it works.

page 1