Welcome to another post in Scala. In this post, I’ll be discussing writing unit tests in Scala. Some form of unit testing is available in almost all major programming languages these days. What are unit tests and why are they important? Before going to technical part, let’s discuss what actually unit tests are and why… Read More How to start writing tests in Scala?
Welcome to my new post on Python. In this post, for loops will be covered. Introduction Looping means to repeat. We use this technique in programming to repeat tasks. We define the condition for repetition or the number of iterations to repeat and according to that condition, tasks will get repeated. In Python, there are… Read More Python 5: For Loops
Welcome to my first article on Scala. In this post let’s discuss the implementation of linear and binary search in scala. These are some of the popular searching algorithms. Lets see how to implement them in scala. Linear Search Linear search is searching technique that searches for any item serially from the first element until… Read More Scala: Linear and Binary Search Implementation
Welcome to 4th Python post. In this post, I’ll be discussing decision making. Introduction As simple as it sounds, decision making is the technique of making decisions based on some conditions. Suppose you’re developing an application for college admission and only want to admit students whose age is greater than 18, then, in this case,… Read More Python 4: Decision Making(if…else)
Welcome to 3rd post on Python. In this post, I’ll discuss slicing. Just as the name suggests, slicing is to slice data into parts and get the required part from that data. As you learn more and more Python, you’ll come across slicing in different data structures in different applications. So let’s get started. Indexing… Read More Python 3: Slicing(Efficient method to access elements) Explained
After writing posts on variables, tuples, lists and dictionaries, I realize I’ve missed Strings. I missed one of the core parts of any programming language. So instead of naming it the 3rd post on Python, I’m simply naming it Python-Strings. Hope it makes sense. So let’s start. Introduction String, in a very basic definition, is… Read More Python: Strings Explained
Welcome to 2nd post on Python. Please visit first one on variables and tuples before starting this one. In this post, I’ll be discussing lists and dictionaries. Just like tuples, lists and dictionaries are also data structures in Python but with different purpose and definition. List Dictionary List List is a mutable data structure that… Read More Python 2: List and Dictionary