Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

Six layout myths busted

Categories

Tags product-and-design miscellaneous frontend-and-mobile architecture-and-apis

An older article encapsulating thoughts by Jen Simmons on topic of six layout myth. Every website reaches for an identical 12-column symmetrical grid. Every site uses the same shapes and patterns over and over. And we are totally bored.

We should start asking ourselves what kind of page layout will best serve this project? How can we tap into a hundred years of graphic design practice to communicate through our layout? Our biggest challenge will be fighting the limitations of our imagination. We developed powerful habits over the last 10 years.

Author then considers these design myths for web development:

  • Myth 1: Everything must be a floating bar of soap
  • Myth 2: Rectangles; only rectangles
  • Myth 3: We can’t control the fold
  • Myth 4: 12 columns is the best
  • Myth 5: We have to use a layout framework
  • Myth 6: We are stuck in a rut because of RWD

Interesting read with clear message – if you can let go of these myths, your work will stand out. Visual exmaples includes. Great!

[Read More]

Django REST with React tutorial

Categories

Tags backend-development architecture-and-apis frontend-and-mobile

Valentino Gagliardi published on his blog tutorial how to do REST with Django framework 2 and React. If you need quick API prototype quickly and is build for development speed.

Django is ideal web framework for rapid prototyping: it lets developer write less code, ship a MVP as soon as possible, provides a solid foundation for extending the project.

Tutorial focuses (among others) on:

  • Setting up a Python virtual environment, and the project
  • Bulding a Django application
  • Creating a Django model
  • Basic understanding what to test with TDD and coverage
  • Django REST serializers
  • Seeding the database

… and much more. This is lengthy tutorial with code examples provided and explained, links to further reading and Q&A from users following this tutorial. Good job!

[Read More]

Beginner's guide to designing smart chatbots

Categories

Tags ai-and-machine-learning backend-development miscellaneous business-and-emerging-tech product-and-design

An article by Vaibhav Verma, an User Experience Designer at Haptik, about his experience with designing the smart chatbots over 4 years period. He has designed more than 50 chatbots across various domains and use cases.

First, it’s important to understand what a chatbot actually is. I like to define it as an interface to get a task done via a text or voice based conversation with a robot, sometimes aided by a human.

Through Machine Learning algorithms, chatbots can learn appropriate answers to specific user queries over time, for which they no longer require training.

Personality is very important for a chatbot. Chat works the best if kept short and simple. Some steps to make a good chatbot:

  • Consider use-cases where chat works best
  • Define the exact goal of the bot
  • Work on the personality and tonality
  • List out the specific tasks a user can perform

… and much more in the article, including frequently used prototyping tools, how to make handoff kit to developer, builder platforms etc. Very insightful!

[Read More]

Compiler hinting with Kotlin contracts

Categories

Tags backend-development frontend-and-mobile product-and-design

Jarno Walgemoed short introduction on some new interesting features in Kotlin 1.3. Kotlin’s built-in null-safety makes it easy for us to write code that’s less error-prone and less susceptible to the unwanted and unexpected NullpointerException at runtime.

Kotlin is introducing Contracts in the upcoming 1.3 release in which we can use contracts to tell the compiler how a function behaves and what results are implied, so we can benefit from improved smart-casts.

Starting with Kotlin 1.3, we can start defining contracts for our functions.

Supplying the compiler with contracts for applicable functions can help clean up code on the call site and remove redundant null-checks.

You will find example code describing a User and implementation defining the contracts using Returns and Implies. Excellent intro into contracts in Kotlin!

[Read More]

Building a RESTful blog APIs using Python and Flask

Categories

Tags backend-development architecture-and-apis

Olawale Aladeusi blog post about building Application Programming Interface in Python. This shall be a very easy to learn path in creating RESTFUL API using Python and Flask micro-framework.

In the tutorial he takes on the journey of allowing all four basic CRUD (Create, Read, Update and Delete) operations. Flask is a micro web framework written in Python. It is called a micro-framework because it does not require any specific libraries or tools.

Author also uses PostgreSQL relational database for this project. You will get information how to:

  • Set up project virtual environment using pipenv
  • Installing Project Dependencies
  • How to create meaningful project structure
  • Database basics
  • Flask configuration
  • Model app

Detailed steps with explanation of the code examples is provided. You should have enough information about configuring Flask environment, creating models, making and applying migrations to the database, grouping resources using Flask blueprint, validating the authenticity of a user using JWT token and also complete set up for all RESTful endpoints.

Excellent intro into Python’s Flask!

[Read More]

Using Behave framework for Selenium BDD testing

Categories

Tags testing-and-quality software-engineering miscellaneous leadership-and-career backend-development devops-and-ci-cd

An article by Dzmitry Ihnatsyeu published by guys from BlazeMeter about automating the testing of an application. There are many ways of testing – like unit testing, test-driven development, keyword-driven development, behavior-driven development and so on. In this article, autho talks about one of the most popular approaches to test automation – BDD or behavior-driven development.

Behavior tests come from specification and business requirements. Business stakeholders, QA engineers, analysts, application and test developers work together to identify the correct flow and test it.

In the article you will find:

  • What is BDD
  • BDD scenarios in Gherkin
  • Automation with Selenium and Behave
  • Browser initialization with fixtures (and info when to use them)
  • How to implement parameterized steps

More technical article for Python programmers requiring a certain degree of experimentation. Overall very good!

[Read More]

Step-by-Step guide to building a quick Q&A chatbot

Categories

Tags ai-and-machine-learning backend-development miscellaneous business-and-emerging-tech cloud-and-infrastructure

Tutorial by Purna Virji about starting with chatbots or virtual assistants. Chatbots, infobots, socialbots, salesbots, superbots! Bots are a great way to help serve your customers, build your business, and cut down costs.

The author walks you through building a bot, step-by-step, starting with a simple informational bot based on a template create by Microsoft. Informational bots make it easy for you to quickly get information via simple text-based chat.

She creates a bot to answer questions defined in a knowledge set or FAQ using QnA Maker and displayed in a Cortana bot using Azure Bot Service. You will be able to import source for Q&A from url or file, which makes it extremely easy even for non programmers to start developing bots.

These topics are explained in detail:

  • QnAMaker Service creation
  • How to explore, edit, extend and replace the Knowledge Base
  • Knowledge Base testing
  • Knowledge Base publishing
  • Updating resources
  • Integration with Azure Bot Service

It also explains how to connect to channels. WebChat is the default, but we can add other favorites. Excellent, yet so easy!

[Read More]

Build a Hello World API with Scala and Akka HTTP

Categories

Tags devops-and-ci-cd architecture-and-apis backend-development software-engineering frontend-and-mobile

Miguel Lopez short and sweet tutorial about building a Hello World web application with Akka. Akka is a popular actor-based toolkit for building concurrent and distributed applications in the JVM. These applications mostly use Scala or Java.

Akka toolkit has several modules that help to build such distributed applications, and Akka HTTP is one of them. Akka HTTP has both client-side and server-side utilities.

The tutorial covers:

  • Project setup (sbt and Scala)
  • Adding and instantiating of dependencies
  • Route creation
  • Server
  • Logging

While using Scala and Akka HTTP is not the fastest way to develop APIs, it allows you to integrate other Akka modules, such as actors, streams, clusters, and more, making it easier to develop resilient and scalable systems.

Code repository is provided together with link to free course containing 14 videos related to the Akka topic. Nice!

[Read More]

REST API design -- resource modeling

Categories

Tags architecture-and-apis frontend-and-mobile backend-development

In this older article by Prakash Subramaniam from ThoughtWorks looks at the REST API design best practices. The key abstraction of information in REST is a resource. A resource is a conceptual mapping to a set of entities, not the entity that corresponds to the mapping at any particular point in time.

Resources form the nucleus of any REST API design. Resource identifiers (URI), Resource representations, API operations (using various HTTP methods), etc. are all built around the concept of Resources.

The starting point in selection of resources is to analyze your business domain and extract the nouns that are relevant to your business needs

The article then depicts and explains in detail some important design choices for REST API:

  • Fine grained CRUD resources versus Coarse Grained resources
  • Preventing migration of business logic to API consumer
  • Coarse grained aggregate resources for business processes
  • Nouns versus Verbs
  • Reification of abstract concept
  • REST without PUT and CQRS

… and much more. Very in depth and informative article. Excellent read!

[Read More]

Quadrupling Ansible performance with Mitogen

Categories

Tags devops-and-ci-cd how-to

David Wilson article about writting Ansible extension for Mitogen. Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery. Mitogen is a Python library for writing distributed self-replicating programs.

Mitogen is perhaps most easily described as a kind of network-capable fork() on steroids. It allows programs to establish lazily-loaded duplicates on remote hosts, without requiring any upfront remote disk writes, and to communicate with those copies once they exist. The copies can in turn recursively split to produce further children – with bidirectional message routing between every copy handled automatically.

Mitogen is a library for writing distributed programs that require zero deployment, specifically designed to fit the needs of infrastructure software like Ansible. Without upfront configuration it supports any UNIX machine featuring an installed Python interpreter, which is to say almost all of them.

It massively speeds up Ansible playbook execution on remote hosts, while saving bandwidth and momory. An unmodified playbook executes over 7 times faster while consuming 50x less bandwidth.

Dive into this exciting reading about how to speed up your Ansible playbooks execution!

[Read More]