Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
Tuesday, October 22nd, 2024 • Niall Maher

# 🤖 Developer Productivity Boost: Testing, Tools & Tips

Here's a testing tip that's been a game-changer for my workflow: [Playwright's test generator](https://playwright.dev/docs/codegen-intro#running-codegen).

Instead of writing UI tests manually, just run:

```
npx playwright codegen <your-url>
```

Then interact with your site naturally - click buttons, fill forms, whatever you need to test. The generator creates locators automatically (prioritizing roles, text, and test IDs), and you can even record assertions by using the toolbar to verify visibility, text, or values. Between this and AI tools at our fingertips, there are no excuses for getting good e2e tests in our code.

## 📚 This Week's Picks

**[Effortless Upstream Syncing: A Custom Alias for Git Users (2 min)](https://www.codu.co/articles/effortless-upstream-syncing-a-custom-alias-for-git-users-fowfliwo)**

Are you tired of manually syncing your GitHub fork with the upstream repository?

**[A Faster Docker Desktop Alternative (1 min)](https://www.codu.co/articles/a-faster-docker-desktop-alternative-i4ce5tgx)**

It's no secret that Docker Desktop is a memory hog... If you are on Mac, I recently found a good alternative (that might save your memory)

**[Fix Scrollbar Layout Shifts with Just CSS (2 min)](https://www.codu.co/articles/fix-scrollbar-layout-shifts-with-just-css-e7hsdgyt)**

Layout shifts caused by the appearance of scrollbars can be a frustrating user experience issue. Here's how to fix it:

**[Node.js 23 Released - Here's What's Interesting (2 min)](https://www.codu.co/articles/node-js-23-released-here-s-what-s-interesting-26j8irng)**

This release introduces some nice upgrades designed to boost developer productivity, improve performance, and increase compatibility with modern JS.

**[20 Git Command-Line Tricks Every Developer Should Know (3 min)](https://dev.to/jagroop2001/20-git-command-line-tricks-every-developer-should-know-1i21)**

A useful list of Git commands every developer should know.

**[What's New in Express.js v5.0 (6 mins)](https://www.trevorlasn.com/blog/whats-new-in-express-5)**

Version 5.0 of Express.js finally landed! Here's what's new.

**[Sampling with SQL (20 mins)](https://blog.moertel.com/posts/2024-08-23-sampling-with-sql.html)**

Sampling is one of the most powerful tools you can wield to extract meaning from large datasets. Here's how to do it with SQL.

**[Server Setup Basics (10 mins)](https://becomesovran.com/blog/server-setup-basics.htm)**

Most web devs can't setup their own servers. This is a guide on setting up a basic server. A skill that is great to have to understand what the tools inside the black box are doing for us.

## 📖 Book of the Week

**[The Site Reliability Workbook: Practical Ways to Implement SRE ](https://amzn.to/3NAxhA0)**

This is a must-read for anyone interested in modern infrastructure and reliability. What sets this book apart is its intensely practical approach - it's not just theory, but actual, battle-tested methods from Google's SRE teams. While its companion book (Site Reliability Engineering) explained the 'why' of SRE, this workbook tackles the 'how' with real-world examples and hands-on practices.

## 🛠️ Something Cool

**[aider](https://aider.chat/)**

I had a call with an old friend yesterday and he showed me this one. I've just started using it so I'll write up a more detailed review in a few weeks.

"Aider lets you pair program with LLMs, to edit code in your local git repository."

It's another AI coding assistant but this one works from your terminal. What blew me away was how it automatically creates meaningful git commits for AI-suggested changes, making it feel like a natural part of your development workflow. The fact that it makes commits makes it feel like you are working with another person on your code which to me feels like a much more natural process.

## 🔗 Quick Links

- Codú TikTok: [https://www.tiktok.com/@codu.co](https://www.tiktok.com/@codu.co)

- Hacktoberfest GitHub Issues: [https://github.com/codu-code/codu/issues](https://github.com/codu-code/codu/issues)

- Our YouTube channel: [https://www.youtube.com/@codu](https://www.youtube.com/@codu)

That's it for this week!

If you have any ideas or feedback, reply to this email.

Thanks, and stay awesome,

Niall

Founder @ [Codú](https://www.codu.co/?ref=newsletter)
Loading