Reflection is a useful feature in Java that allows you to programmatically navigate and manipulate an object. Java frameworks created for Object Relational Mapping (Hibernate, etc..) and Testing (JUnit, TestNG) utilizes reflection. Also, you can use reflection to simply access private member values and methods. (Sometimes required when you are dealing with third party code).
Are you a cry baby who cannot find things on the internet? Want to become an Internet Search Ninja? Don’t know where to look? Here’s a tutorial for ya! Let’s learn how to improve google search results the right way.
Python dictionary is an easy to use data structure. In the previous tutorial I covered creating, setting values, deleting values and checking existence of a key. For this tutorial I am going to cover how to access keys, values and items, how to use dictionary comprehension and many more.
Python 3 dictionary is a versatile and easy to use hash-map implementation. It is simply a built-in data type that you can hack upon.
Python 3 sequence slicing is a pythonic way of accessing a portion of a sequence. Slicing copies, the selected data to a new sequence of same type (Shallow copy).
Major python 3 sequence types are str, bytes, bytearray, list, tuple and range. This tutorial focuses on how to create and access sequences.
Python 3 while loop is very easy to use. Syntax is simpler than for loop and its usages are limitless.
In this tutorial we are going to build a small class structure to access a to-do table. Python is batteries included language. So obviously it has the necessary tools and APIs built in.
One of my favorite books on coding is Clean Code by Robert C. Martin. Here’s one of the most important concepts that caught my eye: Readable code is important. You need to write code for people and not for machines. So what does reading good code have anything to do with writing it? Let’s find out.
For loops are one of the basic iterative structures available in most programming languages. You’ll also find that there is a variant of typical for loops called foreach loops that lets you access elements of a sequence. In python 3, the for loop works similarly to the foreach loop.