Command Line Magic With Aiven CLI

See the original posting on DZone Python

While intended for use with Aiven’s Command line-interface, we also hope you’ll find this post as a useful guide to get generally familiar with — or to revisit – some basic bash scripting, including shell functions, aliases, bash, grep and regular expressions! 

We’ll cover alot of things you can do straight from the command line, including: counting line items; filtering lists; making verbose lists of console output items more readable; using regular expressions to search for patterns within logs and other console outputs; and using aliases and shell functions to store commands you might use repeatedly. 

Best PHP Books for Beginners [2019]

See the original posting on DZone Python

In this article, we take a look at a very comprehensive list of best PHP books for beginners, including detailed descriptions and purchase links.

Best PHP Books for Beginners [Updated] [2019]
Best PHP Books for Beginners [Updated] [2019] | Full Stack Geek

List of Best PHP Books For Beginners

Here we go, following is the list of hand-picked books which are must-haves for beginners.

DRYing Up CSS

See the original posting on DZone Python

DRYing up CSS

Albert Einstein once said, "Out of clutter, find simplicity."

For the longest time, I did not understand what he was trying to convey, but then I started interpreting it by testing its applicability in aspects of my life. My interpretation has since been ‘de-duplicate and reuse.’ I have since been able to go lean to a good extent on many things I do. Be it all the stuff I have in my basement, in my closet, or my code.

Var vs. Let in JavaScript

See the original posting on DZone Python

In this article, we wil be discussing the long running debate of var vs. let in JavaScript. We will also be discussing why the use of let is increasing in dev communities.

Var vs Let in JavaScript

Introduction

Declaring variables in JavaScript was not a cake walk until 2015 when ECMA 2015 was introduced and hence let and const was introduced and we got rid of var (it still works though!).

Support of Visual Studio 2019 in PVS-Studio, Part 2

See the original posting on DZone Python

Welcome back! If you missed Part 1, you can check it out here

Toolset

It was obvious that updating the toolset would be the most difficult part. At least that’s what it looked like in the beginning, but now I tend to think that support of the plugin was the most difficult part. For one thing, we already had a toolset and a mechanism for evaluating MSBuild projects, which was good as it was even though it had yet to be extended. The fact that we didn’t have to write the algorithms from scratch made it way easier. The strategy of relying on "our" toolset, which we preferred to stick to when supporting Visual Studio 2017, once again proved right.

Support of Visual Studio 2019 in PVS-Studio, Part 1

See the original posting on DZone Python

Support of Visual Studio 2019 in PVS-Studio affected a number of components: the plugin itself, the command-line analyzer, the cores of the C++ and C# analyzers, and a few utilities. In this article, I will explain what problems we encountered when implementing support of the IDE and how we addressed them.

Picture 2Before we start, I’d like to take a look back at the history of supporting the previous versions of Visual Studio in PVS-Studio so you better understand our vision of the task and solutions that we came up with in every single situation.

Vue CLI 3 Full-Stack App Structure

See the original posting on DZone Python

If you’re creating an app with Vue.js, you’ll most likely want to utilize the best-practice scaffolding provided by Vue CLI 3.

But if the Vue app is the client layer of a full-stack JavaScript app, for example, in a "MEVN" configuration (Mongo, Express, Vue, Node), it’s not entirely clear how Vue CLI 3 should be integrated into such a structure.

Angular 8 Is Here: What’s in it and Why You Should Care

See the original posting on DZone Python

As you no doubt saw, version 8 of Angular was released recently. The update spans across the framework, Angular Material, and the CLI. We’re always eager to dig in when a new version ships and wanted to share a few of the new features we find interesting and why.

After reading, let us know what you think! What else about this major release are you looking to take advantage of?

Creating a Car Game in React (Part 1): Drawing and Moving

See the original posting on DZone Python

Since I started looking at React, I’ve wondered whether it would be possible to create a multi-user game. The game would look a little like a Spectrum game that I used to play called Trans-Am. I’m guessing most people reading this are not going to be old enough to remember this. Essentially, it marks the peak of car game development, and everything has been down hill ever since.

If you have no idea what I’m talking about then there’s a demo of the game here.

JavaTea Tutorial: Using a Test Tool as a Demonstration Tool

See the original posting on DZone Python

When giving a demonstration of a web app, there are many chances for things to go wrong. You may be distracted by manual operations and loose what to say next. You may make the audience wait for a long time before showing a target page due to entering required values. To avoid those troubles, this article proposes using the JavaTea test tool as a demonstration tool.

JavaTea is an end-to-end test automation tool built on Selenium WebDriver. It is originally designed to execute test scripts against a browser, but, here we will execute demonstration scenarios instead of test cases so that we can focus on speaking while giving a demonstration. Moreover, JavaTea allows us to decorate web pages with CSS effects and balloons to draw the audience’s attention to particular features. Below is an example of decorated web site for a demonstration:

How to Test Storybook Components in Angular Applications

See the original posting on DZone Python

To better understand the Applitools Storybook SDK for Angular, here is a tutorial on how to build a small Angular application from scratch, adding some Storybook stories, and then finally performing visual regression testing using the Applitools SDK to generate snapshots for us to view and analyze.

You can find the source code for this article on GitHub by following this link storybook-angular-applitools repo.

Better Unbound Python Descriptors

See the original posting on DZone Python

Welcome back from another hiatus! This post is a facepalm post because I recently realized that I’ve been an idiot for so long. I have a tendency to make things more complicated than they need to be, as can be seen in my articles about instance properties.

I’ve briefly mentioned unbound attributes ( Class.attr returns a function that you pass an instance into to look up the the value of that instance’s version of the attribute) with descriptors a time or two and they always ended up using a whole new object to represent the unbound attribute. In the example given, I returned a local function to use as the unbound attribute; in the descriptor-tools library that goes along with the book, I implemented it with an UnboundAttribute type, which allowed it to easily carry extra data (such as the descriptor object reference); then I discovered attrgetter in the operator module, so I substituted that in instead. But there was one big obvious solution I was missing.

What You Need to Know Before E3 2019

See the original posting on DZone Python

The next two weeks are some of the most anticipated and exciting on the gaming calendar: E3. The Electronic Entertainment Expo (E3) is a trade event hosted by the Entertainment Software Association (ESA) since 1995 and includes the whos-who of the video game development world. This year’s E3 is shaping up to be one of the most important in recent memory, with Sony declining to join and Microsoft building up some amazing hype with rumors of xCloud and Xbox Scarlett news.

In this article, we will cover the most pertinent information going into E3 2019 and some of the major news and rumors surrounding this year’s event. This series will also include day-by-day coverage (see the coverage schedule below) and focus on both the gaming news of the expo and the implications of the major announcements from the giants of the industry.

Entity Framework Core Supports Constructors With Arguments

See the original posting on DZone Python

Keeping objects complete and valid all the time is a strategy used in different methodologies. It’s perhaps most popular in Domain Driven Design (DDD). Entity Framework Core 2.1 took a big step forward on supporting entities that don’t have default empty constructors. This blog post shows how to use Entity Framework Core and entity constructors with arguments.

Using Constructors With Arguments

Let’s take simple Product entity that uses constructor arguments. I’ll keep it minimal for demo purposes.

The Evolution of the Switch Statement and C# 8

See the original posting on DZone Python

Most languages have a version of the switch statement as far as I’m aware; I must admit, I don’t remember one from Spectrum Basic, but ever since then, I don’t think I’ve come across a language that doesn’t have one. The switch statement in C was interesting. For example, the following was totally valid:

switch (value)
{
    case 1:
        printf("hello ");
    case 2:
        printf("world");        
}

If you gave it a value of 1, it would print "hello world." When C# came out, they insisted on using breaks at the end of case statements, or having no code (admittedly there were a few bugs in C caused by accidentally leaving break statements out):

The Ray Tracer Challenge: Setting Up the Project With the dotnet CLI

See the original posting on DZone Python

Here it comes, the first post of my journey developing a Ray Tracer using .NET Core on a Mac, using only VS Code. If you didn’t, I recommend you read my introductory post which explains what I’m trying to achieve and why.

In this first post, I’ll talk about the libraries and tools I decided to use, and how I setup the project structure using the dotnet CLI.

.NET 5 Is the Future of .NET: What Every .Net Developer Must Know

See the original posting on DZone Python

Microsoft announced the new .NET 5 (future of .NET) at the Build 2019 conference. .NET 5 will be the single unified platform for building applications that runs on all platforms(Windows, Linux) and devices (IoT, Mobile).

If you are .NET developer currently supporting enterprise applications developed in .NET framework, you need to know how the .NET 5 is going to affect your current enterprise application in the long run. .Net 5 is based on .Net Standard which means not every .Net framework features will be available in .Net 5. Also, there are some technology stacks like web forms, WCF and WWF is not porting into .Net 5. We will look into the details of what is not covered in .Net 5 and what are the alternatives.

Detox: Superfast E2E React Native UI Testing

See the original posting on DZone Python

In recent years, React Native has become a very popular technology in the cross-platform mobile application development race, but choosing a UI testing tool for React Native apps might be quite tricky. There are two great UI testing frameworks for React Native apps — Appium and Detox. Appium is widely used for UI testing but Detox is a grey-box, faster and easy to learn tool for the UI testing of React Native apps. In this tutorial, we will set up some Detox tests for a simple, new React Native app.

Detox: End-to-End Mobile UI Testing

As you may have already known, the major problems in the mobile UI testing are slowness and flakiness. Tools like Appium are completely black-box and use client-server architecture which causes flakiness in UI tests. Detox is designed to solve the problem of slowness and flakiness for mobile UI testing. Some of Detox’s great features are:

1 2 3 4 5 160