ASP.NET Core: CRUD With React.js and Entity Framework Core

See the original posting on DZone Python

In this article, we are going to create a web application using ASP.NET Core 2.0 and React.js with the help of the Entity Framework Core database first approach. We will be creating a sample Employee Record Management system and performing CRUD operations on it. To read the inputs from the user, we are using HTML Form elements with required field validations on the client side. We are also going to bind a dropdown list in the HTML Form to a table in the database using EF Core.

We will be using Visual Studio 2017 and SQL Server 2014.

Powering Your App With a Real-Time Messaging CDN

See the original posting on DZone Python

CDN — Content Delivery Network

Let’s start with defining a CDN. A content delivery network (CDN) is a system of distributed servers that traditionally delivers web content to a user, based on the geographic locations of the user, the origin of the webpage and the content delivery server. I use the term traditionally because we’re entering an era where CDNs are doing more than just delivering web content.

An example would be Cloudflare Workers, which lets you use their CDN to run code at the edge, rather than just serve web pages/cached content. You are basically able to deploy and run JavaScript away from the origin server — allowing you to decouple code from a user’s device. According to Cloudflare, “these Workers also enable programmatic functionality for routing, filtering and responding to HTTP requests that would otherwise need to be run on a customer’s server at the origin.”

Top 10 Errors From 1000+ Ruby on Rails Projects (and How to Avoid Them)

See the original posting on DZone Python

To give back to the developer community, at Rollbar we looked at our database of thousands of projects and found the top 10 errors in Ruby on Rails projects. We’re going to show you what causes them and how to prevent them from happening. If you avoid these "gotchas," it’ll make you a better developer.

Because data is king, we collected, analyzed, and ranked the top 10 Ruby errors from Ruby on Rails applications. Rollbar collects all the errors for each project and summarizes how many times each one occurred. We do this by grouping errors according to fingerprinting. Basically, we group two errors if the second one is just a repeat of the first. This gives users a nice overview instead of an overwhelmingly big dump like you’d see in a log file.

Validation Using Template-Driven Forms in Angular 5

See the original posting on DZone Python

Introduction

In this post, we are going to see how to perform validation using template-driven forms in Angular 5; this is just a different approach that you can follow, as we have discussed another way in our previous post. At the end of this article, you will get to know how you can implement validations in Angular 5 application using Template-Driven Forms. This post is a continuation of the Developing an Angular 5 App series; if you haven’t gone through the previous posts yet, I strongly recommend you to do that. You can find the links to the previous posts below. I hope you will like this article.

Developing an Angular 5 App Series

These are the previous posts in this series. Please go ahead and have a look.

The Big Bang of Web Development: Get Moving With JavaScript

See the original posting on DZone Python

We’re back this week to explore the fundamental elements of web development before we move into more complex topics. This weeks focus is JavaScript. If you haven’t checked out my previous blogs for the trifecta of web development, check out my blog posts on HTML and CSS.

JavaScript: a once feared technology is now (and has been for a while) a de-facto choice for development. It allows you to program dynamic behavior on your web page.

Code Quality Matters in Rails

See the original posting on DZone Python

Alarmingly, 23% of participants in our 2018 Ruby on Rails survey reported not using any of the tools to check code quality.

Thankfully, 67% use Rubocop. Rubocop is a real gem (pun intended). It’s more than a style guide check. It also ensures all developers working on a project use the same set of guidelines for metrics like assignment branch condition (ABC) size to prohibit methods from getting too complex. Running Rubocop on a feature branch before submitting a PR is a great asset for new team members who are becoming acclimated to your team’s conventions.

Functional Programming With JavaScript Object Arrays

See the original posting on DZone Python

We look at using map, filter, and reduce to manipulate arrays of objects, using techniques borrowed from functional programming.

Data manipulation is a common task in any JavaScript application. Fortunately, new array handling operators map, filter, and reduce are widely supported. While the documentation for these features is sufficient, it often shows very basic use cases for implementation. In daily use, we often need to use these methods to deal with arrays of data objects, which is the scenario lacking from the documentation. In addition, these operators are often seen in functional languages and bring to JavaScript a new perspective on iterating through objects with a functional touch.

Bootstrap and its Features

See the original posting on DZone Python

Bootstrap was introduced for the first time on August 19, 2011. Bootstrap is a front-end focused, free to use and share library which is used for designing websites and applications. Websites and applications that can be designed using Bootstrap are compatible with both iOS and Android.

BootStrap Design Templates

Bootstrap contains a variety of design templates. These design templates are based on and work with the following:

The Future of Native Modules in Node.js

See the original posting on DZone Python

Node.js 10 is just around the corner and with it comes a number of improvements. One that is exciting us is the update to the native module library n-api. It comes out of experimental status in the upcoming release.

JavaScript has always had a minimal standard library compared to other languages. In the beginning, we only used JavaScript in the browser. As browsers evolved and matured into application virtual machines, so did the need to add more capability through browser libraries. This brought new applications like Web Bluetooth, Web USB and so on; ever expanding the things we can use JavaScript for.

The State of Test Coverage in Rails

See the original posting on DZone Python

One of the things that we look for when examining the health of a Rails application is the percentage of test coverage the app has, using a tool like simplecov. This should only test the code your team has written and not 3rd party libraries (one reason why it’s important to keep your 3rd party dependencies separate from the rest of your code).

In the Rails Survey this year, we asked a new question about how many existing Rails applications the respondents work on have decent test coverage (above 80%).

Using Crafter CMS, GitHub, and Two-Factor Authentication

See the original posting on DZone Python

Crafter’s Git-based CMS supports developers working against remote repositories like GitHub, GitLab, Bitbucket, and others. Many organizations that use GitHub enforce a two-factor authentication for developers. This article shows you how to create a site in Crafter when you have two-factor authentication in GitHub configured.

Step 1: Configure an Access Token in GitHub

If you are reading this article, it’s very likely you already have two-factor authentication configured and are using it with GitHub. If you’re interested in setting it up you can learn more about that here.

Stop Using JWTs as Session Tokens

See the original posting on DZone Python

JSON Web Tokens (JWTs) are so hot right now. They’re all the rage in web development because they’re trendy, secure, scalable, and compact. With all these amazing things going for JWTs, they seem like an unstoppable hype train headed straight for Stack Overflow fame and fortune!

Today I’m here to talk with you about the downsides of using JWTs. Specifically, why it’s a bad idea to use JWTs as session tokens for most people.

CSS Bullet Style

See the original posting on DZone Python

Are you a fan of making lots and lots of lists? Neither am I. But, here we are not talking about chore or shopping lists. We are talking about ordered and unordered lists that are inevitable when making modern websites and apps.

As mentioned, when creating lists in HTML and CSS, there are two types: ordered and unordered. In the case of ordered lists, numeration is present. On the other hand, in the case of unordered lists, no numeration is present, which is why a common name for these types of lists is bulleted lists.

The ASP.NET Core React Project

See the original posting on DZone Python

In the last post I wrote, I had a first look at a plain, clean, and lightweight React setup. I’m still impressed how easy the setup is and how fast the loading of a React app really is. Before trying to push this setup into an ASP.NET Core application, it would make sense to have a look at the ASP.NET Core React project.

Create the React Project

You can either use the "File New Project …" dialog in Visual Studio 2017 or the .NET CLI to create a new ASP.NET Core React project:

Trying React the First Time

See the original posting on DZone Python

The last two years, I have worked a lot with Angular. I learned a lot and I also wrote some blog posts about it. While I worked with Angular, I always had React in mind and wanted to learn about that. But I never head the time or a real reason to look at it. I still have no reason to try it, but a little bit of time. So why not? 

This post is just a small overview of what I learned during the setup and in the very first attempts at using React.

1 2 3 4 5 111