Let’s Chunk – Part Two

See the original posting on DZone Python

In my previous article, we talked about the chunk function and implemented it in JavaScript. Today I’ll try to show an example for using this function. This example popped into my mind when I read about the chunk function, because it reminded me of a question I once gave to my students in an exam, and I think the chunk function could have been helpful for them had they known it.

The task goes like that – write a function called printWithCommas. The function would get two integers – num and d. The function would return a string that represents num with a comma after every d digits from the right. It is possible that the last leftmost part wouldn’t contain exactly d digits, according to d and the total digits in the number.

Quick Primer to Single Page Applications (SPA) and Tracking SPA pages

See the original posting on DZone Python

SPA relies on the HTML 5 History API. Using mPulse’s SPA settings, we can track the soft-navigation. Soft-navigation is when the URL changes on the browser but it doesn’t actually re-load the entire page.

I was trying to understand how Single Page Applications work and came across the article Using the HTML5 History API by CSS-Tricks. In this excellent article, they explain the concept of the HTML5 history API. Normally, when you navigate from one URL to another, the browser reloads the whole page. However, you may want to change certain parts of the page and not reload the entire page. This could be accomplished by using AJAX requests. However, if you just use AJAX, the URL of the page remains the same. So if you need to share this specific view, there is no way to do so. That is where the History API comes in.

Debunking Low-Code Myths to Empower App Modernization

See the original posting on DZone Python

Everyone seems to be talking about low-code nowadays. Low-code app development platforms are already taking the IT world by storm. Moreover, the idea of being able to swiftly develop applications with minimal coding is appealing in itself. It has been aiding app modernization in all business verticals. But, with popularity, comes various perceptions and misconceptions It is necessary to separate facts from myths in order to know the true capabilities of low-code app development platforms.

In forums and other channels, a lot of questions come in to get a better idea of what low-code is all about. Here is a list of popular low-code myths and some arguments to debunk them:

10 More C# Extension Methods for the Holiday Season

See the original posting on DZone Python

Ahhh, it’s that time of year again when we stuff the C# stocking with some Extension Methods!

Notice: This post was written for the Second Annual C# Advent Calendar (#csadvent). <commercial-voice> For the entire month of December, you can receive more than 60 articles geared towards C# for the very low price of $0.00!</commercial-voice> Thanks a lot to Matt Groves (@mgroves) for putting this together again! Awesome job, Matt!

What Round Trip Means in Response.Redirect()

See the original posting on DZone Python

Every developer goes to an interview for future growth and the interviewer also asks the same basic questions, the developer provides the answer that they’ve read about and studied, but sometimes the interviewer changes the basic question in a tricky way.

The interviewer might ask, "What is the difference between Response.Redirect() and Server.Transfer()?" Then you will reply:

Why Desktop Apps Refuse to Die

See the original posting on DZone Python

Desktop apps have been around for a while?—?since the beginning of the personal computing revolution. They’ve weathered the transition from floppy disks to DVDs, and urvived the internet era and the mobile revolution. The question is, ?why?

I’m here to argue that the humble and unloved desktop app is here to stay. In this article I’m going to make a case for desktop apps by focusing on two technologies in particular that have been lauded as desktop app killers – Mobile apps and web apps.

ASP.NET Core 2.1: A Boon to Modern Web Application Development

See the original posting on DZone Python

Customized enterprise application development with unique features and the latest programming languages was a tale of another world a decade ago. It required a significant amount of time and money to offer the optimum user experience. However, today, digitization has made a 360-degree revolution in the software industry.

When it comes to developing a customized enterprise web application, you choose from a vast set of technologies. The most prominent among them all is ASP.NET. It has the perfect combination of web development models offering all the services required for building robust enterprise web applications.

Can a Vue Template Have Multiple Root Nodes (Fragments)?

See the original posting on DZone Python

If you try to create a Vue template without a root node, such as this:

  <div>Node 1</div>
  <div>Node 2</div>

You’ll get a compilation and/or runtime error, as templates must have a single root element. Typically, you’ll fix this problem by adding a "wrapper" div as a parent. This wrapper element has no display purpose, it’s just there so your template complies with the single-root requirement.

How to Develop Android Apps Using Ruby

See the original posting on DZone Python

The way mobile apps are developed has dramatically changed over the past decade. Mobile apps were built using native technologies like Android and iOS and then came mobile frameworks like Titanium and PhoneGap that allowed JavaScript developers to build hybrid mobile apps with a sustained framework limitation. Ever Since RubyMotion was released, Ruby developers have been building cross-platform native apps for iOS, Android, and OS X using the Ruby language alone, without any framework limitations.

An important skill to have when creating Android applications is to have an understanding of Java programming, the required Java packages, and the Android SDK. Learning this narrow set of skills could be challenging for someone new, and the Ruby language has a solution for Ruby developers or someone new wanting to learn the Ruby language in the form of RubyMotion.

A Crash Course on Serverless-Side Rendering With React.js, Next.js, and AWS Lambda

See the original posting on DZone Python

Not so long ago I started exploring server-side rendered single-page applications. Yeah, try saying that three times fast. Building products for startups has taught me SEO is a must if you want an online presence. But, you also want the performance SPAs can provide.

We want the best of both worlds. The SEO boost server-side rendering provides, and the speed of a Single Page Application. Today I’ll show you all this while hosting it basically for free in a serverless environment on AWS Lambda.

Test Web Requests with a Local RequestBin

See the original posting on DZone Python

I’ve been a long-time fan of RequestBin, but it’s no longer active since it suffered so much bad traffic. It’s never been too difficult to set up locally and when I tried to do that last week, I realised it has got even easier because it now has a docker-compose configuration.

RequestBin, in case you’re not familiar with it, is a tool that will create "request bins," unique URLs that you can send HTTP traffic to. It also provides a web interface where you can go and inspect the requests that were sent, so it’s an excellent tool for testing HTTP clients, buggy API requests… all sorts of things. It’s been offered as a hosted service in the past which I guess is a convenient and quick way to get started with something, but it’s almost as quick to set it up locally.

Creating Spring Boot Application for WebLogic and Tomcat

See the original posting on DZone Python

In this post, we are going to create our first Spring Boot Application. Since Tomcat is an embedded container that comes with Spring Boot applications, it is easy to deploy in Tomcat containers, but, today, we will deploy our first Spring Boot Application in Oracle’s WebLogic server. We will use Spring Boot 1.x here. I will create another post on how to deploy Spring Boot 2.x in WebLogic

If you are new to WebLogic server, please download the latest version of WebLogic server first from here. I’m not going to discuss the installation process of WebLogic. Please follow Oracle’s documentation on how to install and configure WebLogic in your local system.

Reviewing My Year in DZone Articles

See the original posting on DZone Python

As we reach the end of the year, I have been looking back at the 34 articles I published on DZone this year. I’m lucky: I love my job and it’s been a pleasure to write them. I hope you have enjoyed reading them!

Since my day job involves data analysis, I spent some time checking on the statistics for views of my pieces to get a good idea of the topics and types of article the readers of DZone are most interested in. I have spotted a few trends. I’ve noted them below, included the links to my articles, but to avoid being purely self-promotional, I’ve also been looking around DZone for some articles by other authors that are similar and may be useful in 2019. Happy reading!

Let’s Chunk

See the original posting on DZone Python

There is huge amount of JavaScript libraries that give us all kinds of functionality – DOM manipulations, AJAX calls, animations, DB querying, you name it. There is a library (and usually more than one) for everything. All those functions provided by the libraries can be done, of course, in pure JavaScript.

Lodash and Underscore are two such libraries. They are very useful and contain a lot of utility functions that can make our life as JavaScript programmers easier. I won’t describe those libraries here, but, instead, for the practice, let’s write in pure JavaScript one of Lodash’s neat functions, called chunk.

JPA, HTML, and MySQL Code Generation in One Minute

See the original posting on DZone Python

With the current trends in the software development field, agility and faster delivery of software applications have become an important part of the IT industry. In fact, this has been one of the main reasons for the evolution of many of the modern technologies and trends, such as single page applications, lightweight frameworks, and microservices architecture. However, even with the massive improvements in the technologies, IDEs, and tools, developers still write a lot of code to get the job done. To achieve the goals of increasing software developers productivity and to reduce the cost of software development, the Clowiz platform has been created.

Clowizis a cloud-based platform that enables developers to generate software artifacts (using CodeGen), end-to-end features (using FeatureGen), and full end-to-end apps (using AppGen) without writing a single line of code. 

React vs. Angular vs. Vue.js [Infographic]

See the original posting on DZone Python

While Angular can be used to build components, it also comes with other tools that can be used to build a complete web application. Thanks to Angular, developers can build single page applications. Unlike Angular, React is a JavaScript library, not a framework. React is used to build reusable UI elements. Vue is a framework similar to Angular. However, it doesn’t come with all of its functionalities making it lightweight. Vue can be used to build complete component driven applications.



To install Angular do the following:

Refactoring C Code: Going to Async I/O

See the original posting on DZone Python

Now that I have a good idea on how to use OpenSSL and libuv together, I’m going to change my code to support that mode of operation. I have already thought about this a lot, and the code I already have is ready to receive the change in behavior, I think.

One of the things that I’m going to try to do while I move the code over is properly handle all error conditions. We’ll see how that goes.

1 2 3 4 5 143