Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Articles Tagged ‘development’

Webpack demystified

Saturday, July 29th, 2017 by Servage
Unknown-1Webpack is one of the must-know tools for front-end developers who are working with Node.js. Webpack is a module bundler for JavaScript assets. However, it is also capable of doing much more than just that, making it a rather big and complex tool. Let’s clear the confusion around the many features of Webpack by checking what it’s most commonly used for and how it all works. Bundling Files One of the primary features of webpack is to bundle JavaScript files together. These files are often written by you and include npm packages that your application depends on. Webpack takes the files and dependencies and builds one JavaScript file, often called a bundle, from ...

Learn about OAUTH

Thursday, July 20th, 2017 by Servage
oauthOAuth is an authorization standard that can be found on websites, APIs, web applications built with React or AngularJS and more. OAuth is often used to let other websites access user information on another website. OAuth can be used for various types of authorization, so let’s see how it works in more detail. Why OAuth? As mentioned previously, OAuth gives a website access to a user’s profile information on another website. When you sign up on a website, you have likely seen the option to sign up using your Google, Facebook or other account. In these cases, the signup process is handled by OAuth and your personal information, such as your name and ...

Top Git Clients for Developers

Tuesday, May 16th, 2017 by Servage
gitUsing a version control system (VCS) is one of the most valuable tools for a developer. If you code every day, you likely use Git or some other VCS daily too, or at least you should. Because Git is a big part of a developer’s daily workflow, it is good to choose your Git client wisely. So, let’s find out what are the pros and cons of some popular Git clients to find out the best one for you. SourceTree SourceTree is one of the most popular Git clients out there. It has a good graph tree feature to track what’s happening inside a project and all of its branches. SourceTree supports all ...

Common design-patterns explained

Tuesday, May 2nd, 2017 by Servage
design-patternsDesign patterns are used in software design to overcome common problems. For instance, what if you need a class that handles all database connections and you want to be able to create only one instance of that class? This is where design patterns are handy. They help you solve common design problems with universal solutions that you can also find in other applications. Singleton Pattern Let’s start with a simple pattern. Singleton is a design pattern whose purpose is to keep only one instance of a class. This way, there is no need to instantiate a new object every time you call a method. A singleton class can be created by making the constructor ...

Testing APIs with mock data

Wednesday, April 5th, 2017 by Servage
api-mockIt is common to see a front-end application that gets its data from a back-end API. If you are working on one and don’t have a working API yet, where could you get data to test your application? You could always hardcode some fake data into the application itself, but what if you could use a real API and real HTTP requests instead? Let’s look into some free API mocking services that allow you to do this. JSONPlaceholder jsonplaceholder.typicode.com is an API testing service with a set of commonly used data. You can fetch users, posts, todos and even photos and their thumbnails from the API. In some cases, all type of data ...

Comparing development environments

Sunday, April 2nd, 2017 by Servage
development-environmentWhen it comes to web development, there are many development environments to choose from. Roughly speaking, a development environment means the computer on which you run the applications you are developing. Such a computer can be virtual or physical and local or remote. This time we will compare popular development environments, such as Vagrant, and see what advantages and disadvantages each has. Vagrant Vagrant is one of the newest and most used development environments by professional developers. Here is how it works: You install Vagrant and a virtualization environment compatible with it, either VirtualBox or VMWare. Next, you open a command line and tell Vagrant which type of development environment you would like ...

Code linting explained

Friday, March 17th, 2017 by Servage
codeLinting is a term you hear every now and then, but what does it mean? Linting is related to source code analysis, which is something you should do for your code as you develop. After reading this article you will be more familiar with these things. Let’s find out what linting is and how to do it with CSS, JavaScript and PHP code. Linting Explained So, what is this mysterious “linting” people are sometimes talking about? Simply put, linting is a code review method where a program automatically analyses source code to detect issues. Lint was the name given for a C program that was used for this type of code analysis decades ...

Best IDEs and editors for web development

Saturday, March 11th, 2017 by Servage
code-editorA code editor is one of the most important tools of a web developer. It can save you from excessive typing, logical code errors, typos and can provide suggestions for better code. Therefore, you should pay attention to your code editor of choice. We have collected a list of IDEs and tools that are often preferred by professionals as well as editors that were the most popular in 2016. PhpStorm and WebStorm These two development environments are commonly found in companies. PhpStorm is a great choice for PHP development while WebStorm is targeted for JavaScript developers. Both of them also support HTML and CSS, and PhpStorm also supports basic JavaScript. Both of the ...

Automating testing with continuous integration

Friday, December 16th, 2016 by Servage
Continous-IntegrationIf you are writing tests for your application or your application must be prepared for release each time a new version is created, you should be using continuous integration (CI). It allows you to automate both of these processes by triggering them whenever you want, such as when you push a commit to a Git repository. Continuous integration can save you a lot of development time, and this is how you can get started. Why Continuous Integration? If your application is still in development, probably the biggest advantage in CI is the ability to automatically run tests for new features. You can also use it to build your application from source code into ...

Working with acceptance testing

Saturday, December 3rd, 2016 by Servage
AcceptanceTestingSoftware testing is important, and hopefully all developers agree with it. Finding a bug at an early stage is much easier and cost-effective to solve than letting it go unnoticed for a long time. But how does testing a web application work? Let's look into one way to do it: Acceptance Testing. Acceptance Testing explained Acceptance testing means the process of testing that an application works as it should. In a web application it works by clicking buttons, submitting forms and tweaking settings. Acceptance testing is usually the last step of testing. If you have different types of tests, you usually run unit and functional tests before acceptance tests. In acceptance testing, the tester ...