P42

Write modern, clear, and concise JavaScript and TypeScript.

No Employees
Founders Code
Solo Founder
AI
B2B
Bots
Productivity
Programming
SaaS

Legacy code is a growing problem in the JavaScript world. I've created P42 to help developers modernize code easily, so they can enjoy implementing new features with the latest standards.

December 1, 2021 Blog Post: Simplifying a JavaScript Function

Executing many automated refactorings in a row is a powerful way to improve your code quickly and safely. This blog post shows an example of how to simplify a small JavaScript function in a series of 12 automated refactorings without changing its behavior.

November 25, 2021 Blog Post: Short-Circuiting in JavaScript

In JavaScript, short-circuiting refers to the partial evaluation of expressions to avoid unnecessary computation. This blog post describes the short-circuiting operators and assignments in JavaScript and how to use them.

https://p42.ai/blog/2021-11-25/short-circuiting-operators-and-assignments-in-javascript

November 22, 2021 50 Refactorings!

The P42 JavaScript Assistant for VS Code now has 50 automated refactorings, cleanups and actions. Many of them are also available in P42+ for GitHub.

P42 makes it easier to work with JavaScript and TypeScript in Visual Studio Code, especially with older codebases. Check it out:

November 16, 2021 P42+ Code Review: Inline Comments and Hints

P42+ automatically reviews the readability and style of your commits and pull requests and suggests improvements and modernization opportunities. This automation frees up reviewers' time to check for potential bugs and the overall correctness of the pull request.

Starting November 2021, P42+ for GitHub has several additional code review features: Inline comments, enhanced code review reports, and a hint and blocker setting for code actions.

Learn more:

November 5, 2021 1000 Installations of P42 JavaScript Assistant

The P42 JavaScript Assistant for Visual Studio Code has now over 1000 installations 🎊

It got more installations in the last 2.5 days than it got in the first 2.5 months 🤯

A big thanks to everyone who has installed it 🙏

If you are using it and have any feedback, I'd love to hear it!

https://marketplace.visualstudio.com/items?itemName=p42ai.refactor

October 28, 2021 P42 for GitHub is now P42+

Over the last five months, P42 has grown from a code modernization tool for GitHub to a programming assistant for JavaScript and TypeScript. The modernization included a significant update for P42+ (previously P42 for GitHub).

What has changed?

Learn more in this blog post:

https://p42.ai/blog/2021-10-28/p42-for-github-is-now-p42-plus

October 24, 2021 Can You Refactor JavaScript Safely?

The conventional wisdom is that you should have good test coverage before refactoring your code. Making mistakes during refactoring will introduce defects in the software if they are not caught during testing. Such regression defects can annoy users, break the software and even lead to customers abandoning the product.

Learn more in this blog post:

https://p42.ai/blog/2021-10-24/can-you-refactor-javascript-safely-without-test-coverage

September 29, 2021 Replace Nested If-Else with Guards

Nested if-else statements can make it unnecessarily complicated to reason about the different executions paths and results of a function. A loss of productivity and the introduction of bugs due to misunderstandings can be the outcome.

Learn more in this blog post:

September 22, 2021 Add 32 JavaScript Refactorings to VS Code

Visual Studio Code is an excellent editor for JavaScript and TypeScript that already contains many refactorings, e.g., rename and extract function.

The P42 JavaScript Assistant supercharges VS Code with an additional 32 refactorings and code actions.

Here is a visual example for each refactoring in action:

September 8, 2021 30 Refactorings!

I've added many new refactorings in the last couple of weeks. Here is a visual overview on Twitter on the new capabilities.

If you get a chance to check out the P42 extension for VS Code or look at the marketplace page and have suggestions, I’d love to hear them!

About

Legacy code is a growing problem in the JavaScript world. I've created P42 to help developers modernize code easily, so they can enjoy implementing new features with the latest standards.