Parameter vs Argument
Parameter
- Variable defined in a function
- Acts as a placeholder to receive a value
- Written in a function **definition**
Argument
- Actual value passed to the function
- Provides the data to the parameter
- Written when **calling** the function
Pattern always used for test?
1. Arrange: Set up your inputs, variables, or mock data.
2. Act: invoke the function or method you’re testing from the describe block.
3. Assert: check that the result matches what you expect.
Turns out today I won’t tweet about programming… I took my Toyota Camry s 2014 to the mechanic, he’s told me the life expectancy of the car left is 2/3 years more.
🐘 Database performance issues? Start investigating in VS Code!
Use PostgreSQL performance dashboards and Azure Advisor recommendations to identify issues, review possible fixes, and verify the results.
🎬 PostgreSQL Like a Pro: VS Code Edition https://t.co/fhKn5JkfGX
#vscode #postgresql
Cool it on the tab hopping 🐇
Reviewing agent code usually means switching tabs. The GitHub Copilot app puts the diff, terminal, and browser side by side to check, run, and preview.
https://t.co/NCWK8hUeFf
The one JavaScript feature that silently breaks production code.
Most US developers know async/await, but many still make this subtle performance mistake:
The Catch: If one promise fails in Promise.all, the whole thing rejects immediately.
If you need every request to settle regardless of errors (like a dashboard where one failing widget shouldn't crash the app), use Promise.allSettled() instead.
A simple switch, but it saves hours of production debugging.