10-02-2022
Meta Stuff
still need to sort out the bspwm desktops - these windows for zoom and slack are driving me nuts and I want to isolate them into their own desktop
Today's Foci
Focus 1
- Get through the pair challenge to prep for Friday
- Finish the pair challenge before 1400 today
Focus 2
- Look at the Friday challenge and get a vague plan
- Having read through it
Focus 3
- Read more of the Database Design for Mere Mortals
- expect.(blog_notes).to have_content 'notes on book'
Topic
Bookmarks
First off was fixing a typo, which helped significantly.
I must rememeber to think about refactoring the code out of the Controller, and into the model - if I think of it using the model first, retrieving the SQL query might make a little more sense.
Wrapping Data in Objects
Obviously - data is just data
to build on the fantastic quote the other day 'date is what you store, information is what you retrieve' we want to "wrap" ( more stupid jargon designed to obfuscate meaning ) - we want to "wrap" the data into a Ruby/Language object, so we can manipulate that data as we wish.
Ace - makes sense to me.
There we go - useful jargon. We're building an Object-Relation-Mapper. Hooray! Why am I so sassy today?
Useful Tactics
On a html form
<input type="submit" value="Submit" />
The value must be 'Submit' with a capitalized 'S'
open a new tab!
target="_blank"
add a placeholder to an input
<input ...placeholder="Enter your name here" />