Wesley Tokoi (@tokoiwesley) header
Wesley Tokoi (@tokoiwesley) profile picture

Passionate Software Engineer ๐Ÿš€ | Specializing in Mobile & Fullstack Development | Committed to constant growth with #100DaysOfCode | Opinions are my own. ๐Ÿ“šโœจ

Nairobi, Kenya
Joined October 2011
"Freedom isn't about doing more. It's about doing less, but better."
135
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. ๐Ÿซก
100
207
29
2,631
93,423
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.
46
84
16
385
24,374
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.
1
2
7
533
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.
12
15
2
187
12,650
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.
32
15
3
222
22,314
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.
118
227
39
2,176
105,723
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
๐—Ÿ๐—ฎ๐—ฟ๐—ฎ๐˜ƒ๐—ฒ๐—น ๐—ฟ๐˜‚๐—น๐—ฒ๐˜€ ๐—–๐—ง๐—ข๐˜€ ๐—บ๐˜‚๐˜€๐˜ ๐—ฒ๐—ป๐—ณ๐—ผ๐—ฟ๐—ฐ๐—ฒ ๐—ฏ๐˜† ๐—ฑ๐—ฒ๐—ณ๐—ฎ๐˜‚๐—น๐˜ 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.
9
29
4
184
13,892
Day 7 of #100DaysOfPython: I completed Section 7 - Beginner - Hangman. #100DaysOfCode.
1
1
39
Concurrency is NOT Parallelism, and every software developer should know (and understand) that.
20
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
78
166
21
1,578
180,174
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.
35
33
6
338
23,017
Wesley Tokoi retweeted
Typescript is javascript with types.
264
61
59
1,639
91,816
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