Advertisement ยท 728 ร— 90

Posts by Ulad Ramanovich

Do you know the newsletter with weekly sharing what happened in the AI or Web development?

Iโ€™m trying to find newsletter with analysis what happened for the last week, instead of raw links

#frontend #ai #wevdevelopment #react #nodejs

10 months ago 0 0 0 0
Post image

The `nyc` npm package lets you merge coverage reports from different test jobs into one comprehensive report. Here's how it works:

11 months ago 0 0 0 0
Post image

Tired of slow Jest tests? I cut my test suite time by 67% with these two simple tricks:

1. Add `maxWorkers=50%` to utilize available CPU
2. Implement `shard` to split and run tests in parallel across multiple jobs

The big challenge? Collecting coverage data from separate jobs. Solution below

11 months ago 0 0 1 0

Senior devs spend 20% of time on code reviews. If you don't, either you're not senior or your team culture needs rework.

Good code reviews:
- Catch bugs before they cause outages
- Share knowledge across the team
- Build better architecture through diverse perspectives

11 months ago 0 0 0 0

Create a template and do this without thinking :)

For me, it was to have content prepared in advanced

1 year ago 2 0 1 0
Post image

What is your next action when you have an incident and the last PR in the list this one?

1 year ago 0 0 0 0

Probably author refer to React Server Components where you can render html on server and send it to client.
Nothing wrong with it, because render on server is faster

1 year ago 2 0 1 0
Post image

Confusing by word 'token' when working with AI? Me too ๐Ÿค”

I spent time understanding how it's calculated, here's simple math:

- Token โ‰  word
- 1 word โ‰ˆ 1.3token
- 1 tweet โ‰ˆ 35 tokens
- Emojis cost extra tokens

shorter words = fewer tokens = lower costs

1 year ago 0 0 0 0
Advertisement

Skipping tests to save time? Think twice.
While writing tests feels chore, the real cost hits during refactoring.

Use AI for basic tests, but guide it - create mocks & define key scenarios. Keep logic simple, and review all the code produced by AI.

Future you will thank you

1 year ago 1 0 0 0

You're missing one primary concept when coding with AI.

AI doesn't own the code, the person who approved this code is the owner of the code.

AI is a tool - your expertise in reviewing, validating & owning the implementation is what matters

1 year ago 0 0 0 0

5/5 Remember: abstract your database logic, centralize configurations, and keep your testing patterns consistent.

1 year ago 0 0 0 0
Post image

4/5 Testing becomes trivial:

- Unit tests: mock DataService
- E2E: use TestDatabaseService with Fishery
- No need to mock individual repositories
- Clean, reusable test data

1 year ago 0 0 1 0
Post image

3/5 Core components:

1. Base Repository - shared database operations
2. Entities - database structure
3. DataService - single entry point
4. Factories - test data generation

1 year ago 0 0 1 0
Post image

2/5 The key is centralizing all database logic in one place.
Create a data-access module that:
โ€ข Acts as a single source of truth
โ€ข Handles all database operations
โ€ข Provides clean testing interfaces
โ€ข Manages multiple databases

1 year ago 0 0 1 0
Post image

1/5 How to manage database access in monorepo with NestJS?

I faced this problem a few times:
โ€ข Duplicated database logic
โ€ข Multiple connection configurations
โ€ข Inconsistent testing patterns
โ€ข No clear structure

Let me explain how I fixed this with the Data-Access Pattern ๐Ÿงต
#NestJS #nodejs #webdevb

1 year ago 1 0 1 0
Post image

๐Ÿณ Next.js Docker build tips:

1. Split into build/run stages - speeds up builds & enables layer caching
2. Use non-root user for runtime - prevents root access if app is compromised

#Docker #Nextjs #Webdev

1 year ago 2 0 0 0
Post image

4 ways to adapt AI for business needs:

1. Pre-training: Needs massive data, expensive
2. Prompting: Cost-effective, learn it first!
3. Fine-tuning: 1000+ examples for good results
4. RAG: Use your docs as context

Start simple, scale as needed

#AI #LLM

1 year ago 0 0 0 0
Post image

This is env management I bring for each project. Don't rely on process.env directly - use Zod validation instead.

Type-safe + clear errors = no more missing configs

#TypeScript #WebDev #nodejs

1 year ago 3 0 0 0
Advertisement

Will AI replace your job? ๐Ÿค”

AI isn't replacing jobs directly - it's automating tasks. Think of it as a tool that helps process work faster, not a robot employee.

Humans still handle complex cases, AI handles repetitive ones. ๐Ÿค–

1 year ago 0 0 0 0
70/30 AI Engineering Rule

70/30 AI Engineering Rule

The 70/30 rule of AI coding: While AI can scaffold 70% of your code, the crucial 30% requires deep engineering expertise.
Best practice: Use AI as a drafting tool, maintain atomic conversations, and own your code through meaningful review.

#AI #SoftwareDevelopment

1 year ago 0 0 0 0

But what you use for as AI assistance? (Outside of code editor)

1 year ago 0 0 1 0

๐ŸŽจ Building new website? Here's a harsh truth:

Most projects fail not because of dev speed, but waiting for "perfect design"

Quick win:
- Ship minimal design in 2 weeks
- Test with real users
- Iterate based on feedback

Stop guessing what users want.

#buildinpublic

1 year ago 2 0 0 0

Post-interview clarity hit me hard today ๐Ÿ’ก

Spent 2 weeks learning algorithms, only to get asked about building an actual product feature. Classic over-preparation for the wrong battle.

Lesson: Always check type of interview you're participating. The interview format tells you what you need to know

1 year ago 0 0 0 0

For me 2nd looks better. Idk exact reasons but it feels like priority of blocks in the second option is better

1 year ago 2 0 0 0
Preview
GitHub - pubkey/broadcast-channel: :satellite: BroadcastChannel to send data between different browser-tabs or nodejs-processes + LeaderElection over the channels https://pubkey.github.io/broadcast-channel/ :satellite: BroadcastChannel to send data between different browser-tabs or nodejs-processes :satellite: + LeaderElection over the channels https://pubkey.github.io/broadcast-channel/ - GitHub - p...

Here's the library I used ๐Ÿ‘‡

broadcast-channel https://buff.ly/2UEqfB8

1 year ago 0 0 0 0
Video

Multiple tabs sending same requests? Been there ๐Ÿ”ง

Solution: Leader Election pattern!
- Tabs form a team
- Pick ONE leader tab
- Only leader makes API calls
- If leader closes, new one steps up

Used broadcast-channel lib. Now instead of 5 requests โ†’ just 1

#frontend #javascript

1 year ago 0 0 1 0
Advertisement
Video

Multiple tabs sending same requests? Been there ๐Ÿ”ง

Solution: Leader Election pattern!
- Tabs form a team
- Pick ONE leader tab
- Only leader makes API calls
- If leader closes, new one steps up

Used broadcast-channel lib. Now instead of 5 requests โ†’ just 1

#frontend #javascript

1 year ago 0 0 0 0
Post image

React's Virtual DOM Explained:

Instead of updating the webpage directly, React uses a lightweight copy (Virtual DOM).

Changes? React:
1. Updates copy
2. Compares versions
3. Updates only what's needed

That's why React is fast โšก๏ธ

#ReactJS #frontend

1 year ago 1 0 0 0
Post image

Discovered today Docker Compose profiles and was surprised.

Instead of juggling multiple docker-compose files for prod/dev/test, just add "profiles: [dev]" to your services and run:
docker compose --profile dev up

Perfect for managing different environments in a single file!
#docker

1 year ago 0 0 0 0

Good tip! Doing it for a while, sometimes even use it as a task list ๐Ÿ™‚

1 year ago 1 0 0 0