HNHacker News
TopNewBestAskShowJobs

fpereiro

431 karma · joined July 27, 2009

federicopereiro.com
submissionscomments
fpereiro··on How I write back ends
Fully agree. 20-50ms for something like S3 is fantastic and proof that we live in the future. S3 is only slow when compared to interacting with redis or a FS layer powered by node (by about an order of magnitude). That's why I feel that complementing it with a self-managed FS can work well in certain settings. And interestingly enough, because S3 is so solid, you don't have to be so paranoid with your own FS layer, since S3 is there to bail you out in case of data loss.

Regarding S3 pricing, ~0.09 USD per downloaded GB could potentially become a significant bill (~90 USD per TB). I'm building a service that serves pictures and limiting the financial downside is very important for the economics of the business. More than the actual magnitude, the certainty that costs are a linear and predictable function of storage makes me sleep better.

An implicit point that I just realized by re-reading your comment: if you have a significant amount of data (let's say, > 100GB) a local FS is only cheaper if you're using instances or dedicated servers with large disks - and probably this is prohibitively expensive in AWS (EBS). I'm particularly considering Hetzner dedicated servers with large disks.

fpereiro··on How I write back ends
Thank you for your suggestion about using samesite=strict! I'll look into it a bit more - the only downside I see is support for older browsers, which is a personal vice I can't kick. If I see that there's no elegant CSRF solution, this will probably be my fire escape. Thank you for that!

I added more info in the document regarding cookie/session management, particularly its expiry (https://github.com/fpereiro/backendlore#identity--security). The approach I take is to make cookies last until the server says so. I'm very curious as to how you use cookies with varying expiration times and would love to know more if you have the time.

fpereiro··on How I write back ends
Passionately agree with thinking a lot before adding an element to your infrastructure. That might just be the main point I'm trying to make in the document.

I love the idea of infrastructure as code and at some point I will try to write a small js library that performs these types of tasks - but first I'm trying to get to the point where I'll actually need it. I feel that bash won't scale beyond a certain point (or rather, a scalable bash solution would be much easier to write in js or another high level language). In any case, I'll have Ansible as my benchmark of a great solution to run a large infrastructure.

fpereiro··on How I write back ends
Wow. I wasn't expecting this level of interest, not in a million years. I'm very grateful (and a bit overwhelmed!). Thank you for your thoughtful comments. I just added a few more clarifications to the document, mostly inspired by your interactions.
fpereiro··on A bulletproof day-starting routine
I can highly recommend James Clear's Atomic Habits book. A lot of what has worked for me in terms of habits comes from there.
fpereiro··on A bulletproof day-starting routine
Completely agree, I don't even try it anymore after many many failures. That's why I meditate and do some journaling first. I intersperse pushups at the beginning of the routine, but the core workout happens at the end, and for good reason.
fpereiro··on A bulletproof day-starting routine
You make a great point. I actually do all this after waking up earlyish to get my daughter ready for daycare and walk her there and back. I'm also very lucky in that I work from home, so skipping the commute helps a lot.

Perhaps a better title would have been a "day-kickstarting" routine...

fpereiro··on Hexnot: an experimental musical notation
You're absolutely right; hexnot is way less visual than the standard notation. I am a quite non-visual person and I think that's part of the reason I'm inclined towards this approach.

Hexnot seems to draw more on the formal and perhaps also linguistic parts of the brain. I also find very reassuring the 1:1 relationship between the numbers and the actual notes, which lets them stand a little bit more in the realm of a symbolic ideal, and less dependent on a position in the staff.

Thank you for commenting!

fpereiro··on Hexnot: an experimental musical notation
Hi Dave,

Thanks for checking it out!

I definitely agree; traditional notation is quite more suggestive, though I don't know how much this is because of previous exposure to it.

The long term question here, I believe, is whether the cognitive overhead of using hexnot can converge to the cognitive overhead of using traditional notation. When you learn it, a notation should make things as easy as possible; so I'm interested in finding out empirically if hexnot has actual value as a notation for memorizing, interpreting and composing.

As for an editor, I am considering the idea of writing a parser for hexnot, which could also generate some other kind of output, but not at this moment :). And, of course, if you're interested in experimenting with this, I'll be glad to be of help.

Cheers!

fpereiro··on Broke, in debt, lots of skills. Need your advice
Hi there!

Despite the tough situation, it is great that you're facing it head on.

mooreds suggestions are great, I would start with those.

If you want to work as a dev, the thing that best worked for me is to open a github account and put some code of my own there. It doesn't have to be revolutionary or state of the art code, but if you have even a simple web site there, it will probably help you get either freelance gigs or a full-time job.

In your case, you might consider putting there a simple site (front and backend). If later down the road you pick a skill (like say, React) you can then tweak your project and include it.

Also, I suggest having a spreadsheet to track your assets/liabilities at the beginning and at the end of each month. It might be tough doing it at first, but knowing exactly how much you owe is the first step to get out of debt.

Best of luck!!

fpereiro··on Write your own
Very interesting perspective.

Thanks for sharing!

fpereiro··on Read the masters
That's a very good question!

Although SRP may not be timeless, or even seminal (though I doubt this last statement), I found this paper to be beautifully written. Its concepts are very very clear. Above all, the paper seems to be so alive and enjoyable.

For these reasons, besides the practicality of SRP, I suspect that this paper may well turn out to be a classic.

fpereiro··on Read the masters
I fully agree with your point of "not bashing your head" against something. At least for me, I only understand it when I'm truly ready. If not, I just go read something else (preferrably another source/master, or random crap) and then come back.

I feel it's like exposure to a new language. You just need to get soaked in it, rather than trying to actively direct the process.

fpereiro··on Read the masters
Thank you so much for noticing this! I've just corrected the links.
fpereiro··on Tell HN: Buenos Aires Meetup next Friday
Great! See you there.
← PreviousPage 3 of 3