In the previous tutorial, we introduced you to a little test driven development with Python (TDD). Welcome! to the second part of our Python TDD tutorial. Here we are going to continue the development of propers library.
Let’s walk through TDD Python. Doing a Python test is very easy. I have written unit tests in Python, Java and C++, utilizing Google Test, Google Mock, JUnit, TestNG, Mockito and Powermock (Powermock+mockito). Python 3 is the easiest to test of them all. Python 3 being batteries included, comes with both a unit testing framework and a mocking framework. Let’s do some Test-Driven Development with Python 3.
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).
It’s not hard to see that Google’s got some big bucks simmering away under its AI research projects. And they certainly seem to be making good progress. Thanks to the creation of AutoML in May 2017 by the AI crunchers at Google Brain, we’ve got Artificial Intelligence that’s capable of creating its own AIs. So what’s new? Well, in a recent turn of events, Google AI has now progressed to creating a ‘child’ that surpasses every other human-made AI system like it. Continue reading
And Facebook Messenger is down again, for what appears to be the second time this week. Even as Facebook maintains that it’s platform is ”healthy” on its official Status page, users from around the world, particularly those in Europe and UK are complaining of outages across all Facebook services. Continue reading
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.
Good old Facebook Live. It’s the feature you’ve always used to broadcast live video to friends and followers, and it now comes with a fresh new twist. In its never-ending quest to innovate the way we share information, Facebook has introduced a handy new feature that allows users to share their screens. And so starting from today, the new Facebook Live screen share feature enables Facebook users everywhere to directly share their screen with friends and followers. Continue reading
Google Photos is great. We use it to keep track of everyone’s photos, from cute snaps of Mom, Dad down to uncle Joe in his green pajamas. The app has them categorized and stored neatly away so we can always find them with the swipe of a finger. But what about our cuddly fur babies? Too long have their pictures been scattered all over your photo galleries, but no more… With this latest update on Google Photos, you can now see all your cute pawsome pictures in just one place. Continue reading
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.