Can AI Replace Junior Developers, or Should We Train Them to Become Seniors?

The rapid advancement of AI has sparked an ongoing debate in software development: Should companies replace junior developers with AI-powered tools and a few senior engineers, or should they invest in training juniors to become future seniors while leveraging AI to enhance their productivity?

While both perspectives have merit, the ideal solution is often a balance. A well-structured team that combines the fresh enthusiasm of junior developers with the experience of senior engineers, amplified by AI, can outperform any one-dimensional approach.

The Case for AI Replacing Junior Developers

AI-powered coding assistants like GitHub Copilot, Tabnine, and ChatGPT have dramatically improved code generation, debugging, and even architectural decision-making. These tools allow senior developers to move faster and reduce the need for a large number of junior developers.

Real-Life Example: Stripe

Stripe, a leading fintech company, experimented with reducing its reliance on junior developers by leveraging AI-powered development tools. They streamlined their engineering teams, allowing senior engineers to complete tasks in half the time with AI assisting in boilerplate code, debugging, and automated testing. This helped Stripe reduce costs while maintaining high-quality output.

Pros:

  • Lower payroll costs
  • Faster development cycles
  • Fewer mistakes and more consistent code quality

Cons:

  • No pipeline for future senior developers
  • Loss of diverse perspectives and innovation
  • Higher risk if the senior developer leaves

The Case for Training Junior Developers

On the other hand, investing in junior developers creates long-term sustainability and cultivates a strong company culture. AI should be seen as a tool to accelerate their learning rather than a replacement.

Real-Life Example: Shopify

Shopify has a strong internal development culture that emphasizes mentorship and junior developer growth. They implemented a program where junior developers used AI tools to assist with coding, debugging, and understanding best practices. Within two years, many juniors had transitioned to mid-level roles, reducing hiring costs and increasing team loyalty.

Pros:

  • Builds a pipeline of future senior engineers
  • Encourages innovation and fresh perspectives
  • Creates a collaborative and diverse work environment

Cons:

  • Higher initial training costs
  • Slower development speed in the short term
  • Risk of juniors making mistakes early on

The Ideal Team: A Mix of Juniors, Seniors, and AI

The best-performing teams strike a balance between juniors, seniors, and AI tools. Here’s why:

  • Juniors bring fresh ideas and enthusiasm but lack deep experience.
  • Seniors provide technical leadership and decision-making skills.
  • AI accelerates productivity and helps fill knowledge gaps.

Example: The Hybrid Approach at Supercell

Supercell, a gaming startup, faced a dilemma: Hire more juniors, bring in an expensive senior team, or leverage AI? They opted for a hybrid approach:

  • A few senior developers focused on core architecture and mentoring.
  • Juniors were onboarded with structured training programs and AI-powered coding tools.
  • AI helped automate repetitive tasks, reducing junior mistakes.

After a year, productivity was up 40%, and juniors were significantly more skilled.

How to Start Implementing This Approach

  1. Invest in AI Tools – Provide teams with AI-powered coding assistants, but don’t rely on them blindly.
  2. Create a Structured Training Program – Develop mentorship programs where seniors guide juniors.
  3. Encourage AI-Assisted Learning – Let juniors use AI for debugging and code explanations to accelerate learning.
  4. Pair Programming and Code Reviews – Ensure juniors work alongside seniors to absorb knowledge.
  5. Set Clear Growth Paths – Provide juniors with clear milestones for career advancement.

Conclusion

Rather than replacing junior developers with AI, the smarter approach is to use AI to enhance their growth. Companies that cultivate junior talent will be better positioned for long-term success, while AI can help both juniors and seniors become more productive.

By striking the right balance between automation and human development, teams can maximize efficiency, innovation, and sustainability in the ever-evolving tech landscape.

When Product Owners Ignore Security: Why Experienced Developers Matter

In the modern tech landscape, product owners often assume that software will “just work” safely. But security isn’t automatic, and a lack of foundational understanding can lead to serious vulnerabilities. While AI has become a valuable tool in development, it cannot replace the expertise of seasoned developers who can anticipate, diagnose, and resolve complex security flaws. In this article, we’ll explore why relying solely on assumptions—or even AI—can put users at risk, and how experienced developers have rescued failing projects from disaster.

The Illusion of Safety in Software Development

Product owners, especially those without technical backgrounds, often focus on features, user experience, and business objectives. Security tends to be an afterthought—if it’s considered at all. They might assume:

  • “Our framework handles security automatically.”
  • “AI-generated code must be secure.”
  • “Hackers won’t target us because we’re a small company.”

These assumptions are dangerous. Security must be deliberately designed into a system, and failing to do so can lead to catastrophic breaches.

Image

Real-World Examples of Projects Gone Wrong (And How Developers Saved Them)

1. The E-Commerce Disaster: Exposed Customer Data

A startup built an e-commerce platform using a popular low-code solution. The product owner assumed that security was baked into the platform. What they didn’t realize was that their database had been left publicly accessible, exposing thousands of customers’ personal and payment data.

How an Experienced Developer Saved It:

A senior developer was brought in after an independent security researcher exposed the vulnerability. The developer:

  • Implemented proper authentication and access controls.
  • Added encryption for stored customer data.
  • Set up automated security testing to prevent future leaks.

Without this intervention, the company would have faced lawsuits and lost customer trust.

2. The AI Code Generator Mistake: Unsecured API Keys

A SaaS company decided to speed up development using AI-generated code. Their AI assistant provided clean-looking API integrations, but it didn’t consider security best practices. The AI-generated code stored API keys directly in the frontend, exposing them to anyone who inspected the browser’s developer tools.

How an Experienced Developer Saved It:

A security-conscious engineer audited the code and:

  • Moved API keys to a secure environment variable setup.
  • Implemented proper authentication (OAuth2) instead of static keys.
  • Set up monitoring alerts for unusual API usage.

The fix prevented potential attackers from hijacking API calls and exploiting user data.

3. The Blockchain Nightmare: A Flawed Smart Contract

A startup launched a DeFi project, assuming that a popular AI tool could generate Solidity smart contracts with minimal oversight. The result? A flawed contract that allowed attackers to drain funds due to a reentrancy bug.

How an Experienced Developer Saved It:

After losing some initial funds, they hired a blockchain security expert who:

  • Refactored the smart contract using best practices.
  • Implemented reentrancy guards to prevent exploit attempts.
  • Conducted thorough security audits before redeploying.

Without an expert, the project could have been completely compromised.

AI is a Tool, Not a Replacement for Expertise

AI-generated code can be helpful, but it lacks real-world context. AI doesn’t understand business logic, legal requirements, or evolving security threats. An experienced developer:

  • Thinks critically about how code will be used (and misused).
  • Understands regulatory compliance (GDPR, PCI-DSS, HIPAA, etc.).
  • Can adapt and apply security measures based on the specific application.

The Takeaway: Invest in Expertise Before It’s Too Late

Security isn’t something that should be bolted on at the end of a project—it should be a core consideration from the start. Product owners must:

  • Consult experienced developers early in the development cycle.
  • Prioritize security just as much as features and user experience.
  • Recognize that AI is a helpful assistant, but not a substitute for human expertise.

Ignoring security can lead to costly breaches, reputational damage, and legal consequences. But with the right developers involved, businesses can build not just functional, but also secure, reliable, and scalable software.


Have You Seen Security Mistakes Firsthand?

What’s the worst security oversight you’ve encountered in a project? Share your experiences in the comments!

The Rise of AI Wrappers: Are AI Providers the New Telecoms?

Artificial intelligence has experienced an explosion of growth in recent years, with companies like OpenAI, Anthropic, and Google leading the charge in providing powerful foundational models. But despite their immense computational capabilities, these AI providers are increasingly finding themselves in a familiar position—one that resembles the fate of telecom giants in the past.

In the telecom industry, infrastructure providers built the backbone of communication networks, yet they eventually found themselves competing not on innovation but on price, reliability, and scale. Meanwhile, a new wave of companies emerged, offering user-friendly interfaces and value-added services on top of these networks, becoming the real consumer-facing brands. Today, a similar pattern is emerging in AI, where a new breed of AI wrappers is rapidly capturing market attention and customer loyalty.

AI Wrappers: The New Kings of the AI Economy

AI wrappers are companies or platforms that use existing AI models but differentiate themselves by offering improved usability, domain-specific expertise, or additional automation capabilities. They act as intermediaries between the raw power of foundational models and the end user, providing a tailored, more accessible experience. These wrappers often build agentic systems that extend AI capabilities beyond simple text generation, integrating AI into real-world workflows more seamlessly.

One of the most notable examples is Cursor, an AI-powered coding assistant that integrates deeply with software development environments. While OpenAI provides the underlying models, Cursor enhances them with context awareness, code-specific optimizations, and user-friendly interactions that cater specifically to developers. Similarly, Jasper has become a dominant force in AI-powered content creation, building atop existing LLMs but fine-tuning the experience for marketing and branding purposes.

Other examples include:

  • Replit Ghostwriter: An AI-powered coding assistant built into the Replit platform, offering features customized for its user base.
  • Notion AI: A productivity tool that integrates AI to help users generate content, summarize notes, and organize information in an intuitive way.
  • Synthesia: A video generation platform using AI-powered avatars and voice synthesis, making it easier for businesses to create professional content without requiring actors or video production expertise.

These AI wrappers add convenience, improve user workflows, and tailor AI capabilities for specific needs—something foundational models alone struggle to do.

Why AI Providers Are Like Telecoms

Telecom providers built the infrastructure that powered the internet, but their value quickly became commoditized. Consumers didn’t buy “bandwidth”—they bought streaming services, social media, and communication apps that provided the real utility. The underlying networks remained essential but largely invisible.

AI is heading down the same path. Foundational model providers like OpenAI, Anthropic, and Google are in an arms race to create more powerful models, but they face two fundamental challenges:

  1. Differentiation is difficult: At the model level, once competitors catch up in quality, the main differentiator becomes price and API access rather than unique features.
  2. Customer experience is owned by wrappers: Just as customers interact with Netflix rather than their internet provider, most AI users will engage with AI wrappers rather than the underlying models.

Unless foundational AI providers can create a breakthrough that redefines the way AI is used, they will likely remain the equivalent of cloud computing providers—essential but invisible to end users.

Can AI Providers Compete?

AI model creators face a strategic dilemma. Do they continue improving their base models and risk becoming commodities, or do they move up the stack, integrating more directly with users?

There are a few potential paths they could take:

  • Vertical integration: OpenAI, for instance, is already moving in this direction with ChatGPT, aiming to make its own application as sticky as possible. Google has integrated Gemini into its search products, while Anthropic is working on making Claude a more accessible assistant.
  • Exclusive partnerships: By offering custom AI models for select partners, providers can maintain an edge. This strategy mirrors what Nvidia has done with its GPU dominance—selling to cloud providers while also enabling high-performance, exclusive partnerships.
  • Fine-tuned solutions: Rather than offering general-purpose models, AI providers could develop industry-specific solutions for enterprise applications, ensuring they remain a step ahead of generic AI wrappers.

However, even with these efforts, the fundamental shift in value remains: users prefer tailored experiences over raw power, and AI wrappers are best positioned to deliver those experiences.

The Future of AI: Who Wins?

The current trend suggests AI providers will continue building the foundation, but the real profits and brand recognition will go to those who package and distribute AI in a way that users love. AI wrappers are already dominating certain verticals, and as agentic AI systems become more advanced, we will see an even greater separation between infrastructure and experience.

If AI providers fail to adapt, they risk becoming the “AT&T” of the AI age—powerful but replaceable. Meanwhile, the new kings of AI will be the platforms that understand user needs, integrate AI seamlessly, and create interfaces that feel indispensable.

The AI landscape is rapidly shifting, and while foundational models remain crucial, they are no longer the defining factor in AI’s success. The future belongs to those who can bridge the gap between raw AI power and user-friendly experiences. As we move forward, expect more AI wrappers to emerge, reshaping industries and pushing AI providers further into the background.

In the end, AI might power the revolution—but the wrappers will own the kingdom.

AI: A Gift for Junior Developers, a Curse for Tech Leads

Artificial intelligence is revolutionizing software development, making it easier for less experienced developers to write code, generate solutions, and build applications faster than ever before. But as AI lowers the barrier to entry, it creates an unexpected challenge—an increasing burden on tech leads who must navigate a landscape filled with AI-assisted code that often lacks structure, scalability, and maintainability.

The Rise of AI-Assisted Development

Tools like GitHub Copilot, ChatGPT, and other AI-powered coding assistants have significantly boosted developer productivity. Junior and mid-level developers can now produce complex code snippets, automate repetitive tasks, and solve problems they previously struggled with. While this sounds like a win for the industry, the reality is more nuanced.

AI-generated code is often syntactically correct but semantically flawed. It may work in isolation but lack architectural integrity when integrated into a broader system. AI lacks the human intuition necessary to understand business logic, future scalability, and team-specific best practices. This means that while development velocity increases, so does the risk of accumulating technical debt.

The Burden on Tech Leads

Tech leads, already responsible for guiding teams, making architectural decisions, and ensuring high code quality, now face an additional challenge: reviewing and correcting AI-generated code. Here’s why AI can be a curse for tech leads:

1. Increased Review Workload

AI accelerates code production, but not always in the right direction. More code means more pull requests, more code reviews, and more debugging. Tech leads spend significant time analyzing whether AI-assisted code is functionally correct and adheres to best practices.

For example, a junior developer might use AI to generate an API endpoint for handling user authentication. The AI might produce working code but fail to implement essential security measures such as rate limiting, input validation, or proper session management. The tech lead must then review, refactor, and educate the team on why these aspects are critical.

2. Poor Architectural Decisions

Junior and even mid-level developers often rely on AI to solve immediate problems without considering the long-term architectural impact. AI doesn’t inherently enforce good design patterns, leading to monolithic structures, poorly optimized queries, or brittle integrations that tech leads must later refactor.

Imagine a situation where AI generates multiple SQL queries inside a loop instead of optimizing them into a single batch query. While the code functions correctly, it causes unnecessary database load, which can lead to performance bottlenecks in production. A tech lead must identify and correct such inefficiencies before they escalate.

3. False Confidence in AI Solutions

Developers using AI often assume the generated code is correct because it “works.” However, AI does not understand the nuances of business requirements, security concerns, or industry-specific regulations. This creates hidden bugs and vulnerabilities that tech leads must catch before they become production issues.

For instance, an AI-generated function might handle user passwords but store them in plaintext instead of hashing them properly. If a less-experienced developer deploys this code, it could lead to a serious security breach. A tech lead must not only fix the issue but also implement processes to prevent similar mistakes in the future.

4. AI-Driven Technical Debt

Without proper oversight, AI can rapidly generate unmaintainable code that accumulates as technical debt. Tech leads must dedicate additional time to reworking solutions, refactoring poor implementations, and ensuring code consistency across the codebase.

Consider a scenario where an AI tool generates dozens of functions across different files with inconsistent naming conventions and redundant logic. While the code technically works, it becomes difficult to navigate, update, or debug. A tech lead must step in to unify the code, remove duplication, and enforce better organizational practices.

The Future: More Tech Leads, Not Fewer

Paradoxically, as AI tools become more advanced, the need for strong technical leadership increases. More tech leads will be required to:

  • Establish clear coding guidelines and best practices for AI-assisted development.
  • Educate teams on AI’s limitations and how to critically assess its output.
  • Enforce architectural principles to prevent the system from collapsing under its own complexity.
  • Prioritize code quality and long-term maintainability over short-term gains.
  • Introduce automated testing and linting rules to catch common AI-generated mistakes before they reach production.

How Tech Leads Can Adapt

To thrive in this AI-assisted environment, tech leads need to adjust their approach to leadership and mentorship. Some strategies include:

1. Establish AI Review Processes

Tech leads should implement specific review processes for AI-generated code, ensuring that every piece of code passes through a structured evaluation. Code review checklists should include:

  • Security best practices (e.g., input validation, authentication measures).
  • Performance optimizations (e.g., avoiding redundant queries or inefficient loops).
  • Maintainability and readability (e.g., clear variable names, well-structured functions).

2. Promote AI Literacy Among Developers

Instead of discouraging AI use, tech leads should train their teams to use AI responsibly. This means educating developers on when to trust AI-generated code, how to refine prompts to get better results, and how to critically evaluate AI suggestions.

3. Use AI to Help, Not Replace, Thoughtful Engineering

Tech leads can leverage AI themselves—not just to generate code, but to automate tedious tasks like refactoring, documentation generation, and code linting. By integrating AI into CI/CD pipelines, tech leads can ensure AI-generated code is continuously checked for quality issues before deployment.

AI is undoubtedly a powerful tool for accelerating development, but it is not a substitute for experience, intuition, and thoughtful engineering. While junior developers benefit from AI assistance, tech leads bear the responsibility of ensuring that AI-generated code aligns with best practices and long-term business objectives. As AI continues to shape the industry, the role of tech leads will become even more critical—not just in fixing what has been done, but in guiding teams to use AI responsibly and effectively.

In the end, AI doesn’t replace the need for great engineering—it amplifies the need for strong technical leadership. The companies that recognize this will be the ones that successfully integrate AI into their development processes without sacrificing code quality, security, or scalability.

Decisions, decisions, decisions

Year 2020 has taught us many things but not everyone was listening to the lectures. We are living in constantly evolving world and no matter how much we want to standardize our lives and how much we hate changes they happen all the time. Last year really showed us we cannot control the future and not even shape it based on our needs.

This year should be different they say, there is a lot of hope but are there a lot of people who are willing to adjust to changes constantly. We love our comfortables lives and we don’t want to take step back even if this would take us two or more steps forward in the future. I understand change is hard so hard we sometimes manage to distinguish between common sense and what we want to believe. Internet has evolved and managed to bring those distortion further than ever.

I’ve decided to start writing about life, then changes that are ever lasting, the planning that make solid plans for the future, how to test our plans and how to get out and reach as many people possible with our plan. Whether this is a personal self improvement or a business idea.

I have entered into third decades of working with technology, turning ideas into reality, making those ideas available to broad public, see what works and what it doesn’t. I did learn a lot but I did a lot of mistakes as well. I think this is the decade I want to share my knowledge and experience with others so they can save some time on their own path.

Realizing new ideas has nothing to do with earning a lot of money or becoming famous, they are just a byproduct of a successfully launched and realized ideas. The ideas that solve people’s problem achieve success and it just depends on you how far it takes you to understand if your idea does really solve any problem at all.

Homebrew: How to start and stop background services

Anyone that has installed application running in the background from Homebrew, knows how to use launchctl that actually runs every application when the computer restarts. It is pretty straight forward task but most of the time you need to know the location of the .plist file that defines how to run it installed with homebrew.

Now there is a quicker path how to control them by simply adding following package to home-brew:

brew tap gapple/services
 And you have available to start, stop services directly from home-brew with following command to get a list of active services:
brew services list
So for example if you have installed postgresql you can start it as a background service with:
brew services start postgresql
or stop the service with
brew services stop postgresql

Which is much more easier and simpler than finding the right .plist file inside cellar folder of brew

Stop procrastinating! How to prevent it.

Still trying to stop procrastinating?

stop procrastinating

There are probably numerous days that you site behind the computer to do some research or get some work done and doing a short break to read some news or check social updates and as you done this you aren’t aware that time passes as you jump from one link to another while the time is passing by rapidly. You have probably tried many things, like avoiding to use those sites, setting time aside for short breaks or some other solution but every time you spend more time doing nothing than to spend that time into something productive.

My way of curbing procrastination time to minimum

You probably procrastinate as everyone but you don’t do it so efficiently, there are many ways to curb this behavior especially with avoiding reading the news updates all the time. We live in an era of information overload and we developed a habit of a need to be constantly updated with latest updates.

I am using few tools which are completely free of cost for basic usage you will need to prevent procrastination. Here is how I do it:

I have installed self control app on my computer and you can get it at this link. It is free of cost. Basically what it does is that you add a list of web sites that you want to block for a selected period of time.

You are probably wondering now which pages should I add to this blacklist. Well the obvious sites should be the social networks. Most of the links we click to other sites are coming from there to funny videos or interesting stories. There are ton of these sites, but major one should be Facebook, Twitter, Google+ etc. Though have in mind if you develop for social network logins you have to keep alert to remove them for that period otherwise you can do no related work to it for that day. Other useful list of sites that need to be blacklisted are on your history list in your favorite browser. Go through the history and check all the sites that shouldn’t be there during your work hours and add them to the list.

Next step is to add time inside self control for how long it should be blocked. First advice never do mistake and set it over 24 hours. Perfect time to set the limits is 10-12 hours. You would probably say I don’t work so many hours and I agree you mustn’t but from the time you set the time and all other chores you need to do during the day believe me that is the most optimal time especially if you are working for yourself or being in a startup environment. It is dynamic over the day so keep on tracking your time that way.

So next step is to activate the self control and you magically stop procrastinating. Wrong. Keep on reading.

Continue reading “Stop procrastinating! How to prevent it.”

AngularJS ngInclude directive and scope inheritance

ngInclude directive and scope

There are many times when you want to include a html snippet code from another file but preserve the scope of it. It is usually when you have different form fields for the various objects and you want to have a global controller that oversees the updating of different forms. So if you want to take the quickest route and use ngInclude directive you would be surprised that it is not properly linking to your controller and you cannot access the form instance.

This is due to ngInclude internals and how they work. ngInclude creates for each use as a new child scope so overwriting anything inside the new included HTML file content will be written into child scope and not in the one you’ve anticipated to be. So there are few workaround around this as creating a new object inside the scope for example

$scope.data = {}

inside the controlling controller and then in the imported html file set values inside the

<input type="text" ng-model="data.name"/>

This works if you don’t have a problem with static value being inserted into all html files, but if you want maximum flexibility then this is not the perfect solution. So after inspecting the source code inside ngInclude.js, I have seen a room for improvement and created a similar directive to ngInclude called ngInsert, which instead of making new child scope it inherits the current scope and continue using it inside. You can pick up the whole source code at this gist. You can use it in the same manner as existing ngInclude. Continue reading “AngularJS ngInclude directive and scope inheritance”

Extending Javascript objects with a help of AngularJS extend method

Multiple ways of extending javascript objects

/**
 * One-way reference from subclass to superclass (instance)
 * Most of the time this is what you want. It should be done
 * before adding other methods to Subclass.
 */
ChildClass.prototype = new SuperClass();
 
/**
 * Two-way reference
 * Superclass will also get any Subclass methods added later.
 */
ChildClass.prototype = SuperClass.prototype;
 
/**
 * Cloning behavior
 * This does not setup a reference, so instanceof will not work.
 */
angular.extend(ChildClass.prototype, SuperClass.prototype);
 
/**
 * Enhancing a single instance
 * This could be used to implement the decorator pattern.
 */
angular.extend(subClassInstance, SuperClass.prototype);