How does a coding agent work?
I built a super basic coding agent and wrote about it here 👇
pabletecodes.substack.com/p/…
1
34
If you're interested in seeing the code and giving it a try (for learning purposes), code is available here: github.com/pabletecodes/mini…
26
No wonder why software engineers are scared of being replaced by AI... part of our job now is to create environments where AI can work autonomously with as little human input as possible 🙃
Yes! Copying is a key part of learning!🎯
- Musicians play existing songs before composing.
- Artists replicate before creating a style.
- Dancers mimic before making their own moves.
Mastery starts with imitation. 🚀
Imitation is great if you put your own spin to it
One of my first projects (before money and I had 0 followers) over a decade ago was Tubelytics, and I literally took @Shpigford's famous Baremetrics app and recreated it but for YouTube
I looked up (and still do) to him a lot and wanted to be him and make money online and I thought if I just copied his landing page but change it for YouTube I'd be rich
It failed but did get VICE as a customer for a bit even! And that inspired me to kept going for years
Just getting people to make something is the first step, even if it probably won't work out, they're now on a creative journey to make stuff and if they keep going many of them will end up very succesful (esp if they all go their own niches)
1
93
Reflections on some recent (and painful) work that we did to replace some frontend components with different APIs and how we might have approached this problem differently: taking advantage of the Adapter pattern:
open.substack.com/pub/pablet…
66
As you might already know Boolean Parameters are often considered a "code smell".
I wrote yet another post explaining why and what's a better alternative 👇
pabletecodes.substack.com/p/…
50
Pablo Alonso retweeted
"Replace Loop with Pipeline" is a simple refactoring to simplify loops.
I've been using it a lot lately and I wrote this post so that you learn about it and can use it too 🙂
open.substack.com/pub/pablet…
"Replace Loop with Pipeline" is a simple refactoring to simplify loops.
I've been using it a lot lately and I wrote this post so that you learn about it and can use it too 🙂
open.substack.com/pub/pablet…
Can you fix the design of your code by looking at the design of your unit tests? 🤔
Yes, you can! 👌
I explored this idea with a very simple example and listed a bunch of "smells" or "pains" you can be looking for in your tests 👇
pabletecodes.substack.com/p/…
71
Improving Code Design by Identifying Test Code Smells
open.substack.com/pub/pablet…
38
This post motivated me to explore how we can apply the "Encapsulate Collection" refactoring in JavaScript, while providing Array-like behaviour on the encapsulated collection:
pabletecodes.substack.com/p/…
This quoted post is unavailable.
1
130
Great article with examples of design patterns that can drastically improve your vue.js components 🙂
📕 12 Design Patterns in Vue
👉🏻 In this article, @MichaelThiessen compiled 12 different design patterns for @vuejs, along with short and concise examples of how they work.
michaelnthiessen.com/12-desi…
2
81
Pablo Alonso retweeted
When should I refactor my code? 🤷♂️
The "Rule of Three", explained in "Refactoring" by Martin Fowler, is a good guideline:
Pablo Alonso retweeted
When working with code, we tend to wear "two hats" (a metaphor attributed to Kent Beck). We're either:
- 👷 Developing: adding tests and fixing them (changing behaviour)
- ✨ Refactoring: restructuring the code (changing structure)
Alwasy be mindful of what hat you're wearing!
Here's my take on the second Design Challenge thrown by @JuntaoQiu 👇
gist.github.com/alonsogarcia…
Disclaimer: I didn't run the code and I'm not a React developer, so pardon my React! 🤣
Design Challenge 002: Simplifying State Management in React , by @JuntaoQiu open.substack.com/pub/juntao…
56
Don't ask me why but every time I use the💃 emoji, it reminds me to @xavijam. Does someone else "suffer" from this? 🤣
Example:
1
6
103











