Learning How to Learn: Simple Web Dev Efficiency Tips

See the original posting on DZone Python

What is being a developer all about? Is it about memorizing syntax? Is it about being able to refactor inefficient code? Is it about making handy little shortcuts for yourself? Learning from the wisdom of the mighty developers here at Planet Argon has better equipped me with some tools to be able to answer these questions and I have come to learn it is all of these things…and none of them.

When you are working with existing web applications that you did not originally build, each project has its own quirks and nuances. There are so many tools, languages, frameworks, libraries, etc. that you can’t possibly master them all, not to mention they are always changing. Development isn’t necessarily about what you already know, but rather about your fundamental ability to learn the next thing you’ll need to know to move forward.

Top 10 PHP Errors From 1,000+ Projects (and How to Avoid Them)

See the original posting on DZone Python

Recently, we looked at our database of thousands of projects and found the top 10 errors in PHP apps. We’re going to show you what causes them and how to prevent them. Avoiding these "gotchas" will make you a better developer.

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

Old Flux, New Flux

See the original posting on DZone Python

If you are not new to front-end development, you have heard about the evolution in Flux, Redux, and React, and, most likely, have tried it or directly used it in a project. It comes with no surprise since the popularity of React is undeniable. React’s success is attributable to its simplicity, ease of use, and a great community.

Evolution of Flux

I would also bet that most of you have used React with Redux. Both libraries go hand-in-hand so often that it’s difficult to imagine it’s possible to use React without Redux. Nevertheless, believe it or not, React is a library for building user interfaces developed by Facebook, and Redux is a library for managing application’s state developed by Dan Abramov and Andrew Clark, not Facebook. Facebook has its own library to do that job, which is Flux. Despite Flux being released about a year before Redux, and coming from Facebook itself, Redux has become the de facto standard to use with React. 

Node.js 10.0 Fills Some Gaps, Polishes a Few Rough Edges

See the original posting on DZone Python

Node.js 10 was released this April and I just wanted to kind of touch on what’s new—the additions improvements, etc. Obviously, I’m not going go through the extensive change log or anything but I just want to mention the major things. The changes are so many that you’ll find this information in series of articles elsewhere but I figured that I would wrap it up in one article and try to convey it in a simple way.

I know these aren’t the most exciting articles to read and share in the world but if you’re a JavaScript developer or someone who works at a technology firm, I think it’s really important to keep up-to-date with these things. It’ll be a short article.

Functional Programming Unit Testing in Node (Part 5)

See the original posting on DZone Python

Noops, Stub Soup, and Mountebank

Welcome to Part 5 where we cover more about noops with a utility to test them, the "stub soup" that can happen if you don’t create small pure functions, and how we can utilize stubs instead of mocks to unit test larger functions. The most important part, though, is setting up Mountebank to show how integration tests can show problems in your unit tests despite 100% coverage. We use wrapping class instances as an example to show you the pitfalls Object Oriented Programming code can make for you.

Contents

This is a 6 part series on refactoring imperative code in Node to a functional programming style with unit tests. You are currently on Part 5.

simdb: A Simple JSON DB in GO

See the original posting on DZone Python

Some days ago I decided to learn Go. Go is pretty easy to learn and and an experienced dev could learn its syntax and semantics in a couple of hours. To completely learn a language, I normally write a small app in that language. So, in my free time, I rewrote the expense service I created in Node.js using Go. This whole exercise allowed me to learn Go in detail.

For me, Go looks to be a great, yet simple language with static type checking. It seems like I will be using Go for my future RPi projects rather than Nodejs. In RPi, I often use a simple JSON file as a DB to store, retrieve, and update execution rules, sensor details, etc. In Node.js I use tingodb, but I couldn’t find something similar in Go, so I decided to write one, and is called simdb, a simple JSON DB.

PHP Monolog Tutorial: A Step-by-Step Guide

See the original posting on DZone Python

In application development or maintenance, logging is very important. It gives you the right amount of data that you need to help you monitor your application, logs, databases, code, and web services. Monolog is the existing standard logging library for PHP. It is most popular in PHP frameworks such as Laravel and Symfony, where it implements a common interface for logging libraries.

This article talks about the step-by-step process of using PHP Monolog in your application.

NPM Can Do That?

See the original posting on DZone Python

npm-can-do-thatI have been using the NPM package manager for a few years and watched it rise, almost fall (to Yarn) and evolve into a fast, full-featured package manager and much more. Along the way there are a few simple tricks that have saved me a bunch of time.

Viewing Available NPM Scripts

Picture this… you finally find some time to work on that little app or side project. It’s been days or weeks since you last looked at the code. You open up Visual Studio Code, hit CTRL-` to open the integrated terminal and type npm…? Darn, you can’t remember the command to build/run/debug/do something to your app. Time to crack open the package.json and see how it all works. Buzz kill. Wait, what about…

The Excitement Surrounding the Angular 6 Updates

See the original posting on DZone Python

With all of the recent exciting changes in Angular v6’s release and the large shift in both the enterprise and SMB market towards adopting Angular as the go-to framework for building business applications, Infragistics is making sure to stay on the cutting edge of web development. Speaking to the ripple effect Angular has had in modern web development, our Angular team has been vocal about their plans to give web developers accessibility and ease when working with Angular on their upcoming projects. By providing tools for the upcoming wave of developers moving to building line of business applications in Angular, we’re making sure that we deliver best of breed UI components and the fastest Angular data grid with our products, Ignite UI for Angular and Ignite UI CLI.

Recently, we’ve been working on adding another product to our Angular productivity line, Indigo Design to Code Studio. Announced at Google I/O, Indigo D2C Studio is a digital product design platform that brings developers and designers together to build amazing user experiences. For example, once the iterative design process is complete, developers can use the Indigo D2C Studio Visual Studio Code plug-in and UI components to create a pixel-perfect Angular or Flutter application for Android and iOS. The product is highlighting Infragistics’ goal in working closely with Google’s Angular team to develop forward-thinking tools for web, desktop, and mobile applications, so be sure to read the latest press release and sign up for the upcoming preview.

How to Serialize/Deserialize a Dictionary Object in C#

See the original posting on DZone Python

The serialization and deserialization of .NET objects is made easy by using the various serializer classes that it provides. But serialization of a Dictionary object is not that easy. For this, you have to create a special Dictionary class which is able to serialize itself. The serialization technique might be different in different business cases.

Today, let’s discuss how to implement serialization/deseralization with a sample. Code is shared in the post, which you can use in your application. Continue reading and let me know if you have any other approaches.

React.js vs. Vue.js: A Comparison of Popular Frameworks

See the original posting on DZone Python

JavaScript has gained in popularity and many tech giants are reaping the benefits of it. A plethora of frameworks and languages are popping up every day and we can’t keep up with all of them. It is pretty hard to decide which ones are worth paying attention to.

The JavaScript world is moving faster than ever before and as a software development company, we can’t afford to overlook the most discussed frameworks of this era – React.js and Vue.js. So, in this comparison of React vs. Vue, we will help you select the best framework, based on the significant pros and cons of each, along with market trends and insights. We have a skilled pool of developers who keep themselves updated on every aspect of Vue.js and React development.

High Performance Angular Grid With Web Sockets

See the original posting on DZone Python

You may have come across the requirement to push data in real-time to an Angular Grid. To push data to the browser, you need a technology called WebSocket. You can implement that using Node.js or ASP.NET SignalR. For the purpose of this article, we will use Web Sockets with Node.js.

In the first half of this article, we will create an API which will use Web Sockets to push data to the client, and, in the second half of the article, we will create an Angular application to consume that. In the Angular application, we will use Ignite UI for Angular Grid. However, you can also use a simple HTML table to consume data in real-time from the web socket. In this article, we will learn to consume data in real-time from a Node.js Web Socket in a HTML table as well as Ignite UI Angular Data Grid. We will also look at the difference in performance in these two approaches.

Understanding Server-Side Blazor

See the original posting on DZone Python

Introduction

We all know that the Blazor framework is a client-side web framework. But is it possible to run a Blazor application separate from the UI thread? The latest version of Blazor (0.5.0) gives us the flexibility to run Blazor in a separate process from the rendering process. We are going to explore server-side Blazor in this article.

What Is Server-Side Blazor?

Since Blazor is a client-side web framework, the component logic and DOM interaction both happens in the same process.

1 2 3 4 124