Default Implementations Coming to Interfaces With C# 8

See the original posting on DZone Python

C# 8.0 will introduce new language feature — default implementations of interface members. This means that we can define a body-to-interface member and implementing class that doesn’t implement the given interface member and will use the default one from interface itself. Here’s my deep-dive and analysis of default implementions of interfaces.

Default Implementations of Interface Members

Let’s start with a classic example based on Mads Torgersen’s blog post, Default implementations in interfaces, and take a look at this famous logger example. Let there be an interface for a logger.

iOS Developer Guide

See the original posting on DZone Python

2If you are thinking of learning iOS app development, i.e. developing games and application for Apple’s iOS devices like the iPhone and iPad, and looking for some free courses then you have come to the right place. In this article, I am going to share five free courses to learn iOS app development. It also allows you to create apps for MacOS and Linux as well.

By the way, Apple’s iOS is an amazing platform, it not only allows you to create apps and games but also provides a platform to publish and sell your work. You can upload your apps or games into the App Store and earn some money by selling it or just opting to show ads on your games.

C# Developer’s Guide to React.js (Part 3): Conditionally Rendering HTML in React

See the original posting on DZone Python

This is the third in a series of posts on interesting things I’ve discovered about React; the first two parts can be found here:

  1. C# Developer’s Guide to React.js (Part 1): Create and Run
  2. C# Developer’s guide to React.js (Part 2): Moving Controls

One of the things that tripped me up early on while I was learning React (not that I’m a fully-fledged expert now or anything) was how to display HTML elements based on a given criteria. For example, say you only want to display a label while the form is loading, or you want to display a message based on other information on the screen.

The Clojure Programming World: Libraries and Other Tools

See the original posting on DZone Python

With the vibrant community, the Clojure language has a good core of libraries, collections, and other ready-to-use tools. According to a 2019 survey, 25% of Clojure users create or maintain open source solutions. Some programmers also check and fix issues (17%), or report on them (15%).

Clojure users
Closure Users per SurveyMonkey

Although all these libs aim to simplify Clojure programming tasks, they may confuse a beginner. Sometimes, it’s difficult to understand how to put all of them together and find an optimal solution for a specific task. So, now I want to show you my favorite tools for programming in Clojure. We will talk about:

Angular Timer (Auto Refresh Component)

See the original posting on DZone Python

I had been working on a project where I need to refresh a page after a specific interval. For that, I had written a component that triggers an output event after a specified amount of time using @Input(). This is a higly customized component, as it is not doing anything active; rather, it owns the functionality and delegates the rest of the funcationality to the parent component that hosts this child component through @Input() and event emitters.

Coming straight to the code, I had used a time from RxJS to execute a code block after every second.

How to Connect Your React Application With Redux

See the original posting on DZone Python

An exciting adventure for React developers is when they connect their React application with redux and when you have made it this far in reading about React, that means you are on the way to explore the out of the box concept of how you can manage global states in your application. This article will be helpful for React developers in integrating React applications with Redux.

Though React gives us the ability to manage state for our components, the dependency of the parent components on the child components and state management between two components becomes complicated with the increasing size of the application. To resolve this issue we have a third-party library called Redux which gives us all these wonderful features we need for global state management. Read Further at React Application with Redux.

Web Design Tips to Avoid Traffic Loss When Your Website Is Facing Downtime

See the original posting on DZone Python

Downtime can happen to any online merchant at any time. Whether it is intentional, accidental, or spontaneous, the question is, are you prepared to take the plunge when it happens?

A bad downtime means your website will not serve the incoming customer. This not only makes the website unavailable to the visitors, but also halts your store’s ability to generate conversions. Consequently, the visitor gets bad user experience and your page’s bounce rates begin to increase. While putting the website in downtime should be the last resort, some cases make it necessary for the website to become inaccessible, such as server maintenance. However, when you are experiencing downtime on your website, there are a few ways you can turn it around and actually benefit from it.

Docker on a Linux-Based EC2: Containerizing a C# .NET API Service

See the original posting on DZone Python

Dockerized ASP.NET Core APi

This blog post describes the steps for packaging a C# .NET Core API service into a Docker image; focusing on how to run a container using the various options that Docker offers, especially interacting with external resources.

I won’t dwell on Docker technology and its benefits, there are some great blog posts for that, here is one of them. I’ll start from the very beginning: a plain Linux-based EC2 instance.

Top React Libraries for Developers to Check Out in 2019

See the original posting on DZone Python

Whether you are a single developer or a project manager, the first and the foremost thing you want is to keep up with the latest trends in the market and have a clear idea about the newest core technologies. Now, this does not come as a surprise as a core characteristic of a developer is to keep up with changing technologies. If we look at the things from the perspective of an entrepreneur, things are not much different. They want to opt for the best technology solution for their business to progress and grow.

So, from every perspective, if you are thinking about JavaScript, then it has to be React. React is an open source JavaScript library which is used to build amazing interfaces for mobile and web applications. This JavaScript library comes with standalone code in bits, which are called components, and it has the ability to combine with other JavaScript frameworks and libraries out there easily. Now, these components have managed to take up the limelight.

Tag Helper Syntax for View Components

See the original posting on DZone Python

Calling view components in ASP.NET Core views may lead to long and ugly code lines containing generic type parameter of view component and anonymous type for InvokeAsync()method parameters. Something my readers have been interested in for a long time is the tag helper syntax for view components.

ASP.NET Core Pager Example

Suppose you have pager implemented as view component and there’s support for multiple views.

Build a Basic Ticket Sales App With ASP.NET Core, Angular, and Stripe

See the original posting on DZone Python

Internet shopping is about more than just Amazon. It’s become a daily activity for most Americans, and e-commerce is a required feature for many projects a developer may encounter. In this tutorial, you’ll learn how to build an e-commerce site to sell tickets using an Angular 6 single page app (SPA) and an ASP.NET Core 2.1 backend API. You’ll build both the Angular and ASP.NET Core applications and run them from within VS Code. Let’s get to it!

Upgrade to Angular 6

I love to use the latest and greatest when starting a new project. But when you use a project generator (like Angular-CLI, or the DotNetCLI), you may be at the mercy of the latest version the authors of those libraries have added. Right now, the DotNet CLI generates an Angular application with dotnet new angular gives you an Angular app at about version 4.5, which is about two versions behind the latest. Let me show you how to upgrade the templates and the generated application so that you’re using Angular 6, which is the latest as of the time of this article.

How to Use Node.js for Your Website and Application

See the original posting on DZone Python

Node.js is built on Chrome’s V8 JavaScript engine and one of the popular open-source JavaScript runtime environments, which can be used to create a website, upload files, and create a TCP App on ECS. In this article, you will get some useful information on these.

How to Build a TCP Application With Node.js on ECS

Before you start the process, you will need a machine running a Linux/Unix distribution such as Ubuntu or macOS, a code editor/IDE with Node.js installed on it, and a basic working knowledge of Node.js.

C# Developer’s Guide to React.js (Part 1): Create and Run

See the original posting on DZone Python

I thought it might be time for another of my patented "C# Developer’s Guide to…" Basically, a guide to React for someone that understands programming (C# ideally), but doesn’t know anything about React.js.

There are a couple of VS templates for React; however, after working with it for a while, you realize that most of the React people live in the command line; there’s a tool called create-react-app.

Java as a Technology Glue, or How to Use GPU From JavaScript

See the original posting on DZone Python

Ah! It’s been a while since I posted last!

But this year was quite a DE(VOXX)ED for me! First I had a chance to speak in wonderful Romania, then beautiful Vienna, after that amazing Lugano, then the loveliest Krakow, finally at the huge Antwerp event! In between, I also gave some talks in my hometown of Sofia at Java2Days and St. Petersburg at Joker! Let’s not forget that I was in the dream team of 5 to organize and run the coolest jPrime conf!

Assembly Version Tag Helper for ASP.NET Core

See the original posting on DZone Python

I’m writing some web applications where I must show the assembly version in the footer of all the pages. The applications are published online through Azure DevOps release pipelines and I’m using automatic date-based versioning for the assemblies. Here is how to show the application version using assembly the version tag helper.

I have multiple pages where the version is displayed. Besides the layout page, there are also standalone pages, like the login page and error pages. Plus, I have two web applications in the solution. I don’t want to keep the version displaying logic in all these pages as that would be code duplication.

How to Use Protocols to Fix a Cluttered UICollectionView in Swift

See the original posting on DZone Python

A UICollectionView is a way of arranging a content grid or a list of subviews (UICollectionViewCells) in a scrollable view. Collection views are ubiquitous: Instagram’s Search page, Chrome’s tabs overview, or your Favorites lists on media streaming services like Netflix and Crave. All of these examples use a UICollectionView to display cells.

For this article, I’ve been working with Clearbridge Mobile iOS Developer, Conor Masterson, to learn about collection views and resolving the issue of code clutter that sometimes happens when recycling UICollectionViewCells. This post will specifically explore how to implement a protocol for brevity in collection view code. Credit goes to Conor for writing the sample application that goes along with this article. If you’d like to look at the full configuration code, there is a GitHub link at the end of the post.  

1 2 3 156