vitorfs

Joined 13 years ago

Karma
105
Submissions
35
Member since
Apr 16
https://www.simpleisbetterthancomplex.com
View on Hacker News

Recent submissions

Comment · 3 years ago
Our infra is all on us-east-1.

Our EC2s seems to be working fine. But RDS is down for us.

Comment · 4 years ago
The DBZ chars were my favorites. I have some good memories of playing it for hours with my friends as well. We used to share the same keyboard to play. The first player would use the arrow keys + page up/down home/end etc and the second player would use YGHJ as the arrow keys + QWEASD as the main buttons to play.
Comment · 4 years ago
Comment · 4 years ago
I have always used single quotes for Python code since I start working with it. When I started to adopt Black on my projects it indeed felt weird and the code looked unpleasant. But after a while you get used to it.

Some people make the case that it's easier to write single quotes (well, depending on the keyboard format anyway). For keyboards in the US standard you have to hold the Shift key to write a double quote. But the good thing about Black is that you can still write your code using single quote and when you run the command line utility it will fix/normalize the code to use double quotes.

Nowadays I got so used to it that I even write my Python code using double quotes. And looking at Python code using single quotes looks weird/unpleasant for me.

Comment · 4 years ago
This is such a great news. We've been using Black in the company that I work for the past 3 years or so and it was a game changer for code reviews. Hopefully other open source Python/Django projects will follow the lead.
Comment · 5 years ago
My favorite free/loginless tool is https://excalidraw.com/ I use it on a daily basis to quickly sketch some ideas and document features etc
Comment · 5 years ago
It's 3 am and I'm currently doing just that. It's the moment where the world stops for a couple of hours and no one expects anything from me. My phone is not going to ring, no one is going to send me an email or expect an answer. It's weirdly peaceful
Comment · 5 years ago
I actually like the Django ORM. Something that I learned working with Django 8+ years is that to use its ORM effectively, you have to play Django's game. Sometimes just by denormalizing a few fields will make some queries/relationships way easier.

At work we have a marketplace engine and a digital wallet/financial app built entirely with Django (100k+ loc) and we don't have a single raw SQL query, everything is done with the Django ORM.

Comment · 5 years ago
I'm about to lose $4,800 in credits from Digital Ocean. I've been promoting them on my blog for the past 5 years or so

Something that I found weird is that they mentioned on the email I received:

> Please note that since all of your referral credits were issued more than 12 months ago, they will all expire starting next week.

Either the wording is odd or it's just my interpretation, but from what I understood they are implying that all my credits are older than 12 months

But the thing is I have several credits issued this year:

May 06, 2021 April 07, 2021 March 08, 2021 February 02, 2021 January 08, 2021

Or they consume the credits from newer to older.

Comment · 5 years ago
that's a good point and I agree with you

to be honest jekyll still serves the purpose really well (especially for the reader)

the site is still sitting on an inexpensive entry-level cloud server, it's relatively fast, serves 300k+ page views every month and it give me some passive income

i'm pretty sure that if one uses the framework properly it can still hold on very well

i think what left me with a mixed feeling about static site generators is that it is constantly holding you back whenever you think about growing your website. i ended up building a django api that runs on the same vpc as the blog itself, and i used it to expand some features, like reading from google analytics the total page views for a given blog post, or consuming the disqus api to list the latest comments on the home page. this kind of thing.

managing the posts in static files is quite challenging as the number of posts grows. at some point you will want to change some info, or add a certain metadata and you will need to write a script to walk the _posts dir and edit the files (maybe there's a better way of doing that :P)

Comment · 5 years ago
hey, thanks! :D
Comment · 5 years ago
yes because of a bad design decision I made to create a custom "related posts", which is a code that searches all my markdowns to pick the best pages and add to the current page. so even with `--incremental` it take quite some time to regenerate

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton