From Imperative to Declarative: Importing Resources With Terraform Before and After Terraform 1.5
From Imperative to Declarative: Importing Resources With Terraform Before and After Terraform Version 1.5Importing resources into your Terraform state is sometimes a necessary evil.If you are lucky to work on a greenfield project, you might not even be aware of the possibility of importing existing resources into your Terraform state. Most
Read morePython String Methods, with Examples
Learn about the most useful Python string methods for manipulating string objects, with explanations, code examples, and even a challenge. Continue reading Python String Methods, with Examples on SitePoint.
Read moreAI-powered Credit Scoring on the Blockchain: Building an ML-model for Undercollateralized DeFi…
AI-powered Credit Scoring on the Blockchain: Building an ML-model for Undercollateralized DeFi LendingLearn how we designed a working ML model for scoring DeFi borrowers, solving the problems of pseudoanonymity, huge data size, and ubiquitous botsIntroductionLending is one of the biggest DeFi categories by TVL: $13.45 billion in June 2023. Leading protocols
Read moreGrok Control Flow-Based Analysis in TypeScript
Photo by kazuend on UnsplashTL;DRTS compiler does not understand control flow in closure/callback function.In flow-based type analysis, the compiler will be either optimistic or pessimistic. TypeScript is optimistic.You can usually workaround (3) by using const or readonlyThis is a long-due introduction to TypeScript’s flow-sensitive typing (also known as control flow-based type analysis)
Read more6 Overlooked Benefits of a Job Rotation
Photo by Annie Spratt on UnsplashWhat is the most rewarding thing I have done in my first two years as a software engineer?Doing a rotation in another team in my company.Since my rotation ended a few months ago, I have encouraged everyone around me to do one if they can. Beyond the
Read moreRust Refactoring for Beginners
Recently Neeraj Avinash posted his code on Rust Programming Language Group on LinkedIn. His goal is to learn some Rust basics, but I found his example being a good foundation for my article. The intention is to show how to improve Rust’s code in stages and demonstrate what mistakes beginners
Read moreWriting Swift-Friendly Kotlin Multiplatform APIs — Part 1
Writing Swift-Friendly Kotlin Multiplatform APIs — Part 1Learn how to code libraries that your iOS teammates will not frown upon using. This is the first chapter in the seriesA photo-realistic illustration of a Google Android contemplating an apple — generated by Dalle-2Kotlin Multi-Platform Mobile (KMM) is awesome… for Android developers. Using or coding a KMM library is
Read morePython’s Hidden Gems: 3 Must-Know Functionalities
Photo by wu yi on UnsplashYou know Python! Or at least, you think you do. Even though I think I do, and even after eight years of full-time experience, I continue to learn new things. I suppose that’s the remarkable aspect of programming: you never cease to learn.I’ve worked with data scientists,
Read moreBuilding for Failure — Best Practices for Easy Production Debugging
Building for Failure — Best Practices for Easy Production DebuggingPhoto by Lance Anderson on UnsplashQuite a few years ago, I was maintaining a database-driven system and ran into a weird production bug. The column I was reading from had a null value, but this wasn’t allowed in the code, and there was no
Read moreWhen Storybook Meets Fetch Mock
Storybook examples with CSF3 + react-storybook-fetch-mockContinue reading on Better Programming »
Read more