I learned this the hard way. I knew Flutter’s stateless and stateful widget lifecycles well. But I was ignorant. I made a grave, mostly fatal, mistake of doing something like this: Do you see the graveness of my code? No? Check again, I’ll wait. Okay. Maybe you’ve guessed it, maybe not. See the code below. […]
Category: Coding & Tech
Software development quirks and technologies that interest me.
Mocking Firestore in Flutter
Posted on under Coding & Tech, Open-Source — 2 CommentsI have been writing unit tests like crazy for my muse Flutter app, in my own TDD-like fashion. Writing meaningful tests and watch them go from red to green is a great feeling for real. If you aren’t doing that yet, I highly recommended. Flutter comes with an excellent testing library called — wait a […]
A joke only Flutter developers would understand
Posted on under Coding & Tech — Leave a commentDeveloper: “YESSS! My world-class widget test is ready to run.” (runs the test) Debug Console: “Expected to see 1 widget, found none.” Developer: What! Why, why, why!!! (figures out all async calls in the widget; spends 4Â hours re-reading about widget testing, exploring the source code of WidgetTester.pump()Â and setting up mock classes using Mockito.) Developer: “Muwaha […]
A compelling case for Next.js
Posted on under Coding & Tech — Leave a commentIf GitHub stats are anything to go by, Next.js has received incredible attention of late. Freelancers and enterprises alike are creating their next applications in or migrating their existing ones to Next.js. When I was recently on-boarded to my first account at Sapient, the departing senior XT architect highly recommended that we migrate to it. […]
How do “rockstar” developers build their brand online
Posted on under Coding & Tech — Leave a commentApparently, some “rockstar” developers are easily able to find time to write quality, long articles, and post multiple, meaningful updates on social media. In contrast, the rest of us “struggling” developers find it difficult to take out time to even share photos from our last vacation. Why is it so that these rockstar developers manage […]