Uncategorised

GPT-5 is absolutely insane

Wow this is huge.

GPT-5 is finally here and it’s completely unbelievable.

Practically destroying every other model in several AI benchmarks.

This is a massive upgrade from the GPT-4x’s.

Grok 4 the model I was just talking about the other day saying it was the best…

GPT-5’s coding abilities are unreal.

GPT-5 absolutely dominates industry coding tests with benchmark scores of 74.9% on SWE-Bench Verified and 88% on Aider Polyglot.

Unbelievably cheap API for such massive intelligence improvements.

SWE-Bench Verified simulates real-world GitHub issues, and GPT-5’s first-attempt solve rate outperforms every competitor.

Two BILLION tokens per minute?!

Like what do you even say about that.

I mean of course with such a mind-bogglingly low cost it’s no wonder why every AI tool (and their mother) will jump on it.

All our favorite IDEs instantly added support for it without even thinking.

Windsurf — generous as always:

But stats only tell part of the story. The real magic is in how it feels to code with GPT-5.

Cursor — you can try it for free…

You don’t have to walk it through every little thing. You just tell it what you want — “build me a login system,” “refactor this into something clean,” “find the bug here” — and it does it. One go. No back and forth. No babying it.

On Aider Polyglot the model showed exceptional multilingual coding skills — it generated and debugged code in dozens of programming languages without missing a beat.

Copilot & VS Code — never to be left out…

GPT-5 feels less like a tool and more like a teammate who never gets tired, never forgets, and somehow knows everything.

JetBrains — their Junie assistant I was talking about the other time has been out for some time now.

Super impressive snake game generation:

Everybody is absolutely loving it.

And OpenAI didn’t just drop one version — they’ve also released GPT-5-mini and nano. These are smaller, faster versions that still give you much of the coding power, which is great if you’re working on a budget or just need something lightweight for quick jobs.

All of this adds up to something big. The way we write software is changing. More and more, your job as a developer isn’t to type every line, but to describe what you want — clearly, thoughtfully — and let the AI handle the heavy lifting. GPT-5 lets you move faster, take on bigger projects, and focus on the parts of programming that actually require creativity and judgment.

Bottom line? GPT-5 coding is nuts. It’s fast, smart, flexible, and it actually understands what you’re trying to do. Whether you’re a pro dev or just getting started, this model is going to change how you think about building software.

Forever.

GPT-5 is absolutely insane Read More »

Clean code is dead

If you’re still obsessed with writing “clean code” in 2025 then you are living in the stone age.

The clean code era is over. AI is here.

Your precious descriptive variable names,

Your admirable small functions,

Your meticulous design patterns and tireless refactorings…

All these things are far far less important now in the age of AI.

I can’t even remember the last time I created a variable by myself.

Wrote a function from scratch by myself?

Even created a file by myself? 🤔 (super rare)

Nobody codes like that anymore (sorry).

AI is here and modern developers don’t code that way.

Lol, you people and your annoying AI hype. Vibe coding is useless and AI can never replace programmers in any way. Stop talking nonsense.

Ha ha, yes I know some of you are still scoffing with disdain at the recent uprising of vibe coding and coding agents.

You proudly refuse to use even the slightest bit of AI in your coding.

Even basic Copilot code completions from 2021 are a no-no for you.

Well hate to break it to you but the world is leaving people like this behind.

There’s no going back — AI-first development is fast becoming the gold standard.

What matters most now is not clean or clear code — what matters is clear intent, goals, and context for the AI agent.

Not descriptive variable names — but now descriptive well-written prompts.

No longer just using the DRY principle in your code — but now also in all your AI interactions by setting powerful system prompts and personalized style guides.

No longer just about using the most intuitive and powerful libraries and APIs — but now using the all most powerful and highly capable MCP Servers.

Coding in 2025 is no longer about typing — it’s about thinking.

Actually it’s always been — but now the power of your thoughts has exploded drastically.

A thought, a design, an idea that took several days and weeks to be typed into life now takes a few minutes of prompting.

AI has astronomically expanded the power of our minds to do far more than ever before at any point in human history.

Should we still be wasting so much time obsessing over low-level details like whether we named our variables with snake case or camel case?

It’s time to level up and achieve our true potential.

Comprehensive context provisions, sophisticated prompting techniques, elaborate intent definitions, hyper-personalized system prompts, high-powered MCP server integrations…

These are the crucial things you need to focus right now.

These are what will turn you into a god-mode developer.

Clean code is dead Read More »

The most powerful AI model in the world just got a coding CLI

Wow this is HUGE.

This most intelligent AI model on the planet just got an incredible new coding CLI.

Grok — the genius model from xAI sitting comfortably in #1 of several notable AI benchmarks.

Massive boost in speed and power in your software development.

Carry out massive context-aware tasks on your codebase with simple English right from your CLI:

  • Refactor functions or files
  • Edit project code based on coding standards
  • Generate shell scripts or bash commands
  • Automate git operations
  • Integrate with any MCP server

What took an hour of manual coding and debugging before → Now: a few minutes.

Just describe whatever you want and it takes care of the rest.

grok-cli is open-source and growing FAST with dozens of contributions already.

Conversational

Launch Grok CLI with the grok command:

  • Opens an interactive session
  • Remembers previous prompts
  • Lets you refine requests naturally — like a real-life conversation.

Context-aware

Grok CLI reads your project files — it knows what it’s editing.

Ask it to:

  • Change the logic in a file
  • Rename functions
  • Split code into modules

It works from actual source context — no guesses or hallucinations.

Shell and bash

Ask something like “compress all images in the assets folder” or “create a backup of the .env file” — Grok CLI will generate and run the correct commands — like zip.

Built-in

Grok CLI includes smart tools for file editing, git management, and navigation.

These tools run automatically when your prompt matches what they handle — giving you a clean interface without memorizing commands.

Project-specific instructions

By placing a .grok/GROK.md file in your repo, you can customize how Grok CLI behaves.

For example, you can specify preferred frameworks, coding standards, or architectural constraints. This makes it ideal for team workflows and codebases with strict conventions.

Large project context support

Grok CLI supports large context windows. It can review and reason over entire projects or multiple files at once, making it suitable for complex refactors, architecture reviews, or onboarding support.

Installation and setup

To get started you need:

  • Node.js version 16 or higher
  • A Grok API key from x.ai

Installation is straightforward:

npm install -g @vibe-kit/grok-cli

Then run:

grok

You can also run one-off prompts with:

grok --prompt "What does this function do?"

Set API keys with:

  • GROK_API_KEY environment variable
  • .env file
  • CLI --apiKey flag
  • ~/.grok/user-settings.json file

You can also configure the base URL and model via the same methods.

Workflow integration

Grok CLI is designed to work with your existing tools. It supports both interactive and headless modes.

  • Interactive mode: Launch with grok to enter a conversational session.
  • Headless mode: Use --prompt for scripting, CI pipelines, or automation.
  • Custom configuration: Use .grok/settings.json to define per-project behavior.

The CLI makes it easy to integrate AI into your day-to-day development without changing your habits or workflow.

Extend Grok CLI with MCP

One of Grok CLI’s most advanced features is support for the Model Context Protocol (MCP).

With MCP, you can connect Grok CLI to external services—like issue trackers, deployment tools, or custom APIs—and control them through the terminal.

Example:

grok mcp add linear --command "node" --args mcp-linear.js

Grok CLI will now be able to read issues from Linear, create tasks, or pull data—all through AI commands.

The built-in mcp command supports:

  • add: add a new server
  • list: view connected MCP servers
  • test: verify a server’s functionality
  • remove: disconnect a server

This turns Grok CLI from a code assistant into a full-fledged AI agent platform.

Grok CLI is more than just another AI chatbot—it’s a new kind of developer tool.

It brings powerful language models right into your command line — blending natural language prompts with deep integration into your codebase and workflow.

If you’re a developer who spends time in the terminal and wants to work faster, write better code, and automate tedious tasks using AI, Grok CLI is absolutely worth a try.

The most powerful AI model in the world just got a coding CLI Read More »

MCP is an absolute game changer but what is it??

MCP MCP… what’s this annoying MCP thing I keep seeing everywhere? What does it even mean?

Just another annoying AI buzzword that will die out soon right?

If you think that then you are dead wrong. This is HUGE.

MCP is massive new invention that is going to change everything.

It’s a major milestone for LLMs and agents and the AI revolution in general.

Bla bla bla… what does it mean Tari?? Start talking or GTFO!

Okay okay I will now but you really need to understand just how much of a game changer this is.

So this is the part where I tell you that MCP is an acronym that means Model Context Protocol — but that wouldn’t be saying much and I’ll be boring you to sleep.

The best thing is to give you a fascinating and powerful real-world analogy that you will understand instantly without even trying.

Think of the brain. The human brain.

Your brain is incredibly powerful — far far more intelligent than all the other species (combined??). Not even close.

But have you ever realized that your brain is… USELESS?!

Duuuude just effin explain MCP for me, I didn’t ask for your insults

No listen I’m not calling you dumb or anything like that — what I mean is — your brain can’t DO anything on it’s own, as far as the external world is concerned.

The only way your brain actually does anything in the physical world is by being connected to the rest of your body.

You could be the greatest genius the universe has ever seen.

You could THINK of the most beautiful poem, the most persuasive argument, the funniest joke in history…

You could IMAGINE the next great novel, the blueprint for a world-changing invention, the cure cancer…

You may KNOW where you want to go — the perfect destination, the goal, the person to meet, the protest to join, the stage to walk onto…

But without your biological tools — your mouth, your eyes, your hands, your feet… without these things, you are as good as non-existent.

There will absolutely nothing you can DO. You are completely powerless as far as the outside world is concerned.

So are you getting it now? This is the problem we’ve had with LLMs.

Since 2022 they’ve wowed us with their insane creativity and coding and summarization ability and so much more.

But they couldn’t really DO anything.

All they did was provide us with information. Even when AI agents came along, all they could do was reason and think (“think”).

It was our brains that then used the information to manually make things happen in the world.

This is what MCP changes forever.

They can think and process information, and now also perform real world actions.

They can get crucial data from ANY external data source to do ANYTHING.

AI agents are now in absolute god mode.

With MCP Servers the possibilities are now literally endless.

MCP Server. That’s just the name for anything that provide tools to an AI agent.

The MCP Server provides the tools. MCP tells it HOW to provide the tools.

For example:

  • GitHub MCP Server: provides tools that let’s the AI agent search any GitHub repo.
  • WhatsApp MCP Server: provides tools that let you search WhatsApp chats.

You see the real game changer of MCP is NOT actually about what all these incredible MCP Servers let you do.

Before MCP it was already somewhat possible to make LLMs interact with external services. For example manipulate the prompt or fine-tuning the model to provide some sort of JSON response of tools to call.

This was what platforms like AutoGPT and BabyAGI tried to do. It’s also why OpenAI and Google added function calling support to their models.

The main problem with these different attempts is exactly that — they were different. Or private like for GPT and Gemini function calling.

There was no standard and open way to let anyone create an AI agent that could have external tools plugged into it. Or to create tools to plug into any AI agent.

But now MCP has changed all that.

Now anyone can create programs that provide tools to make AI agents more powerful — without knowing anything about the agents beforehand.

That’s why we’ve been calling MCP the USB-C of AI applications.

USB-C standardized how tons of devices that needs to send all sorts of data to each other communicate.

Now as a manufacturer you no longer need to worry about the specific devices your users have and could need to connect your product to.

Just make sure it comes with a USB-C port and you’re good.

They can connect it to all the other billions of devices in the world that connect to USB-C — to provide or receive power or any kind of data.

And not just existing devices but ALL future devices — as long as they also support it.

This is the same game-changing thing MCP lets us do.

No more need for prompt manipulation or model-specific function calling.

And anyone can create agentic apps to use these tools, without knowing anything about the tools beforehand.

As long as the AI agent creator and MCP Server maker abide by the protocol, they will work with each other.

So that why it is really major milestone for the AI revolution.

Anything you can write code to do — an AI agent can do now.

Search your files in the cloud, update databases, control smart switches…

It drastically makes your AI agents waaay way more powerful — making YOU more powerful.

MCP is an absolute game changer but what is it?? Read More »

A mindset shift you need to start generating profitable SaaS ideas

Finding the perfect idea for a SaaS can feel like searching for a needle in a haystack.

There’s so much advice out there, so many “hot trends” to chase. But if you want to build something truly impactful and sustainable, there’s one fundamental principle to engrain in your mind: start with problems, not solutions.

It’s easy to get excited about a cool piece of technology or a clever feature. Maybe you’ve built something amazing in your spare time, and you think, “This would be great as a SaaS!” While admirable, this approach often leads to a solution looking for a problem. You’re trying to fit a square peg into a round hole, and the market rarely responds well to that.

“Cool” is great but “cool” without “useful” is… well… useless.

Instead, shift your focus entirely. Become a detective of discomfort. What irritates people? What takes too long? What’s needlessly complicated? Where are businesses bleeding money or wasting time? These are the goldmines of SaaS ideas. Every great SaaS product you can think of, from project management tools to CRM systems, was born out of a deep understanding of a specific, painful problem.

Think about it: before Slack, team communication was often fragmented across emails, multiple chat apps, and even physical whiteboards. The problem was clear: inefficiency and disorganization. Slack’s solution addressed that head-on. Before HubSpot, marketing and sales efforts were often disconnected and difficult to track. The problem was a lack of unified strategy and visibility. HubSpot built an integrated platform to solve it.

So, how do you uncover these problems? Start with your own experiences. What frustrations do you encounter in your daily work or personal life? Chances are, if you’re experiencing a pain point, others are too. Don’t dismiss those little annoyances; they can be the seeds of something big.

Next, talk to people. This is crucial. Engage with colleagues, friends, and even strangers in your target market. Ask open-ended questions. “What’s the most annoying part of your job?” “If you could wave a magic wand and eliminate one recurring task, what would it be?” Listen intently to their struggles and frustrations. Pay attention to the language they use to describe their pain.

Look for inefficiencies in existing workflows. Where do people use spreadsheets for things that clearly shouldn’t be in a spreadsheet? Where are manual processes still dominant when they could be automated? These are often indicators of ripe problem spaces.

Consider niche markets. Sometimes, the broadest problems are already being tackled by large players. But within specific industries or verticals, there might be unique pain points that are underserved. Diving deep into a niche can reveal highly specific problems that a tailored SaaS solution could effectively solve.

Don’t be afraid to validate your problem hypothesis. Before you write a single line of code, confirm that the problem you’ve identified is real, significant, and widely felt by a sufficient number of people. Will people pay to have this problem solved? That’s the ultimate validation.

Once you have a clear, well-defined problem, the solution will often emerge more naturally. Your SaaS will then be built for a specific need, rather than being a solution desperately searching for a home. This problem-first approach gives your SaaS idea a solid foundation, significantly increasing its chances of success in a competitive market. Remember, great SaaS isn’t about fancy tech; it’s about making people’s lives easier and businesses more efficient.

A mindset shift you need to start generating profitable SaaS ideas Read More »

Wow, Google’s new robot can play table tennis now

I saw this incredible demonstration recently and was seriously impressed.

It’s powerful AI from none other than Google DeepMind, the geniuses behind that god-level chess-playing program, AlphaZero.

They’ve conquered the mental realm of chess and Go (unfortunately), so now they’re trying to conquer the physical realm of sports.

(And by the way, they’ve been working on AlphaCode, to destroy all programming jobs — should we be worried?)

And they’re already well on their way: The robot destroyed every single player it faced, at the beginner level.

55% of every intermediate-level player it played against.

For a sport like tennis, not only does the AI need sophisticated algorithms for intelligent decision-making.

It also needs physical components for quick reactions and precise movements to adequately make those decisions in the real world.

So this is the biggest problem that makes it impossible for an expert system or classical algorithm to have any chance:

How can we track this tiny, rapidly moving ball, predict its trajectory, and respond quickly and accurately according to the rules of the game?

Well, like in every problem in Computer Science and programming, it all comes back to input, processing, output.

Inputs

We only need visual input here.

And of course, you know the standard way computers receive visual input.

So the robot has multiple high-speed cameras to constantly capture images at an impressive rate of 125 images per second.

All these images are rapidly fed into a neural network that tracks the ball’s position in real time.

With this position, it can calculate key variables like speed and trajectory.

Processing

For processing the robot has two levels of control.

First there are the low-level controllers, a bunch of specialized neural networks trained to execute specific table tennis skills: backhand drives, forehand topspin… basically anything you could normally do with the ball as a human.

Then we have the high-level controller for more abstract decision-making. It processes the inputs to decide which atomic skill to perform.

I think it’s just like how our brains have regions for higher-level processing like the prefrontal cortex, and then other regions like the motor cortex for lower-level for planning and executing motion.

Output

All that processing would be useless if it couldn’t do anything in the real world; It needs to move.

That’s why the robot has a powerful IRB 1100 robotic arm, allowing it to easily reach almost any part of the table to quickly strike the ball.

In a way you could say the low-level controllers are the output of the high-level one’s processing, but they also do their own processing.

It can be better

It beat all the beginners and much of the intermediates.

But how many advanced players did it beat?

Zero.

It was just too slow for those masters.

One reason for this is that it takes quite some time for the sensors to read input, and also for the actuators to carry out the output in the real world.

It also seems to have issues with balls that are too low/high, or have too much spin.

Early beginnings thought, and overall it’s a great system showing off serious progress being made in AI and robotics.

Wow, Google’s new robot can play table tennis now Read More »

How to easily launch and deploy Laravel on Vultr

In this article, we’d see how easy it is to launch and deploy a Laravel server on Vultr.

Vultr is an independent cloud computing platform that provides a range of services to help businesses and developers build and deploy applications.

What does Vultr offer?

  • Cloud computing instances (servers): These are virtual machines that you can use to run your applications.
  • Managed databases: Vultr offers managed database services for popular databases like MySQL, PostgreSQL, and MongoDB.  
  • Object storage: You can store large amounts of data in Vultr’s object storage.
  • Bare metal servers: If you need more power and control, Vultr offers bare metal servers.  

How to deploy Laravel on Vultr

Head over to the Laravel page to get started:

Select Deploy.

You’ll need to create a brand new Vultr account if you haven’t already.

You’ll also need to add a payment method to deploy your servers.

Once you’re done with account setup, it’s time to get down with business:

  1. For Type, choose Optimized Cloud Compute – Dedicated CPU
  1. Choose your preferred location – Vultr has powerful server instances running in all continents
  2. Choose Laravel for the Image – this should already be pre-selected.
  1. Server Settings: You’ll create an SSH key to use with the server instance. This guide will help with the key creation.
  1. Server Hostname & Label: Enter your preferred name – I chose laravel1.
  2. That’s it for setup, it’s time to Deploy Now

Once everything is done, you’ll have a fully functional Laravel server up and running in Vultr!

How to easily launch and deploy Laravel on Vultr Read More »

Play Updates

Mar 30, 2024

  • Improved compatibility of option input and free-text input.
  • Fix issue where completed puzzle parts were not saving to the browser.

Mar 23, 2024

  • Fixed the issue where Mar 23, 2024 daily puzzle didn’t have the correct option.

Play Updates Read More »

10 powerful JavaScript animation libraries for engaging user experiences

Animations. A fantastic way to stand out from the crowd and grab the attention of your visitors.

With creative object motion and fluid page transitions, you not only add a unique aesthetic appeal to your website but also enhance user engagement and create a memorable first impression.

And creating animations can’t get any easier with these 10 powerful JavaScript libraries. Scroll animations, handwriting animations, SPA page transitions, typing animations, color animations, SVG animations… they are endlessly capable. They are the best.

1. Anime.js

An animation creating with Anime.js
An animation created with Anime.js.

With over 43k stars on GitHub, Anime.js is easily one of the most popular animation libraries out there.

It’s a lightweight JavaScript animation library with a simple API that can be used to animate CSS properties, SVG, DOM attributes, and JavaScript objects. With Anime.js, you can play, pause, restart or reverse an animation. The library also provides staggering features for animating multiple elements with follow-through and overlapping actions. There are various animation-related events also included, which we can listen to using callbacks and Promises.

Visit the Anime.js website

2. Lottie

An animation created with Lottie.js
An animation created with Lottie.

Lottie is a library that parses Adobe After Effects animations exported as JSON with the Bodymovin plugin and renders them natively on mobile and web applications. This eliminates the need to manually recreate the advanced animations created in After Effects by expert designers. The Web version alone has over 27k stars on GitHub.

Visit the Lottie website

3. Velocity

An animation created with Velocity.
An animation created with Velocity.

With Velocity you create color animations, transforms, loops, easings, SVG animations, and more. It uses the same API as the $.animate() method from the jQuery library, and it can integrate with jQuery if it is available. The library provides fade, scroll, and slide effects. Besides being able to control the duration and delay of an animation, you can reverse it sometime after it has been completed, or stop it altogether when it is in progress. It has over 17k stars on GitHub and is a good alternative to Anime.js.

Visit the Velocity website

4. Rough Notation

Som Rough Notation annotation styles.
Some Rough Notation annotation styles.

Rough Notation is a JavaScript library for creating and animating colorful annotations on a web page. It uses RoughJS to create a hand-drawn look and feel. You can create several annotation styles, including underline, box, circle, highlight, strike-through, etc., and control the duration and color of each annotation style.

Visit the Rough Notation website

5. Popmotion

An animation created with Popmotion.
An animation created with Popmotion.

Popmotion is a functional library for creating prominent and attention-grabbing animations. What makes it stand out? – there are zero assumptions about the object properties you intend to animate, but instead provides simple, composable functions that can be used in any JavaScript environment.

The library supports keyframes, spring and inertia animations on numbers, colors, and complex strings. It is well-tested, actively maintained, and has over 19k stars on GitHub.

Visit the Popmotion website

6. Vivus

An animation created with Vivus.
An animation created with Vivus.

Vivus is a JavaScript library that allows you to animate SVGs, giving them the appearance of being drawn. It is fast and lightweight with exactly zero dependencies, and provides three different ways to animate SVGs: Delayed, Sync, and OneByOne. You can also use a custom script to draw an SVG in your preferred way.

Vivus also allows you to customize the duration, delay, timing function, and other animation settings. Check out Vivus Instant for live, hands-on examples.

Visit the Vivus website

7. GreenSock Animation Platform (GSAP)

An animation created with GSAP

The GreenSock Animation Platform (GSAP) is a library that lets you create wonderful animations that work across all major browsers. You can use it in React, Vue, WebGL, and the HTML canvas to animate colors, strings, motion paths, and more. It also comes with a ScrollTrigger plugin that lets you create impressive scroll-based animations with little code.

Used in over 11 million sites, with over 15k stars on GitHub, it is a versatile and popular indeed. You can use the GSDevTools from GreenSock to easily debug animations created with GSAP.

Visit the GSAP website

8. Three.js

An animation created with Three.js
An animation created with Three.js

Three.js is a lightweight library for displaying complex 3D objects and animations. It makes use of WebGL, SVG, and CSS3D renderers to create engaging three-dimensional experiences that work across a wide range of browsers and devices. It is a well-known library in the JavaScript community, with over 85k stars on GitHub.

Visit Three.js website

9. ScrollReveal

ScrollReveal animations.
ScrollReveal animations.

The ScrollReveal library lets you easily animate a DOM element as it enters or leaves the browser viewport. It provides various types of elegant effects to reveal or hide an element on-scroll in multiple browsers. And quite easy to use too, with with zero dependencies and over 21k stars on GitHub.

Visit the ScrollReveal website

10. Barba.js

Page transitions created with Barba.js.
Page transitions created with Barba.js.

One creative way to make your website outstanding is to add lively transitions between the pages as your users navigate between them. This produces a better user experience than simply displaying the new webpage or reloading the browser.

And that’s why Barba.js is so useful; this library lets you create enjoyable page transitions by making the site run like a Single Page Application (SPA). It reduces the delay between pages and minimizes the number of HTTP requests that the browser makes. It’s gotten almost 11k stars on GitHub.

Visit Barba.js website

Bonus

11. Mo.js

An animation created with Mo.js
An animation created with Mo.js.

Great library for creating compelling motion graphics.

It provides simple, declarative APIs for effortlessly creating smooth animations and effects that look great on devices of various screen sizes. You can move HTML or SVG DOM elements, or you can create a special Mo.js object, which comes with a set of unique capabilities. It is a reliable and well-tested library, with over 1500 tests written and over 17k stars on GitHub.

Visit the Mo.js website

12. Typed.js

An animation created with Typed.js

The name says it all; an animated typing library.

It types out a specific string character by character as if someone was typing in real-time, allowing you pause the typing speed, and even pause the typing for a specific amount of time. With smart backspacing, it types out successive strings starting with the same set of characters as the current one without backspacing the entire preceding string – as we saw in the demo above.

Also included is support for bulk typing, which types out a group of characters on the screen at the same time, instead of one after the other. Typed.js has over 12k stars on GitHub and is trusted by Slack and Envato.

Visit the Typed.js website

Final thoughts

The world of web animation is vast and dynamic, constantly evolving with the advent of new technologies and libraries. The animation libraries highlighted in this article offer an array of features to create engaging, interactive, and visually appealing experiences for users. They are a testament to the power and flexibility of JavaScript, and demonstrate how animations greatly enhance the user experience.

As a developer, harnessing these tools will no doubt elevate your projects, making them stand out in an increasingly competitive digital landscape.

10 powerful JavaScript animation libraries for engaging user experiences Read More »

How to move a line or selection up or down in VS Code

To move a line up or down in Visual Studio Code, use this keyboard shortcut:

  • Windows and Linux: Alt + ↑ (Up arrow) to move line up; Alt + ↓ (Down arrow) to move line down.
  • Mac: Option + ↑ to move line up; Option + ↓ to move line down.
Moving a line up or down in Visual Studio Code.

Move selection up or down in VS Code

Similarly, to move a selection up or down in Visual Studio Code, use this keyboard shortcut:

  • Windows and Linux: Alt + ↑ (Up arrow) to move selection up, Alt + ↓ (Down arrow) to move selection down.
  • Mac: Option + ↑ to move selection up, Option + ↓ to move selection down.
Moving a selection up or down in Visual Studio Code.

Why would you need to move a line/selection up or down in code?

  1. Refactoring: When cleaning up your code, you may need to move lines of code around in and out of functions and classes, to make it more readable and maintainable.
  2. Debugging: Like when fixing that error caused by using a variable before declaration/initializing it; with the keyboard shortcuts you easily move the declaration line up before the usage.
  3. Changing control flow: For those instances where the order of function calls or assignments need to change to reflect a new code logic update.

Commands in Visual Studio Code

In VS Code, we have commands, defined actions that carry our various operations in the editor.

We can easily run a command with the Command Palette, which we can access with these keyboard shortcuts:

  • Windows / Linux: Ctrl + Shit + P
  • Mac: Command + Shift + P

The Move Line Up command in VS Code

To move a line/selection up in Visual Studio Code, we use the Move Line Up command.

Moving a line up with the Move Line Up command.

Or with the keyboard shortcuts:

  • Windows/Linux: Alt + ↑ (Up arrow)
  • Mac: Option + ↑
Moving a line up in Visual Studio Code with the keyboard shortcut.

The Move Line Down command in VS Code

In the same manner, to move a line/selection down in Visual Studio Code, we use the Move Line Down command.

Moving a line down in Visual Studio Code with the Move Line Down command

Or with the keyboard shortcuts:

  • Windows/Linux: Alt + ↓ (Down arrow)
  • Mac: Option + ↓
Moving a line down with keyboard shortcuts

Change keyboard shortcut to move line up or down

Personally, I think they’re fine, but if you don’t like the keyboard shortcut to move the line up or down, then navigate to the Keyboard Shortcuts page and change the keybinding for the Move Line Up and Move Line Down commands.

There are multiple ways to get this page; you can click the Keyboard Shortcuts item on the Manage popup shown below or use the shortcut next to the text (Ctrl + K Ctrl + S) here.

Opening the Keyboard Shortcuts page from the Settings popup

To change the keybinding, search for “move line up” or “move line down” in the search bar.

Searching for the Move Line Up command in the Keyboard Shortcuts page
Searching for the Move Line Down command in the Keyboard Shortcuts page of VS Code

Then double-click on the Move Line Up or Move Line Down command, type a new keyboard shortcut, and press the Enter key to carry out the change.

Changing the default keybinding for the Move Line Down command

The change here was Ctrl + E, Ctrl + E – certainly not the smartest choice, but now you’ve seen how it works.

Key takeaways

  • To move a line or selection up or down in Visual Studio Code, use the Alt + ↑ (Up arrow) for up and Alt + ↓ (Down arrow).
  • Moving lines or selections up or down in code can be useful for refactoring, debugging, and changing control flow.
  • You can change the keyboard shortcut to move a line up or down by changing the Move Line Up and Move Line Down command.

How to move a line or selection up or down in VS Code Read More »