Building Mobile Apps With Angular or Vue.js and NativeScript {N}

See the original posting on DZone Python

More and more Java developers have been coming into contact with front-end development in recent years. For this group of developers, it is only a small step to switch to mobile app development with NativeScript. In this post, we try to clarify the possibilities of native and hybrid app development using NativeScript.

What Is NativeScript {N}?

{N} is an open source framework (under the Apache 2 license) to build native iOS and Android apps, using TypeScript and Angular. {N} is a different technology than the hybrid frameworks, such as Ionic and Phonegap. {N} is a runtime, not a web technology. Your app will not run as a mini website in a WebView and is therefore more efficient. With {N} you have direct access to all the Native APIs of your device.

Creating a Basic Web Site From an ASP.NET Core Empty Project

See the original posting on DZone Python

I recently wanted to do a very quick proof of concept, regarding the use of setInterval versus setTimeout after reading that setTimeout was referable if you were calling the same function very rapidly. I thought I’d note down my journey from File -> New Project to having the POC running so that, next time, I don’t have to re-lookup the various parts.

File -> New Project

If you create a brand new ASP.NET Core 2.1 project, select the empty project, and then run the generated code, you’ll see this:

ASP.NET Core: Replacement for Server.MapPath

See the original posting on DZone Python

ASP.NET Core offers two different locations for files:

  • Content root – this is where application binaries and other private files are held.
  • Web root – this is where public files are held (wwwroot folder in web project).

By default, web root is located under content root. But there are also deployments where web root is located somewhere else. I have previously seen such deployments on Azure Web Apps. It’s possible that some ISPs also use different directories in trees for application files and web root.

FormBuilder in Angular 6

See the original posting on DZone Python

As a follow-up to my "New Application Journey" article, I wanted to focus on how FormBuilder in Angular improves the process of form-based aspects of your application, while introducing some reactive programming concepts along the way.

Recap

As a TL;DR (too long, didn’t read) to the original article, I wasn’t happy with the application my mother-in-law was using for her very small business in the southeast section of the United States. So, I used her business needs to create a new application from scratch using Angular, MySQL, and the AWS environment. Since the application had a few forms to introduce, I was dreading the dated process I have been using — going all the way back to my introduction to AngularJS back in 2013.

How to Develop a Web Application Compatible With Internet Explorer 11

See the original posting on DZone Python

Developing web pages compatible with Internet Explorer can be tough at times. Even though Internet Explorer’s support was pulled back by Microsoft, it still remains a popular choice among users. Internet Explorer misbehaves with some of the most important components of HTML, be it low-height, margin, or padding.

To achieve a proper fix to this problem, developers can use conditional comments and CSS commands to target browser specific commands. While it is practically impossible to achieve 100% compatibility for Internet Explorer due to its discontinued support and compatibility issues, there are several feasible ways to make sure that the user receives a decent experience. Although there is no way to develop perfectly compatible web pages, here’s a guide on how to develop a web application compatible with Internet Explorer 11 and its other variants. 

Adding Off Canvas Layout to a Visual Builder Application [Video]

See the original posting on DZone Python

Off Canvas layout is a common UI pattern for modern applications, especially on mobile devices. The concept is aimed at saving space on your page, allowing you to pop out a "drawer" of additional information. This helps reduce clutter on the main page but still provide access to important data when needed without leaving the page context. You can see an example of the runtime behavior at the top of this post.

Oracle JET provides this type of "off-canvas" behavior as a built in component, and they have a demo of it working as part of the cookbook here.

Write Browser Compatible JavaScript Using Babel

See the original posting on DZone Python

Cross-browser compatibility can simply be summed up as a war between testers and developers versus the world wide web. Sometimes I feel that to achieve browser compatibility, you may need to sell your soul while performing a sacrificial ritual. Even then some API plugins won’t work!

I apologize for the mental imagery, but incompatibility issues get me riled up. All this was before I wasn’t familiar with Babel.

Does a Hamburger Menu Belong in a WinForms App?

See the original posting on DZone Python

User interfaces are constantly evolving in a bid to make every user of an application a power user. We build applications with lots of great features and capabilities and we want these to be readily available and easily accessible to the end user.

Is it Familiar or Intuitive?

When I use a piece of software there are usually three different kinds of UIs I encounter. First are the interactions I am already familiar with from other apps, such as a menu at the top, or a ribbon bar, or a multiple document interface. Second come the new things that are very intuitive as to how they are supposed to be used. This is what we usually refer to as awesome UI/UX — it’s something I’m not familiar with but at the same time something that I seem to know how to use. Once such thing for me was radial menus. Although they have not gained much traction, I immediately felt comfortable using one right from the word go. The third kind are things hidden somewhere in the application that are sometimes impossible to find without external help, e.g. a functionality that has a shortcut but no other way of accessing it.

[DZone Research] Factors Separating Web and Mobile Development

See the original posting on DZone Python

To gather insights on the current and future state of web and mobile development we talked to 19 IT executives and we asked, "Do you see any factors that still separate web from mobile development in organizations?" Here’s what they told us:

Skillset

  • Expertise and experience. There is a movement to bring all application development back in-house.
  • Multiple things. Hybrid are trying to have the same skillsets. Native if you need the newest features. Native requires a different skillset. We continue to keep web and mobile separate.
  • It’s getting blurrier. Web dev is for desktop and mobile. There are challenges for developers to support desktop and mobile. Both web and mobile have challenges. Web compensates for mobile. Mobile just worries about small real estate.
  • We see skills and technologies converging with React and JavaScript. There are organizational issues as well. Web development is from marketing and app development is from product management. Does everything converge under IT? Don’t want to learn experience for internal apps. Need to work with design groups. Need a horizontal matrix to deliver the whole product experience. 
  • It depends on the industry and how a particular vertical is set up. There is a skillset and mindset difference. Web developers come from the marketing side then have the app developer and mobile developers from the IT side of the organization. They end up out of synch. They develop with two different objectives in mind. Need strong product management to integrate the two teams. 
  • The look and feel are still fundamentally different in web and mobile development. Web is still mostly tied to HTML and CSS. Additionally, there is a lack of effective cross-training of developer skills which leads to separate delivery teams.

Mobile First

  • It’s just mobile-first design. There’s a smaller bridge to build mobile. We still need design patterns that are mobile first and be cognizant of UI for mobile versus web. Multi-experience development platforms are emerging. Don’t code self into a box. 
  • Not really. With regards to web design, mobile-first is the mantra. Will it look good on a mobile device and a large screen?

PWA

  • The more traditional software companies like Salesforce and Slack are very advanced. Our customers like financial institutions, healthcare companies, and insurance companies with in-house development move more slowly. Capital One is on par with Slack and Salesforce. However, the more traditional companies with R&D are lagging two years behind. WPA and React Native is only in 5 to 10% of customers. It’s early in the process. Software development companies are the first to adopt. 
  • Not with the advent of Progressive Web Apps; if anything, we see mobile development taking a more dominant approach to web app design and development, something that’s a bit overdue with most bloated web apps.

Other

  • I don’t see much blending of web and mobile development. Bigger players want to unify of all of the platforms. Google is pushing for it. Apple is dipping their toe in it.
  • Overall less and less as time goes on. Web is no longer just desktop web. To us, “web” means desktop web and web on mobile. All of our enterprise customers have responsive web applications that run on both. 
  • Organizations often hire outside contractors or specialized firms to write and maintain their mobile applications, while keeping their web development in-house. This leads to tension and communication challenges between the different teams. Web development teams also tend to operate on longer release cycles than mobile teams.

Here’s who we spoke to:

ASP.NET Core: Read the GPS Coordinates of a Photo

See the original posting on DZone Python

During one of my ASP.NET Core classes I made a demo about how to read GPS coordinates from photo and display location on a map. I took my favorite photo of a beer kiosk in Krakow and displayed the location of this kiosk on a map. This blog post describes my experiment on getting GPS coordinates from EXIF data in an ASP.NET Core application.

Wikipedia defines EXIF (Exchangeable image file format) as a standard that specifies the formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners, and other systems handling image and sound files recorded by digital cameras. Most of modern devices used to take photos save meta information in EXIF format to photos. It’s great but be aware – not all people may use this information in good purposes.

Creating an Angular 7 App With ASP.NET Core: A Step-by-Step Guide

See the original posting on DZone Python

Finally, we have a new major version of Angular, version 7. The reason I use the word "finally" is not just because people were waiting for the latest major release of Angular, but also because there were quite a few rumors about the features Angular 7 would offer. Especially since the April Fool’s article published with the title, "Top 4 Changes Coming in Angular 7.0."

The Angular team officially announced Angular 7 just a few days back, and Angular 7 has introduced some pretty awesome features, like improvements in Angular Material, Performance improvements, and CLI improvements to name a few.

Best JS Frameworks to Build Your Next Application

See the original posting on DZone Python

The first thing people notice about your application is its visual appeal. Most users tend to associate interface design with the credibility and professional competence of your company. That’s why choosing the right front-end technology plays a crucial role in your business growth.

Investing in user experience brings huge competitive advantages and great financial results. However, before counting up future income, you should decide which platform will be the foundation of your success.
How long do technologies last?

Monitoring Errors in WordPress

See the original posting on DZone Python

WordPress is an open source blogging and website creation tool written in PHP and MySQL. It is a highly flexible content management system (CMS) that enables you to build and manage your website using just your web browser. According to a W3Techs survey, WordPress is used by 31.8% of all websites.

WordPress sites generate errors that can negatively affect users, but they are not reported in tools like Google Analytics. You need to examine server-side logs to determine how often they happen. These errors are not just generated by WordPress, but by the dozens of plugins and custom themes that businesses add. Common WordPress errors experienced by users include the "white screen of death," "internal server error," "connection timed out," and many more.

Implement Shared Custom Validator Directive in Angular

See the original posting on DZone Python

Introduction

In this post, we are going to see how to create a custom validator directive in Angular 5. We have already seen how to do validation in our previous posts, and we have not done any validations for comparing the password and confirm the password, remember? Here we are going to look into that. At the end of this article, you will get to know how to create a new shared directive according to the requirements of your app. 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.

Golang Hosting From Jelastic PaaS

See the original posting on DZone Python

Jelastic PaaS is a truly multilingual cloud platform, which currently provides Java, PHP, Python, Ruby, Node.js, .NET, and, from now on, Go environments for running projects of all sizes and various natures. In this article, you’ll get acquainted with the distinctive features of the Go hosting platform and will be introduced to the Go-related possibilities within Jelastic PaaS.

Go Environment Hosting

In order to host your Go application, you need to create the appropriate environment using the Jelastic Topology Wizard.

Ownership in the Rust Language

See the original posting on DZone Python

One of the very distinctive features that makes Rust stand out from other languages is the way it does memory management.

Memory management in C happens by either declaring a variable or by allocating a chunk of space at runtime. That sotred data can then be utilized via explicit function calls. So, basically, the control resides with the developer which may result in error-prone code. In languages like Java, there is a concept known as the garbage collector. A garbage collector is a process which monitors the program for any memory leak and takes care of it. The memory is said to be eligible for garbage collection if there remains no reference to it or if it’s in the Island of Isolation. A garbage collector is always running in the background and can not be explicitly controlled to free memory, which is where things may get a little out of hand.

Building a Node.js Service With AWS Lambda, DynamoDB, and Serverless Framework

See the original posting on DZone Python

As a developer, my favorite new technology is serverless computing. The convenience and cost make it a compelling choice for running options in the cloud — especially for proofs-of-concept or quick ways to prove out ideas. Using serverless computing to get up and running takes very little effort and the costs of running an application in the cloud are minimal. Serverless really empowers developers to act on ideas as quickly as possible.

In this post, I’m going to briefly touch on what serverless computing is and the pros and cons of using it. Then I will build a Node.js service to do CRUD operations using AWS Lambda, DynamoDB, and the Serverless Framework. You can view the finished product on GitHub.

1 2 3 136