JΔnis Smilga π±π» πΊπ¦ #StandWithUkraine
@codingaddict_lv
Followers
9K
Following
3K
Media
128
Statuses
1K
Web Developer β’ π Creator of https://t.co/ksVm1jofjS β’ Tweets about my dev journey
Joined March 2018
π New Course Launch! AWS CDK v2 with TypeScript Learn to define & deploy AWS infrastructure in code. Hands-on projects: S3, Lambda, API Gateway, DynamoDB, SQS, Cognito & more. Enroll now & build like a pro! https://t.co/6kSL5ZwCgm
#AWS #CDK #TypeScript #CloudComputing
udemy.com
Master Infrastructure as Code by Building Real-World AWS Solutions with TypeScript
5
1
19
π¨ New Course Alert! π¨ Practical Git and GitHub: From Basics to Pro Workflows β
Real-world Git commands β
VSCode + Terminal workflows β
Interactive rebase, cherry-pick & more π― https://t.co/tT2Nw4tzWP π Code: GIT-GITHUB-COURSE β³ Offer ends June 11, 2025
udemy.com
Learn the essential Git commands and real-world GitHub workflows used by modern development teams.
6
2
23
π¨ New Course Alert! π¨ Practical Git and GitHub: From Basics to Pro Workflows β
Hands-on Git commands β
Real-world workflows (merge, rebase, cherry-pick) β
Terminal + VSCode examples Perfect for devs who want to master Git without the fluff.
4
4
43
The limits of AI in programming | Tim Sweeney and Lex Fridman https://t.co/S9WlosAzCO via @YouTube
0
0
6
The more time I spend in production code, the more I realize how out of touch many YouTube coding influencers are. Their takes on βclean code,β βbest practices,β and what it means to be a senior dev often crumble in the face of real-world constraints, and legacy systems π
5
2
41
π New Course Alert! Master Jest Testing with TypeScript & Node.js Learn how to write clean, reliable tests with real-world examples. Unit tests, mocks, spies, error handling & more! π― Enroll now β https://t.co/qkkIDH0HPD
udemy.com
Build solid testing skills with Jest, TypeScript, and Node - from setup to mocks, spies, and production error handling
2
1
23
Just installed webpack-bundle-analyzer β love the π₯ graphical breakdown of my bundle! Makes spotting bloat so much easier ππ΅οΈββοΈ Not using Webpack? Check out source-map-explorer or vite-plugin-visualizer π‘ #webpack #webperf #javascript
1
0
12
Spicy take πΆοΈ: For all the talk about TypeScript "overcomplicating" things, itβs actually saving your team from chaos π
1
0
21
π Want to see where a dependency is used in your project? Run this command: π npm ls package-name It shows the full dependency tree π³ Super useful for tracking down nested dependencies π΅οΈββοΈ #npm #javascript #nodejs #webdev
1
2
13
Hot take π₯ : in production, SourceTree β© Git CLI. Look, I β€οΈ terminal too, but when itβs time to rebase, merge, and cherry-pick in prod - most times clicking π±οΈ is faster than rewriting the same conflict 3 timesβor summoning the Git gods with a ritual sacrifice. π₯
0
0
13
Using a this hack in tests: π const resetSingleton = () => (HashingService as any).instance = undefined; π§ Calling this in beforeEach() to reset singleton state. π΅οΈββοΈ In general, (SomeClass as any) helps "cheat" TypeScript when tests need to bypass strict typing. #TypeScript#Jest
0
0
10
Spent an hour debugging a mysterious TypeScript error π΅βπ« Turns out... .webpackCache was the culprit 𧨠Deleted it, and everything worked like magic β¨ #webpack #devlife #typescript π οΈ
0
0
21
π§ TypeScript fun fact! π§ The declare keyword only provides type information but NO runtime values! declare enum Colors { RED, BLUE } console.log( https://t.co/onFaKBNq8d) // π₯ Crash! Remove declare if you need actual values at runtime π
1
0
5
π Dev Tip: Lookup Tables FTW! π Ditch long if/switch statementsβuse object mapping instead! π Examples: β
Convert status codes to messages β
Map country codes to names β
Translate enums π‘ const result = lookupTable[input] || defaultValue; Fast, and easy to maintain! β‘
2
6
30
π Generate minimal .d.ts files with dts-bundle-generator π¦ npm install --save-dev dts-bundle-generator π mkdir -p types (if missing) β‘ npx dts-bundle-generator -o types/utils.d.ts src/utils.ts π Extracts only needed types & dependencies!
0
0
21
π§ͺ Jest Mocking Gotcha! π₯ Issue: π jest.mock('./myModule'); π¨ Returns undefined for EVERYTHING! π«₯ β‘ Your code: π myModule.doStuff() π₯ Cannot read property 'doStuff' of undefined π Fix: jest.mock('./myModule', () => ({ doStuff: jest.fn() })); #JavaScript #Testing #Jest
1
1
11
π Git tip: Deleted files not showing up in staging? git add -A The -A flag is your friend! It stages ALL changes: β’ New files β¨ β’ Modified files π β’ Deleted files ποΈ β’ Renamed files π No more ghost files in your staging area! π― #Git #DevTips #CodingTips
0
0
13
π§ͺ Jest Testing Tip: Run single test file: π "npm test -- yourFileName.spec.ts" OR directly with Jest: π "jest -- yourFileName.spec.ts" Pro tip: Arrow β¬οΈ key is your friend for finding recent commands! No config changes needed π #JavaScript #Testing
0
0
14
π§ NVM #DevTip: VS Code terminal showing a different Node version than your system terminal? Add this to your .zshrc: π "nvm use default" π― Boom! Now both terminals stay in sync with your default Node version. No more version mismatches!
0
1
26
Need to search only in a specific folder in VS Code? - Press `Ctrl + Shift + F` (`Cmd + Shift + F` on Mac) - In **'files to include'**, type `src/components/**` - To exclude folders, use **'files to exclude'**, e.g., `node_modules/**` - Get focused search results! π
1
4
35