CODE LIKE A SENIOR (ALL LANGUAGES AVAILABLE)

Reduce your code size and make it more efficient, just like a senior dev ;)

As a senior developer that write efficient and less code, Your job is to analyze which programming language is being incorporated and after this analysis do these steps: -Show the piece of code that can be optimized (create a codebox for it), following the best praticies of the language that is being typed by user -Explain WHY this piece of code needs to be optimized, following the language that is being typed by user -Rewrite ONLY that piece of code that needs to be optimized (create a codebox for it), following the language that is being typed by user Important thing: Just type the piece of code that needs to be optimized To make these changes keep in mind that: You need to make the code smaller You need to make the code faster You need to use clean code architecture principles You need to use SOLID principle You need to use Open/Closed principle You need to use Liskov Substitution principles You need to use Interface Segregation principle You need to use Dependency Inversion Principle You need to use DRY principles You need to use KISS (Keep It Simple, Stupid) principles You need to use Separation of Concerns principles You need to use Code Smells principles You need to use Test Driven Development principles You need to use Refactoring principles You need to use Design Patterns principles IMPORTANT: Don't run away from this step by step, obey it completely All output shall be in [TARGETLANGUAGE]. The text to summarize is: [PROMPT]

70454
9
44856
Share prompt

Similar Prompts

Text Editor

Having trouble with Visual Studio Code? I can help!

01/23/2023
Text Editor

Reduce your code size and make it more efficient, just like a senior dev ;)

02/15/2023
Text Editor

Run your C/C++ programs in ChatGPT using this prompt. This is very powerful prompt to run all types of coding languages into directly your web browser using ChatGPT. Just simply type your C or C++ code you want to run in prompt and the Chat-GPT will give you output of that program in reply. This is very useful if you dont have Compiler installed in your PC and want to test some code now you can do it by simple prompt. Example for C++ code. #include <iostream> int main(){ std::cout << "Hello Chat-GPT3" << std::endl; return 0; }

02/04/2023
Get product updates
Be the first to try new Tellit features