
Passionate Software Engineer ๐ | Specializing in Mobile & Fullstack Development | Committed to constant growth with #100DaysOfCode | Opinions are my own. ๐โจ
Nairobi, Kenya
Joined October 2011
- Tweets932
- Following956
- Followers416
- Likes2.3K
Wesley Tokoi retweeted
An unprecedented day in my history with PHP.
Some bumps along the way, but really proud of the @laravel team for working through the night ensuring all of our products and customers had patches available to them and, when possible, applied automatically.
Given the advancement of agents, it's quite possible this won't be the last time this happens, and it's likely PHP won't be the only language that goes through this. We built some solid muscle today to do even better next time.
Onward. ๐ซก
Wesley Tokoi retweeted
Lot of #PHP snark going around right now from folks who've either never written software, or never done it in PHP (in the last 20 years).
I've architected, designed and hand-coded copious amounts of software in Java/Spring/Hibernate, .Net/C# Entity Framework and PHP/Symfony/Doctrine, applying very similar patterns and better practices of completely stack-agnostic concepts such as:
- Test-Driven Development (and given half-day and full-day hands-on live-coding workshops at conferences worldwide)
- Onion/Hexagonal Architecture
- Domain-Driven Design
- Data Mapper ORMs
Beyond workshops, I have spoken on these topics at conferences worldwide as well.
I might argue that I am not completely devoid of clue when it comes to these stacks' capabilities.
In fact, I have hired, coached and cross-trained engineers across these 3 stacks.
And I can assure you PHP shines within these paradigms, with an extremely vibrant, mature and robust ecosystem of Application Frameworks, Security Frameworks and Tools, and Open-Source Software Components and Libraries.
PHP is not WordPress. WordPress is not PHP. If you care about quality software, PHP is a great home for you. So is Java. So is C#. So are other languages. If you suck at software you'll suck in any stack. If you're good, each stack has strengths you can play to.
NOW let's talk about security.
This vulnerability, is the very first RCE to this level in PHP's history. It was reported back in August. AI did help. A lot. (Wiz claims one researcher did in a week what would previously have taken a team months)
Previous PHP RCEs had limited attack surfaces:
- 2024 - Windows CGI Only
- 2019 - One specific nginx setup
- 2012 - CGI only
None of which applied to reasonably-better practice typical Linux + Nginx + php-fpm deployments.
This right here was ... unique, I think even across any stack. The only language-runtime equivalent to it was probably Windows IIS Code Red.
That's not to say other stacks didn't have framework-level vulnerabilities with devastating impacts, if memory needs refreshed:
Ruby โ Rails CVE-2013-0156: every Rails app, default config, pre-controller, botnet-exploited. The strongest analogue in any stack.
Java โ Struts 2 CVE-2017-5638 (Equifax). Log4Shell needed the app to log attacker input; Spring4Shell needed WAR-on-Tomcat + JDK 9+ + POJO binding.
Node โ React2Shell CVE-2025-55182 (Dec 2025, CVSS 10, CISA KEV): default create-next-app exploitable, but Express/Fastify/Nest untouched.
.NET โ MS10-070 padding oracle (2010) leaked web.config/machineKey on every ASP (dot NET) site; RCE was a derived second step. Kestrel/ASP.NET Core has never had an RCE.
Look ... let's drop the snark. LLM-driven vulnerability research and breaching frameworks are about to humble the absolute heck out of all of us. They already have.
If you think your stack is not at risk, think again.
Wesley Tokoi retweeted
Replying to @PovilasKorop
Tips are more relevant now more than ever.
If you donโt know what good code looks like, the agentโs output will definitely be a reflection of that.
Wesley Tokoi retweeted
The problem with slop is you canโt see it if thatโs all youโve ever seen. Once you see clean code and clean architecture and appreciate the benefits, you canโt deal with slop anymore.
Wesley Tokoi retweeted
Claude Code has been super slow today and has been generating some of the worst code I've seen.
Good luck to those who think code reviews aren't necessary. You'll learn the hard way: one day the pile of AI slop will be so big that even the simplest changes take forever and break unrelated features along the way.
Wesley Tokoi retweeted
CEO of Coinbase bragging that non-technical people are now using AI to ship production code. When a CEO says this, one of two things is true: either they don't know what production code is, or they're selling you a story.
This kind of hype is how businesses end up in real trouble. The people shipping the code and the CEOs cheering them on won't be the ones held responsible when it breaks. They collect their paycheck either way. Users will find out the hard way, once unreviewed code has touched their money, medical records, identities, private messages, kids' data, legal documents, critical infrastructure. By then it's too late.
Production code isn't a vibe.
Day 10 of #100DaysOfPython: I completed Section 10 - Beginner - Functions with Output. #100DaysOfCode.
21
Day 9 of #100DaysOfPython: I completed Section 9 - Beginner - Dictionaries, Nesting and the Secret Auction. #100DaysOfCode.
1
24
Day 8 of #100DaysOfPython: I completed Section 8 - Beginner - Function Parameters & Caesar Cipher. #100DaysOfCode.
2
32
Wesley Tokoi retweeted
๐๐ฎ๐ฟ๐ฎ๐๐ฒ๐น ๐ฟ๐๐น๐ฒ๐ ๐๐ง๐ข๐ ๐บ๐๐๐ ๐ฒ๐ป๐ณ๐ผ๐ฟ๐ฐ๐ฒ ๐ฏ๐ ๐ฑ๐ฒ๐ณ๐ฎ๐๐น๐
Laravel moves fast.
Thatโs exactly why it needs rules.
If you donโt set these early, youโll enforce them later โ under pressure.
Here are the Laravel rules every CTO should make non-negotiable ๐
๐ญ. ๐ก๐ผ ๐๐ป๐ฐ๐ผ๐ป๐๐ฟ๐ผ๐น๐น๐ฒ๐ฑ ๐ฑ๐ฎ๐๐ฎ ๐ณ๐ฒ๐๐ฐ๐ต๐ถ๐ป๐ด
If a query returns โeverything,โ itโs a bug. Large datasets must always be constrained, paginated, or streamed.
๐ฎ. ๐ฅ๐ฒ๐น๐ฎ๐๐ถ๐ผ๐ป๐๐ต๐ถ๐ฝ๐ ๐บ๐๐๐ ๐ฏ๐ฒ ๐ถ๐ป๐๐ฒ๐ป๐๐ถ๐ผ๐ป๐ฎ๐น
Lazy loading is never accidental at scale. If relationships are accessed, they must be planned and reviewed.
๐ฏ. ๐๐ป๐ฑ๐ฒ๐
๐ถ๐ป๐ด ๐ถ๐ ๐ฝ๐ฎ๐ฟ๐ ๐ผ๐ณ ๐ณ๐ฒ๐ฎ๐๐๐ฟ๐ฒ ๐ฑ๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐
Any new filter, lookup, or foreign reference ships with an index โ not as a follow-up task.
๐ฐ. ๐ฅ๐ฒ๐พ๐๐ฒ๐๐ ๐ฐ๐๐ฐ๐น๐ฒ๐ ๐๐๐ฎ๐ ๐น๐ถ๐ด๐ต๐๐๐ฒ๐ถ๐ด๐ต๐
Anything slow, repeatable, or failure-prone runs outside the user request. Queues arenโt optional once traffic exists.
๐ฑ. ๐๐ผ๐น๐น๐ฒ๐ฐ๐๐ถ๐ผ๐ป๐ ๐ฎ๐ฟ๐ฒ ๐ป๐ผ๐ ๐ฎ ๐ฑ๐ฎ๐๐ฎ ๐ฒ๐ป๐ด๐ถ๐ป๐ฒ
If logic can be pushed to the database layer, it should be. Memory-heavy collection work is a red flag.
๐ฒ. ๐ฃ๐ฎ๐ด๐ถ๐ป๐ฎ๐๐ถ๐ผ๐ป ๐ถ๐ ๐บ๐ฎ๐ป๐ฑ๐ฎ๐๐ผ๐ฟ๐ ๐ณ๐ผ๐ฟ ๐น๐ถ๐๐๐
No exceptions. If a screen can grow, it must paginate from day one.
๐ณ. ๐ง๐ต๐ฒ ๐ฑ๐ฎ๐๐ฎ๐ฏ๐ฎ๐๐ฒ ๐ถ๐ ๐ป๐ฒ๐๐ฒ๐ฟ ๐ฎ ๐ฐ๐ฎ๐ฐ๐ต๐ฒ
Repeat reads require a caching strategy. Database load should represent truth, not convenience.
๐ด. ๐ฃ๐ฒ๐ฟ๐ณ๐ผ๐ฟ๐บ๐ฎ๐ป๐ฐ๐ฒ ๐ถ๐ ๐บ๐ฒ๐ฎ๐๐๐ฟ๐ฒ๐ฑ, ๐ป๐ผ๐ ๐ฎ๐๐๐๐บ๐ฒ๐ฑ
Query counts, execution time, and memory usage are reviewed regularly โ not only during incidents.
๐ต. ๐๐น๐ผ๐พ๐๐ฒ๐ป๐ ๐ฐ๐ผ๐ป๐๐ฒ๐ป๐ถ๐ฒ๐ป๐ฐ๐ฒ ๐ถ๐ ๐ฎ๐๐ฑ๐ถ๐๐ฒ๐ฑ
Accessors, casts, appended attributes, and global scopes are treated as performance-sensitive code.
๐ญ๐ฌ. ๐ฆ๐ฐ๐ฎ๐น๐ถ๐ป๐ด ๐ฟ๐๐น๐ฒ๐ ๐ฎ๐ฟ๐ฒ ๐ฑ๐ผ๐ฐ๐๐บ๐ฒ๐ป๐๐ฒ๐ฑ ๐ฒ๐ฎ๐ฟ๐น๐
Every Laravel codebase needs written performance boundaries โ before the team doubles.
Laravel doesnโt collapse because itโs slow.
It collapses because leaders let convenience replace discipline.
CTOs donโt need to block speed.
They need to protect the system from its own success.
Thatโs how Laravel products survive real growth.
Day 7 of #100DaysOfPython: I completed Section 7 - Beginner - Hangman. #100DaysOfCode.
1
1
39
Wesley Tokoi retweeted
Mark Zuckerberg scaled Facebook in 2005 - without Kubernetes, Serverless Functions, Redis, Managed Auth, Rust, or Kafka.
No fancy orchestration.
No distributed event streams.
No cloud-native anything.
Modern devs love to over-engineer.
We build as if our projects will scale to 1 million users tomorrow.
But here's the truth:
Most apps die with 100 users, not 1 million.
We predict every possible future case:
โ So we add layers, queues, caches, and microservices...
for problems that don't even exist yet.
That's not architecture.
That's trend-driven engineering.
Always architect your apps based on current needs (not possible future guesses), leaving room for extension and evolution.
Complexity kills projects - simplicity scales.
Don't design your MVP like it's Facebook in 2025.
Design it like Facebook in 2005 - simple, fast, and focused on what matters most: value.
๐ Join 16,000 software engineers who learn how to build software based on current needs and not the trends:
โณ antondevtips.com/?utm_sourceโฆ
๐๐ผ๐ป๐๐: every subscriber gets a PDF with 650+ exclusive resources for mastering C#, .NET, ASP .NET Core, EF Core, and Microservices.
โโ
โป๏ธ Repost to help others learn how to build software based on current needs
โ Follow me ( @AntonMartyniuk ) to improve your .NET Skills
Day 6 of #100DaysOfPython: I completed Section 6 - Beginner - Python Functions & Karel. #100DaysOfCode.
1
41
It's quite unbelievable that 14 years have already lapsed since I joined X (formerly Twitter) - from the good old days when Twitter #Bootstrap (the frontend framework) was first released to the public! #MyXAnniversary
29
Wesley Tokoi retweeted
You're a JavaScript dev. You just pushed a new feature to production.
An hour later, the Slack messages start.
TypeError: Cannot read properties of undefined (reading 'name')
Your stomach drops. You passed the wrong prop. Or an API response changed slightly. Or you misspelled 'user.firstName' as 'user.fName'. And your entire app crashed for 10,000 users.
This is the exact moment 90% of JS devs just accept that "this is fine."
For months, I avoided TypeScript. I thought it was for enterprise nerds who missed Java. I loved the "freedom" and speed of JS. I thought, "I'm a good dev, I can just be careful."
I was wrong. I was just learning about TypeScript, and the "aha!" moment hit me hard.
I was expecting a chore. What I got was a superpower.
Here was my journey from skeptic to believer.
Level 1: The Editor Gets a Brain
I used to 'console.log(props)' just to remember what was in it.
- My new workflow: I define an 'interface User { ... }'.
Now, in my component, I type 'props.user.' and VS Code instantly shows me a list of 'firstName', 'lastName', and 'email'.
It's not just autocomplete. It's my editor becoming a co-pilot that knows my entire codebase.
Level 2: The End of "Oops" (The "Contract")
I used to write 'function greet(user) { ... }' and then accidentally pass 'greet("Harsh")'. It breaks at runtime, when the user clicks the button.
- My new workflow: I write 'function greet(user: User) { ... }'.
I try to pass it a string. A fat red squiggly line appears.
I just fixed a production bug before I even saved the file. This isn't boilerplate. This is a contract that protects me from myself.
Level 3: The "Wait, what?" Features
- Teamwork: The backend team changes an API response. They don't just "tell me on Slack." They update the shared 'types' file. The second I pull from git, my editor tells me exactly what broke.
- New Devs: A new dev joins. I don't spend 3 days explaining our data. I just point them to the 'types' folder. They're productive on day one.
Level 4: The "God-Mode Refactor" (This is what sold me)
This is the real magic.
- My Problem: I need to rename 'user.email' to 'user.emailAddress' across a 50,000-line codebase.
- My old workflow: "Find & Replace." Close my eyes. Pray.
- My new workflow:
1. I go to my one 'User' interface.
2. I rename 'email' to 'emailAddress'.
3. My entire codebase instantly lights up with red squiggles.
It's not a list of errors. Itโs a perfect, automated to-do list of every single file I need to fix. I can refactor a massive app with 100% confidence.
I thought TypeScript was a cage. It's not. It's a suit of armor. It lets you move faster and safer because you're no longer afraid of breaking things.
Day 5 of #100DaysOfPython: I completed Section 5 - Beginner - Python Loops. #100DaysOfCode.
1
49
Once you've worked as a software engineer long enough, you realise tools do not matter as much. Your job is essentially to solve problems; pick the right tool, learn fast, and ship.
1
30
Day 4 of #100DaysOfPython: I completed Section 4: Beginner - Randomisation and Python Lists. #100DaysOfCode.
3
177










