Delegates: Can’t Deal With Them, Can’t Live Without Them

See the original posting on DZone Python


There is a famous quote by Jim Henson: “If you can’t beat themJoin them”.

It’s possible to write code for years without deliberately using delegates. I say “deliberately” because we may have used them without realizing it. Knowing what these types represent makes reading code easier. Knowing how to use them adds some useful tools to our developer toolbox. So instead of ignoring them, why not learn them. In this post, I will show you how you can get started with delegates and their use cases, which will encourage you to use them more in your code.

Moving Forward With .NET Events, Event-Handlers, and CustomEventArgs

See the original posting on DZone Python


In the previous post on Events, we talked about how we are surrounded by events and how useful they can be when writing loosely coupled code. We saw how we can define events, raise, and finally handle events. If you haven’t already, then I will suggest reading that post for the background and then the topics in this post will be easier to follow.

In this post, we will continue our journey and move forward with learning more about Events implementation in .NET. One of the common requirements when raising events is how can we pass data along with event notifications to event-handlers. A very common way to do it using Custom EventArgs.

Python Code Formatters

See the original posting on DZone Python

If you write code that other developers review or contribute to, chances are you’re already adhering to a style guide for writing code. In this post, we look at the most popular code formatters in Python and help you decide on which one you should adopt.

The most popular code formatters in Python is:

How to Install React Native Firebase?

See the original posting on DZone Python

React Native Firebase is a group of modules that enables Features of Firebase SDK for the React native app. It is compatible with android and IOS mobile integrations. React Native Firebase acts as an additional segment of a lightweight Javascript functionality or alternative for the standard Firebase SDK. It is an excellent replica of the previous web-based Firebase SDK for mobile platforms.

This Firebase for react-native allows you to change the SDKs of a device. That is not available with the web version of Firebase. React Native Firebase has additional features that are not found on the web Firebase. Those features are remote configuration and performance monitoring. That is why Firebase for the web is generally avoided in native react js development because of its limited features.

How to Convert HTML Tables into Beautiful PDFs

See the original posting on DZone Python

Web apps that contain tables, charts, and graphs often include an option to export the data as a PDF. Have you ever wondered, as a user,  what’s going on under the hood when you click that button?

And as a developer, how do you get the PDF output to look professional? Most free PDF exporters online essentially just convert the HTML content into a PDF without doing any extra formatting, which can make the data hard to read. What if you could also add things like page headers and footers, page numbers, or repeating table column headers? Small touches like these can go a long way toward turning an amateur-looking document into an elegant one.

How To Automate WordPress Deployments

See the original posting on DZone Python


In this tutorial, you will automate WordPress deployments using Buddy CI/CD, a user-friendly tool offering continuous integration and continuous deployment solutions.

Compared to many other CI/CD tools, Buddy requires less DevOps experience. It allows developers to create delivery pipelines with drag-and-drop actions in a visual GUI. This GUI leverages pre-configured actions (builds, tests, deployments, etc.) in an approach similar to DigitalOcean’s interactive Droplet configuration. This means newcomers and expert developers alike can use Buddy to release more software, all while making fewer errors.

How to Remember Nullable Value Types

See the original posting on DZone Python

Recently nullable reference types have become trendy. Meanwhile, the good old nullable value types are still here and actively used. How well do you remember the nuances of working with them? Let’s jog your memory or test your knowledge by reading this article. Examples of C# and IL code, references to the CLI specification, and CoreCLR code are provided. Let’s start with an interesting case.

Note. If you are interested in nullable reference types, you can read several articles by my colleagues: “Nullable Reference types in C# 8.0 and static analysis“, “Nullable Reference will not protect you, and here is the proof“.

How to Learn React Native in 2021

See the original posting on DZone Python

If you already have some programming experience and you’re interested in learning React Native, there are a few methods that are faster than the traditional route of learning. Most tutorials, books and courses are targeted towards non-programmers, wasting your time with the basics. But if you have programming experience, here’s how to learn React Native practically in a fraction of the time.

It has been 5 years since React Native was released by Facebook. It has since then been widely adopted by the tech community as a first-class choice for multi-platform mobile app development with the support of a rapidly increasing community.

Charts With Modern React and D3

See the original posting on DZone Python

ReactJS is a front-end javascript library for making reusable web components. Its approach is to break down web applications (and mobile application, through React Native) into smaller, (almost) isolated, and reusable components. It makes it much easier to develop and maintain medium to large-sized web applications.

D3JS is javascript library for creating graphics based on data. It helps you to bind data to HTML elements (SVG) and manipulate it using the data. It could be used on its own (without ReactJS, or any other web framework) to create almost any data visualization tool and dashboard you can think of. However, when you combine this with ReactJS, you can now create a modern web-based data dashboard.

Working With ORMs Using Entity Developer

See the original posting on DZone Python

Entity Developer from Devart is a modeling and code generation tool that lets you design your data access layer visually – at the drop of a hat. You can take advantage of Entity Developer to generate data access layer code automatically using one unified interface – as a result, chances of error creeping into your Data Access code are minimal.

In this article we’ll take advantage of Entity Developer to connect to and work with various ORM tools such as, EF Core, NHibernate, Telerik Data Access and LinqConnect. This article starts with a brief discussion on what ORMs are, why Entity Developer is useful, and how you can leverage Entity Developer to connect to and work with all these ORMs.

Synchronizing Model and Database in Entity Developer

See the original posting on DZone Python

Entity Developer from Devart is a very powerful modeling and code generation tool, an ORM tool to be more precise. Entity developer lets you design your data access layer visually — at the drop of a hat. Since the data access layer generated by Devart contains automated and generated code, chances of error are minimal.

The official website of Entity Developer states: “Entity Developer can help you design models for various .NET ORMs in one unified interface. You can get support for all ORMs in one tool, or you may purchase a separate edition, working with one of the supported ORMs.” 

Building a Go Web API with the New Digital Ocean App Platform

See the original posting on DZone Python

Recently, Digital Ocean announced they’re entering the PaaS market with their new application platform. They’ve hosted virtual machines (droplets) and Kubernetes based services for years, but now they’re creating a platform that’s a simple point and click to get an application up and running.

So I decided to try it. In this tutorial, we’re going to build an application on that platform. I will use Go to make a small web API and have it backed by an SQLite database. I’ll show you the steps required, and we’ll see just how easy it is (or isn’t) to deploy applications on the platform.

Some Helpful Extensions When Dealing With Types in .NET

See the original posting on DZone Python

If you are writing reusable code, chances are high that you will write quite some code that deals with types, generics, and interfaces. Over the years, the collection of my helper extensions for that have grown. As some of my upcoming posts use them, I share them (also) for future reference.

1. Check if a Type Is Deriving From Another Type

Deriving types is a common practice. To some extent, you can use pattern matching. Sometimes, that isn’t enough, though (especially if you have a multi-level derivation path). This is when I use one of these two extensions:

Tutorial: How to Build a Progressive Web App (PWA) with Face Recognition and Speech Recognition

See the original posting on DZone Python

This is a follow up to the second tutorial on PWA. You can also follow this tutorial if you haven’t followed the second one or my first tutorial about PWA. We are going to focus on some new Web APIs, such as:

We add these APIs to our existing PWA for taking “selfies”. With face detection we predict your emotion, your gender and your age.

Choosing the Right Stack For Your Next Web Project: Full-Stack vs MEAN Stack vs MERN Stack

See the original posting on DZone Python

It is obvious that before starting any web development project, choosing the best technology is one of the major concerns. Today, different technologies are being used for mobile application development. So, reading about those technologies in this blog is our motive. 

Here, in this blog, I am going to make a decision about which technology is the best if we have the choices like Full-Stack vs MEAN stack vs MERN Stack.

1 2 3 202