Hacker News new | ask | show | jobs
by kennyfrc 3770 days ago
Apart from keeping track, a related problem I'm facing is making sure that I am able to re-implement what I'm doing.

So what I do is the following:

1. I break down what I've learned into steps or checklists

2. I then put these into Scrivener

3. Each topic that I've learned has it's own page

Here's a small example from my notes around PDF generation + attachments in Rails. This is just the overall picture -- each bullet point expands to another bunch of notes which has actual code details.

* build a mailer with mail(to:, from: content:)

* build a controller what delivers that content

* the controller should render a notice that says that the post has been successfully created <via a respond_to method>

* make sure that you configure the SMTP settings

* build a pdf creator (PrawnPDF::Base) => this initializes a PDF w/ some view_context

* configure a MIME type within config/initializers

* configure a controller that triggers a respond_to for this

* add a button that links to think Printable receipt

* save the PDF into some foldere

* insert a paperclip file type into the migration

* add this intot he user model

* go back to the PDF / order controller and then add a custom path to save the PDF (pdf.render file…)

* then save that file inside teh database & set it to the certificate