Posts

Wanna see who edited each single line of code?

Image
Version Control software helps us keep tracking of every modification to the source code in a special kind of database. Today, most of the development teams use git and GitHub for version control of their software. It happens very often that we need to know who edited a single line of code. But, what if we need to see who edited that line at a glance?? GitLens GitLens is an extension that can be installed in VSCode. It supercharges the Git capabilities built into Visual Studio Code. It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more. The animated image above shows some of the GitLens features. The most wanted feature which we are looking for is called “Current Line Blame”. It adds an unobtrusive, customizable, and themable, blame annotation at the end of the current line. Current Line Blame For detailed information...

Search Your Favorite Development Language Docset Offline!

Image
Each programming language has online documentation needed during applications development. The documentation is important to all levels of developers. The online presence means that you have to be online in order to search for a specific language detail. So, what if you were offline or the network disconnected?? In this article, I will list the two most important offline docsets applications for MS Windows and macOS so you will not lose documentation access when you are offline. Zeal Zeal is an opensource offline documentation browser powered by Digital Ocean for MS Windows and Linux. After installing Zeal, go to Tools -> Docsets to download the needed docsets for your favorite programming languages. Zeal Zeal has plugins for code editors, so you can integrate it with your favorite code editor. Adding Zeal plugin makes it easy for you to search for a specific detail while coding. For more details, you can go to  https://zealdocs.org/usage.html . Dash Dash is an API Doc...

Let's Learn Flutter

Image
What is Flutter? Flutter is an app SDK (Software Development Kit) developed by Google for building native cross-platform apps for iOS, Android, and web with one programming language and codebase. The goal is to enable developers to deliver high-performance apps that feel natural on different platforms. It embraces differences in scrolling behaviors, typography, icons, and more. Dart Programming Language Dart is a client-optimized language (focused on UI) for fast apps on any platform. It was unveiled in 2011. The Dart project was founded by Lars Bak and Kasper Lund. Dart 1.0 was released on November 14th, 2013. The Dart language is object-oriented and strongly typed. It is like a mixture of JavaScript, Java, C#. Everything’s a widget This is the main core principle of flutter. Widgets are the basic building blocks of a Flutter app’s user interface. Each widget is an immutable declaration of part of the user interface. Unlike other frameworks that separate view...

10+ "Must Have" WordPress Plugins for Business Websites

Image
WordPress today is supported by thousands of plugins which add value to the website you are creating according to your business. In this article, I will list the Must Have WordPress plugins for business websites. WordPress plugins have various purposes including extending functionality, securing, backing up a website, SEO optimization,…, etc. So, I will list the top must-have plugins for business websites Why add plugins? WordPress is an online, open-source website creation tool written in PHP. It is made for all kinds of websites including Business websites, eCommerce stores, Blogs, Portfolios, Resumes, Forums, Social networks, Membership sites, …, and pretty much more. In order to turn the WordPress site to the kind you want, you have to use plugins to extend its functionality. Additionally, you have to add plugins which allow you to customize the admin area and add more security with backup and restore functionality. What are the plugins? The plugins below are the ones wh...

How to create a WordPress custom post type plugin (Fast Tutorial)

Image
Today, WordPress has a market share of about 60% of web technology usage. So, it is the most used web platform around the world.WordPress framework is very rich and full of features which make it easy to learn. There are many ways to do things in WordPress and this article will show you an easy way to create a WordPress custom post type plugin. What is a custom post type According to WordPress Codex, “Custom Post Types” also known as “Custom Content Types” is the specific type of post types that can be added to your WordPress using a simple function called the register_post_type(). The function allows you to add the new custom post type in accordance with a number of specifics such as supported features, availability, and labels. Custom post type function The fastest way to generate a custom post type function is to go to genereatewp.com and sign up for an account. Then, go to generators and search for custom post type generator and click on it or open it via this link . After that, F...

Organize Loading JS Modules in Browserify Apps

Browserify has to be able to statically analyze all of the require statements at build time so it can know what files it needs to include in the bundle. That requires that  require  can only be used with a string literal in the source code. To organize loading js modules, there are many ways to do that. By the way,  Browserify   is a development tool that allows us to write node.js-style modules that compile for use in the browser. Just like node, we write our modules in separate files, exporting external methods and properties using the module.exports and exports variables. Organize Loading JS Modules in Browserify Apps My way is to make a lazy module loader which returns one object of modules that are needed to be instantiated one time only (Singleton Objects). This loader can be accessed in the global scope and it is very easy to use. Modules Loader Let’s assume that you have written two separated modules named LightComposer.js and TextTranslator.js. These two modules are need...

Improve PHP Application Speed By Using APCu

Image
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. This extension is considered unmaintained and dead. The new alternative is called APCu. APCu is APC stripped of opcode caching. The first APCu codebase was versioned 4.0.0, it was forked from the head of the APC master branch at the time. PHP 7 support is available as of APCu 5.0.0. APCu is used to keep copies of data in memory, then reducing the time required to make queries, data filtering, data processing, etc. Many frameworks like WordPress supports APCu caching by adding caching plugins such as W3 Total Cache, or you can make your own custom code to use it the way you want. Installation On Linux systems such as Centos, you can install it via the Yum package manager according to php version yum install php56w-pecl-apcu On Microsoft Windows with XAMPP installed, you can enable it by adding the dll extensi...