How to Implement Pagination in an ASP.NET Core App

See the original posting on DZone Python

When you have to show hundreds or thousands of records on your web page then you should apply pagination. This is because your users must not see all the records on the same page (which looks bad), instead, they move from one page to another page, and only see the records of the selected page.

Pagination brings cleanliness in your web page. It is an important technique which you should never miss to use. In this tutorial, I will teach you how to create pagination in Records in ASP.NET Core.

Using Node 11.7 Worker Threads With RxJS Observable

See the original posting on DZone Python

NodeJS worker_thread module and RxJS observables

With the release of Node 11.7, the worker_threads module becomes a standard feature and is no longer hidden behind the --experimental-worker switch. The worker_threads module allows developers to run JavaScript asynchronously in light-weight, isolated threads contained within the main Node process. This article will be focusing on how use worker threads to execute a task asynchronously and stream data from that task back to the rest of your Node application using RxJS Observables.

Before we get started, if you want to learn more about worker threads and why you might want to use them, I would recommend reading Node.js multithreading: What are Worker Threads and why do they matter? by Alberto Gimeno. Alberto has done a fantastic job explaining the purpose of the worker_thread module, provided some solid examples of where it makes sense to use it, as well as demonstrated some alternate ways to build a multi-threaded Node app.

Several Years Later: A Case of the Telephone Game

See the original posting on DZone Python

Remember the Telephone Game? 

You can read all about it here, but the gist is the first person is whispered a message. That person then whispers the same message (to the best of their recollection) to another person. The process continues until the last person receives the message. At that point, the last person announces the message for all to hear. The fun part of this game is to hear how much the story changes as the message is passed from person to person.

How to Integrate WordPress API in React Native

See the original posting on DZone Python

As I’m wrapping up one of my projects (a React Native WordPress app), I realized that many React Native developers will face the task of integrating WordPress’s REST API with React Native, so I decided to publish my findings. Hopefully, this will help out developers who are making their React Native apps using WordPress as a backend. To be clear, I don’t recommend using WordPress as a backend for your mobile apps, but it comes in handy if you already have a blog or a WooCommerce store running on WordPress.

As you already know, WordPress comes with a REST API out of the box. If you don’t believe me, just check out this link, which returns a paginated JSON response with all posts of my blog. I swear I only installed WordPress and did not do anything else. Try out the exact same URL, but for your blog, and you’ll see your own posts.

How Is Your Application’s Customer Service Experience?

See the original posting on DZone Python

[A Zone Leader asks, how is your application handling alternate flows systemmatically, providing three real-life examples he has recently encountered.]

When we think about the idea of customer service, probably the first thing that comes to mind is a group which supports some aspect of a business or service. By simply getting in touch with them, you can work through issues that were not expected as a result of your interaction.

Web Development Comparison: Spring Boot vs. Express.js

See the original posting on DZone Python

A simple comparison of web development using the Spring Boot ecosystem and JavaScript with Express, from a Java developer’s point of view.

The Goal of This Article

This is a not so technical comparison (you can find more specific tech comparisons elsewhere). I just wanted to outline how it feels to develop web applications in Node.js when you are a Java developer by trade.
So please remember, this article is full of personal opinions.

Adding External JavaScript Files (.js) Into Moodle

See the original posting on DZone Python

You may wonder how to add custom JavaScript files into Moodle. I had the same questin. So, I am writing this article to share how I made it through and ease your process with an example.


  1. Go inside your “/theme/YourThemeName” folder. If you don’t have “javascript” folder inside “/theme/YourThemeName”, create a new folder called “javascript”.
  2. Inside the new javascript folder that you have created, upload the .js files.
  3. Next, go inside your “/theme/YourThemeName/config.php”. At the very bottom of the file, add a new line of code to include our javascript files.
#To load the js files in your header:
$THEME->javascripts = array(‘yourfirstjsfile’,’yoursecondjsfile’); 
#To load the js files in your footer:
$THEME->javascripts_footer = array(‘yourfirstjsfile’,’yoursecondjsfile’);

Render and Interact With HERE Location Data Using Leaflet and Angular

See the original posting on DZone Python

When it comes to development, I’m all about choosing the right tool for the job. While HERE offers a great interactive map component as part of its JavaScript SDK, there might be reasons to explore other interactive map rendering options. Take Leaflet for example. With Leaflet, you can provide your own tile layer while working with a very popular and easy to use open source library.

In a past tutorial, you’ll remember that I had demonstrated how to use Angular with HERE, but this time around we’re going to shake things up a bit. We’re going to use Angular with HERE data, but we’re going to display and interact with it using Leaflet.

Dependency Injection in .NET Core Console Applications

See the original posting on DZone Python

ASP.NET Core uses a built-in dependency injection mechanism provided by Microsoft. This blog post introduces how to use the same mechanism in .NET Core console applications. For those who like other DI/IoC frameworks, this article provides a demo about how to use Autofac with .NET Core framework-level dependency injection.

Framework-Level Dependency Injection in ASP.NET Core

I don’t describe here details of dependency injection in ASP.NET Core. Those who want to find out more about it can skim through these writings:

Configuring Client Game Broadcast Mechanism on Alibaba Cloud

See the original posting on DZone Python

Customer Requirements

For traditional client games, the background server architecture is normally complicated, and in-depth network communication is required between servers. If unicast communication is used, a server needs to know the changes made to other servers at any time, lowering the elasticity of the entire architecture. To achieve flexible development and reduce host computing resources, many client game servers still use UDP broadcast communication.

Basic Principles

In the current classic network and VPC network environments of Alibaba Cloud, L2 multicast and broadcast are not supported because the underlying switches are L3 switches. To meet the customers’ multicast and broadcast requirements, you can use the unicast mode to simulate the multicast mode. The basic implementation principle is as follows:

Function Over Form, Always: Tips All Enterprise Software UX Designers Need to Know

See the original posting on DZone Python

UX Designer Christie Lenneville has a bone to pick with all you designers out there who think that panoramic swaths of white are unequivocally where it’s at when it comes to usability. Sure, “white space has become the de facto design aesthetic in consumer apps,” she explains in a piece for Medium’s UX Collective, “and can greatly improve the usability of a simple interface…but what about complex interfaces?” As far as Lenneville is concerned, this simply will not do when it comes to the software “business users rely on to get their jobs done every day.”

But fret not, she’s here to help guide you through your next design challenge with her 8 best tips for even the most data intensive enterprise software applications. Here are a few of our favorites:

WPF and WinForms Will Run on .NET Core 3

See the original posting on DZone Python

Maybe you already heard or read about the fact that Microsoft brought WinForms and WPF to .NET Core 3.0. Maybe you already saw the presentations on the Connect conference, or any other conference or recording when Scott Hanselman shows how to run a pretty old WPF application on .NET Core. I saw a demo where he ran BabySmash on .NET Core.

BTW: My oldest son really loved that BabySmash when he was a baby. 

The Modern JavaScript Landscape

See the original posting on DZone Python

It might be that by the time we end this article, a new Javascript framework would have been launched somewhere. But that’s really not in our control. Therefore, we should simply continue with what we have. At least, because of the disclaimer, we can be sure that we aren’t inventing a new framework.

There was a time when writing effective front-end code meant that you had to possess a good understanding of how HTML, CSS, and JavaScript meld together to create web pages. Well, fortunately, that’s mostly true even today. However, in the past decade, the Javascript landscape has exploded. Due to this, developers have been left scratching their heads to simply figure out what all they should know in order to build effective web applications.

Installing WordPress 5 on ZEIT Now With MySQL Hosting

See the original posting on DZone Python

Want to deploy WordPress 5.0 on the Now platform by ZEIT? Our friends over at ZEIT’s Now global serverless deployment platform whipped up a great tutorial for WordPress5-on-Now using cheap MySQL hosting instances from ScaleGrid. With such strong interest in this installation, we decided to write up the steps to configure your MySQL database on the ScaleGrid side to get you up and running ever faster with WordPress on Now.

So, why do you need MySQL hosting with ZEIT Now for WordPress? Now focuses on being the best platform for serverless hosting, but you need to find a way to store your data permanently. That’s where ScaleGrid comes in. You can set up fully managed MySQL on Azure for as little as $8/month for management-only, or $18/month with hosting included on dedicated servers.

5 Courses to Learn TypeScript in 2019

See the original posting on DZone Python

Hello guys, if you are thinking of learning TypeScript and looking for some awesome resources like books, courses, and tutorials then you have come to the right place. In my last article, I have shared some of the best Angular framework tutorials and courses and today, I am going to share some of the best TypeScript online course you can join to learn it by yourself.

Many programmers and web developers are learning TypeScript because of its powerful syntax and advanced OOP features and, more importantly, to develop Angular-based application.

Imperative vs. Declarative JavaScript

See the original posting on DZone Python

I was recently doing a JavaScript code review and came across a chunk of classic imperative code (a big ol’ for loop) and thought, here’s an opportunity to improve the code by making it more declarative. While I was pleased with the result, I wasn’t 100% certain how much (or even if) the code was actually improved. So, I thought I’d take a moment and think through it here.

Imperative and Declarative Styles

To frame the discussion, imperative code is where you explicitly spell out each step of how you want something done, whereas with declarative code you merely say what it is that you want done. In modern JavaScript, that most often boils down to preferring some of the late-model methods of Array and Object over loops with bodies that do a lot of comparison and state-keeping. Even though those newfangled methods may be doing the comparison and state-keeping themselves, it is hidden from view and you are left, generally speaking, with code that declares what it wants rather being imperative about just how to achieve it.

1 2 3 145