Understanding localVM
I started off by exploring localVM, the virtualized local development environment. This involved understanding:
- How project paths are internally referenced and mounted i.e ‘/Users/mrperfect/Local Sites/examplecom’
- How SSL certificates are generated and how to trust them by running commands like as below
- Gone through its database as per the task in timeline assignment deleted it.
- Cloned my repo inside the app folder as suggested in
development.md
I dived into PHP starting with file handling and moving toward debugging techniques. A basic example I played with:
I also explored debugging with:
var_dump()andprint_r()- Enabling xdebug on localVM for step-by-step debugging via VSCode
Also explored some of the basic syntax & type of PHP from https://www.php.net/manual/en/langref.php
JavaScript – Event Loop and Threading Basics
Even though JavaScript runs on a single thread, I took time to understand how it handles concurrency using:
- Event Loop
- Callback Queue
- Microtask Queue (Promises, MutationObservers)
Cron Jobs
I also explored cron jobs essential for scheduling tasks in backend environments
Each cron job follows this format:
* * * * * /command/to/run arg1 arg2
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ └──── Day of the Week (0-7) (Sunday=0 or 7)
# │ │ │ └────── Month (1-12)
# │ │ └──────── Day of the Month (1-31)
# │ └────────── Hour (0-23)
# └──────────── Minute (0-59)

Mailpit – Simplifying Email Testing
I set up and explored Mailpit, a tool that catches all local emails so that no test email goes out to real users.
Will be testing it tonight.
Explored some of the concepts of os and oops.
Leave a Reply