
Forward Deployed Engineer 🤖 • Philosopher 💡• Writter ✍️
Zagreb
Joined December 2021
- Tweets841
- Following369
- Followers151
- Likes692
Pinned Tweet
➡️ React.js Layered Architecture 🔥
1. Data access layer - api folder with React-Query 📶
2. Business logic layer - custom hooks folder inside component 🪝
3. Presentation layer - React component 🖥️
So easy to implement, test and maintain 🚀
#react #javascript #programming
In the pursuit of 100x AI agent we lost judgement and taste about product we were building in the first place
3
Everyone who thinks that code review is a bottleneck, should be reminded that they are not building a prototype.
Software entropy is real. Code quality still matters.
2
2
51
➡️ What is the future of small business in AI era?
If you are business owner or AI enthusiast we have something for you...
alpha-code.hr/blog/future-of…
12
➡️ The Art of Crafting controllers in Node.js 🧑💻
Do you think AI is able to write code like this? No? Oh, you sweet talker...
Now, let me explain something that most developers don't know.
There are two types of dependencies in software development:
• managed
• out-of-process
Managed dependencies should 𝐍𝐎𝐓 be mocked in tests becasue they are part of your 𝑚𝑎𝑖𝑛 𝑝𝑟𝑜𝑐𝑒𝑠𝑠.
Example of a managed dependency is a 𝐝𝐚𝐭𝐚𝐛𝐚𝐬𝐞.
Out-of-process dependencies should be mocked in tests because they are not under your control.
Example of an out-of-process dependency is a 𝐦𝐚𝐢𝐥 𝐬𝐞𝐫𝐯𝐞𝐫.
Instead of coupling mail sending with controller, you should fire an event.
This keeps your controller code lean, single purpose and most important of all, easily 𝐭𝐞𝐬𝐭𝐚𝐛𝐥𝐞.
Link to full Node.js server code: github.com/mateogalic112/nod…
⬇️ _________________
We at Alpha Code love sharing knowledge!
Hope you learned something new today 📚
20
➡️ Why should programmers read books in 2027?
In short, if you want great software you need to write it yourself.
Programming with AI seems to always end up in a big ball of mud.
No matter how simple the requirements, there are always extra utils, helper, manager and controller files.
There is always one more rabbit hole that you end up in with your fellow agent.
All I wanted was a banana, but I ended up with mango, gorilla and whole jungle!
What happens when you don't even know how great software looks like?
Well, you get extra Claude midnight sessions for features you don't even know are there, praying that this time final report comes clean. But it never does, right?
What a waste of Anthropic's precious tokens... Burn baby, burn!
For software developers, let me save your professional career with one book:
📚 Unit Testing Principles, Practices, and Patterns by Vladimir Khorikov
This books will change your perspective on how to approach building software from first principles.
Great code doesn't always read like a story, but it's always easily testable. If you don't know what that means, this book is definetly for you!
Building performant game engine will have "uglier" code than blog site. But uglier doesn't always mean worse.
In the end, everything is a trade-off. Knowing when to apply options 2 instead of option 1 is software engineering.
In 2027, focus on fundamentals, be in full control of your software and... Read baby, read!
1
1
85
➡️ Human crafted code that reads like a story 😍
First of all, it's so refreshing to see simple Ghostty terminal with Neovim.
You can see at first glance that someone put a lot of thinking into building this dream programming setup.
Second, the code 🎨
It's so easy to read and understand. Kind of feels like a poetry. You could easily be seduced into thinking that anyone could write it.
Domain models and out-of-process dependencies are nicely split, only two layers of abstraction and 0 branching in controllers 🤯
AI agent could never produce such a beauty. It takes years of experience, hundreds of books and dosens of large scale projects.
Agent is average. I hate that word. Average means degradation over time. You don't make anything worth of pursuing with average. That software is unviable.
Humans should craft codebases. Agents should automate boring office work.
Full project repo can be found here: github.com/mateogalic112/nod…
1
46
➡️ 99.9% of Node.js developers don't know this ☠️
Do you know what 'json replacer' is?
The 'json replacer' setting controls how Express framework formats JSON responses when it calls JSON.stringify( ) under the hood.
It will be invoked for each key/value pair during stringification, allowing you to:
- Filter out properties (e.g., remove passwords).
- Transform values (e.g., format dates).
- Select a whitelist by providing an array of property names to keep.
Practical Tip 💡
If you need to hide confidential fields globally, a replacer function is a clean way to enforce it in one place rather than sprinkling manual delete statements throughout your route handlers.
11
➡️ How to use AI - without burning yourself to death ✝
This post is not for people that build "software factories" that run 24/7. Only god can help these fanatics.
AI should be used exclusively for manual, boring labour. It should not take fun from your job, it should elevate it to a new level.
Soul-taking bureaucratic work can be done in minutes, leaving you time for reaching out to new prospects or making plans for the future.
Problem begins when agents start running you, not the other way around.
Think about it, nothing valuable has ever come from a 48 hour agent session. Real value comes from small insights, something agent will never be able to do.
If you want money, you need to take it from people, not LLMs. AI generated marketing campaigns will only hurt your reputation.
Ask yourself this, if Anthropic starts charging $100,000 for Claude tomorrow, will I still be able to deliver value to my customers? That tomorrow is coming soon my friend.
Continue distilling LLMs to improve your cognition, read books, debate opposing opinions.
Continue being a master, not a foolish servant. That's the only way.
17
➡️ AI solutions for small and medium businesses 🔥
Filling a bill of quantities used to take about a week 😱
Thousands of lines looked up by hand to find the right product, catalog number and price.
AI does the first pass in minutes. 🏎️
- fills every line
- checks each product is in the current price list
- compares its picks with the products company prefers
When some lines don't match, it fixes them itself. Lines it isn't sure about get flagged for a person.
A colleague still reviews everything before it goes to the customer. They just spend their time on the 9 tricky lines, not thousands.
~1 week of manual work → ~4 minutes of AI work.
1
29
Prove me wrong:
Maxing out agent tokens is providing 0 value to your customers.
Making deliberate, small, readable, testable changes to codebase has never been more precious.
14
I have an app idea.
App that uses AI but you don't notice.
Is this even possible? Or we are stuck with stupid chat apps...
3
21
We have switched from writting our code like a story, to writting stories in markdown in hope that it will all turn out great in the end
18
I don't see stupid Fable 5.2 animations on my timeline.
Is this little bubble about to burst?
1
1
45
I have checked the state of a project that was vibe coded in 2 days. We are so far away from AGI. What a pille of nonsense!
1
47
What happened to JavaScript frameworks?
Is Vue.js even the thing? React.js who? Svelte someone maybe?
38
When we were building blockchain apps, the core idea was to hide that info from users.
When we build AI apps, the core idea is to shove AI agent right into user's face 100% of the time.
This only happens in a bubble. Users don't care about tokens, temperature, context and other BS.
People don't want a chat bot, they want their problem solved!
26




