Story image

Making PowerApps work for you, whatever your expertise level

31 Oct 18
Sponsored

Article based on a blog post by Mobile Mentor consultant Shane Sloan

There is a clear advantage in using Microsoft PowerApps to empower inexperienced ‘citizen developers’ to build real, usable, useful mobile apps with little or no coding experience.

With Microsoft’s excellent documentation and a vibrant PowerApps community, building an app has become a simple matter of constructing it out of pre-made parts, much like building flat-pack furniture.

However, with PowerApps’ simplicity and visual nature comes limitations, including a major one - code reuse, or more specifically, the lack thereof.

 What is code reuse?

In traditional computer programming, developers often find that they need the program to perform the same set of commands over and over again, sometimes in quite different parts of the program.

Rather than coding the same sequence of commands every time they’re needed (and possibly doing it incorrectly in one or more instances), a good programmer will create a function that contains the commands, and simply “call” the function as needed from the main program.

This approach provides a couple of advantages:

  • The function works the same way every time it’s called, so there’s no risk of it working one way in one part of the program and a different way in another.

  • A miscoded function would work wrong every time it’s called, but the advantage here is that it needs to be fixed in only one place.

Code reuse and PowerApps

As useful and beneficial as code reuse is, it’s conspicuously absent from PowerApps’ capabilities and there are any number of situations where it would come in handy.

For example, it is often necessary in mobile apps to display or hide an input field according to the value of a related “on/off” toggle control. Turn the toggle “on” and the field appears, ready for input; turn it off and the field disappears.

With PowerApps, the programmer has to define this functionality explicitly for each field - you can’t code up a “hide/unhide” function and call it when needed. This sort of limitation can be frustrating for traditional developers and is even more so for these PowerApps ‘citizen developers’, especially if they have to do it frequently.

It is worth hoping that some future version of PowerApps will give people the option of lifting the visual-programming covers long enough to implement at least some of the standard features of traditional coding, such as code reuse.

Far from being overwhelming to non-coders, who would still have the visual-only option, it would give them something to work up to as they gain experience with the platform.

WatchGuard’s eight (terrifying) 2019 security predictions
The next evolution of ransomware, escalating nation-state attacks, biometric hacking, Wi-Fi protocol security, and Die Hard fiction becomes reality.
Rimini Street hits NZ shores with new subsidiary
The third-party support provider for Oracle and SAP has opened a new Auckland-based office and appointed Sean Jones as NZ senior account executive.
Why the adoption of SAP is growing among SMEs
Small and medium scale enterprises are emerging as lucrative end users for SAP.
Exclusive: How the separation of Amazon and AWS could affect the cloud market
"Amazon Web Services is one of the rare companies that can be a market leader but remain ruthlessly innovative and agile."
HPE extends cloud-based AI tool InfoSight to servers
HPE asserts it is a big deal as the system can drive down operating costs, plug disruptive performance gaps, and free up time to allow IT staff to innovate.
Digital Realty opens new AU data centre – and announces another one
On the day that Digital Realty cut the ribbon for its new Sydney data centre, it revealed that it will soon begin developing another one.
A roadmap to AI project success
Five keys preparation tasks, and eight implementation elements to keep in mind when developing and implementing an AI service.
The future of privacy: What comes after VPNs?
"75% of VPN users said they are seeking a better solution for cloud networks."