<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nikita Martynenko on Medium]]></title>
        <description><![CDATA[Stories by Nikita Martynenko on Medium]]></description>
        <link>https://medium.com/@nikitamartynenko0811?source=rss-dab36423ed5e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*X-Qk00bC12CYS5xn2tQz4Q.jpeg</url>
            <title>Stories by Nikita Martynenko on Medium</title>
            <link>https://medium.com/@nikitamartynenko0811?source=rss-dab36423ed5e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:49:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikitamartynenko0811/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ChatGPT: Everything you need to know about OpenAI’s GPT-3 tool]]></title>
            <link>https://medium.com/@nikitamartynenko0811/chatgpt-everything-you-need-to-know-about-openais-gpt-3-tool-f026a10a23d5?source=rss-dab36423ed5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f026a10a23d5</guid>
            <category><![CDATA[chat-gpt-ai]]></category>
            <dc:creator><![CDATA[Nikita Martynenko]]></dc:creator>
            <pubDate>Sat, 04 Mar 2023 04:32:42 GMT</pubDate>
            <atom:updated>2023-03-04T04:39:33.834Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*3zRxZHquUtNet4Hy" /></figure><p>For years, there has been worldwide fear of <a href="https://www.sciencefocus.com/future-technology/artificial-intelligence-ai/">artificial intelligence (AI)</a> and its impending takeover of the world… who knew that it would start with the world of art and literature.</p><p>After months of dominating the internet with its AI image generator <a href="https://www.sciencefocus.com/future-technology/dall-e-2-why-the-ai-image-generator-is-a-revolutionary-invention/">Dall-E 2</a>, OpenAI has continued to be all over everyone’s social media feeds thanks to ChatGPT — a chatbot made using the company’s technology GPT-3.</p><p>It’s not exactly the catchiest name and could easily be the title of a random computer component or vague legal reference, but GPT-3 is actually the internet’s best-known language processing AI model.</p><p>Since its release, it has been banned in schools, utilised by Microsoft to revolutionise Bing, completed legal tests, wrote essays and done just about everything else in-between.</p><p>Now, the company has also introduced a pay-to-use version called <a href="https://www.sciencefocus.com/news/chatgpt-plus-announcement/">ChatGPT Pro</a>. This offers users a host of added benefits for $20 (£16) a month including priority access and faster load times.</p><p>So what is ChatGPT? What does it do? And is this really the future of AI? We’ve answered these questions and more down below.</p><h3>What is GPT-3 and ChatGPT?</h3><p>GPT-3 (Generative Pretrained Transformer 3) is a state-of-the-art language processing AI model developed by OpenAI. It is capable of generating human-like text and has a wide range of applications, including language translation, language modelling, and generating text for applications such as chatbots. It is one of the largest and most powerful language processing AI models to date, with 175 billion parameters.</p><p>Its most common use so far is creating ChatGPT — a highly capable chatbot. To give you a little taste of its most basic ability, we asked GPT-3’s chatbot to write its own description as you can see above. It’s a little bit boastful, but completely accurate and arguably very well written.</p><p>In less corporate terms, GPT-3 gives a user the ability to give a trained AI a wide range of worded prompts. These can be questions, requests for a piece of writing on a topic of your choosing or a huge number of other worded requests.</p><p>Above, it described itself as a language processing AI model. This simply means it is a program able to understand human language as it is spoken and written, allowing to understand the worded information it is fed, and what to spit back out.</p><p>More like this</p><h3>How much does ChatGPT cost and how can you use it?</h3><p>ChatGPT is very easy to sign up for and use, simply:</p><ul><li>head over to the <a href="https://chat.openai.com/">ChatGPT website</a> and create an account.</li><li>You’ll need to wait until your account has been accepted (you can skip this step if you have an account from Dall-E 2).</li><li>Logging in will present you with a very simple page. You are offered some example prompts, and some information about how ChatGPT works.</li><li>At the bottom of the page is a text box. This is where you can ask ChatGPT any of your questions or prompts.</li></ul><p>Currently, ChatGPT remains free-to-use software. However, OpenAI has now announced ChatGPT Pro — a pay-to-use version with added benefits.</p><p>This version of the software will cost $20 (£16) a month, offering users priority access, quicker load times and access to updates and new features before anyone else.</p><p>For now the free version remains but it is unclear if this will change in the future.</p><h3>What can it do?</h3><p>With its 175 billion parameters, its hard to narrow down what GPT-3 does. The model is, as you would imagine, restricted to language. It can’t produce video, sound or images like its brother Dall-E 2, but instead has an in-depth understanding of the spoken and written word.</p><p>This gives it a pretty wide range of abilities, everything from writing poems about sentient farts and cliché rom-coms in alternate universes, through to explaining quantum mechanics in simple terms or writing full-length research papers and articles.</p><p>While it can be fun to use OpenAI’s years of research to get an AI to write bad stand-up comedy scripts or answer questions about your favourite celebrities, its power lies in its speed and understanding of complicated matters.</p><p>Where we could spend hours researching, understanding and writing an article on quantum mechanics, ChatGPT can produce a well-written alternative in seconds.</p><p>It has its limitations and its software can be easily confused if your prompt starts to become too complicated, or even if you just go down a road that becomes a little bit too niche.</p><p>Equally, it can’t deal with concepts that are too recent. World events that have occurred in the past year will be met with limited knowledge and the model can produce false or confused information occasionally.</p><p>OpenAI is also very aware of the internet and its love of making AI produce dark, harmful or biased content. Like its Dall-E image generator before, ChatGPT will stop you from asking the more inappropriate questions or for help with dangerous requests.</p><h3>How does it work?</h3><p>On the face of it, GPT-3’s technology is simple. It takes your requests, questions or prompts and quickly answers them. As you would imagine, the technology to do this is a lot more complicated than it sounds.</p><p>The model was trained using text databases from the internet. This included a whopping 570GB of data obtained from books, webtexts, Wikipedia, articles and other pieces of writing on the internet. To be even more exact, 300 billion words were fed into the system.</p><p>As a language model, it works on probability, able to guess what the next word should be in a sentence. To get to a stage where it could do this, the model went through a supervised testing stage.</p><p>Here, it was fed inputs, for example “What colour is the wood of a tree?”. The team has a correct output in mind, but that doesn’t mean it will get it right. If it gets it wrong, the team inputs the correct answer back into the system, teaching it correct answers and helping it build its knowledge.</p><p>It then goes through a second similar stage, offering multiple answers with a member of the team ranking them from best to worst, training the model on comparisons.</p><p>What sets this technology apart is that it continues to learn while guessing what the next word should be, constantly improving its understanding of prompts and questions to become the ultimate know-it-all.</p><p>Think of it as a very beefed-up, much smarter version of the autocomplete software you often see in email or writing software. You start typing a sentence and your email system offers you a suggestion of what you are going to say.</p><h3>Are there any other AI language generators?</h3><p>While GPT-3 has made a name for itself with its language abilities it isn’t the only artificial intelligence capable of doing this. Google’s <a href="https://www.sciencefocus.com/comment/if-a-chatbot-became-sentient-wed-need-to-care-for-it-but-our-history-with-animals-carries-a-warning/">LaMDA</a> made headlines when a Google engineer was fired for calling it so realistic that he believed it to be sentient.</p><p>There are also plenty of other examples of this software out there created by everyone from Microsoft to Amazon and Stanford University. These have all received a lot less attention than OpenAI or Google, possibly because they don’t offer up fart jokes or headlines about sentient AI.</p><p>Most of these models are not available to the public, but OpenAI has begun opening up access to GPT-3 during its test process, and Google’s LaMDA is available to selected groups in a limited capacity for testing.</p><p>Google breaks its Chatbot down into talking, listing and imagining, providing demos of its abilities in these areas. You can ask it to imagine a world where snakes rule the world, ask it to generate a list of steps to learn to ride a unicycle, or just have a chat about the thoughts of dogs.</p><h3>Where ChatGPT thrives and fails</h3><p>The GPT-3 software is obviously impressive, but that doesn’t mean it is flawless. Through the ChatGPT function, you can see some of its quirks.</p><p>Most obviously, the software has a limited knowledge of the world after 2021. It isn’t aware of world leaders that came into power since 2021, and won’t be able to answer questions about recent events.</p><p>This is obviously no surprise considering the impossible task of keeping up with world events as they happen, along with then training the model on this information.</p><p>Equally, the model can generate incorrect information, getting answers wrong or misunderstanding what you are trying to ask it.</p><p>If you try and get really niche, or add too many factors to a prompt, it can become overwhelmed or ignore parts of a prompt completely.</p><p>For example, if you ask it to write a story about two people, listing their jobs, names, ages and where they live, the model can confuse these factors, randomly assigning them to the two characters.</p><p>Equally, there are a lot of factors where ChatGPT is really successful. For an AI, it has a surprisingly good understanding of ethics and morality.</p><p>When offered a list of ethical theories or situations, ChatGPT is able to offer a thoughtful response on what to do, considering legality, people’s feelings and emotions and the safety of everyone involved.</p><p>It also has the ability to keep track of the existing conversation, able to remember rules you’ve set it, or information you’ve given it earlier in the conversation.</p><p>Two areas the model has proved to be strongest are its understanding of code and its ability to compress complicated matters. ChatGPT can make an entire website layout for you, or write an easy-to-understand explanation of dark matter in a few seconds.</p><h3>Where ethics and artificial intelligence meet</h3><p>Artificial intelligence and ethical concerns go together like fish and chips or Batman and Robin. When you put technology like this in the hands of the public, the teams that make them are fully aware of the many limitations and concerns.</p><p>Because the system is trained largely using words from the internet, it can pick up on the internet’s biases, stereotypes and general opinions. That means you’ll occasionally find jokes or stereotypes about certain groups or political figures depending on what you ask it.</p><p>For example, when asking the system to perform stand-up comedy, it can occasionally throw in jokes about ex-politicians or groups who are often featured in comedy bits.</p><p>Equally, the models love of internet forums and articles also gives it access to fake news and conspiracy theories. These can feed into the model’s knowledge, sprinkling in facts or opinions that aren’t exactly full of truth.</p><p>In places, OpenAI has put in warnings for your prompts. Ask how to bully someone, and you’ll be told bullying is bad. Ask for a gory story, and the chat system will shut you down. The same goes for requests to teach you how to manipulate people or build dangerous weapons.</p><h3>Will ChatGPT be banned in schools?</h3><h3>Will ChatGPT be banned in schools?</h3><p>While a number of companies are looking to implement ChatGPT, in other areas it is quickly being banned.</p><p>In New York, the city’s education department has ruled that the tool will be forbidden across all devices and networks in New York public schools.</p><p>There are two main reasons for this decision. First, the chat model has been shown to make mistakes and isn’t always accurate, especially with information from the past year.</p><p>Secondly, there is a real risk of plagiarism with students able to get ChatGPT to write their essays for them.</p><p>While New York is the first place to publicly ban the software, it is likely to be a decision made elsewhere too. However, some experts have argued that this software could actually enhance learning.</p><p>“ChatGPT and other AI-based language applications could be, and perhaps should be, integrated into school education. Not indiscriminately, but rather as a very intentional part of the curriculum. If teachers and students use AI tools like ChatGPT in service of specific teaching goals, and also learn about some of their ethical issues and limitations, that would be far better than banning them,” says <a href="http://www.katedarling.org/">Kate Darling</a>, a research scientist at the MIT Media Lab.</p><p>“But, in absence of resources for teachers to familiarise themselves with the technology, schools may need to enact some policies restricting its use.”</p><p>In this way, Darling emphasises a belief held by many in the world of artificial intelligence. Instead of ignoring or banning it, we should learn how to interact with it safely.</p><p>This is an opinion mirrored by <a href="https://staff.napier.ac.uk/services/dlte/meettheteam/Pages/SamIllingworth.aspx">Sam Illingworth</a>, an associate professor in the department of Learning Enhancement at Edinburgh Napier University.</p><p>“AI is very much here to stay, so why try to fight it? These are tools that our students will be using in the workforce, so it seems very strange to say don’t use them for three years, pretending they don’t exist for now,” says Illingworth.</p><p>“These are things that have the potential to reduce workload and improve efficiency, our responsibility as educators is to decide how to utilise it.”</p><h3>Artificially intelligent eco-systems</h3><p>Artificial intelligence has been in use for years, but it is currently going through a stage of increased interest, driven by developments across the likes of Google, Meta, Microsoft and just about every big name in tech.</p><p>However, it is OpenAI which has attracted the most attention recently. The company has now made an AI image generator, a highly intelligent chatbot, and is in the process of developing <a href="https://www.sciencefocus.com/future-technology/point-e/">Point-E</a> — a way to create 3D models with worded prompts.</p><p>In creating, training and using these models, OpenAI and its biggest investors have poured billions into these projects. In the long-run, it could easily be a worthwhile investment, setting OpenAI up at the forefront of AI creative tools.</p><h3>How Microsoft plans to use ChatGPT in future</h3><p>OpenAI has had a number of big name investors in its rise to fame with names including Elon Musk, Peter Thiel, and LinkedIn co-founder Reid Hoffman. But when it comes to the ChatGPT and its real-life uses, it’s one of OpenAI’s biggest investors that will get to use it first.</p><p>Microsoft threw a massive $1 billion investment into OpenAI and now the company is looking to implement ChatGPT into its search engine Bing. Microsoft has been battling to take Google on as a search engine for years now, looking for any feature that can help it stand out.</p><p>Last year, Bing held less than 10 per cent of the world’s internet searches. While that sounds tiny, it is more testament to Google’s grip on the market with Bing standing out as one of the most popular options.</p><p>With plans to implement ChatGPT into its system, Bing is hoping to better understand users’ queries and offer a more conversational search engine.</p><p>It is currently unclear how much Microsoft plans to implement ChatGPT into Bing, however this will likely begin with stages of testing. A full implementation could risk Bing being caught up with GPT-3’s occasional bias which can <em>really</em> delve deep into stereotypes and politically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f026a10a23d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top Style Tailwind CSS]]></title>
            <link>https://medium.com/@nikitamartynenko0811/top-style-tailwind-css-6716ecbb0b1e?source=rss-dab36423ed5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6716ecbb0b1e</guid>
            <dc:creator><![CDATA[Nikita Martynenko]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 09:39:32 GMT</pubDate>
            <atom:updated>2023-03-04T04:41:42.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*Sqa_zoHwFuYw42QT" /></figure><p>When coding an application from scratch, you want it to reflect your unique brand, be responsive on any device, and be easy to write and maintain — and those are probably just a few items on your wishlist.</p><p>By building with Tailwind CSS, you can check these items off your list. Tailwind CSS is a framework for quickly building and customizing applications without <a href="https://blog.hubspot.com/website/add-css-to-html">writing custom CSS</a>.</p><p>To understand why <a href="https://trends.builtwith.com/framework/Tailwind-CSS">over 200,000 active websites on the internet use Tailwind CSS</a>, let’s cover:</p><p>For example, let’s say you want to create a button that has a fixed height, horizontal padding, black background color, rounded edges, and white, semi-bolded font. Here’s the HTML you’d use:</p><p>The HTML contains six utility classes. Let’s break down each one below:</p><ul><li><strong>h-10</strong>: This class sets the button to a fixed height of 10 units.</li><li><strong>px-6</strong>: This class sets the horizontal padding of the button to 6 units.</li><li><strong>font-semibold</strong>: This class sets the font weight of the button to semibold.</li><li><strong>rounded-md</strong>: This class sets the border radius of the button so it has rounded corners.</li><li><strong>bg-black</strong>: This class sets the background color of the button to black.</li><li><strong>text-white</strong>: This class sets the text color of the button to white.</li></ul><p>As you might have guessed, the learning curve when using Tailwind CSS primarily consists of familiarizing yourself with its utility classes. But once you do, you’ll be able to quickly and consistently create custom components like the button below.</p><p>Now that we understand the Tailwind CSS framework better, let’s look at some of the benefits of using it.</p><h3>Benefits of Tailwind CSS</h3><p>There are many benefits of using a CSS framework like Tailwind. Below are the major ones.</p><ul><li><strong>You write less custom CSS</strong>. With Tailwind, you style elements by applying pre-existing classes directly in your <a href="https://blog.hubspot.com/website/html">HTML</a>. By using utility classes in this way, you can build custom designs without writing CSS.</li><li><strong>You keep CSS files small.</strong> Without a framework like Tailwind, you have to keep writing CSS as you add new features and components. ASa result, your CSS files continue to grow and get heavier. By using utilities like Tailwind’s flexbox and padding utilities, most styles are reusable so you rarely need to write new CSS.</li><li><strong>You don’t have to invent class names</strong>. When Tailwind, you’re choosing classes from a pre-defined <a href="https://blog.hubspot.com/website/design-system">design system</a>. That means you don’t need to agonize over picking the “perfect” class names for certain styles and components, or remember complicated ones like sidebar-inner-wrapper.</li><li><strong>You can make safer changes.</strong> With the traditional approach, if you make changes to CSS, you may break something across your site. Unlike CSS, utility classes in your HTML are local. That means you can change them without worrying about breaking something else on your site.</li></ul><h3>Why Tailwind CSS?</h3><p>Now you might be wondering why use Tailwind over other CSS frameworks? Tailwind CSS is a low-level framework. Meaning, unlike other CSS frameworks like <a href="https://blog.hubspot.com/website/bootstrap-css">Bootstrap</a> and Materialize, Tailwind doesn’t offer fully styled components like buttons, dropdowns, and navbars. Instead, it offers utility classes so you can create your own reusable components.</p><p>For that reason, it provides a lot more flexibility and control over what your application looks like than other CSS frameworks. This can enable you to create a more unique site.</p><p>To learn more about what Tailwind CSS is, what benefits it offers, and why you should use it, check out this video:</p><h3>Tailwind CSS Examples</h3><p>Tailwind offers <a href="https://blog.hubspot.com/website/ui-design">UI components</a> and templates, or “examples,” to help you start building your application quickly.</p><p>There’s a <a href="https://tailwindui.com/">repository</a> created by Tailwind that includes examples of landing page heroes, feature sections, newsletter sign up forms, tables, modal windows, checkout forms, shopping carts, and more. You can get the code for most or all of these examples for a one-time package fee.</p><p>The other <a href="https://tailwindcomponents.com/">repository</a> is created by community members and is open-source. We’re going to focus on examples from this repository below.</p><h3>Tailwind CSS Form</h3><p>To enable users to subscribe to your newsletter, you can use Tailwind to create an <a href="https://blog.hubspot.com/marketing/email-sign-up-form">email opt-in form</a>.</p><p>To create a simple email opt-in form like the one shown above, you can use the following code:</p><p><a href="https://tailwindcomponents.com/component/simple-rounded-text-form">Image Source</a></p><p>To customize the border, background color, text color, and other aspects of this form, you can change the border-{style}, bg-{color}, and text-{color} utility classes, among others.</p><p><strong>Pro tip:</strong> Add a number to the border-{color},bg-{color}, and text-{color} utility classes to use a shade of <a href="https://tailwindcss.com/docs/customizing-colors">Tailwind’s default color palette</a>.</p><h3>Tailwind CSS Search Bar</h3><p>To enable users to search your application based on a keyword, you can use Tailwind to create a search bar.</p><p>To create a search bar with an icon and Submit button like the one shown above, you can use the following code:</p><p><a href="https://tailwindcomponents.com/component/tailwind-search-bar">Image Source</a></p><h3>Tailwind CSS Slider</h3><p>To slide through multiple elements and images, you can use Tailwind to create a slider or carousel component.</p><p><strong><em>Pro tip:</em></strong><em> Use the w-full utility class to set the width of the search field to 100%.</em></p><p>To create a slider like the one shown above, you can use the following HTML:</p><p>Note: This component was made without JS Library, but you will need the following JavaScript to trigger the slider.</p><p><a href="https://tailwindcomponents.com/component/slider-2">Image Source</a></p><h3>Tailwind CSS Pricing Table</h3><p>To show customers multiple premium plans with different features and prices, you can use Tailwind CSS to create a pricing table.</p><p><strong><em>Pro tip:</em></strong><em> Add the flex-nowrap utility class to the parent div to prevent it from wrapping and add the flex-none utility class to the child divs (the slides) to prevent them from growing or shrinking.</em></p><p>To create the “Intro” section of the pricing table like the one shown above, you can use the following code:</p><p>Note: This code will only create the first container for the “Intro” plan. To create the containers for the “Base”, “Popular”, and “Enterprise” plans, you will have to replicate this code, swapping out the text for each plan name and price.</p><p>To walk through more examples, like how to build a sidebar with Tailwind CSS, check out this video:</p><p><a href="https://tailwindcomponents.com/component/popular-pricing-section">Image Source</a></p><h3>Using Tailwind CSS to Accelerate Your Coding</h3><p>Tailwind CSS makes it quicker to write and maintain the code of your application. By using this utility-first framework, you don’t have to write custom CSS to style your application. Instead, you can use utility classes to control the padding, margin, color, font, shadow, and more of your application.</p><p>There may be a learning curve to familiarize yourself with these utility classes, but once you do, you’ll be able to create and maintain applications faster than ever before.</p><p><strong><em>Pro tip:</em></strong><em> Add the modifier “hover:” before a class name like “bg-gray-200” to apply that utility class conditionally (ie. so that the container only changes background color when the user hovers over it).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6716ecbb0b1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular vs React: Which One to Choose for Your App]]></title>
            <link>https://medium.com/@nikitamartynenko0811/angular-vs-react-which-one-to-choose-for-your-app-34a6faa56bfb?source=rss-dab36423ed5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a6faa56bfb</guid>
            <dc:creator><![CDATA[Nikita Martynenko]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 09:10:56 GMT</pubDate>
            <atom:updated>2023-02-18T09:10:56.329Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qL-FQZk1b8RXbaBSuCHCaQ.png" /></figure><h3>A precise side-by-side comparison of general and technical aspects of Angular and React</h3><p>There are so many articles titled “Angular vs React”, “React vs Angular”, “Angular or React” — it is a miracle you opened this one! What these articles are missing, however, is a precise <strong>side-by-side comparison</strong> of Angular vs React.</p><p>So this is what I am going to do in this blog post: to place <a href="https://keenethics.com/tech-front-end-react">React</a> and <a href="https://keenethics.com/tech-front-end-angular">Angular</a> in direct juxtaposition. We’re going to review and contrast the two JavaScript frameworks and look at each possible characteristic to make sure we don’t miss even a single piece of data.</p><p>In the end, I am not going to tell you which technology to choose. But I will give you enough food for thought for you to choose the technology that suits you and your project best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxOx9eHqz9pTBwG_R4h4wg.png" /><figcaption>Download to get a high quality image</figcaption></figure><h3>1. Brief Overview</h3><h3>React</h3><p>React is a JavaScript library for UI development. It is managed by Facebook and an open-source community of developers.</p><p>The framework was introduced in May 2013.</p><p>The latest updates were released on August 8th, 2019 — just over a month ago.</p><h3>Angular</h3><p>Angular is an open-sourced JavaScript framework for web and mobile development. It is TypeScript-based and managed by Google’s Angular Team and the Angular developer community.</p><p>Launched in September 2016, Angular (also known as Angular 2.0) is a complete rewrite of AngularJS (Angular 1.0), which was introduced in 2010.</p><p>There have been six versions of Angular already, and the latest release took place on August 28th, 2019 — almost three weeks ago.</p><h3>2. Universality</h3><h3>React</h3><p>React is a framework used in both web and mobile development. However, for mobile development, it needs to be incorporated with Cordova. Moreover, for mobile development, there is an additional framework — React Native.</p><p>React can be used to build both single-page and multiple-page web applications.</p><h3>Angular</h3><p>Angular is suitable for both web and mobile development. In mobile development, however, a great share of work is done by Ionic. Furthermore, similarly to React, Angular has an additional mobile development framework. The counterpart of React Native is NativeScript.</p><p>Angular can also be used for both single- and multiple-page web apps.</p><h3>3. Self-Sufficiency</h3><h3>React</h3><p>React is a framework for UI development, so apps written with React need additional libraries to be used. For instance, Redux, React Router, or Helmet optimize the processes of state management, routing, and interaction with the API. Such functions as data binding, component-based routing, project generation, form validation, or dependency injection require additional modules or libraries to be installed.</p><h3>Angular</h3><p>Angular is a full-fledged framework for software development, which usually does not require additional libraries. All the above-mentioned functions — data binding, component-based routing, project generation, form validation, and dependency injection — can be implemented with the means of Angular package.</p><h3>4. Learning Curve</h3><h3>React</h3><p>React is minimalistic: no dependency injection, no classic templates, no overly complicated features. The framework will be quite simple to understand if you already know JavaScript well.</p><p>However, it takes quite some time to learn how to set up a project because there is no predefined project structure. You also need to learn the Redux library, which is used in more than half of React applications for state management. Constant framework updates also require additional effort from the developer. Furthermore, there are quite a lot of best practices in React, which you will need to learn to do things right.</p><h3>Angular</h3><p>Angular itself is a huge library, and learning all the concepts associated with it will take much more time than in the case of React. Angular is more complex to understand, there is a lot of unnecessary syntax, and component management is intricate. Some complicated features are embedded into the framework core, which means that the developer cannot avoid learning and using them. Moreover, there are a lot of ways of solving a single issue.</p><p>Although TypeScript closely resembles JavaScript, it also takes some time to learn. Since the framework is constantly updated, the developer needs to put some extra learning effort.</p><h3>5. Community</h3><h3>React</h3><p>React framework is one of the most popular JS frameworks worldwide, and the community supporting and developing it is huge.</p><p>Working with React, you have to be a continuous learner since the framework is often updated. While the community tries to go forward with the latest documentation as swiftly as possible, keeping up with all the changes is not that easy. Sometimes, there may be a lack of documentation, but the issue is often solved by the community support on thematic forums.</p><p>React is actively used by such companies as Facebook, Twitter, Netflix, Airbnb, PayPal, The New York Times, Yahoo, Walmart, Uber, and Microsoft.</p><h3>Angular</h3><p>Angular is less admired than React and faces a lot of skepticism, partially because of the unpopularity of Angular 1.0. Developers used to dismiss the framework as an overly complicated one as it required a lot of time to be spent learning. However, this framework has been developed by Google, which works in favor of Angular’s credibility.</p><p>Google provides the long-term support of the framework and constantly improves it. However, the updates are so fast that the documentation often falls behind.</p><p>Angular is used by such companies as McDonald’s, AT&amp;T, HBO, Apple, Forbes, Adobe, Nike, and Microsoft as well.</p><h3>6. Performance</h3><h3>React</h3><p>React’s performance is greatly improved with the introduction of the virtual DOM. Since all virtual DOM trees are lightweight and built on server, the load on browser is reduced. Furthermore, since the data-binding process is unidirectional, bindings are not assigned watchers as in the case of Angular. Respectively, no additional workload is created.</p><h3>Angular</h3><p>Angular performs worse, especially in the case of complex and dynamic web apps.</p><p>The performance of Angular apps is negatively affected by bidirectional data-binding. Each binding is assigned a watcher to track changes, and each loop continues until all the watchers and associated values are checked. Because of this, the more bindings you have, the more watchers are created, and the more cumbersome the process becomes.</p><p>However, the most recent update of Angular has greatly improved its performance, and it does not lose to React anymore. Moreover, the size of an Angular application is slightly smaller than the size of a React app.</p><h3>7. Language</h3><h3>React</h3><p>React is based on JavaScript ES6+ combined with JSX script. JSX is an extension for syntax, which makes a JavaScript code resemble that written in HTML. This makes the code easier to understand, and typos are easier to spot. For the JSX code to be compiled in a browser, React is augmented with Babel — a code translation tool.</p><h3>Angular</h3><p>Angular can use JavaScript or TypeScript, which is a superset of JS developed specifically for larger projects. TypeScript is more compact than JavaScript, the code is easier to navigate, and typos are easily spotted. Code refactoring process also becomes simpler and faster.</p><h3>8. App Structure</h3><h3>React</h3><p>The structure of React provides developers with the freedom to choose. There is no “the only right structure” for a React app. However, the necessity to design the app structure at the beginning of each project makes it more difficult and longer to start.</p><p>Besides, React offers only View layer, while Model and Controller are added with the usage of other libraries.</p><p>The architecture of a React app is component-based. The code is made of React components, which are rendered with React DOM library and directed in two ways: functional (with a function that returns JSX)…</p><pre>function Hello(props){<br>  return &lt;div&gt;Hello {props.name}&lt;/div&gt;<br>}</pre><p>…and class-based (with ES6 classes).</p><pre>class Hello extends React.Component {<br>  render() {<br>    return &lt;h1&gt;Hello, {this.props.name}&lt;/h1&gt;<br>  }<br>}</pre><h3>Angular</h3><p>The structure of Angular is fixed and complex, suitable for experienced developers.</p><p>Angular is based on three layers — Model, Controller, and View. An object responsible for the Model is initialized by the Controller and displayed with the View.</p><p>The application code consists of different Angular components, each being written in four separate files: a TypeScript to implement the component, an HTML file to define the view, a CSS file to define the stylistic features, and a special file for testing purposes. Links to these files are written in the app directive, which displays the structural logic of the app. Respectively, Angular components are also reusable.</p><pre>import { Component } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;my-app&#39;,<br>  templateUrl: &#39;./app.component.html&#39;,<br>  styleUrls: [&#39;./app.component.css&#39;]<br>})<br><br>export class AppComponent { }</pre><h3>9. UI Components</h3><h3>React</h3><p>UI tools for React are developed by the community. There are a lot of free and paid UI components on the React portal. To use material design components in React, you would have to install an additional library — Material-UI Library &amp; Dependencies.</p><h3>Angular</h3><p>Angular has a built-in Material toolset, and it offers a variety of pre-built material design components. There are various buttons, layouts, indicators, pop-ups, and form controls. Because of this, UI configuration becomes simpler and faster.</p><h3>10. Directives</h3><h3>React</h3><p>In React, templates and logic are explained in one place — at the end of the component. It allows the reader to quickly grasp the meaning of the code even if they do not know the syntax.</p><h3>Angular</h3><p>In Angular, each template is returned with an attribute — a directive of how the object has to be set. The syntax of Angular directives is complex and sophisticated, which makes it incomprehensible for a reader without any experience in working with this technology.</p><h3>11. State Management</h3><h3>React</h3><p>In React, each component has its own state. A React developer can create special components for holding the state of the entire application or a particular part of it. The major disadvantage here consists in the fact that the global state needs to be stored in multiple different parts of the app with data being manually passed around different component tree levels.</p><pre>class Clock extends React.Component {<br>  constructor(props) {<br>    super(props);<br>   this.state = {date: new Date()};<br> }<br>  render() {<br>    return (<br>      &lt;div&gt;<br>        &lt;h1&gt;Hello world!&lt;/h1&gt;<br>        &lt;h2&gt;Now is {this.state.date.toLocaleTimeString()}.&lt;/h2&gt;<br>      &lt;/div&gt;<br>    );<br>  }<br>}</pre><p>To solve this problem, there is a special state management library — Redux. The idea of it is that the global state is represented as a single stateful object, which is altered in different parts of the app with the help of reducers — special Redux functions.</p><p>Another solution is offered by the state management library MobX. Unlike Redux with the global state stored in a single immutable stateful object, MobX offers storing only the minimal required state, while the rest of it can be derived.</p><h3>Angular</h3><p>In Angular, component data is stored in component properties. Parent components pass data through to children ones. State changes in some parts can be identified and recalculated, but in a large app, it can cause a multi-directional tree series of updates, which will be difficult to track. The features can be improved with the help of state management libraries, such as NgRx or RxJS , which would make sure that the data flow is unidirectional.</p><pre>export class HeroListComponent implements OnInit {<br>  heroes: Hero[];<br>  selectedHero: Hero;<br>  constructor(private service: HeroService) { }<br>  ngOnInit() {<br>    this.heroes = this.service.getHeroes();<br>  }<br>  selectHero(hero: Hero) { this.selectedHero = hero; }<br>} </pre><h3>12. Dependency Injection</h3><h3>React</h3><p>React does not fully support dependency injection as it does not fully comply with the idea of functional programming and data immutability. Instead, it has a global state for all components.</p><h3>Angular</h3><p>The greatest advantage of Angular rests in the fact that, unlike React, it supports dependency injection. Therefore, Angular allows having different lifecycles for different stores.</p><pre>import { Injectable } from &#39;@angular/core&#39;;t<br>import { HEROES } from &#39;./mock-heroes&#39;;<br>@Injectable({<br>  // we declare that this service should be created<br>  // by the root application injector.<br>  providedIn: &#39;root&#39;,<br>})<br>export class HeroService {<br>  getHeroes() { return HEROES; }<br>}</pre><h3>13. Data Binding</h3><h3>React</h3><p>Data binding stands for the data synchronization process between Model and View. React should be augmented with Redux, which allows you to work with immutable data and makes data flow unidirectional. Unidirectional binding is predictable, which facilitates the debugging process.</p><h3>Angular</h3><p>Angular works with bidirectional data-binding and mutable data. While the advantages of mutable and immutable data are a matter of a heated discussion, it is definitely easier to work with bidirectional data-binding rather than with the unidirectional approach. At the same time, bidirectional data-binding negatively affects the performance since Angular automatically develops a watcher for each binding.</p><p>The ways of data-binding in Angular:</p><pre>{{expression}}   Interpolation<br>[target]=&quot;expression&quot;    Property<br>bind-target=&quot;expression&quot;    Attribute</pre><pre>(target)=&quot;statement&quot; Event<br>on-target=&quot;statement&quot; Event</pre><pre>[(target)]=&quot;expression&quot; Two-way<br>bindon-target=&quot;expression&quot; Two-way</pre><h3>14. Change Rendering</h3><h3>React</h3><p>React uses a virtual Document Object Model (DOM), which enables easily implementing minor data changes in one element without updating the structure of the entire tree. The framework creates an in-memory cache of data structure, computes the changes, and efficiently updates the DOM displayed in the browser. This way, the entire page seems to be rendered on each change, whereas actually, the libraries render changed subcomponents only.</p><p>The React team is constantly improving Fiber — a mechanism aimed at boosting the productivity of change rendering.</p><h3>Angular</h3><p>Angular uses a real DOM, which updates the entire tree structure even when the changes have taken place in a single element. The real DOM is considered to be slower and less effective than the virtual DOM.</p><p>To compensate for this disadvantage, Angular uses change detection to identify components that need to be altered. Therefore, the real DOM on Angular performs as effectively as the virtual DOM on React.</p><h3>15. Tools</h3><h3>React</h3><p>React is supported by multiple code editors. For instance, the code in React can be edited with <a href="https://www.sublimetext.com/">Sublime Text</a>, <a href="https://visualstudio.microsoft.com/">Visual Studio</a>, and <a href="https://atom.io/">Atom</a>. To bootstrap a project, you can use the Create React App (CLI) tool. In turn, server-side rendering is completed with the use of Next.js framework.</p><p>To test the entire app written in React, you would need multiple tools. For instance, <a href="https://github.com/airbnb/enzyme">Enzyme</a> for component testing, <a href="https://jestjs.io/">Jest</a> for testing JS code, React-unit for unit testing and so on. To debug the app in the development mode, you can use a browser extension React Dev Tools.</p><p>Another interesting tool is <a href="https://github.com/facebook/react-360">React 360</a>, which is a library used for creating AR and VR applications.</p><h3>Angular</h3><p>Similarly to React, Angular is supported by a variety of code editing tools. For example, you may work with such code editors as <a href="http://www.aptana.com/">Aptana</a>, <a href="https://www.sublimetext.com/">Sublime Text</a>, and <a href="https://visualstudio.microsoft.com/">Visual Studio</a>. A project can be promptly set up with <a href="https://cli.angular.io/">Angular CLI</a>. Server-side rendering is completed with the help of <a href="https://github.com/angular/universal">Angular Universal</a>.</p><p>Unlike React, Angular can be fully tested with a single tool. For the end-to-end testing in Angular, the platforms are <a href="https://jasmine.github.io/2.0/introduction.html">Jasmine</a>, <a href="http://www.protractortest.org/#/">Protractor</a>, and <a href="https://karma-runner.github.io/latest/index.html">Karma</a>. Another tool that debugs the app in the development mode is a browser extension <a href="https://augury.rangle.io/">Augury</a>.</p><h3>To Wrap Up</h3><p><strong>Angular </strong>is a full-fledged mobile and web development framework.<strong> React </strong>is a framework only for UI development, which can be turned into a full-fledged solution with the help of additional libraries.</p><p>React seems simpler at first sight, and it takes less time to start working on a React project. However, that simplicity as the main advantage of React is neutralized because you have to learn to work with additional JavaScript frameworks and tools.</p><p>Angular itself is more complex and takes quite some time to master. Yet, it is a powerful tool that offers a holistic web development experience, and once you learn how to work with it, you reap the fruits.</p><p><strong>There is no better framework. Both are updated continuously to keep up with the competitor</strong>. For instance, while React was believed to win because of its virtual DOM, Angular equaled the score by implementing change detection. While Angular was considered to be winning because of being developed by such an authoritative company as Google, the immense devoted React community fully compensated for Google’s reputation and made React similar to Angular.</p><p><strong>In the end, React vs Angular is all a matter of personal preference, a matter of skills and habits</strong>. As a beginner in programming, you would probably benefit more from starting with React. As an experienced developer, you just keep working with what you know better.</p><p>Do not forget to challenge yourself and start learning a new framework, React or Angular. As a Project Manager or a business owner outsourcing developers, you should talk to your web development team and together choose the framework that suits all of you best, whether it be Angular or React.</p><h3>Do you have an idea for either an Angular or React project?</h3><p>My company KeenEthics is experienced in <a href="https://keenethics.com/tech-front-end-react">react development</a>, and we, also, provide outstanding <a href="https://keenethics.com/tech-front-end-angular">agularjs developers</a> for your projects. In case you need the following services, feel free to <a href="https://keenethics.com/contacts">get in touch</a><em>.</em></p><p>If you have enjoyed the article, you should definitely read another wonderful comparison of 2 JS frameworks: <a href="https://keenethics.com/blog/react-vs-svelte-how-to-build-messaging-components">React vs Svelte: How to Build Messaging Components</a>.</p><h3>P.S.</h3><p>I would like to say thank you to everyone who contributed to this article including Sergey Gornostaev and Volodya Andrushchak, full-stack software developers @ KeenEthics.</p><p>The original article posted on KeenEthics blog can be found here: <a href="https://keenethics.com/blog/angular-vs-react-what-to-choose-for-your-app">Angular vs React: Which One to Choose for Your App</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a6faa56bfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Best Tech Stacks to Consider for 2022–2023 — Plego]]></title>
            <link>https://medium.com/@nikitamartynenko0811/5-best-tech-stacks-to-consider-for-2022-2023-plego-3c5c87e05096?source=rss-dab36423ed5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c5c87e05096</guid>
            <dc:creator><![CDATA[Nikita Martynenko]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 22:01:14 GMT</pubDate>
            <atom:updated>2023-03-04T04:38:46.048Z</atom:updated>
            <content:encoded><![CDATA[<h3>5 Best Tech Stacks to Consider for 2022–2023 — Plego</h3><p>FAILED</p><p>The stack of the future is a tech stack that can be adjusted to meet the needs of developers and companies, making it easier for businesses to build custom applications. Tech stacks are platforms designed with one goal in mind: handling an aspect or aspects within the app building process as efficiently as possible without sacrificing quality workmanship — or your sanity!</p><p>As the world becomes more technology-driven, it’s essential for business owners to have a solid understanding of the trends, tools, and stacks that will serve their needs. If you don’t want to be left out of the loop, ensure you’re up to date on the latest developments! Read on for our top 5 tech stacks in demand in 2023.</p><p>While choosing the best tech stacks for your business, you must identify:</p><ol><li>Areas of your business that require technology intervention</li><li>The type of technology that best suits your needs</li><li>Costs and benefits of each technology option</li></ol><p>A tech stack is a collection of technologies and applications you use. These include code, frameworks, programming languages, tools, and even platforms or hardware devices.</p><p>A tech stack entails two equally significant components: the frontend (client-facing) and the backend (server-side). Both are used to build and operate your web, mobile, or IoT applications.</p><p>Shown below are a tech stack overview and 5 example app development tech stacks.</p><h4>Tech Stack Overview</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B7t10QD-aJB6Va-S.png" /></figure><h3>5 Popular Tech Stacks: MEAN, LAMP, MERN, MEVN, and Serverless</h3><p>FAILED</p><p>The frontend tech stack (client-facing) comprises all the technologies used to build and manage your user interface. It includes:</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a> is used to build site structure and content.</p><p><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS">CSS</a> is used to style and format elements.</p><p>JavaScript is used for handling user interactions and running animation sequences. Some of the JavaScript frameworks commonly used in the frontend tech stack include AngularJS, ReactJS, and Vue.js.</p><p>Backend tech stacks (server-side) use different programming languages and tools to handle requests from the frontend and provide applications with data storage, processing, analytics, and more. The backend stack comprises many programming languages, including:</p><p><a href="https://www.php.net/">PHP</a> is used as a base for developing web applications.</p><p><a href="https://www.javascript.com/">JavaScript</a> (or JS for short) is used for handling user interactions, retrieving data, and processing requests.</p><p><a href="https://laravel.com/">Laravel</a> is part of the PHP foundation and considered one of the most popular PHP frameworks.</p><p><a href="https://www.mysql.com/">MySQL</a> is a database used for storing data and handling requests.</p><p><a href="https://www.python.org/">Python</a> is a widely used programming language used for scripting purposes.</p><p><a href="https://www.java.com/en/">Java</a> is an <a href="https://www.techtarget.com/searchapparchitecture/definition/object-oriented-programming-OOP">object-oriented programming</a> language.</p><p><a href="https://isocpp.org/">C++</a> is used for developing high-level functionality and providing stability.</p><p><a href="https://go.dev/">Go</a> is a programming language developed by Google and is considered to be fast, reliable, and scalable.</p><p>A tech stack encompasses various tools and technologies developers use to create applications. Such components include programming languages, storage systems, network protocols, and other devices. When working with multiple layers of the technology stack simultaneously, developers can more easily build robust applications that meet the needs of their end users.</p><ol><li>The foundation on which your software is built.</li><li>Ability to develop your software quickly and efficiently.</li><li>The industry trends and developments.</li><li>How your software will behave in the long run.</li><li>The Scalability of your software.</li></ol><p>The top five trending tech stacks for 2022–2023 are listed below:</p><p>FAILED</p><p>2023. A time of significant technological advancements led to the MEAN stack’s development. This Tech stack is easy to use, scalable, under budget, and gives you many features to adapt to your needs. It has been used in the past by companies like Facebook, Twitter, Airbnb, and Netflix to handle heavy loads without breaking down. <br> Well, let’s look at each component of the MEAN stack and see why it’s so great.</p><p><a href="https://www.mongodb.com/">MongoDB</a> is a robust document-oriented database that makes data storage easy, fast and efficient.</p><p><a href="https://expressjs.com/">ExpressJS</a> is a fast and ligh</p><p>tweight web application framework that makes creating web applications simple and fun.</p><p><a href="https://angularjs.org/">AngularJS</a> is an excellent frontend JavaScript MVC framework that makes creating user interfaces a breeze.</p><p><a href="https://nodejs.org/en/">Node.JS</a> is a powerful server-side JavaScript runtime that makes developing network applications quick and easy.</p><p>FAILED</p><p>The LAMP stack is the most trending tech stack, and for a good reason. It’s easy to use, fast, and accessible. It’s also very scalable, allowing larger businesses to use it.</p><p>The set of software is designed to work together to create dynamic websites and apps that users can easily customize.</p><p>The LAMP stack includes:</p><p>Everything from the business-critical server to the mission-critical embedded system, <a href="https://linux.org/">Linux</a> is a versatile operating system for many purposes.</p><p><a href="https://httpd.apache.org/">Apache2</a> or Nginx provides secure web hosting with powerful features such as ModSecurity and caching abilities.</p><p>It provides a stable, fast, and well-maintained database used by millions of websites worldwide.</p><p>PHP powers the web applications using Apache2 or Nginx (a reverse proxy). It is a popular, robust, easy-to-use language for developing complex applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S05Obenhb0S0F2YI.jpg" /></figure><p>MERN Stack is quickly becoming the most popular tech stack in the world as it offers a great mix of features and benefits. This open-source JavaScript Tech Stack is the best option if you want your app, software, site, or eCommerce store fast, secure, affordable, scalable, and efficient, so you can grow at your own pace without worrying about capacity constraints holding back growth potentials!</p><p>A robust database that’s perfect for storing large amounts of data.</p><p>A lightweight web framework helps you manage your application’s routes and middleware.</p><p>A popular JavaScript library for building user interfaces.</p><h3>Node.js</h3><p>An asynchronous event-driven JavaScript runtime perfect for building scalable real-time web applications.</p><p>Combine these four technologies to build your next big idea. The MERN stack is a great place to start if you’re looking to get into web development.</p><p>FAILED</p><p>The MEVN Stack’s innovation and cutting-edge technology have made it a favorite among those looking to stay on top of their game and it’s not hard to see why.</p><p>The MEVN Stack is a more recent variation of the MEAN Stack that uses Vue.js instead of AngularJS. It is a popular choice for building web apps, providing a comprehensive set of tools for back-end and front-end development. Additionally, all four technologies in the MEVN Stack are open source and free to use.</p><p>MEVN includes:</p><h3>MongoDB</h3><p>As defined earlier, it is the most potent document-oriented database that allows you to store data in JSON-like documents.</p><h3>Express.JS</h3><p>A framework that provides a simple API for routing requests and handling responses, making it perfect for creating RESTful APIs.</p><h3>Vue.JS</h3><p><a href="https://vuejs.org/">Vue.JS</a> is a progressive, lightweight, and simple JavaScript framework let you quickly build interactive user interfaces.</p><h3>Node.js</h3><p>A platform built on top of Chrome’s V8 JavaScript engine. It allows you to write code in JavaScript that runs on both the server and the client side, making it the perfect choice for developing cross-platform applications.</p><p>So, if you’re looking for a powerful and efficient full-stack solution for your next web project, the MEVN Stack is the way to go!</p><p>There’s a reason the serverless stack is becoming increasingly popular among startups and enterprises alike. It’s the best option for companies looking to scale quickly and efficiently.</p><p>Consider this: with a traditional server setup, you’re limited by the number of physical servers you can purchase and manage. But with a serverless architecture, you can leverage the resources of an entire cloud provider, scaling up or down as needed. It means that your company can grow without having to worry about managing additional hardware or software.</p><p>And that’s not all. Serverless architectures are also incredibly efficient when it comes to cost. You only pay for what you use, making it an excellent option for companies on a tight budget.</p><p>The serverless stack is worth considering if you’re looking for a scalable, cost-effective solution for your business.</p><p>If you’re looking to future-proof your business and ensure that you have the most efficient and powerful technology stack for 2023, consider adopting one of the stacks mentioned in this article. Of course, there are many other great tech stacks, but these five are a good starting point if you want to be on the cutting edge. <a href="https://www.plego.com/">Plego</a> can help you evaluate tech stacks and find the perfect one for your company. Please <a href="https://www.plego.com/contact-us/">contact us</a> if you have questions about which type of stack would be best suited to your requirements and we’ll work with you to find the best solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c5c87e05096" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Documenting NestJS APIs With Swagger]]></title>
            <link>https://medium.com/@nikitamartynenko0811/documenting-nestjs-apis-with-swagger-b11bf194cc45?source=rss-dab36423ed5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11bf194cc45</guid>
            <dc:creator><![CDATA[Nikita Martynenko]]></dc:creator>
            <pubDate>Fri, 08 Jul 2022 10:30:28 GMT</pubDate>
            <atom:updated>2023-03-04T04:40:50.894Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UfXvuzjh1aBE-sHj.jpg" /></figure><p>Swagger is a free, open-source framework for creating interactive and user-friendly API documentation. It generates interactive web pages that allow you to test an API with various inputs.</p><p>Swagger supports both JSON and XML payloads. The documentation it generates is suitable for developers and non-developers to use.</p><p>You can document your NestJS web APIs via Swagger using simple decorators, without having to leave your IDE.</p><h3>Step 1: Generating the API</h3><p>Before starting, you must create a demo API that Swagger will generate its documentation.</p><p>You will generate the demo API from scratch using the NestJS CLI.</p><p>Firstly, generate a new NestJS project by running:</p><p>Then, change the directory to your already created project by running:</p><p>Next, you’ll generate a REST API with the CLI by running:</p><pre>nest generate resource demo</pre><p>You’ll see a query asking, “What transport layer do you use?” select <strong>REST API.</strong></p><p>You’ll see another query asking, “Would you like to generate CRUD entry points?” Type <strong>Y</strong> and hit <strong>Enter</strong>.</p><p>The command above generates <a href="https://www.makeuseof.com/what-is-rest-api/">a fully functional REST API</a> with CRUD endpoints and without the unit test files. Hence, the <strong>— no-spec</strong> flag in the command above.</p><h3>Step 2: Install Swagger</h3><p>Install Swagger and its Express UI library by running:</p><h3>Step 3: Configure Swagger</h3><p>In your <strong>main.ts</strong> file, import <strong>SwaggerModule</strong> and <strong>DocumentBuilder</strong> from <strong>@nestjs/swagger</strong>.</p><p>DocumentBuilder assists in the structuring of a base document. It provides several methods that you can chain together and close with the <strong>build</strong> method.</p><p>These methods enable the configuration of many attributes, such as title, description, and version.</p><p>Create a <strong>config</strong> object variable in your <strong>bootstrap</strong> function like so:</p><pre>const config = new DocumentBuilder()<br>    .setTitle(&#39;Demo API&#39;)<br>    .setDescription(&#39;A Demo API with CRUD functionality&#39;)<br>    .setVersion(&#39;1.0&#39;)<br>    .build();</pre><p>A new instance of DocumentBuilder creates a base document that matches the <a href="https://swagger.io/specification/">OpenAPI Specification</a>. You can then use this instance to set the title, description, and version via their appropriate methods.</p><p>Next, you’ll need to create a complete document with all the HTTP routes defined using the base document.</p><p>To do this, call the <strong>createDocument</strong> method on SwaggerModule. createDocument accepts two arguments: an application instance and a Swagger options object. Store the result of this call in a variable for later use:</p><pre>const document = SwaggerModule.createDocument(app, config);</pre><p>Next, call the <strong>setup</strong> method on SwaggerModule. The setup method takes in three arguments:</p><ol><li>The Swagger UI path. By convention, you can use “api”.</li><li>An application instance</li><li>The full document</li></ol><p>Additionally, the setup method takes an optional options object. See <a href="https://docs.nestjs.com/openapi/introduction#document-options">NestJS’s documentation on Swagger document options</a> to learn more about it.</p><p>Like so:</p><p>Start your application and go to <strong>http://localhost:&lt;PORT&gt;/api</strong></p><p>You should see the Swagger UI displayed on the page.</p><p>The image above is the default view of the Swagger UI, with all the HTTP routes in your controller defined. You’ll need to customize it to fit your API functionality.</p><h3>Step 4: Customize API Properties</h3><p>By default, Swagger prefixes the entire HTTP route section with a heading that reads “default.” You can change this by annotating your controller class with the <strong>@ApiTags</strong> decorator and passing your preferred tag as an argument.</p><p>Like so:</p><p>The Schemas section contains the Data-transfer objects in your API. Currently, the UI includes none of their properties.</p><p>To declare their properties in the UI, simply add decorators. Annotate each required property with the <strong>@ApiProperty</strong> decorator. Annotate optional properties with the <strong>@ApiPropertyOptional</strong> decorator.</p><p>For example:</p><p>The @ApiProperty and @ApiPropertyOptional decorators each accept an options object. That object describes the property that follows below.</p><p>Note that the options object uses JavaScript, not TypeScript. Hence the JavaScript type declarations (i.e. String, not string).</p><p>Annotating the Data-transfer object’s properties adds an example of the expected data to the Schemas section. It also updates the associated HTTP route with an example of the expected data.</p><h3>Step 5: Set API Responses</h3><p>In your controller class, use the <strong>@ApiResponse</strong> decorators to document all potential responses for each HTTP route. For each endpoint, the different @ApiResponse decorators describe the type of responses to expect.</p><p>We’ve explained <a href="http://www.makeuseof.com/http-status-code/">common HTTP responses</a>, in case you’re unfamiliar with what they mean.</p><p>The @ApiResponse decorators accept an optional object that describes the response.</p><h3>Common POST Responses</h3><p>For a POST request, the likely responses include:</p><ul><li><strong>ApiCreatedResponse</strong>, for successful 201 created responses.</li><li><strong>ApiUnprocessableEnityResponse</strong>, for failed 422 unprocessable entity responses.</li><li><strong>ApiForbiddenResponse</strong>, for 403 forbidden responses.</li></ul><p>For example:</p><pre>()<br>  ({ description: &#39;Created Succesfully&#39; })<br>  ({ description: &#39;Bad Request&#39; })<br>  ({ description: &#39;Unauthorized Request&#39; })<br>  create(() createDemoDto: CreateDemoDto) {<br>    return this.demoService.create(createDemoDto);<br>  }</pre><h3>Common GET Responses</h3><p>For GET requests, the likely responses include:</p><ul><li><strong>ApiOkResponse</strong>, for 200 ok responses.</li><li><strong>ApiForbiddenResponse</strong>, for 403 forbidden responses.</li><li><strong>ApiNotFoundResponse</strong>, for 404 not-found responses.</li></ul><p>For example:</p><p>For PATCH and UPDATE requests, the likely responses include:</p><ul><li><strong>ApiOkResponse</strong>, for 200 ok responses.</li><li><strong>ApiNotFoundResponse</strong>, for 404 not-found responses.</li><li><strong>ApiUnprocessibleEntityResponse</strong>, for failed 422 unprocessable entity responses.</li><li><strong>ApiForbiddenResponse</strong>, for 403 forbidden responses.</li></ul><p>For example:</p><pre>(&#39;:id&#39;)<br>  ({ description: &#39;The resource was updated successfully&#39; })<br>  ({ description: &#39;Resource not found&#39; })<br>  ({ description: &#39;Unauthorized Request&#39; })<br>  ({ description: &#39;Bad Request&#39; })<br>  update((&#39;id&#39;) id: string, () updateDemoDto: UpdateDemoDto) {<br>    return this.demoService.update(+id, updateDemoDto);<br>  }</pre><h3>Common DELETE Responses</h3><p>For DELETE requests, the likely responses include:</p><ul><li><strong>ApiOkResponse</strong>, for 200 ok responses.</li><li><strong>ApiForbiddenResponse</strong>, for 403 forbidden responses.</li><li><strong>ApiNotFoundResponse</strong>, for 404 not-found responses.</li></ul><p>For example:</p><p>These decorators populate your documentation with possible responses. You can view them using the drop-down alongside each route.</p><h3>Viewing Your Documentation</h3><p>When your setup is complete, you can view your documentation on <strong>localhost:&lt;PORT&gt;/api</strong>. It should bring up your interactive API documentation.</p><p>The essentials of Swagger API documentation are the description, response types, and schema definition. These are the basic things needed to create good API documentation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11bf194cc45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 16 Most Important Pros and Cons of using Python for Web Development]]></title>
            <link>https://medium.com/@nikitamartynenko0811/the-16-most-important-pros-and-cons-of-using-python-for-web-development-762abe190b31?source=rss-dab36423ed5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/762abe190b31</guid>
            <dc:creator><![CDATA[Nikita Martynenko]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 11:14:37 GMT</pubDate>
            <atom:updated>2023-03-04T04:46:23.965Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Did you know that Python was named after Monty Python?</em></p><p>One of the world’s <a href="https://survey.stackoverflow.co/2022/#section-most-popular-technologies-programming-scripting-and-markup-languages">most popular coding languages</a>, Python was first conceptualized in the late ’80s, influenced by the ABC and Modula-3 languages. It has come a long way from its first release in 1991 to the 2.0 release when it became an open-source project, and to this day it is gathering a huge, professional community that is constantly improving the technology.<br> <a href="https://www.spreaker.com/user/14406149/the-16-most-important-pros-and-cons-of-u">Listen to “The 16 Most Important Pros and Cons of using Python for Web Development” on Spreaker.</a><br> Is Python good for web development? If you are wondering about this, you can look at examples of what has already been developed with it. This will bring some perspective to the topic before going into Python’s pros and cons.</p><p>Some of the <a href="https://djangostars.com/blog/top-seven-apps-built-python/">top companies</a> use Python in their technology stacks:</p><ul><li><a href="https://www.instagram.com/?hl=en">Instagram</a> — a social media platform that relies on Python to allow its 500 mil daily active users to photograph, edit, store, and share their creations in a person digital album.</li><li><a href="https://www.spotify.com/ua-en/">Spotify</a> — a major market player and a music streaming app that incorporates data analytics to manage its Radio and Discover features.</li><li><a href="https://wordpress.org/plugins/disqus-comment-system/">Disqus</a> — this commenting plugin processes around 50 mil comments per month, and it is available in 191 countries.</li></ul><p>Python web development suits a variety of projects, from simple to complex. It is widely used in different spheres such as travel, healthcare, transportation, finance, and many others for web development and software testing, scripting, and generation.</p><p>Python’s popularity has to do with the various benefits it offers, like the simplicity and elegance that attract big companies including Dropbox, Instagram, and Spotify. However, while there are many advantages to using Python for web development, there are also a few pitfalls. Let’s check them out.</p><p>There are several factors that simplify the use of Python for web development:</p><ul><li><strong>Low entry barrier</strong><br> Python is similar to the English language we use in everyday life. The simplicity of the syntax allows you to deal with intricate systems and ensure that all the elements have a clear relationship with each other. Thanks to this, more newbie coders can learn the language and join the programming community faster.</li><li><strong>Good visualizations</strong><br> Representing data in a format that can be easily understood is achieved using different plots and charts. They are an efficient way to visually present and comprehend data. Web development companies utilize Python libraries (e.g., <a href="https://matplotlib.org/">Matplotlib</a>) that make it possible to visualize data and create clear and easy-to-understand reports.</li></ul><p>Python is incredibly easy to read, so developers typically have no problems understanding code written by their fellow programmers. This makes the communication between developers working on the same project much more efficient. And a great selection of <a href="https://djangostars.com/blog/python-ide/">IDEs for Python development</a> makes web programming even more comfortable.</p><p>It doesn’t take much effort to <a href="https://djangostars.com/blog/asynchronous-programming-in-python-asyncio/">write and maintain asynchronous code</a> using Python since there are no deadlocks or research contention or any other confusing issues. Each unit of such code runs separately, allowing you to handle various situations and problems faster. This makes Python website development an ideal choice for many companies who want to create their product faster.</p><p>Compared to other coding languages, such as Java, <a href="https://djangostars.com/services/python-django-development/">Python</a> has a less-limited programming approach. It has multiple paradigms and can support a multitude of programming styles, including procedural, object-oriented, and functional ones. This makes Python a great language for <a href="https://djangostars.com/blog/python-best-programming-language-for-startup/">startups</a> since you might need to change your approach at any given moment.</p><p>Here’s what it gives you:</p><ul><li><strong>Fast development.</strong><br> Python is not just one of the most rapidly developing coding languages, but also one that allows for quick prototyping and iterations. This makes the work easier and far more productive for developers. This also makes <a href="https://djangostars.com/blog/python-best-programming-language-for-startup/">Python a great language for startups</a>, as often faster time to market means greater competitive advantage.</li><li><strong>OOP becomes easier.</strong><br> Object-oriented programming, also known as OOP, is a paradigm that organizes different behaviors and properties into several objects and classes. Each of these classes has a function, so if an error occurs in some part of the code, the other parts are not affected. The operation of OOP is considerably simplified in Python, which makes development less costly and time-consuming.</li><li><strong>Rich standard library and ecosystem.</strong><br> Python’s libraries feature a huge amount of pre-written code. Hence, developers don’t need to waste time creating basic items. These libraries also allow programmers to handle and transform the data required for continuous data processing in Machine Learning (ML).</li></ul><p>Python is a popular choice for enterprise software applications, largely thanks to its smooth integration with other languages traditionally used in enterprise development, such as Java, PHP, and .NET.</p><p>Python calls from and to Java, C++ or C code directly allowing considerable process control and implementation of the most common protocols and data formats.</p><p>Apart from this, it can be applied to assembling new and old fragments of infrastructure, which is a typical case in complex mobile applications.</p><p>Another good thing about Python web development is that it has many frameworks that simplify the development process. Depending on what you’re doing, you may need different frameworks.</p><p>Let’s take a look at the most well-known <a href="https://djangostars.com/blog/python-frameworks-for-web-development/">Python frameworks</a>.</p><ul><li>This framework is great for fully-fledged web apps and mid-range scalable projects. It has built-in features and allows for code re-usage, coherent modification of different components of the code, and other functionality that <a href="https://djangostars.com/blog/top-14-pros-using-django-web-development/">simplifies web development in Python</a>. Django works well with Oracle SQL, PostgreSQL, MySQL, and other well-known databases. Find out the <a href="https://djangostars.com/blog/10-popular-sites-made-on-django/">best Django websites</a>.</li><li>With this framework, you can start small and scale if needed. Pyramid can be used with various databases and applications or extended with plugins — python web developers can add whatever functionality they need. That’s handy when you need to implement various solutions in one task.</li><li><a href="https://www.turbogears.org/">TurboGears<br> </a>TurboGears consists of several components such as Repoze, WebOb, and Genshi, and is based on the MVC architecture. It’s good for fast and efficient web application development, which is also more maintainable. With this framework, you can write small or complex applications using minimal or full-stack modes respectively.</li><li>This framework’s philosophy is to provide a simple and manageable solution that can be easily customized. Flask defines itself as a microframework and is most commonly applied to small solutions whose main priority is lean functionality. The framework is also used for creating prototypes.</li></ul><p>There are a variety of packages and libraries available for developing scientific and numeric applications, as well as toolkits (e.g., VTK 3D and MayaVi), a separate imaging library, and many other tools. The most commonly used ones are:</p><p>Machine learning (ML) and artificial intelligence (AI) technologies are gaining increasingly more attention, so more developers are trying to incorporate them into various projects. This is possible if you use the right language.</p><p>According to <a href="https://community.ibm.com/community/user/legacy?lang=en">Jean Francois Puget</a>, a representative of IBM’s machine learning department, Python is the top language for ML and AI projects, and many developers agree. Python has efficient ML packages, tools for visualizing results, and goes way beyond data analysis and other features that <a href="https://djangostars.com/blog/why-python-is-good-for-artificial-intelligence-and-machine-learning/">benefit this area of application</a>.</p><p>Read more: <a href="https://djangostars.com/blog/benefits-of-the-use-of-machine-learning-and-ai-in-the-travel-industry/">ML &amp; AI in The Travel Industry</a></p><p>Thanks to its strong integration with C, C++, and Java, Python can come in handy for application scripting. Designed to be embeddable from the very beginning, it can be very useful for customizing large apps and making extensions for them.</p><p>What is Python used for in web development and beyond? One more answer: test automation. Many QA automation specialists choose Python for its simple learning curve — it’s also great for those with a more limited technical background — strong community, clear syntax, and readability. Python even has an easy-to-use unit-testing frameworks (e.g., you can perform <a href="https://djangostars.com/blog/mobile-geolocation-testing/">geolocation testing</a> for mobile applications with it).</p><p>Creating prototypes in Python has proven to be a fast and simple process. The agility of the programming language allows for easy code refactoring and quick development of the initial prototype into the final product.</p><p>Python has an open-source license that makes it easily accessible to users and facilitates redistribution and unrestricted modifications. Developers can freely use the language and contribute to its improvement.</p><p>One of the pros of using Python for server-side scripting is its simple syntax, as mentioned above, which speeds up the process significantly. The code consists of functional modules and connections between them, which allows you to execute the program algorithm based on user actions. Python also supports the graphical user interfaces required in web development.</p><p>Python has decent capabilities for dynamic semantics and fast prototyping, which is possible thanks to its interactivity and portability. It can easily be embedded in a wide range of apps, even ones that use different coding languages. Consequently, you can effortlessly fix new modules and extend Python’s core vocabulary. It can connect diverse components. No wonder it’s sometimes called a “glue language”.</p><p>Some of you may ask “Why Python is not used for web development?”. Despite Python’s advantages, it also has downsides you should keep in mind if you’re considering using this language for your project.</p><p>When you need to have an app created for you, you certainly want the most experienced developers to do the job. However, it’s not so simple with Python, since not many expert programmers are working with this language, especially when you compare it to Java.</p><p>Multiprocessing is an important part of writing an application. Python does support multiprocessing, although it might not be as flexible or convenient as other languages. This can create certain limitations when you’re writing the code.</p><p>Python is often criticized for its speed. It is an interpreted script language, which makes it relatively slower than a lot of its compiled counterparts, such as C/C++ or Java, due to the different methods it uses to translate code. Yet, some Python benchmarks work faster than those of C and C++.</p><p>That being said, Python is not the only one with potential speed problems. Ruby, Perl, and even JavaScript are on the <a href="https://attractivechaos.github.io/plb/">slower end of the scale</a> as well.</p><p>Some issues connected to speed have been addressed and optimized, so Python remains one of the top choices of <a href="https://djangostars.com/company/team/">software development teams</a>.</p><p>It’s not a bad language for mobile development. It’s just that few companies use it for that purpose, preferring <a href="https://djangostars.com/services/mobile-app-development/">native development for iOS and Android</a> or <a href="https://djangostars.com/services/react-native-development/">React Native development</a>. You’ll probably have a hard time recruiting developers with experience in Python mobile development, too, for the same reason. It’s just not as popular as other technologies in this sphere.</p><p>Python is a language known for the flexibility of its data types. This results in fairly high memory consumption and makes it inconvenient to use for memory-intensive tasks.</p><p>Python is dynamically typed, meaning that it executes certain tasks during app runtime that would otherwise be completed in a statically typed language. This puts some restrictions on the design. If your design is loaded with elements, it might stall the program and prevent smooth operation.</p><p>Another thing you should be aware of when considering Python for your project is that concurrency and parallelism aren’t intended for elegant use in Python. Because of that, the design might not look as sophisticated as you’d like.</p><p>Can Python be used for web development? This article was intended to provide a detailed answer and describe the pros and cons of this programming language.</p><p>Python allows you to develop clear and simple applications that are easy to get from a small project to a full-fledged, complex app. Whether you’re a newbie programmer learning how to code or an owner of your business, Python can be a good option for many types of projects.</p><p>It’s recognized as one of the <a href="https://djangostars.com/blog/python-best-programming-language-for-startup/">best programming languages for startups</a> — and it’s easy to see why when you compare side-by-side Python’s advantages and what startups are all about. Startups are constantly searching for certainty and reduced risks, they have limited resources, and need room to grow. On the other hand, Python is flexible and easy to scale, doesn’t require a big team, and can be used to build prototypes and MVPs.</p><p>Django Stars, a <a href="https://djangostars.com/services/web-development/">Python web development company</a>, has been using the language for many years. We’ve completed various complex projects and have a number of successful examples in spheres such as e-commerce, real estate, and finance. These include:</p><ul><li><a href="https://djangostars.com/case-studies/sindeo/">Sindeo</a> — a real estate platform that provides information on lenders and mortgages.</li><li><a href="https://djangostars.com/case-studies/moneypark/">MoneyPark</a> — a Swiss company that provides personalized financial advice on insurance and mortgages.</li></ul><p>So, whichever sphere you work in, web development in Python is worth your attention. It offers simple solutions without unnecessary details, saves time, and ensures a high level of security.</p><p>Python is used and trusted by many renowned companies. Some of the <a href="https://djangostars.com/blog/top-seven-apps-built-python/">largest and most trusted global firms use Python</a> as their main coding language, along with the Django platform. Instagram, Pinterest, Bitbucket, and Dropbox are a few examples of companies that go for Python web development services.</p><p><strong>Сontact Django Stars if you are looking for an experienced Python development team for your project.</strong></p><p>Frequently Asked Questions</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=762abe190b31" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>