Tuomo Kankaanpää

/tume

Tuomo Kankaanpää

Senior Software Engineer | I help web developers to learn Next.js | 10+ years industry experience

YoutubeX
User Avatar

Tuomo Kankaanpää

1mo ago

3 Questions Developers Have When AI Is Writing 99% of the Code
In 2004 when I first started coding, only thing I had was questions.
Fast forward 22 years to present day, that is where I still find myself at. As a developer you're always learning and the questions never stop. But the nature of questions has changed since adopting AI to my workflow.
These are the three questions I've asked myself and people have also asked from me:
1. Should I review every line of the code myself?
You should know and understand the product you're shipping.
This doesn't mean that you need to read every line of the code AI generates though. You should personally review the important parts like schema changes or architectural decisions and leave the mundane routine things for AI to review. This enables you to move efficiently but still keep the understanding of the product you're shipping.
Finding the right balance between AI and human review is the key.
2. Is this cheating, I feel like an imposter?
Is the code better quality than your code would be?
Probably, and that's great. AI is a tool in your toolbelt it would be foolish not to utilise it. Same way you wouldn't use a shovel to dig a hole if you have access to an excavator.
At the end of the day, shipping and maintaining good software is the important thing.
3. Why do I feel more overwhelmed than before?
I've heard this a lot - and felt it myself too.
Adopting AI has counterintuitively made many developers more overwhelmed than before. I can think of few reasons for it, e.g.
•
Increased multitasking
•
Pressure to do more and faster
•
Things are moving faster than before
A big think I think also is that since things are moving so fast, there isn't no clear best practices and ways of working established yet.
One thing is for sure: The way developers work has fundamentally changed.
Tuomo Kankaanpää
User Avatar

Tuomo Kankaanpää

2y ago

3 Key Steps For Planning Your First Budget As a Couple To Help You Reach Your Money Goals

Making a budget is the foundation for a success in your personal finances.

Budgeting isn't always easy though, especially if you are doing it with your spouse. I know this because I've been doing budgets with my wife since we got married and there has definitely been ups and downs.

Here's a 3 step framework to get started with budgeting with your spouse and avoid the common pitfalls.

Step 1: Asses your financial situation

You can't make a realistic budget if you don't know where you stand financially.

Gather all financial information

  • income

  • expenses

  • debts

  • savings

Listing and knowing all of these let's you know how your combined finances are doing and it will help in the next step.

Step 2: Agree on shared financial goals

Budget is a plan for your money.

It tells money where to go and if you and your spouse's goals are wildly different, it will be super difficult to make a realistic plan (aka budget).

Discuss and agree on both short-term and long-term financial goals so your budget is aiming for the same target.

Step 3: Create and adjust the budget

Once you have your financial situation and goals figured out, it is time to actually make the budget.

Your first budget will most likely be way off, so don't be afraid to adjust it as you go.

After couple of months of budgeting you should have a pretty good idea on what your budget should look like.

User Avatar

Tuomo Kankaanpää

2y ago

8 Step Framework For Creating Production Ready React Components

This is my framework for creating a React form component that talks (GET & POST) with an API:

  1. Create the HTML for the form. No functionality yet, just the structure.

  2. Add the data fetching from the api. No error handling yet, just getting the data to the component and console.logging it.

  3. Add state for the form and populate the form with the data

  4. Add functionality for a save button. Getting the data from the state and sending it to the api. No error handling or loading indicators yet.

  5. Add loading indicators and disable fields when saving and fetching the data

  6. Add notification for successful saving

  7. Add error handling and show notification for errors

  8. Add css styling

This is more or less the framework I use when creating components from scratch.


The most important thing here is that you split the tasks in smaller chunks and don't try to make everything at once.

User Avatar

Tuomo Kankaanpää

2y ago

1 Reason Why I Love Being A Software Developer

Being a software developer is one of the coolest things there is.

In 2012 I was in university of applied science, studying to become a software developer. I have never been a morning person and at the time I had one earth shattering problem. Every morning when the alarm on my phone went off, I had to reach for the phone to snooze it. Yes, I was and am a big time snoozer.

So as a software developer student I got this idea:

Could I make an alarm clock app, that would snooze when I yell for it - thus not requiring me to reach for it to hit snooze?

It took two long weekends of coding and testing, after I in fact had an alarm clock app on my Windows Phone 8 that snoozed when I yelled "not yet!" at it.

I remember thinking back then, that I was aiming for the correct industry. The ability to solve problems from scratch with code, is one of the coolest things and feelings. Now, after 12 years, I still crave that feeling and that's why I love being a software developer.

I encourage anyone interested in software development to try it out too, it is in fact one of the coolest things to do!

User Avatar

Tuomo Kankaanpää

2y ago

3 Javascript Mistakes I Made Early In My Software Developer Career — And What I Would Have Done Differently

I have been working with Javascript for 15 years.

And in that time, I've gotten to build a lot of cool things:

  • Real-time chat applications

  • Mobile applications

  • APIs

  • Automation tools to save time

There isn't much I would change about my journey.

But if I could go back, here are a few of the mistakes I made early on—and what I would have done differently:

1. Learn The Fundamentals

There are tons of Javascript frameworks out there (React, Next.js, Astro, etc.).

You should use frameworks when you are building applications, but if you aren't comfortable with Javascript fundamentals early on, you'll run into trouble down the road.

Don't make the mistake of skipping learning the fundamentals.

2. Use Functions

Early on I used to write all my Javascript into a one file, with zero functions.

This is not good.

Use functions to divide your code into smaller, more understandable and manageable parts that do exactly one thing.

This helps you and others to understand the flow of code better and makes it more maintainable.

3. Update Your Dependencies

Javascript applications are notorious of having tons of dependencies.

Updating these dependencies requires work and planning.

Doing so though is important for couple of reasons:

  • Security improvements

  • Latest features

  • Bug fixes

  • Performance enhancements

Don't make the mistake of never or rarely updating your dependencies. The security patches alone are a huge reason to periodically make sure that your app dependencies are up to date.

User Avatar

Tuomo Kankaanpää

2y ago

The Reason Why Web Developers Are Learning Next.js

Next.js is one of the most popular Javascript & React frameworks for building web applications.

Something like this rarely happens without a reason. When I started to adopt Next.js to my web development toolkit 5 years ago, I could right away see reasons why its popularity would continue to rise. If you aren't yet using Next.js I strongly recommend you give it a shot!

Here's 5 reasons why developers love Next.js and why you might too!

Reason #1: Amazing developer experience

The first thing I noticed when starting to use Next.js was the amazing developer experience.

It is easy to start a project, you get things like Typescript support, routing, hot reload and more out of the box.

The Vercel team (company behind creating Next.js) seems to really put emphasis on developer experience beyond just words.

Reason #2: Full-stack capabilities

Next.js is kind of full-stack framework.

You don't need to create a separate server that interacts with database and handles API requests. This can all be done inside the same framework. Especially now that React server components are supported, we can even access the backend functionalities straight from our components.

Front- and backend seamlessly work together.

Reason #3: Ease of deployment

Easiest way to deploy Next.js application is to Vercel.

All you need to do is:

  1. Host your project on Github

  2. Create a free Vercel account

  3. Link your Github and Vercel accounts

  4. Click "Deploy from Github repo" in your Vercel dashboard

This was one of the wow effects I got when I deployed my Next.js app to Vercel.

With Vercel you also get things like:

  • Pull request specific preview environments

  • Collaboration mode - leave comments directly to specific parts of the web app

  • Serverless- & Edge-functions

Next.js can be hosted to other places too, but I have found that deploying to Vercel is the easiest and straightforward way of hosting your Next.js app.

Reason #4: Rich ecosystem and community

Many services and apps offer plugins for Next.js.

It is easy to integrate your app with e.g. authentication providers, headless cms's and more.

The community is also very active and helpful. Updates are published often and new major version of Next.js is published every year.

Reason #5: Support for modern Javascript features

Next.js doesn't stick with legacy or old techniques and languages.

It supports modern Javascript and React features. Good example is e.g. React Server Components, which are integrated to Next.js's app router. Many people I've talked to actually think that server components are Next.js thing, when in fact they are React thing. Next.js has just been adopting the use of them so quickly that I can see why many think this way.

Using latest features is not always desirable and this is not enforced by Next.js either, but you can adopt the features as you feel comfortable.

User Avatar

Tuomo Kankaanpää

2y ago

Wireframing Mistakes Web Developers Make - And How To Avoid Them

Wireframing is integral part of web development process.

After building hundreds of websites and apps, both with and without wireframes, I've learned that it is always easier to build a project when you have at least some kind of wireframe.

Here's 3 mistakes about wireframing I wish someone could have told me years ago.

Mistake #1: Jumping right into the code

It is super tempting to just start coding and make things as you go.

Try to resist the urge for coding just for a bit and create a quick wireframe.

It will give you clarity what to build and often save you time and effort in the end.

Mistake #2: Being too specific

Wireframes are wireframes.

They are not suppose to be 100% what the finished product looks like. So don't be too specific with them and leave some room for change.

The idea of a wireframe is to give you direction and sense what to build.

Mistake #3: Using too fancy tools

Don't let the tools be the obstacle for your wireframes.

Using more complicated tools like Figma or Miro is good, but if you aren't comfortable using them, just use what you know.

Most often good old pen and paper works the best.

User Avatar

Tuomo Kankaanpää

2y ago

5 Things I Wish I Knew 10 Years Ago About Programming

If I could go back in time, these are the 5 things I wish I knew about programming.

(It would have saved me a lot of wasted time and effort.)

1. Read the error message

When you encounter a bug, the first thing you should do is read the error message. Riches are in the error messages.

2. Think before you act

Thinking things through before starting to write any code or try different things usually gets you further faster.

3. Iterate

Iteration is the secret weapon for getting things done.

Don't try to make the first version of a feature or an app the ultimate one, but rather start simple and iterate over it to reach the best possible outcome.

4. Let your thoughts marinade

Don't try to decide hard things in one sitting. Give it a day or two and the solution is easier to find.

5. Ask questions

I know it might be uncomfortable or scary to ask someone else for help. But I encourage you to do it anyway! By asking you give the other person chance to help you and they also "learn the thing better" by explaining it.

You also get answer to your question usually faster than trying to figure it out yourself.

User Avatar

Tuomo Kankaanpää

2y ago

Tools For Web Developers To Visualize Design Concepts With Interactive Wireframes

When I start to build something new for an application, creating some kind of design it is my goal.

Well designed is half done.

I love creating designs and mockups for my applications.

As a web developer, being able to quickly and easily draw even a simple design for my application is vital. I have a handful of tools I use over and over again. They have become part of my web developer toolbox, and I recommend them to anyone and everyone.

Here are my favourite tools for creating wireframes and designs:

  1. Figma: Create beautiful looking UIs easily. I love to use this for creating UI mockups.

  2. Miro: Great for creating diagrams but also capable for more complex designs. I use this for designing and describing complex concepts e.g. data structures.

  3. Canva: Canva is like easier version of Photoshop. It is easy to use and you can create impressive graphics with it quick and easy.

If you end up using these tools, let me know what you think!

User Avatar

Tuomo Kankaanpää

2y ago

3 Best Practices For Git Commits That Every Software Developer Should Obey So They Can Fix Bugs Easier, Appear Professional And Get Faster PR Reviews

Git commits are not a trendy subject, but they are in the core of anything you do as a software developer.

I first used Git in 2008. Since then I've worked on hundreds of projects that use it. Over the years I've developed a set of best practices that I follow regarding Git commits.

If you follow them, they will make your colleagues like you even more, enable you to solve bugs faster & easier, and get reviews for your PR more easily.

#1: Commit Regularly

You should commit rather too much than too little.

This ensures that there aren't big 100+ files modified per commit and anyone reading the commit history can get a better understanding what has happened.

Committing regularly ensures that changes to your repo are incremental and manageable.

#2: Write Meaningful Commit Messages

Writing good commit messages is integral for others (and yourself!) to understand what has happened in the commit.

  • Clarify the intent of changes

  • Be concise and descriptive

  • Don't write: "Bugfixes" - instead write: "Fix bug that displayed wrong price for the product after logout."

  • Use imperative mood - "Fix" instead of "Fixed" or "Change" instead of "Changed"

Adopting these practices for your commit messages makes your commit history a bliss to read.

#3: Commit Logical Changes (Even If They Are Simple)

Use atomic commits.

This means that we make one commit per one particular change. The changes can be to multiple files but the changes as a whole should represent a logical change.

Doing this makes makes it easier to understand and debug the commit history.

User Avatar

Tuomo Kankaanpää

2y ago

3 Questions Every Golfer Should Ask Before Taking Coaching Lessons To Improve Their Game, Lower Their Score And Not Waste Money

Are you contemplating on taking golf lessons to improve your game?

This is not always a good idea. I started golfing in the summer of 2022, and I have since taken lessons every year. They have helped a lot, but I also quickly learned that they are not always a good idea.

Here's three questions you should ask yourself before taking a lesson to know if you should take a lesson, to be prepared and to maximise the benefit of the lessons.

Question #1: What is my goal with the lessons?

Do you want to

  1. Lower your score

  2. Learn how to make specific shots (e.g. iron shots, wedge shots, etc.)

  3. Increase the distance of your driver shots

Having a clear goal sets you up for success and also helps your coach to give you exactly the kind of lessons that most benefit you.

Question #2: What area of my game do I want to improve?

Do you want to improve your short game, long game or putting?

Knowing the answer makes it clear on what to focus on in the lesson.

If you aren't sure about the answer to this question, it is a good idea to ask yourself if lessons are the best use of your time and money after all or should you do more practicing and through that find the areas you should improve.

Question #3: Have I practiced the area I want coaching on?

If you haven't practiced at all since your last lesson, there is no use to go for another lesson.

The lessons are for getting the information and changes to make, but the real magic happens on the course or range on your own.

Information won't make you a better player, practice will.