Skip to main content

Posts

Why Software needs an Architecture - Proper method explained ? - Testability, Modifiablity, Readability, Maintainability etc.. All abilities !

Hey Readers, This post is the continuation of the previous post on "Why Software needs an Architecture ?"  Before continuing on this post, please read that so that the its going to be more interesting. In previous post we discussed about the importance of architecture, role of a developer in architecture implementation and a proof through a code using a use case of OTP sender. We have seen a improper code and found what are all the problems it is giving us though it served the purpose of sending OTP. In this pose we will see on implementing the same in the proper way, considering certain, design patterns like,  strategy pattern, factory pattern / Creator Pattern, Manager / Controller Pattern. Let's us consider, Testability as major NFR (Non functional requirement) in this post. Modifiability Re-Usability Extendability Additional / incremental changes ability. Below is the live IDE for the code to run and test. Below directory structure can be ...

Why Software needs an Architecture ? - Testability, Modifiablity, Readability, Maintainability etc.. All abilities !

H ello Enthusiasts ! Happy to see you back :-) !  Trust me its going to be the best day today with a worthy read on "a buzz word, that we hear every day in our work or in the world around us often", "a word that never been changed for years and years and stays strong changing the life of human kind", a word that is being the base of any system in the world or even to the universe as a system". Fine I can hear from your minds to reveal the interesting, core word of the this read and that most valuable word - "Architecture". Wikipedia says about architecture as - "Architecture is both the process and the product of planning, designing, and constructing buildings or any other structures. Architectural works, in the material form of buildings, are often perceived as cultural symbols and as works of art. Historical civilizations are often identified with their surviving architectural achievements."    :-O Yuhoooo !! Architects ou...

A.P.I call or async await not working in Array forEach ?

H ello Readers, Welcome back. You would have wondered why does forEach function on the array does not wait for any asynchronous function even if we provide the async await in the node js. If you are the person, wondered about this ever, this post is right for you. Non working example : Lets consider the below snippet, this will not wait for the asynchronous process to wait. I am making a setTimeout to mock the API call async process. This will result the count as, Output : count = 0 OMG !! Why it doesn't work ? Answer probably might be lying inside the Array prototype from JavaScript. Lets take a look inside the "Array.prototype.forEach" function. From the snippet its clear that, the for loop in which they call the callback function does not wait for the asynchronous process to run in the callback. So this forEach is not build for asynchronous process itself. So can't I use forEach any more for running a asynchronous function ? Answer g...

Machine Learning - Types of Learning - Classification Explained

W elcome back to yet another post on the Machine Learning - Types of learning. In the last post we read about Regression type of learning and its various methodologies. If you did not come across that post yet please click on this link to read that. After reading that, this interesting post will seem more interesting 😎 For the people who did not read the previous post short recap: we are seeing each and every type of learning methodology in machine learning that makes the machines to learn. Following types of learning procedures can be identified, Regression - Visited last week - click here to read this Classification  - This is our topic today  Clustering Rule association  Ensemble  Reinforcement Deep Learning Well let's dive deep into the classification. Classification: Before we see how the classification works, Let me tell you in english, in general what does this classification means !. Wikipedia says that classification...

Machine Learning - Types of Learning - Explained

W elcome back readers !! So far we are trying to understand the Machine learning in a simple way, keeping the beginners context in mind ! This is one more post, I thought I would write on explaining the various learning types in the Machine Learning. Obviously the word says "Machine Learning" - means machine learn something. How do machine can learn something is what we understood in our various posts before ( here ). We will see about how many types of learning are possible by the machines. Here when I say types of learning, I say about the various classification of learning procedures (Algorithm - Step by step procedure to solve a problem). Types of Learning: Following types of learning procedures can be identified, Regression Classification Clustering Rule association  Ensemble  Reinforcement Deep Learning I can understand that this sounds Greek and Latin now, trust me I will make you understand all this in easy way. We can't cover all the types...

How Machine Learning Works ? - Data Rules the Kingdom

W elcome Back Readers !, For those who have not read the previous post on How Machine Learning works ? Please do read previous one before continuing this so that it would be more easy to understand. You can find the previous post here How Machine Learning Works ? - Mathematics Every Where . For other who are ready to join with me in this journey to understand the Machine Learning, Thank you for being with this post. Till now we are discussing on the the title "How Machine Learning works? " and to understand that we have seen in the first post that there exist the patterns or trends in the data and we try to find that in terms of a mathematical equation called a model and try to fit to the new data that we have not came across for predicting the values. Wow may be we got the entire process complete with this. But there are few thinks that needs to be cared while training the model or creating the model or while processing the data for the model creation. ...