Posts

Python Object and Data Structure

Numbers - FAQ Numbers FAQ  1. What's the difference between floating point and an integer? An integer has no decimals in it, a floating point number can display digits past the decimal point. 2. Why doesn't 0.1+0.2-0.3 equal 0.0 ? This has to do with floating point accuracy and computer's abilities to represent numbers in memory. For a full breakdown, check out: https://docs.python.org/2/tutorial/floatingpoint.html https://github.com/Radhika108/pythonIntroduction/blob/master/01-Numbers.ipynb Strings FAQ 1. Are strings mutable? Strings are not mutable! (meaning you can't use indexing to change individual elements of a string) 2. How do I create comments in my code? You can use the hashtag # to create comments in your code https://github.com/Radhika108/pythonIntroduction/blob/master/02-Strings.ipynb Strings FAQ 1. Are strings mutable? Strings are not mutable! (meaning you can't use indexing to change individual elements of a string) ...

Python 3 - Learning the Basics

Image
Command Line Basic Find your directory: Windows Command: 1. search for cmd: cd - for current path 2. For content of Directory: dir 3. Change folder cd and name folder back cd .. 4. Clear screen cls Linux and MacOS 1. Open Terminal search terminal 2. working directory pwd - print working directory 3. list folder ls 4. change directory cd desktop Install Python: https://www.python.org/downloads/ https://www.anaconda.com/products/individual https://docs.conda.io/en/latest/miniconda.html Running Python Code: 1. Download IDE, of your choice 2. Create your first program:       print("Hello World") 3. Save as hello.py 4. Navigate to your location of hello.py, type python hello.py and enter You should get an output Hello World

Test Process in Continuous Testing (DevOps)

Image
Continuous Testing  is defined as a software  testing  type that involves a process of  testing  early,  testing  often,  test  everywhere, and automate. It is a strategy of evaluating quality at every step of the  Continuous  Delivery Process. The goal of  Continuous Testing  is  test  early and  test  often.  Shift Left and Shift Right Pro's and Cons  Pro's LOWER THE COST OF TESTING & DEVELOPMENT It’s well known that the sooner a bug is found, the cheaper it is to fix. One of the aims of Agile testing is detecting errors as soon as possible. With shift-left testing it’s possible to detect in real time, the exact moment in which an error was inserted into the system in order to resolve it in a timely manner. When testing is done with each build (especially during unit testing), the errors that are found are smaller, easier to detect and locate, and subsequently, less costly to ...

Puppet vs chef

Image
Puppet vs Chef: A Quick Comparison To Know The Differences

User Stories

Image
WHAT ARE USER STORIES? User stories are great to capture product functionality from the end users’ perspective. They clearly show what a specific user type can do with an application. Each user story defines the following: User type (for example: admin) User’s intention Value they get (from a specific functionality/feature) User stories can be structured in the following ways: Epic (contains more user stories; should be decomposed into smaller stories) User stories Smaller sub stories (more details about the stories) WHY DO YOU HAVE TO CREATE USER STORIES? Here are some reasons: Clarifies software functionality Easier to understand Easier to remember Easier to express business value Makes  product prioritization  easier PROCESS OF CREATING USER STORIES 1. VALIDATE USER NEEDS The very first step you have to take is to clearly define the users who will use your product. It means you should create  buyer personas  ...

How do you build 12-factor apps using Kubernetes?

Let’s look at what all of this means in terms of Kubernetes applications. Principle I. Codebase Principle 1 of a 12 Factor App is “One codebase tracked in revision control, many deploys”. For Kubernetes applications, this principle is actually embedded in the nature of container orchestration itself.  Typically, you create your code using a source control repository such as a git repo, then store specific versions of your images in the Docker Hub, ECR, ACR. When you define the containers to be orchestrated as part of a a Kubernetes Pod, Deployment, DaemonSet, you also specify a particular version of the image, as in: ... spec:      containers:      - name: AcctApp        image: acctApp:v3 ... In this way, you might have multiple versions of your application running in different deployments. Applications can also behave differently depending on the configuration information with which t...

Go and Test: Cucumber

Go and Test: Cucumber This if the first post of a series of three: Cucumber in Go with Godog Testing with GoConvey solution Mocking. Cucumber in Go with Godog When you begin to work with a new programing language, after you know the syntax and structures of languages, the next step write code. To write code It is necessary to know the testing tools that you can use with the language. This post addresses the tools that I use now with go. In Fexco we believe that first thing that you must do is to define the test and then to write the code. The reason is that we follow the paradigms BDD and TDD. We always define the features that our code must accomplish. The objective is for our code to have a good coverage and then it will do what it is designed for. That is the reason why we write in gherkin what we want the code to do. Writing the test before has something that I specially like: when an bug is discovered in code, the problem is not the code, the problem is that...