
Sign up to save your podcasts
Or


This episode is a live episode from Microsoft Build where AJ O'Neal and Charles Max Wood interview Mike Ammerlaan and Vesa Juvonent about building extensions for SharePoint with JavaScript.
[00:01:28] Mike Ammerlaan introduction
[00:01:52] Vesa Juvonen introduction
[00:02:18] What is the SharePoint Framework?
[00:03:32] What is SharePoint?
[00:05:56] What extensions can you build for SharePoint?
Examples:
[00:07:39] What is WebDAV and how does it relate?
[00:08:36] Do I have to build front-end and back-end components to get full functionality?
It really does take multiple skill sets to build extensions for SharePoint.
[00:11:10] SharePoint on Mobile
[00:12:08] Building extensions with standard Angular or React component libraries
Newer Angular versions are designed for Single Page Apps and SharePoint isn't necessarily set up to work that way. The Web Parts are isolated from each other and Angular requires some workarounds.
[00:14:30] Getting around sandboxing
[00:15:39] Application library or naming collisions if my UI uses different versions or clobber page wide settings
Addons are iframed in and an API token is given to grant access to the data and APIs.
Microsoft also reviews and approves plugins.
[00:18:30] How do you get started and make money at this?
You can request a SharePoint tenant installation from the Microsoft Dev Tools for free. Then you can build into the tenant site. The rest of the tools are available on npm.
SharePoint Developer Tools
[00:22:13] Automated testing for SharePoint extensions
[00:22:54] Building internal-only extensions
[00:25:50] Office 365, SharePoint, and OneDrive
What about OneDrive versus Sharepoint? OneDrive is focused for one person. SharePoint is focused around a team. But they have the same APIs and use the same technology stack.
[00:29:05] The history and future of SharePoint
[00:30:25] What does the API footprint look like?
SharePoint is layers of data and scopes.
[00:35:26] Tutorials and Open Source
Charles Max Wood
AJ O'Neal
Mike Ammerlaan
Vesa Juvonen
A big thanks to Microsoft, DotNetRocks, and Build!
In this episode, Shai Reznik, Ward Bell, Lukas Ruebbelke, and Charles Max Wood talk to Uri Shaked about using Angular with Web Bluetooth and IoT.
[00:02:27] – Introduction to Uri Shaked
Uri is an Angular GDE from Israel. His Angular Story episode is here.
[00:03:21] – Introduction to Hardware with Angular
Angular allows you to build web applications that scale quickly. For hardware devices, you need some kind of interface. Instead of a button, you have a mobile app or web application. This is one place where Angular comes into play. Building control panels, etc.
You can do this with pure JavaScript or native mobile apps as well.
[00:05:20] – Does it run on the IoT device? or on the web?
It can do both. You can run Angular on a webserver on a Raspberry Pi or you can use Web Bluetooth to connect to the IoT device.
[00:06:45] – What are the advantages of using web technologies?
There's no hardware setup. And using Angular Material or Ionic, the UI looks right without spending a ton of time.
RxJS allows you to gather sensor data from accelerometers, heart rate monitors, etc. connected via bluetooth.
[00:09:20] – The physical web
An IoT device that broadcasts its own URL. You can then interface with the device simply by scanning for and browsing to the device. One example is walking into a room, scanning, and then controlling the lights without installing an app.
[00:10:34] – Security
Security is optional on Bluetooth Low Energy. Bluetooth devices used to pair using pin codes and they got set to 0000 or 1234 by default. So now BLE devices don't require it. Some devices add security on top of bluetooth or use the pairing mechanism.
Security is an ongoing concern with IoT in general. The devices that Uri has played with don't implement security.
Uri actually had an audience member hack into the smart bulb he was using during a demo.
[00:15:08] – How do you manage your connection to the device through Angular?
Uri uses async/await to manage the promises based functions that allow you to connect to the device. He wraps all of this in a service.
The bluetooth terminology used for the functions that manage the device are also called services. Don't get them confused.
[00:16:48] – What's the most useful thing you can do with this?
Connecting to an EEG headset that measures brainwaves. Uri wants to allow headset owners to perform EEG experiments in the browser. Otherwise, they have to set up a bluetooth dongle and install python and some libraries to make it work. He'd like to make it simple enough to browse to a webpage and click "Connect."
He'd like to show the user pictures and then guess which one you're looking at.
[00:19:58] – What is the most useless thing you've build with this?
Uri 3D-printed a robot and installed an accelerometer into it and connected it to a WebGL based system to show the orientation of the robot.
[00:22:32] – How do you get started?
You need a browser and a bluetooth device. A smart lightbulb or a robot. You can use your smartphone to simulate a bluetooth device. Uri wrote an Android app that simulates a smart light bulb. Then you can connect the app to your computer's browser and control the smart bulb app from your computer.
[00:25:00] – Ward has a proposal for Uri
Connect lights in your t-shirt to an arduino device and control it from your phone.
Web Bluetooth is much simpler than native APIs for Android or iOS.
[00:29:45] – Commercial applications
Physical web applications and connecting to remote tools and sensors.
Smart counters for your electric meter.
Jen Looper's blog post on web bluetooth and beacons.
The Louvre uses beacons.
[00:33:00] – The physical web
Uri ran a beacon that broadcast his personal site. He took his trash out and one of his neighbors kept getting a notification about his website on his phone.
Lukas Ruebbelke
Shai Reznik
Ward Bell
Uri Shaked
Charles Max Wood
Links
Jerome Hardaway, Dave Kimura, and Charles Max Wood discuss Shrine with Janko Mahronic on this episode of Ruby Rogues. Janko is a Ruby developer. He is the creator of Shrine, which handles file uploads. Shrine tries to solve existing problems and gives many ways to upload files. It tries to accommodate and provide every option for whichever types of file you may be uploading. Tune in to find out more about Shrine!
[00:03:56] What does Shrine do that CarrierWave doesn’t do?
[00:06:06] Does Shrine have good support for Rails?
[00:07:40] Does Shrine work across multiple file types or is it geared towards images?
[00:09:04] What’s the biggest file that you’ve tested Shrine with? Have you run into any kind of memory leaks?
[00:11:48] Explain what goes into building a file upload system. What are the concerns?
[00:15:10] Do you have any blog posts about a migration plan? Do you have a good way to switch to Shrine?
[00:17:29] What do you think active storage will do to the future of Shrine?
[00:19:50] How is the community adoption implementation? What is your process with that?
[00:23:26] What stack are you using?
[00:25:00] Is there anything out there that you feel that these uploading that you adding to Shrine?
[00:29:54] Security Points of Shrine
[00:32:55] How much time have you spent doing Shrine?
Dave:
Charles:
Janko:
Links:
Twitter: https://twitter.com/jankomarohnic?lang=en
On this episode on iPhreaks, we have panelists Guilherme Rambo, Erica Sadun, and Jaim Zuber talk about White Label Apps, its technical challenges, and its advantages over web apps, etc. Don't miss this one!
[00:01:10] – Introduction to White Label Apps
This is an app that you built at one time but you skin different things for different customers. There are a lot of customers around that will build an app but they got different versions of the app that they distribute on behalf of their customers. Your controls have a lot of the same behavior in your app but the color is different, the icons are different, maybe there’s text difference.
[00:03:50] – Pre-built components
This kind of notion of pre-built components has been in the development arena, specifically, in Apple’s ecosystem for a very long time. When the app store first started, you could buy custom widgets, custom controls, and custom art.
[00:06:10] – Customization
Most of the companies have a very limited ability to customize. You can start up with things like changing the name of the app. You can change the icon. You can change the color scheme. You can change some text. You just solve the problem the user is going to deal with.
[00:12:35] – Technical challenges
For Erica, one of the biggest issues is going to be the customer ticketing process on tracking or the customer service process. Typically they’re calling the end owner of the app, which is not a very good solution. And you also have to support the businesses because those businesses have to support their customers.
[00:16:10] – Corporate Entity
If you are selling your apps to small realtors, you'll probably just manage everything yourself. You’ll do certificates, customer profiles. You’ll host it under your own app ID. But if you sell to bigger organizations, they might have their own Apple ID and want to keep it under their roof with their own Apple account. You need things like getting your own certificate with their Apple ID, getting provision profile, creating the app ID, going to iTunes connect and doing the same thing.
[00:22:15] – If-def approach
Typically what happens in most companies is your team leader goes, “Hey, we could sign a new customer. Let’s make the app. Let’s rebrand it. Let’s white label it.” The developers will shrug off their shoulders and say, “I don’t know how to do this so I’ll do something like creating an if-def for different texts.” That’s going to be a problem. But this is where a lot of people start.
[00:25:40] – Interface file approach
One approach is you could create your own tool to customize the apps. They are all the same app but there is one internal configuration file or database or whatever is different between them.
Developers run into problems on finding ways to build internal tool that will reach their configuration file and modify the app as needed. Most of the companies that have a mature platform they can just drop the configuration file and build a list of file that describes where the images are, what the texts are if they have any features that are turned on or off. Most companies can build a configuration file because they’ve narrowed down what problems they’re going to solve.
[00:35:30] – Saturation of apps
There has been a push back in apps. We got to a point where a lot of companies build apps that no one cared about. No one downloaded them. If they download them, they didn’t use them more than once. People can make a smarter decision if they really need an app. They’re not going to download the apps for every business out there. If you are running a business and have loyal customers, you can get them to order easily with their app by first calling in. That might work in some cases or you can be making an app for more than just one pizza place.
[00:40:35] – White label components vs. websites
Web sites are not going to do push notifications so if you need to get a hold of people or notify them of something important, you need to get them to order an app. Their user experience is going to be better. But there’s a lot of benefits for something that you don’t use very often for making a web app because web apps work on every platform. Anytime that you can take advantage of the specific hardware features like 3D Touch or Touch ID, you need an app because you can’t use them on the web yet. The Touch ID is also great for apps that need some level of security like a banking app.
Picks
Erica Sadun
Gee Rambo
Jaim Zuber
Today’s episode features a discussion centered on Boundaries with Clients. Philip, Jonathan, and Curtis explore how you set these boundaries for yourself. Tune in to find out what they have to say!
What boundaries do you have with clients?
Why have boundaries?
It eliminates and helps make decisions. For example, if a new client can’t do a call on Tuesday then Curtis knows he can’t work with them because they won’t be a good fit for each other. It protects the ability to get stuff done. If you have a do not disturb mode on your phone turned on, you can tune texts out from everyone and only receive important phone calls. A good book to read on the subject is Boundaries by Dr. Henry McCloud. When people want to schedule things, have to make sure it fits into your schedule. If it is an emergency you can make adjustments.
“You should be comfortable with saying no without a justification.”
Sometimes you can’t come up with a justification for saying no, so you just say yes. Philip’s life goal is to get to the point where you can say no without having a reason. If you have trouble saying no it’s always good to have an external reason why.
Problems with boundaries
Family and work life can be a hard balance. Part of putting family first is providing for them. Freelancers can easily become overwhelmed by work if they do not set boundaries. Because of your clients out number family, demands are made continually and you feel you have to comply because work is by the hour. Some say “I am putting family first by working.”
It is easy to draw boundaries if there’s no cost or personal trade off associated with it. If you wouldn’t give up anything by having a boundary, there’s no reason to make one. If something is not a temptation resisting it doesn’t make you a virtuous person.
It is harder to say no to people the closer they are to you. It is harder to say no to a long-term client than a prospective client. Jonathan doesn’t have a harder time saying no to clients than family or friends. This is because he only works with people he likes. If you don’t control your life, someone else will. People will put demands on your life until you don’t have any time left.
Goals
The goal for clients should be to produce the best product you can for them. In order to do so, you have to work within boundaries. Clients should understand your schedule; if they do they will rework theirs if you will be most productive for them at a certain time. It is obvious if you’re overworked. If this happens you need to say no, force yourself to be more intentional with your time, and slow down.
Discipline
Boundaries can look like discipline. Mostly need to discipline yourself: have to be careful with the schedule that you create, including at home. There is a need to be conscious enough to know the warning signs of needing more discipline. For some, twitter is a warning sign. Discipline can look like deleting twitter off of your phone.
Productivity
A lack of discipline in fear response is business but not productivity. This happens when you feel like you need to do something but are not doing anything productive. When this happens you need to do something more effective. This could mean you need to stop having coffee meetings with people if it’s not working. Email and social media make you look like you’re doing something but it’s not a good use of time. There’s a difference between effective and productive work. Effective work shows you did something. It distracts you from work you should be doing.
It takes time to learn discipline and boundaries. You should have a long-term vision of where you are going. There are other blueprints out there but someone else’s blueprints are not going to work for you.
Picks
Curtis
Philip
This episode is a My Ruby Story with Simon Moro. Simon is an Australian record producer and mixer. He has been teaching himself Ruby for the last 18 months, Rails framework, and is a frustrated aspiring entrepreneur. Through negative experiences with outsourcing and finding tech co-founders, he wanted to empower and educate himself.
How did you get into programming?
He remembers that the first computer in his home was actually called a dinosaur. His first experience with a computer made him intrigued. He was a lot of gaming consoles when he was young. Personally liked Sega and his best friend liked Nintendo. It was like an early Apple vs. Android rivalry.
He was introduced to visual basic in an InfoTech class in high school. His high school didn’t have a strong tech department so it was a very simple class. There was a button that you would click which would display a dialogue box with a calculator. He was fascinated by the way you could write instructions. He had always been full of ideas. The idea that you could create a digital product just by writing text fascinated him. He started borrowing books from the library and even bought a few. He tried to teach himself.
When he got older he used HTML and found WordPress useful as a music programmer and for the digital products he created. It wasn’t until 18 months ago that he thought he would try to learn a language and build something.
Connection Between Music and Programming
There are a lot of programmers that are also musicians. People don’t often acknowledge that there is creativity in code. Music and code may be appealing to people for the same reasons: because there is both science and creativity in both areas. Music is about agreements within a culture. Musicians agree that certain notes blended with each other either do or do not work. This is how they program symphonies and refactor sheet music to make it easier to read. Music is a process of solving problems creatively using a structure where if you go outside of that structure it won’t work. This is similar to front-end frameworks. In musical theory a lot of things are mathematical. There is a science of music and what makes it sound good. This is foundational in the same way math is the foundation in computer science.
Did you start programming in WordPress or did your interest in programming come from something else?
Simon did little in WordPress in terms of learning to program. He delved into CSS and changed themes using Envarto. He outsourced those tweaks to people from freelancing websites. He did try to learn PHP for his wife’s product but realized he didn’t do it correctly.
He was involved in Melbourne startup world and heard about Ruby on Rails through that. He researched it after he heard about it and read about the philosophy behind it. He raised capital to build a product production management tool for music producers. He built it in Ruby on Rails, and a company in Deli built that for him. He had to fire them and start again.
Because he’d been exposed to it, decided he’d delve into it and teach himself because if he’d started his learning at the same time he’d hired the company he could have taken over once he fired that company. He tells people that they can teach themselves if they have time and has people they can ask for help if they get stuck.
Are you building the mbp for your own product?
Simon built it himself. He had found a tech co-founder 18 months ago but it went south. Five weeks ago he finally decided to do it himself. He focused on one particular feature for receiving client feedback on a work in progress for music. A band that’s sending demos to each other can upload a song and add comments of change requests within the site.
How did you come to Ruby? What was it about Ruby and how did you find it that made you decide to want to do this type of work in Ruby as opposed to PHP or something else?
Simon started reading the philosophy around Ruby; then looked at the code. He thought the Ruby language and the Rails code made sense compared to PHP. He believed that PHP had too much code. He also likes the elegance of Ruby and the Rails framework, the organization, and the syntax.
What kinds of things have you done with Ruby? Is this your first and only product/project? Have you done other things? Ways to learn?
He believes that the way he is learning is most useful to beginners. The first thing that he did is to jump into a Ruby on Rails course through Treehouse. He found it confusing but he completed the course. A friend told him he thought it’d be helpful to learn Ruby through lynda.com. After that, he could separate Rails and Ruby. He started making quick prototypes to help learn and putting together budgets for projects apps, which he used for himself.
Do you find that the courses were enough or did you have to find groups of people who were coding or find a mentor?
It has helped by having people he could reach out to. He hasn’t had formal meetings with mentors. He had a problem with Track Bits and his friend Rahj helped find a solution to a problem one day. He has had moments where he’s been stuck like that and had someone help him. It is difficult to know what questions to ask Google to get the answers. Having someone to point the things out he doesn’t know that he doesn’t know is helpful.
What was it that made you get to the point that you said, “I’m pretty comfortable with this, and I think I can do a good job with it.”
He graduated from audio production in 2000. He has generally been the opposite of confident. He always assumes that he can always learn more, when he started out he was more confident than he is now in his craft. He now knows how important his role is in his client’s potential for connecting with an audience and his client’s potential for going further in their career. When he was younger he thought he could do things because he was trained so he could do things.
Picks
Simon:
Charles:
Links:
This week’s episode is a My JavaScript Story with Chris Coyier. He is from the ShopTalk Show and CodePen. Listen to learn more about Chris!
How did you get started programming?
How do you go from that to professional web developer?
Have to give up on it first. He almost got a degree in university management computer systems, which was more management focused than programming focused. He tried and gave up on Java. He then tried graphic design and ended up getting a degree in that. He got into digital prepress at print jobs where he designed documents. It was fun but it was not as fun as being a “real programmer” would be in his mind. He then got a job at an agency doing web developer work. During this time JavaScript was not on his radar.
How do you get from front-end work to building something like CodePen and starting a front-end podcast?
He has made his career his hobby. He loves doing this stuff. When he was building websites for the first time he started CSS tricks. It became really fun. He grew it over ten years. Because it’s his career and hobby he got better over time. All of his time was spent helping friends, writing, or at conferences. He then decided to build CodePen with some of his friends.
What are you working on these days?
Chris wants to be careful not to be working on too many things at once. His top priority is CodePen, which he says is hard to keep up with what developers want there. The second priority is CSS tricks. He likes to publish quality articles for people to read. This third priority is his podcast.
What’s the thing you’ve done that you’re the proudest of?
CodePen is what has been so continually rewarding. This last month he is all money accounted for. He is really proud of CodePen because they made a company from nothing. He and his coworkers have made the podcast over a decade of growing an audience and it feels entrepreneurial.
Charles’ most proud thing is the decision to go full time with his podcast for the last year and a half.
Picks
Chris:
Charles:
Links
This episode of the Ruby Rogues Panel features panelists Charles Max Wood and Dave Kimura. Tyler Renelle, who stops by to talk about machine learning, joins them as a guest. Tyler is the first guest to talk on Adventures in Angular, JavaScript Jabber, and Ruby Rogues. Tune in to find out more about Tyler and machine learning!
What is machine learning?
Machine learning is a different concept than programmers are used to.
There are three phases in computing technology.
Machine learning is where the computer programs itself to do something. You give the computer a measurement of how it’s doing based on data and it trains itself and learns how to do the task. It is beginning to get a lot of press and become more popular. This is because it is becoming a lot more capable by way of deep learning.
AI – Artificial Intelligence
Machine learning is a sub field of artificial intelligence. AI is an overarching field of the computer simulating intelligence. Machine learning has become less and less a sub field over time and more a majority of AI. Now we can apply machine learning to vision, speech processing, planning, knowledge representation. This is fast taking over AI. People are beginning to consider the terms artificial intelligence and machine learning synonymous.
Self-driving cars are a type of artificial intelligence. The connection between machine learning and self-driving cars is abstract. A fundamental thing in self-driving cars is machine learning. You program the car as to how to fix its mistakes. Another example is facial recognition. The program starts learning about a person’s face over time so it can make an educated guess as to if the person is who they say they are. Once statistics are added then your face can be off by a hair or a hat. Small variations won’t throw it off.
How do we start solving the problems we want to be solved?
Machine learning has been applied since the 1950s to a broad spectrum of problems. Have to have a little bit of domain knowledge and do some research.
Machine Learning Vs Programming
Machine learning is any sort of fuzzy programming situation. Programming is when you do things specifically or statically.
Why should you care to do machine learning?
People should care because this is the next wave of computing. There is a theory that this will displace jobs. Self-driving cars will displace truck drivers, Uber drivers, and taxis. There are things like logo generators already. Machines are generating music, poetry, and website designs. We shouldn’t be afraid that we should keep an eye towards it.
If a robot or computer program or AI were able to write its own code, at what point would it be able to overwrite or basically nullify the three laws of robotics?
Nick Bostrom wrote the book Superintelligence, which had many big names in technology talking about the dangers of AI. Artificial intelligence has been talked about widely because of the possibility of evil killer robots in the Sci-Fi community. There are people who hold very potential concerns, such as job automation.
Consciousness is a huge topic of debate right now on this topic. Is it an emergent property of the human brain? Is what we have with deep learning enough of a representation to achieve consciousness? It is suggested that AI may or may not achieve consciousness. The question is if it is able to achieve consciousness - will we be able to tell there isn’t a person there?
If people want to dive into this where do they go?
Machine Learning Language
The main language used for machine learning is Python. This is not because of the language itself, but because of the tools built on top of it. The main framework is TensorFlow. Python in TensorFlow drops to C and executes code on the GPU for performing matrix algebra, which is essential for deep learning. You can always use C, C++, Java, and R. Data scientists mostly use R, while researchers use C and C++ so they can custom code their matrix algebra themselves.
Picks
Dave:
Charles:
Tyler:
This episode features a panel of Joe Eames, AJ O’Neal, as well as host Charles Maxwell. Special guest John Sonmez runs the website SimpleProgrammer.com that is focused on personal development for software developers. He works on career development and improving the non-technical life aspects of software developers. Today’s episode focuses on John’s new book The Complete Software Developers Career Guide.
No. My goal was 200,000 words. During the editing process a lot of questions came up, so pages were added. There were side sections called “Hey John” to answer questions that added 150 pages.
It should be valuable for three types of software developers: beginner, intermediate, and senior developers looking to advance their career. The book is broken up into five sections, which build upon each other. These sections are: - How to get started as a software developer - How to get a job and negotiate salary - The technical skills needed to know to be a software developer - How to work as a software developer - How to advance in career
The book could be read either way. It is written in small chapters. Most people will read it start to finish, but it is written so that you can pick what you’re interested in and each chapter still makes sense by itself.
It was a combination of things. At the time I wanted new blog posts, a new product, and a new book. So I thought, “What if I wrote a book that could release chapters as blog posts and could be a product later on?” I also wanted to capture everything I learned about software development and put it on paper so that didn’t lose it.
All the questions that people would ask were about career advice. People would ask things regarding: - How do I learn programming? - What programming language should I learn? - Problems with co-workers and boss - Dress code
John thinks that the most important thing to tell people is to come up with a plan on how you’re going to become educated in software development. And then to decide what you’re going to pursue. People need to define what they want to be. After that is done, go backwards and come up with a plan in order to get there. If you set a plan, you’ll learn faster and become a valuable asset to a team. Charles agrees that this is how to stay current in the job force.
Section 3 of the book answers this question. There was some frustration when beginning as a software developer, so put this list together in the book. - Programming language that you know - Source control understanding - Basic testing - Continuous integration and build systems - What kinds of development (web, mobile, back end) - Databases - Sequel
Maybe DevOps because today’s software developers need to, but I didn’t need to starting out. We weren’t involved in production. Today’s software developers need to understand it because they will be involved in those steps.
Build tools and frameworks need to be understood in order to understand how your piece fits into the bigger picture. It is important to understand as much as you can of what’s out there. The basics aren’t going to change so you should have an in depth knowledge of them. Problems will always be solved the same way. John wants people to have as few “unknown unknowns” as possible. That way they won’t be lost and can focus on more timeless things.
This is the first question many developers have so it is addressed it in the book. If you can find a good coding boot camp, John personally thinks that’s the best way. He would spend money on boot camp because it is a full immersion. But while there, you need to work as hard as possible to soak up knowledge. After a boot camp, then you can go back and fill in your computer science knowledge. This could be through part time college classes or even by self-teaching.
John was mostly self-taught; he only went to college for a year. He realized that he needed to go back and learn computer science stuff. Doesn’t think that there is a need to have background in computer science, but that it can be a time saver.
John believes that it is a mistake to not fully understand what you’re doing. Knowing the function first, knowing React, is a good approach. Then you can go back and learn JavaScript and understand more. He states that if you don’t learn the basics, you will be stunted and possibly solve things wrong. Joe agrees with JavaScript, but not so much with things algorithms. He states that it never helped him once he went back and learned it. John suggests the book Algorithms to Live By – teaches how to apply algorithms to real life.
The most interesting question is regarding contract verses salary employment and how to compare them. It should all be evaluated based on monetary value. Salary jobs look good because of benefits. But when looking at pay divided by the hours of work, usually a salary job is lower paid. This is because people usually work longer hours at salary jobs without being paid for it.
simpleprogrammer.com/careerguide and it will be sold on Amazon. The book will be 99 cents on kindle – want it to be the best selling software development book ever.
Wonder Woman
The Alchemist
Artificial Intelligence with Python
Algorithms to Live by: The Computer Science of Human Decisions Apple Airpods
Simple Programmer Youtube
On today's episode of Adventures in Angular, we have panelists Alyssa Nicoll, Ward Bell, and Charles Max Wood. We have a special guest, TJ VanToll of Progress. If you want to stay current with NativeScript, tune in!
[00:01:55] – Introduction to TJ VanToll
TJ works as a Developer Advocate for Progress, which is a software development company behind KendoUI, NativeScript, and few other tools.
[00:02:20] – NativeScript
NativeScript is completely free, completely open-source tool that lets you build iOS and Android native apps with Native user interfaces using JavaScript. It also provides built-in support for both TypeScript and Angular, as well. If you’re an Angular developer, it’s a tool that you can use to take Angular and build for Native iOS and Native Android.
[00:03:15] – Native apps using JavaScript core or v8 on Android
NativeScript uses Native UI components so they’re not using web view, the DOM, HTML, etc. For people that are coming from an Angular background, your apps look like Native apps. They’re using the same building blocks that you’d use if you’re building your app straight up in Xcode or Android Studio. You’re still building your apps the same way, the same file and folder structure, routing, etc. But the real learning curve that it takes to build NativeScript apps is that you have to use their user interface components to build your apps.
[00:05:35] – Template syntax
If you’re building a fairly complex Angular app, when you have all custom components, it’s going to look exactly like a NativeScript app. It’s basically using a suite of custom Angular components vs. using divs and spans as you’re building blocks.
Angular is an optional dependency. NativeScript, at its lowest level, it’s just a technology that’s allowing the communication between JavaScript and these Native objects. The reason why the team spends a lot of time working with Angular integrations is that the model that Angular uses happens to be a really good fit for NativeScript. Any JavaScript developer who doesn’t really like using frameworks at all, using these components and syntax that they’re not familiar with could make their learning curve a little bit heavy.
[00:08:05] – What’s new in NativeScript
Over the last 6 months or a year, the team’s focus has been performance, tooling, and plug-ins.
Performance:
In the last release, specifically, NativeScript 3.0 was shipped back in May. That release is really the combination of profiling over the NativeScript source-code based on how fast your apps start up, how you can render your UI, etc. There is a cost to working with NativeScript because we are letting you write your source code in JavaScript. The team’s effort has been in really optimizing how fast you can paint your UI’s, how fast you can transition from one page to the next, the startup time, etc. One of the performance penalties that NativeScript has is because you’re using JavaScript, there is one step that truly Native apps don’t have. Specifically, Angular is not necessarily known for being the world’s smallest JavaScript framework. But Angular is being known for being very tool able. So the team shipped a Webpack plug-in that helps you reduce the footprint of your app, which means faster start-up times when you’re using Angular with NativeScript.
Tooling:
The other thing that’s related to tooling with NativeScript is the command line interface. You build NativeScript apps with the command line interface. The team is working on adding some more visual tooling, more like a companion to the CLI. There are problems that visual tooling can solve like how do you build your icons? How do you deal with splash screens? How do you deal with some of these Native configuration files? There is a thing called NativeScript Sidekick that can help you with some of these tasks. There’s an early beta out now.
Plug-ins:
The team purposely try to keep NativeScript core light, trying to keep our footprint small. TJ encourages developers, on your own team, and the NativeScript community to do that to your plugins because the NativeScript plug-in ecosystem explodes over the last few months. There are somewhere over 500 plug-ins. Their new plug-ins market place is plugins.nativescript.org/ that shipped several months ago. Now, they’re trying to work to add some consistencies to the plug-ins and adding some documentation around as well.
[00:13:25] – NativeScript 3.0 upgrade and compatibility with NativeScript 2.0
It’s like Angular 2.0 to Angular 4.0 in a sense that there are few breaking changes but for most apps, it’s going to be fairly transparent or fairly trivial to update. It had some breaking changes with NativeScript plug-ins and one of the main reasons that they bumped the version number up is part of that performance changes to specifically render your interface faster. They also have to change their layout mechanism and some of the API with the NativeScript visual tree. Those are things that are unlikely to hit your common app because you’re probably just coding using their Angular components, in which case, you don’t necessarily need to know what’s going on under the hood. The team also worked with the plug-in authors of the top 30 or 40 most downloaded plugins out there to make sure that they were absolutely ready to go for the launch date for 3.0.
If you are getting trouble with the upgrade, you can reach out on their forums. They’ve been trying to tackle these issues when they come up.
[00:15:30] – Communication, upgrade, breaking things, and bugs
Progress, as a company, haven’t done project quite like NativeScript before. It’s a project that’s completely open-source and completely free. They want to give people some freedom to of experiment and build their own things. But they try to be as transparent as possible on what we’re trying to do and reach out for feedback.
They have a NativeScript Slack channel, which has a lot of people in there. They’re the first point of contact when making changes. And for the actual upgrade process, they try to actually put a good effort to get plug-ins where people have put on a considerable amount of effort into them.
[00:17:35] – NativeScript 4.0
Debugging:
If you’re a Visual Studio Code user, you can now just directly do this step debugging directly within the debug tab in VS Code for your completely Native iOS and Android apps. The team also launched support for the Chrome developer tools for NativeScript but they’re only available at a very limited capacity right now. Right now, in the Chrome dev tools, the console works and you can see network request but it’s not the full experience that you’d expect if you’re using those tools for web apps.
Visual tree:
One of the big pinpoints when it comes to learning NativeScript is learning how to build a visual tree with NativeScript. You can mess with CSS in your web apps, you can play around with layouts, play around with colors, etc. That’s possible to break that to NativeScript as well.
Performance:
The other big thing is again related to performance. We’ve got a lot of efforts going on at the moment, specifically, around start-up time. I mentioned we shipped a lot of performance-related things for NativeScript 3.0 but most of those were focused on the runtime experience – how fast we can paint your UI, how fast we can paint more complex Native user interfaces. We’re not turning our attention more to just how fast we can start-up your app and what sort of things we can do to optimize that and bring that number down as much as possible. A lot of that involves how can we fight with web configuration files to get exactly what we want, what are the best ways to reduce the number of files we’re using, use whatever we can to reduce that bundle size.
The last that’s related to toolings is some of the visual tooling that we have. They think they can bring some fairly powerful behavior to NativeScript developers. In the past progress, they've had some premium tools for working with mobile apps that let you do things like build apps in the cloud. Say, you are a Windows developer and you want to build iOS apps, we have some premium tooling that could do that today. We think we’re going to be able to bring that to the open-source version of NativeScript, sort of make that work with directly within the NativeScript CLI.
[00:21:15] – Store on distribution of apps
With NativeScript, things are going to work exactly the same as if you’re building things from the ground up with Xcode or Android Studio. NativeScript CLI spits out the Native app package - that’s .apk file for Android and .ipa file for iOS. You just head out to the Native stores and actually register your apps and use those stores as the distribution model to get your app out to your users.
There are certain people, especially companies, that don’t need to distribute their apps publicly. Think an app that you need your internal people to have, maybe they’re sales rep, maybe they’re doing an inventory job. In Progress, they sell some of the tools that you can use to distribute your apps locally to users. Because it’s generating those exact same Native binaries, once you have that, you can use any iOS or Android distribution model that you want to use.
[00:22:30] – Start-up performance
One of the big performance advantages that Native apps have is you don’t necessarily have to deal with a network. In terms of media files, a web app might need to worry about your initial load of image assets or video assets. But with Native apps, you have the ability to package that in the file.
The specific cost when it comes to start-up time is not getting JavaScript from the network. The cost is actually the registration of your JavaScript code with v8 or JavaScript core. It’s the same reason that there’s a cost for that in the browser if you feed Angular into v8. There’s a cost that it will take to be able to parse that thing and run with it.
[00:25:30] – Lower cost for low-powered devices
TJ has zero concerns about NativeScript start-up performance on a high-end iPhone7. Startup time is like a millisecond. It’s not something that a person’s going to care about on a typical Native app. The bigger cost is on Android. It’s not because Android is necessarily slower. It’s because it has a wider range of performance characteristics from Google Pixel to some crappy Android 4.2 device that is still on the market.
The team uses v8 on Android to run JavaScript. V8 has this feature called heap snapshots so you can pre-register some of your JavaScript codes directly in the heap memory of v8. Essentially, it’s a trick to shave-off some of those milliseconds when your app starts up.
[00:27:10] – Service workers
In NativeScript, there’s no service worker. You’re just using NativeScript API’s, which are abstracting away completely Native iOS or Android API. All of the things that a service worker does, you can accomplish in NativeScript. You can run in the background. You can get a user’s location in the background. You can send push notifications in the background. Anything that an app on your phone can do today that you’ve seen is possible to do on NativeScript apps. One of the reasons to build on NativeScript is your app can send push notifications when it is offline in iOS. It’s something that you can’t do on the web today.
[00:29:05] – Getting started with NativeScript
Javascript
If you go to nativescript.org, there’s a Get Started button. There are 2 different tutorials you can go through to learn NativeScript. There’s one on Getting Started with NativeScript with straight up JavaScript if you’re the person who doesn’t like dependencies on framework completely.
Angular
And then, if you want to learn how to use Angular to build Native apps, there’s the other tutorial on NativeScript that’s on Angular.
Video tutorials
Also, community members just launch nativescripting.com, which is a companion to those tutorials but it’s the video-version of them
[00:30:00] – Testing
Unit test
Unit testing on NativeScript is built directly into the NativeScript CLI. You can use any of the normal unit testing libraries that you might think of using – Mocha, Chai, Jasmine. For CI, there is NativeScript Travis. The team has articles and information on how you can build NativeScript on an automated way.
Functional test
And because NativeScript is generating Native iOS and Android apps, there are a lot of tools out there that lets you automate starting up and running application if you want a functional test. They start your apps, click the buttons, and make sure those behaviors still work. Internally, the team use a tool called Appian, which lets you automate our iOS and Android apps.
Ward Bell
Alyssa Nicoll
Charles Max Wood
TJ VanToll