Skip to main content

Posts

Showing posts from 2019

Node.js

Node.js Node.js is a JavaScript framework which build on V8 engine and Chrome' s JS engine.  It's open source and supports to all server-side and network applications. Developers' main purpose was to build a framework that supports to create real-time websites websockets.  Node.js holds the wold largest open source library.  It's lightweight and efficient because of the event driven, non-blocking I/O model. Where to use Node.js Node.js is specifically made to build fast and scalable network applications. It also can be use to computational applications but is doesn't suite to heavy computational and CPU intensive applications. Node.js use non-blocking I/O model to handle huge numbers of simultaneous connections upto 1 Million with high throughput without spawn threads to each connection. Because of that Node.js is using small amount of resources when comparing with other frameworks. Node.js is highly applicable to Data Streaming applicat...

MongoDB

MongoDB. MongoDB is a document database. It is a very flexible database system because it stores data in JSON-like documents and It allows to change the data structure over time. It's  fully packed with a function system that makes development easy. MongoDB supports to over 10 languages. It contains drivers to most of the popular languages and it's growing fast with the help of the community. Connecting to the MongoDB. You can connect to a locally hosted MongoDB database with JavaScript by using below code. Database name is = 'techciv' Collection name is = 'posts' var url = 'mongodb://localhost:27017/techciv' ; co( function *( ) { const db = yield MongoClient.connect(url); console .log( "Connected" ); yield insertDocuments(db, null ); yield findDocuments(db, null ); yield indexCollection(db, null ); yield aggregateDocuments(db, null ); db.close(); }).catch( err => console .log(err)); Ins...

JavaScript and It's Frameworks

What is JS (JavaScript)? JavaScript is a multi-paradigm and single threaded script language. Which means JS supports functional programming as well as the Object Oriented Programming(OOP) and It's applications are run using a single thread by default. JS is specifically made for the Web. Nowadays it's a must use JS for web applications to optimize and make it work as the world need. JS have ability to do calculations, validations more accurately and efficiently. With JS, HTML and CSS can be modified without refreshing the web pages. What are JavaScript Frameworks ? If we think a website as a desktop PC. When you building new PC, It's almost impossible and impractical to build it from scratch using small microchips, smd type components and home made PCBs.But you can use pre-manufactured hardware components modules like RAMs, HDD, Motherboard and etc. Using pure JS to your website is like building a PC from scratch but It's possible and very hard to ge...

What is Version Control and It's uses

What is Version control ? Version controlling is a technique to stage your code improvements in secure manner.  There are lot of tools to control versions called as Version Control Systems. Those VCS tools helps users to manage a online repository as well as the local project files. Version Control Systems (VCS) VCS are the tools that help to create  and manage online repositories. VCS systems are actually work like a database. You can track all coe changes using pre saved snapshots of your whole project. There are lot of VCS with a wide variety. some are open source and some are not. CVS, GIT, GitHub are some of the popular VCSs.  Benefits of using VCS. VCS allow developers to develop and modify there existing code without facing to the risk of breaking the whole system. VCS help to eliminate the single point of failure. Developers can revert their changes if something went wrong while the upgrading process. VCS helps to share codes and allow mul...

Best practices of Software development

Best practices of Software development. Code quality Unit testing Code review Version controlling 1. Code quality. Quality of the code is very important to understand the code. A working code with bad code quality is like a wearing a dirty clothes. You can fulfill your main purpose but it isn't pleasant to others to see. So your code must be easily readable and  understandable to others.  You and your co-workers will be in trouble when dealing with code with poor quality. You can frequently check your code quality to maintain a good code quality using various types of tools. Some are free and integrated with IDEs. You should eliminate code duplication and complexity.  2. Unit testing Unit testing helps developers to identify errors prior they integrate the full system. Unit testing should be done without damaging existing codes. Nowadays there is a huge variety of testing tools like Junit, EMMA, CodeCover. Basically ...

Application Frameworks

What is an application framework ? Application framework basically contains fundamental structure to support developing softwares for specific languages. It made of software libraries and acts like a supporting skeleton to a application when building an application. It helps to lessen the general issues during developing an application by reusing of codes that shared across many different modules of an application. Application frameworks principles. There are set of principles that are very useful when building a team, implementing a design, and delivering the application to end users.These principles help to keep it small, design for the developer, and make it networked. With these principles, you can design a robust, complex application that can be delivered quickly and securely, scaled easily, and extended simply. Principles S.O.L.I.D Guidelines for approaching the system. Guidelines for implementing the system. Practices S.O.L.I.D The SOLID principles o...