Sandra's Weeknotes logo

Sandra's Weeknotes

Archives

Sandra's Weeknotes Sandra's Weeknotes

Archive

Weeknotes: 18 March to 22 March 2024

sunset sky over a field
La Baie Au Soleil Couchant (Saint Clair) (1916), Theo van Rysselberghe (Belgian, 1862-1926)

What I have found gripping

  • Using the console to run functions in JavaScript before noticing differences between what might be written in a code editor and what is allowed in a REPL (Read, Evaluate, Print, Loop)

  • Typing tsc in a terminal followed by sample.ts compiles the file and will generate a sample.js one

  • Running a node command like node sample.js will output results from the code in the file e.g. Hello, world!

  • Updating dependencies can sometimes mean manually changing their version before installing them instead of relying on a command designed for that purpose

#30
March 22, 2024
Read more

Weeknotes: 11 March to 15 March 2024

Painting of a path in the woods in Vienna, Austria
Frühling, Aus dem Wiener Prater (Spring, from the Prater in Vienna) (1900), Tina Blau (Austrian, 1845-1916)

What I have found gripping

#29
March 15, 2024
Read more

Weeknotes: 4 March to 8 March 2024

Two people crossing a river on a small boat as the sun sets
Landscape with Evening Sky (before 1825), Jørgen Sonne (Danish, 1801 – 1890)

What I have found gripping

#28
March 8, 2024
Read more

Weeknotes: 19 February to 23 February 2024

A painting of a snowy landscape with mountains in the background in North Norway
Mountains. Study from North Norway, Anna Boberg (Swedish, 1864 – 1935) from Artvee

What I have found gripping

  • Fixing a ModuleNotFoundError in Python by importing a module with the correct name requires carefully going over the traceback message

  • Deploying a project with a different deployment platform and noticing that the version of the programming language is key to a deployment

  • Iterating on a Ruby project and adding integration tests to it and learning that Cucumber aims to make tests readable across teams

  • Rewriting RSpec tests in Hanami to add matchers checking the JSON response leads to syntax changes associated with an expect method

#27
February 23, 2024
Read more

Weeknotes: 12 February to 16 February 2024

a sunset over a field
Summer Evening With Storm Clouds, John Constable (English, 1776-1837) from Artvee

What I have found gripping

  • RSpec can be used with another testing tool called Capybara

  • Embedded Ruby (ERB) can be handy for displaying data

  • ERB is a templating engine

What I have read

#26
February 16, 2024
Read more

Weeknotes: 5 February to 9 February 2024

a painting of a landscape with trees and clouds
Blue and silver, Pas-de-Calais, 1929, by Algernon Talmage, Painting from Museum of New Zealand Te Papa Tongarewa on Unsplash

What I have found gripping

  • Parsing an RSS feed before extracting it to create a web app with a tool providing a detailed documentation is refreshing

  • Reviewing the differences between projects in Hanami 2.0 and those in Hanami 2.1 is informative

  • In Python, the zip function aggregates elements from two or more iterables

#25
February 9, 2024
Read more

Weeknotes: 29 January to 2 February 2024

a lake with mountains in the background
Image by 12019 from Pixabay

What I have found gripping

  • RSpec expectations define expected outcomes

  • A diff is the part of a failure message showing the differences between data structures

  • Domain-Driven Design relies on business requirements

#24
February 2, 2024
Read more

Weeknotes: 22 January to 26 January 2024

A cliff and boats stationed near it
Photo by Birmingham Museums Trust on Unsplash

What I have found gripping

  • Each Hanami view contains a class and a template in v2.1

  • Domain-Driven Design involves collaboration between developers and domain experts

  • Picking a technical solution that will meet almost all of a project's requirements can make a difference. Being aware of tradeoffs matters too

  • Adding a requirements.txt file to a Django project only requires using this command

    pip freeze > requirements.txt
#23
January 26, 2024
Read more

Weeknotes: 15 January to 19 January 2024

A view of mountains and a river
Painting by Francis Towne: Grasmere from The Rydal Road, Birmingham Museums Trust on Unsplash

What I have found gripping

#22
January 19, 2024
Read more

Weeknotes: 8 January to 12 January 2024

Sunrise on the horizon in a forest landscape
Photo by Artem Sapegin on Unsplash

From now on, these weeknotes will be hosted on Buttondown.

What I have found gripping

#21
January 12, 2024
Read more

Weeknotes: 11 December to 15 December 2023

photo of mountains and a night sky filled with stars
Photo by Arto Marttinen on Unsplash

#20
December 15, 2023
Read more

Weeknotes: 4 December to 8 December 2023

a painting of a field with trees and clouds
Photo by Europeana on Unsplash

What I have found gripping

  • Ruby Object Mapping (ROM) is an open-source persistence and mapping toolkit for Ruby

  • In Hanami, confirming that the database_url setting is working as intended requires running the command bundle exec hanami before calling the database_url method on the application's settings object

  • Building a RESTful API in Go means carefully considering which database to add to it

#19
December 8, 2023
Read more

Weeknotes: 27 November to 1 December 2023

gray abstract rose petals
Photo by Susan Wilkinson on Unsplash

What I have found gripping

  • Adding double-quoted strings helps process escape sequences. For example when printing an addition with the print method:

    print "addition\n"
  • The .to syntax defines positive expectations in tests

  • The .to_not/.not_to is for negative expectations in tests

  • Wildly Explicit Tests can be handy in RSpec

#18
December 1, 2023
Read more

Weeknotes: 20 November to 24 November 2023

waterfalls painting
Photo by British Library on Unsplash

What I have found gripping

  • Creating a new programme in Python from scratch with a new method leading to the output I’m looking for is fascinating

  • Documentation providing detailed guidance about how to use a tool is a brilliant source of information and supports various levels of autonomy

  • A prosumer is someone that purchases very high quality technical products or equipment. It’s also an individual who helps a company design and produce its products

  • Trying out a new tool with a very different interface with a focus on relevant and more accurate information is pleasant

#17
November 24, 2023
Read more

Weeknotes: 13 November to 17 November 2023

a painting of a wooded area with trees
Photo by Birmingham Museums Trust on Unsplash

What I have found gripping

  • Tools integrating with the framework LangChain include Anthropic, Google, OpenAI, AWS, Microsoft etc.

  • In LangChain, agents use a language model to choose a sequence of actions to take

  • Running the command python -m pip install -r requirements.txt in an integrated terminal installs dependencies based on a file named requirements.txt

  • Garbage collection in Ruby is a memory management system

#16
November 17, 2023
Read more

Weeknotes: 6 November to 10 November 2023

a landscape with hills and trees
Photo by Catherine Kay Greenup on Unsplash

What I have found gripping

#15
November 10, 2023
Read more

Weeknotes: 30 October to 3 November 2023

a painting of a landscape with a body of water in the background
Photo by Birmingham Museums Trust on Unsplash

What I have found gripping

#14
November 3, 2023
Read more

Weeknotes: 23 October to 27 October 2023

a painting of a lake surrounded by mountains
Photo by Catherine Kay Greenup on Unsplash

What I have found gripping

#13
October 27, 2023
Read more

Weeknotes: 16 October to 20 October 2023

green grass field near snow covered mountain during daytime
Photo by Catherine Kay Greenup on Unsplash

What I have found gripping

#12
October 20, 2023
Read more

Weeknotes: 9 October to 13 October 2023

brown mountain under white clouds and blue sky during daytime
Photo by innayat anhar on Unsplash

What I have found gripping

  • An each loop in Ruby is a way to “repeat until done”

  • Not having a CLI command to set secrets before deploying a Rails app to a new host makes for a more complex deployment process

  • Using this Rails command is a necessary step in the process: EDITOR=vim rails credentials:edit --environment production

  • In Rails 7.1, it is possible to generate a Dockerfile by typing this Rails command in the terminal at the root of the project folder: bin/rails generate dockerfile

  • Adding CSS to a Sinatra app involves a DRY (Don’t Repeat Yourself) approach

What I have read

#11
October 13, 2023
Read more
  Newer archives Older archives  
Powered by Buttondown, the easiest way to start and grow your newsletter.