
Sign up to save your podcasts
Or


In this episode, panelists Dave Kimura, Eric Berry, and Charles Max Wood discuss ongoing learning and keeping your passion for programming alive with Ruberto Paulo.
Rubyist from Cape Town, South Africa. Works for a fintech company in Cape Town. He's an organizer of RubyFuza and Ruby DCamp in South Africa.
The Ruby scene in South Africa is growing as is fintech. His company's platform was build by Platform45 and is now maintained by his employer.
Developers are also finding work in the wider world from the Cape Town area.
Is Cape Town a big Rails area? or is there a big focus on other frameworks? It's a mix, but mostly Rails.
Most of the people who live in Kenya spend 1/3 of their income charging their phones. M-pesa is their alternative to banks because they can't afford to have bank accounts. Every business in Africa has to have some kind of technology tie-in because of this.
A lot of the developers in Ruby are Polyglots. They're people who have experimented with several languages in the past. Ruby is probably the highest paid language in South Africa.
Dave Thomas spoke at RubyHACK conference that Elixir is the future. He's using Elixir for pretty much everything now. Elixir presents a viable option to move from for Rubyists.
Several years ago, Ruby was hot. Now it's mature. Many corporations have invested in Ruby, so they're not going to adopt another stack.
Most frameworks can solve most problems, so people only move when you're in the minority case where you need the capabilities of the new language.
A lot of people stick around because they love the language and the community as well.
What does Ruby give us that we want to take with us into the future?
Ruberto is speaking at Ruby Dev Summit about Date Night with Ruby.
This episode of JavaScript Jabber features panelists AJ O’Neal, Aimee Knight, and Charles Max Wood. They talk with special guest Maximilian Schwarzmüller about Vue.js. Tune in to find out more!
[00:02:21] Introduction to Maximilian
Maximilian lives in Germany and is a self-taught web developer. He mostly teaches web development on Udemy and his YouTube channel. Vue.js is just one topic that he teaches. He enjoys teaching and passing on information to other web developers: he believes it is the best thing you can do.
[00:03:10] What other courses do you teach?
He tries to cover basic web development topics. On Udemy Maximilian teaches Angular and generic JavaScript courses. He also teaches courses on Angular and Node.js. On his YouTube channel he teaches more back-end development and Node.js courses.
[00:04:00] Elevator Pitch for Vue.js
Vue.js is a new framework that is popular because it is similar to React but also has Angular features. It is easier to learn than React: not everything is in JavaScript and JXS is not included. It is more also flexible and has better performance than Angular 1. Vue.js is easier than Angular 2 both to learn and master. It is still a JavaScript framework, where developers build single page applications or drop in existing applications to enhance views, control parts of a page with JavaScript, get rid of jQuery, and have an easier time creating applications.
[00:05:10] What are some challenges people run into as they learn it?
If developers are brand new to Vue.js, getting started is easy. It has one thing that a lot of frameworks lack which is awesome documentation. Vuejs.org has a comprehension guide that makes getting started simple. There is a general idea that developers still need to learn of how to structure the app, which is similar to React. Developers have to learn how to build components which is used to build the application. The build template is where everything is controlled with Vue.js. JavaScript code is used as well as template syntax.
[00:06:27] So you build the template and then tell it how each part is supposed to behave with JavaScript?
Yes. To get started use Vue instances, which are JavaScript objects, control parts of the page and it is marked by an id on an HTML element. Then, write a Vue template, which is basically HTML code where extra features can be used to easily output a variable. It makes it much easier to control via Vue instance. Then add a code, add a method which changes the property of Vue instance. It works together and is easy to build up templates and control your page with Vue.
[00:11:12] Vue’s Advantages
That depends on the application. Vue.js is easier to learn, which is an advantage when trying to get new developers. The documentation on the website is excellent, which helps when learning the language. Vue also has it’s own single team that develops it’s products, such as the Vue Router and Vue X. It has better performance, but for extremely big projects Angular 4 may be better.
[00:13:38] Does Vue have routing in it?
Vue.js has its own router. The core Vue team develops it, which is a different package that is downloaded separately. The advantage to this is that if you don’t need the router, then you don’t have it in your bundle but can easily add it. Once it is added it integrates nicely.
[00:14:16] How does the Vue router compare to the React router?
The Vue router offers the same features as the React router: nested routes, passing parameters, route guards, etc. The Vue router integrates nicely into the Vue package. It also injects into every component you have and is very simple. All that has to be done is just to execute one line of code and then the router is in the project.
[00:17:10] How often is Vue.js upgraded and how hard is it to keep up?
Vue.js only has two versions. Upgrading from Vue 1 to Vue 2 is easy. The base syntax and framework is still the same, you just need to adjust and move on. Since Vue 2 they released bigger upgrades. There so far haven’t been any issues upgrading, they have added new features, and still use the old code.
[00:19:09] What is the feature with Vue as far as adoption goes?
It is hard to predict but there are indicators that Vue.js has a good future. Vue.js probably will not overtake Angular but it is becoming important for companies in Asia, which is an important market. They have developed an Ionic version of Vue.js. There has also been an ongoing trend on GitHub.
[00:21:20] Why do we keep having new frameworks and versions?
The language of JavaScript itself is seeing rapid development. New features have been added, new web technologies developed, etc. One reason is that developers do more on the web. They want easier ways of building applications. There is no perfect framework so there has to be tradeoffs between the frameworks. There is no perfect solution for every application so need a framework for every application.
[00:23:16] What is left undone in Vue.js?
It is complete as far as something can be complete. Developers are working on service rendering to improve search engine optimization and initial rendering performance. They are also working on progress web app support.
[00:28:02] What drives the way that Vue grows?
There is simplicity in their documentation. While the documentation is simple, the framework is also easy to learn. Maximilian believes that the reason Vue.js took off is because the documentation and framework work together nicely.
[00:31:19] What is going to keep Vue around?
The support is not based on corporation, but there is an Asian company that is developing a framework that uses Vue to with their own product. Because of this, can draw an assumption that they will keep Vue.js around. Vue.js also has a strong community and core team, giving it a good support system.
[00:34:15] What are people using if they want to use Native Apps but they want to use Vue?
They are having a hard time right now. Frameworks for Quasar and Weex are in the early stages. A Vue.js app needs to be built but there are packages that are working in that direction.
[00:37:25] How do you structure your Udemy courses and what do you think of that as a whole?
Maximilian started teaching Udemy courses about one and a half years ago. He really enjoys teaching. Each course follows a similar pattern. He starts with a rough topic, researches the topic to see what is in demand, and builds a course around projects. He then fits all the things he wants to teach into the project, plans the course curriculum, records and edits the lecture videos, and then finally releases the course.
[00:39:22] What do you get the most questions about with your Vue course?
Questions are mixed. Students dive into the course quickly but then pause. Most questions are about the basics. They usually have something to do with the first few sections of the course or setup problems.
AJ:
Aimee:
Charles:
Max:
This episode of Adventures in Angular features panelists Ward Bell, Joe Eames, and Charles Max Wood. Special Guest Gil Fink is on the podcast this week to discuss Angular Animations. Tune in to find out more about this topic!
[00:01:05] Introduction to Gil
Gil is the CEO of Sparxys, which is a small consulting company that he owns in Israel. He has been working for Microsoft for nine years in web development. He wrote the book Pro Single Page Application Development. Currently, he is also speaking in conferences and consulting for companies in Israel.
[00:02:06] Introduction to Angular Animation
Angular Animation is a model that has been used since Angular 2.0. In the full version it received it’s own model and expanded from Angular core. It is based on Web Animation API and gives a specific language to write Animations declaratively using Typescript in the components. It is also easy to write.
Animations are not used to make web pages a “swirling vortex of text.” It instead is something that is used to capture the attention of the user to let them know what is new or where they should pay attention. It gives the user a better overall experience. For example, how to show a user they have a validation error: use a red blinking border. It does not have to be sophisticated or complicated, but can be if that is what is wanted.
[00:05:48] Web Animation API
Animation mobile in Angular has been available for roughly two years. There is a function called animate which gives the ability for an application to be animated. Web Animation API runs animation for you but is not simple.
[00:07:35] What kinds of things do you see people doing with Animations?
A common thing for developers is to make Animations make transitions between pages in SPA. Animations also can be used for appearing, or fading in or out elements. More transitions can be made for panel, where they slide from one side to the other, which grabs the attention of the user. SVG and Canvas also are used for Animations by developers.
[00:10:33] Starting with Animations
Most developers are in a hurry to write their first animations. First, they have to understand animations because understanding concepts are helpful. Reading examples of what CSS 3 and Web Development API are can be a helpful tool. Gil suggests MDM and Mozilla to gain a better understanding. After grasping these concepts, read about how to use the Angular Animation model and how it was created. The Angular Animation model is actually not needed to create Animation in websites – you can use CSS 3 animation and Web Development API.
[00:14:15] How do I add Angular Animations to my Angular app?
[00:18:09] When and where should you be using Animations?
There needs to be a balance when using Animations. Gil’s rule is not to use experts to understand where to put them. Not everything should be filled with Animations. He prefers to start without them and then add according to specs or expert guidelines. Animations can be distracting and should be there to help the user.
[00:21:43] Ideas on How to Use Animations in Applications
For example, you can use Animations for models. If a model appears at once, it might shock the user. Instead, make sure that they appear smoothly. It should indicate something is either happening or has happened. If everything happens at once, it may not be as effective for the user.
[00:25:25] At what point in the process do you decide this component needs Animation?
Gil works with experts in the companies that he works for that have guidelines for the components he creates. Because of this, he creates what they want him to create.
[00:28:44] Is there a way of testing these animations are happening?
Yes, you can use tools like Protractor, Selenium, and Test IO. Test IO gives the option to record a screen. These tools won’t help understand animations because they can’t test animations. They can check for existents of a class name. You can use a manual tester for quality assurance or have a person check for you. To really see if an effect is working you have to just see it working.
Joe:
Charles:
Gil:
Garrett McCullough brings his experience building a large scale e-commerce React Native app with him to discuss what you should know and what libraries you can use when building an e commerce app in React Native
This episode of The Freelancers’ Show features panelists Reuven Lerner and Jonathan Stark. They are answering questions from the audience. Tune in to hear their answers!
[00:01:15] When you sell someone an app or website, do you sell them a maintenance package with it?
Reuven does not. He charges by the hour. He would probably consider a monthly retainer. Jonathan thinks that for the typical freelancer, maintenance work is not highly profitable unless it is your main business. He calls it “janitorial work.” Developers do maintenance work because they think clients want them to. They think that because it only takes a couple hours a month it is something they can do.
What do you do when clients ask whom to call when something happens? Jonathan says he can’t help them but that he’ll put them in touch with someone who can. This may mean that he will put them in touch with a service provider or that he will train a junior developer internally who is capable of doing the work. If you are aware enough to recognize that when you sell someone a website build that they are probably going to need maintenance later, it can be an upfront guarantee or an option that you build into your proposal. Then you can give them a quote that includes bug free, guaranteed maintenance for a specific amount of time.
The ideal option for Reuven is to use a bug free guarantee as a differentiator between you and anyone else bidding on the job. This gives you a strong incentive to do a great job the first time around. An ideal for Jonathan would be to give the client a fixed price that’s high compared to hourly estimates. Give a guarantee that indicates quality, whether that’s a bug free guarantee or satisfaction guarantee.
[00:17:42] “Four Phases of Client Engagement”
Jonathan is not a fan of long-term developer employer relationships because he feels that they start to treat developers as employees. He references a blog post, the “Four Phases of Client Engagement,” which points out the four phases of engagement.
During the four phases, profitability is highest at the beginning phases and lowest at the end phases. It is easiest when doing a diagnostic because it is easy work for the developer and they earn a big profit while delivering value to the client. The four phases are:
[00:22:10] What about businesses that offer specialized upgrades?
This is where the client finds himself or herself in a jam and needs help fixing a high-risk problem quick. There is a potential for a high profit to be made. If you have high risk combined with high urgency and your expertise overlaps with the problems that are there, this type of company can exist and make a high profit. In this situation, maintenance is not a goal.
[00:25:15] If I go to make a list of clients I enjoy working with and the list is empty, what do I do?
Reuven’s suggestion is that this person needs to find a different focus as well as different clients. Jonathan suggests picking a vertical. While this is easy conceptually, it can be hard to convince yourself that what feels like a risky decision is not. Jonathan suggests to look for where he has expertise. Find the common thread between his clients. Whether that is a vertical focus – a type of company - or a horizontal focus – a specific technology. He also suggests to look for a story to tell that could point them in a direction of expertise. There has to be a theme to his work. Find that and frame it to show value to potential clients.
[00:33:30] If a client asks me to do something that’s out of the scope of the project I’m working on for them, how do I politely say, I’d love to do that for you, but you’re going to have to pay for it?”
Software developers usually code. Extra work – such as sitting in on a meeting – that they may be asked to do is headwork, not handwork. This shows that the client trusts them, either through a relationship developed or through a conversation that was had about a particular expertise. If they are invited to a meeting, they should try to secure that opportunity. The wrong thing to do would be to ask for payment. At this point in the relationship, they still see you as a coder but are giving you an opportunity to affirm your value to their company. This is an opportunity to be promoted. Don’t act like a mercenary in this situation. Just go do it - even refuse if they offer to pay for your time. Act like it is a sales meeting. Deliver as much value as you can without doing homework. If it goes well, finish the meeting by saying that you have time to take this on and can write up a proposal. This shows them that you were happy to do them a professional courtesy but afterwards won’t take it further unless you get paid.
If you are an expert in the field you won’t be able to give away all of your knowledge on the subject in an hour. Taking the meeting gives them a taste of how it will be to work with you and why they should hire you. Getting leads is the toughest thing so you probably will not have more than one or two of these types of meetings a year. If you begin to have more meetings than that, consider road mapping. This is an opportunity to charge clients for something that they will appreciate and that is easy to do on your end. But it is changing your business.
[00:49:15] If I specialize on a vertical, how do I reuse code from client to client?
The general rule if you are writing code for someone is that your client owns the code. If you reuse the code, it could get you into legal trouble. There are ways that you can get around it. One way is to put in the contract with the client that you still own the code. This actually happens a lot. It can be structured in different ways. If you are modifying a library then that retains an Open Source license, so you still own the code. If you come into a project with your own libraries then those also still belong to you. Just make sure to always put it in your contract.
Jonathan:
Reuven:
Four Phases of Client Engagement
Today's episode is a My Ruby Story with Hal Fulton. Hal talked about his contributions to the Ruby community. He is the author of The Ruby Way. Listen to learn more about Hal!
[01:20] – Introduction to Hal Fulton
Hal is the author of the Ruby Way, which was one of the books that Charles picked up when he started programming in Ruby. It’s still being published and still up to date. Hal still loves computers and programming but he admitted that he can’t keep up with it anymore.
[03:50] – How did you get into programming?
Hal didn’t really have the opportunity to get into programming at a young age. So, the first chance he had was when he just turned 17, he went to a summer program, which was a 6-week program at a college. It was dealing with Genetics and Population Genetics. He had lab work and learned some mathematical models. He also learned BASIC and a couple of primitive microcomputers with different versions of BASIC. His first BASIC programs were the hello world and followed by Population Genetics.
[06:20] – How did you get into Ruby?
Hal went to college and majored in Physics. But he was taking Computer Science courses along the way. He dropped Thermodynamics and made a C in Differential Equations. Then, he had to change his degree. He always wanted to major in Physics but he thought that Computer Science is easier and more fun. For him, it will be 10 times easier to find a job and it will be 10 times easier to make money.
Hal worked for a community college for a while. Then, he went to IBM in Houston for a series of contracts. He ended up 7 contracts at IBM, making some 6 months to 2 years. He knew more about their internal processes and procedures. One of the last contracts he ever had in IBM was in October 1999. Someone at IBM told him that he should know Ruby and pointed him to the website.
According to Hal, he was busy learning Ruby. He didn’t know Ruby yet but he knew that he can write.
Picks
Hal Fulton
Charles Max Woods
Today's episode is a My JavaScript Story with Mike Hostetler. Mike talked about his contributions to the JavaScript community. Listen to learn more about Mike!
Mike was on episode 133 which was like 2.5 years ago.
First computer
Mike got their first computer when he was 5 or 6 years old. 286 IBM Clone had a command prompt that he spent several years trying to figure out how to code with it until he stumbled on a few basic books at their local public library in junior high. He began teaching himself how to code with QBasic and Borland C++. He, then, found the internet early high school and downloaded the Mosaic browser. He started coding HTML and early JavaScript, late 90’s. Then, he went off to college to get a Computer Science degree.
First job
When Mike was late high school, he decided that he knew enough coding that he was going to try to get a job. He ended up finding web development companies in the phone book and calling each one of them, trying to explain that his 16-year-old self could help them code and build websites. He ended up landing a job and was paid minimum wage to build HTML sites - a lot of 1x1 pixels transparent gifs, coding HTML by hand and notepad. Then, he ended up working for that company for his first couple of years of college as well.
After college, the job that Mike landed was spent on learning Microsoft technologies and then half on the open-source side of learning the LAMP stack. At that time, it required hand-coding JavaScript. His next role is building a custom mapping application which was a single page application that heavily relied upon JavaScript. This was client-side object-oriented. There were no frameworks but it was enough script to build a URL that called a custom CGI to render the map. So, he immediately jumped in and started using the early JavaScript frameworks and prototypes.
The role that Mike was in next was building a touchscreen capable device. They needed custom plug-ins to provide the highlight focus effect around the button. He needed to write a plugin to do that and jQuery has just been released. So, he stripped all the prototype code, throw JQuery in there, and then, write a plug-in to navigate this interface by keyboard.
jQuery
Mike’s first participation was on the JQuery project. If you ever use the JQuery plug-ins site, the old site, that was his contribution. He ended up running infrastructure for JQuery for several years. JQuery launched his business career. He switched into an entrepreneur around 2009. Since then, he’s contributed in numerous ways through speaking, leading training, and writing articles. He was a co-author of the JQuery Cookbook.
Node.js
As Node began to get more popular, Mike switched his attention to Node and found passion around the Sails.js project. It was a Node framework that made it easy to build Express-powered apps with Node and limit a lot of the convention over configuration elements of the Sails framework. That morphed into ES6 rewrite of Sails called the Trails framework. Currently, he is an organizer of the Chicago Node.js Meetup and he’s a contributor to the Trails framework.
jQuery 1.4
Mike and the team made community’s problems their problems so the gravity of what they were working didn’t hit them very much until jQuery 1.4. They had an online conference. They all recorded talks and they’re releasing a talk a day for jQuery that will be going to accommodate the 1.4 release. He remembered that he was setting up, managing the servers, and was doing some last-minute configuration. Then, John had tweeted that 1.4 was ready, pointing to jQuery.com. The web server just ground to a halt as he saw the traffic come in off a tweet.
Open-source community
Mike remain friends with a lot of them. According to Mike, they were just normal people who made a choice to lean in, contribute, where those contributions ended up becoming popular. Looking forward, he said that he’s going to continue to contribute to the open-source community. He wants to help the junior developer that is learning ES6 for the first time and is solving a syntax error. From Mike’s perspective, technologies come in waves. jQuery was a wave but jQuery’s wave focuses its energy into JavaScript’s wave. Certain people catch a contribution wave. React is on the upswing. Node is in an interesting spot because they’ve been on the upswing for many years but there’s new work that could be done. He said that had a shot to be at the forefront of the wave and got to see it.
Advice
For anybody else that maybe listening, find a spot where there’s new ground that you can contribute to and just dive in and do what you can to solve a problem to make it better. You’ll catch your wave.
Node frameworks
There was a Reddit thread about Node frameworks in 2017 that listed out all the possible frameworks. The classic answer is to use the right tool for the right job but Mike’s answer is: Node has grown so big that different frameworks are built to different people on the learning curve of Node. The other thing that Node has done is they have this culture of really running away from any Monolithic one-size-fits-all solution. The community of Node has made sure that they make space for an incredible diversity of solutions and frameworks.
Antipattern
The anti-pattern is: what is the best framework of 2017. That’s the wrong question in the Node culture. Look at your team, look at your project, what framework can you be most productive in and what framework can you contribute back into the community with? That is one of the key reasons that Node itself has remained and continued to grow in popularity.
Mike’s not contributing to the Sails project at the moment. He has been focusing on the Trails project. He has written a couple of Trails packs or the equivalent of plug-ins, messed around with GraphQL. He is also helping answer questions in the Gitter chat – small ways.
Stack Overflow
Go on to Stack Overflow. Subscribe to tags where you can answer questions. Every answer on Stack Overflow is a contribution. Go, watch, subscribe to the issue queues for the projects that you use. Just even sharing your experience with how you solve a problem, there is somebody that you could reach down to and answer their questions that take their burden off.
Gitter
Get involved in the Gitter chat. Listen, watch, stand on the sidelines, and see what’s going on how the community works.
Pull request
The next step, if you see a problem, submit a pull request, listen to see what the roadmap is, and see what you can contribute.
Infrastructure
A lot of projects need help in infrastructure in their build scripts to produce better-written code. You can document for them. If you wait for the next sexy thing to do, you’ll never get there. Be humble.
Fun
Remember that open-source is fun. If it becomes a drag, you are doing it wrong. Look for the opportunities that are aligned with what you do so it’s a fun, happy experience.
Raise Marketplace
Currently, Mike is taking on a new role as Director of Front-end Engineering at Raise Marketplace. It is a marketplace start-up in Chicago. His focus is rebuilding the front-end of Raise on a micro service Node.js in Go service architecture. They have also been listed to help some folks at Google in the web performance team. They are always hiring. If you are looking for a remote role for a start-up. Feel free to reach out to him on Twitter or on Raise.
ModernWeb
Mike’s side-project now is a website called ModernWeb.com, where they help connect companies with teams of software developers and tell the stories of those software projects. A lot of developers are great at writing code but are terrible at telling the awesome things that we do. So, ModernWeb exists to tell the stories of development. The great side effect is companies want to work with you when you tell your stories. They help complete that circle. Go over to ModernWeb.com and you can contact them through the website or you can drop him an email at [email protected].
Mike Hostetler
Charles Max Wood
RR 324: Developer Horror Stories
The panel for this episode of Ruby Rogues is Dave Kimura, Eric Berry, and Charles Max Well. They are telling developer horror stories this week. Tune in to listen to their stories!
[00:01:40] Eric’s Story
Eric tells a story that happened today. He was working on a report on live data at work. While doing this, he sent texts to hundreds of people that shouldn’t be getting them. The moral of the story is that everyone makes mistakes, even seasoned developers.
[00:02:58] How could that have been avoided?
Eric has a fail-safe that has to override with an environment variable so that it won’t truncate the tables. Once that happens, no messages will be sent. He works at a company, which is a B to C texting platform that allows customer retention through mass, etc. He commented out stuff, not realizing that it would start sending messages. He needed live data to generate reports so he did not truncate the data. His advice is not to comment out code until you know why you are doing so.
Dave says that same thing can also happen with an email service. Instead of commenting out code, make sure they are set up to a mail server or mail dev to where it actually never sends out to the real world but stays in a send box environment. Amazon SES has a way to do this where things stay internally.
[00:05:10] Dave’s Story
Around seven years ago Dave needed to store some images. He did not want to use a storage on the local computer because he would have multiple web servers and he did not want to use external storage because he was “lazy.” So he stored the images in the database. It worked for years until one day he saw that the table was 30 GB, which was much larger than it should have been. He had to extract and rewrite because any test to undo it would be substantial. It would be a long running process because 30 GB is a lot of data.
In hindsight, Dave’s advice is that you don’t have to prematurely optimize but you also don’t have to make bad decisions. Do not store globs of binary data in your database. If it can be stored as a jpeg, do that.
[00:08:04] Charles’ Story
Charles’ story focuses on time zones. He was working on test first development. He wrote tests for a feature and his coworker checked them. The database was running in UTC and doing checks in Mountain Time, so the checks would fail from 6pm until midnight. The CI server would show that tests were not passing for a chunk of the day.
It was a simple fix. He learned that you can write a test that passes but may be overlooking something simple that may change when in a different place or a different time.
[00:11:05] Errors
Errors are hard to track down. The hardest ones to find are the ones that only happen occasionally. The worst ones are those that are critical errors that only happen occasionally. Because they only happen sometimes, it is hard to know how to fix them.
[00:19:13] Using a Technology Too Soon
Eric used a technology too soon, which was Rails. Nobody could take over once he left the company. He had to go back to the company and rebuild it in PHP so that others could use it. The lesson from this mistake is that when you chose a technology you have to choose one that supports the buzz factor.
Everyone has a responsibility to the people they are working for to add value. If you leave them with a maintenance nightmare you are not helping, you are hurting. Make sure you are locking things down.
[00:22:35] Gems and Poll Requests
Dave watches Gems to see what and how often they are updating. He checks to see if his poll request was accepted and reverts back to the original gem. He calls it “free maintenance from other people.” He doesn’t think you should deviate from it too much. An option is to use a proxy as well.
[00:27:41] Have you ever had to make patches in your Rails app knowing that those patches were coming in a future release?
Eric has had to in the past. His mentor had to patch Rails, apply it, but every time it ran it said, “if you upgrade rails, upgrade me.” It was a reminder to make sure everyone stays in sync.
[00:29:30] Migration
Dave and Charles have both had problems with migration. Take snapshots of database before you use migrations. The moral of story is if you’re going to migrate data, make sure you back up your database before you change the data. And don’t do data modifications in your migrations. Also set up a replica of your database. There is no excuse except for laziness or inexperience.
[00:32:10] Materialized views.
Eric used to work for social media company that had a lot of data coming in from various forms of social media. Helped build sub products that handled intake of data. Decided to use materialized views. It is a view that self updates as data changes in the database. In other words, it creates a fake table and can simplify the application side of things.
It got a little messy and they had no idea what was updating things when. Because of this, they had to convert the materialized views to stored procedures. The materialized views killed the database because it triggered things when it shouldn’t be.
[00:37:23] Caching
Caching is a big problem with development. There are complex cache keys built around different queries and combinations of objects. There is a value with using caches but there is a caution with not using caches too early. A lot of problems have resulted from caching wrong results. The moral is to measure and make sure that you are working on the right problems. Sometimes premature optimization does not matter. Sometimes caching is just not needed and messes programs up rather than helping them.
[00:40:34] How do you populate data with unrealistic data?
It depends on how big the application is, but larger ones generate ten to twenty thousand records. For these, Dave uses Active Record Import. He used the Faker Gem to create fakes names. Without using Active Record Import it would take ten to fifteen minutes to 50,000 but instead it took two minutes with using it, saving a lot of time.
Dave:
Eric:
Charles:
The panel for this week on JavaScript Jabber is Cory House, Aimee Knight, and Charles Max Wood. They speak with special guest Austin McDaniel about Zones in Node. Tune in to learn more about this topic!
[00:01:11] Introduction to Austin
Austin has worked in JavaScript for the past ten years. He currently works in Angular development and is a panelist on Angular Air. He has spent most of his career doing work in front-end development but has recently begun working with back-end development. With his move to back-end work he has incorporated front-end ideas with Angular into a back-end concept.
[00:02:00] The Way it Works
NodeJS is an event loop. There is no way to scope the context of a call stack. So for example, Austin makes a Node request to a server and wants to track the life cycle of that Node request. Once deep in the scope, or deep in the code, it is not easy to get the unique id. Maybe he wants to get the user from Passport JS. Other languages – Python, Java – have a concept called thread local storage. They can associate context with the thread and throughout the life cycle of that request, he can retrieve that context.
There is a TC39 proposal for zones. A zone allows you to do what was just described. They can create new zones and associate data with them. Zones can also associate unique ids for requests and can associate the user so they can see who requested later in the stack. Zones also allow to scope and create a context. And then it allows scoping requests and capturing contacts all the way down.
[00:05:40] Zone Uses
One way Zone is being used is to capture stack traces, and associating unique ids with the requests. If there is an error, then Zone can capture a stack request and associate that back to the request that happened. Otherwise, the error would be vague.
Zones are a TC39 proposal. Because it is still a proposal people are unsure how they can use it. Zones are not a new concept. Austin first saw Zones being used back when Angular 2 was first conceived. If an event happened and they wanted to isolate a component and create a scope for it, they used Zones to do so. Not a huge fan of how it worked out (quirky). He used the same library that Angular uses in his backend. It is a specific implementation for Node. Monkey patches all of the functions and creates a scope and passes it down to your functions, which does a good job capturing the information.
[00:08:40] Is installing the library all you need to get this started?
Yes, go to npminstallzone.js and install the library. There is a middler function for kla. To fork the zone, typing zone.current. This takes the Zone you are in and creates a new isolated Zone for that fork. A name can then be created for the Zone so it can be associated back with a call stack and assigned properties. Later, any properties can be retrieved no matter what level you are at.
[00:09:50] So did you create the Zone library or did Google?
The Google team created the Zone library. It was introduced in 2014 with Angular 2. It is currently used in front-end development.
[00:10:12] Is the TC39 proposal based on the Zone library?
While Austin has a feeling that the TC39 proposal came out of the Zone library, he cannot say for sure.
[00:10:39] What stage is the proposal in right now?
Zone is in Stage Zero right now. Zone JS is the most popular version because of its forced adoption to Angular. He recommends people use the Angular version because it is the most tested as it has a high number of people using it for front-end development.
[00:11:50] Is there an easy way to copy the information from one thread to another?
Yes. The best way would probably be to manually copy the information. Forking it may also work.
[00:14:18] Is Stage Zero where someone is still looking to put it in or is it imminent?
Austin believes that since it is actually in a stage, it means it is going to happen eventually but could be wrong. He assumes that it is going to be similar to the version that is out now. Aimee read that Stage Zero is the implementation stage where developers are gathering input about the product. Austin says that this basically means, “Implementation may vary. Enter at your own risk.”
[00:16:21] If I’m using New Relic, is it using Zone JS under the hood?
Austin is unsure but there something like that has to be done if profiling is being used. There has to be a way that you insert yourself in between calls. Zone is doing that while providing context, but probably not using Zone JS. There is a similar implementation to tracing and inserting logging in between all calls and timeouts.
[00:17:22] What are the nuances? Why isn’t everybody doing this?
Zone is still new in the JavaScript world, meaning everyone has a ton of ideas about what should be done. It can be frustrating to work with Zone in front-end development because it has to be manually learned. But in terms of implementation, only trying to create a context. Austin recommends Zone if people want to create direct contacts. The exception would be 100 lines of Zone traces because they can get difficult.
Another issue Austin has is Node’s native basic weight. Weight hooks are still up in the air. The team is currently waiting on the Node JS community to provide additional information so that they can finish. Context can get lost sometimes if the wrong language is used. He is using Typescript and doesn’t have that problem because it is straightforward.
[00:21:44:] Does this affect your ability to test your software at all?
No, there have not been any issues with testing. One thing to accommodate for is if you are expecting certain contexts to be present you have to mock for those in the tests. After that happens, the tests should have no problems.
Cory:
Aimee:
Charles:
Austin:
On this episode of Adventures and Angular the panelists are Alyssa Nicoll, Joe Eames, John Papa, Charles Max Wood. They discuss attending and speaking at conferences. Tune in to listen to their opinions!
[00:01:23] Benefits of Conferences
Joe believes that attending somewhere between two and four conferences is good for a developer’s career. The minimum should be attending one conference a year. Some companies believe that people are wasting time because they are taking time away from work. They are of the mindset that they could learn the same information from a video. But John looks at it as developers learning how to communicate. If developers use their time well, they can potentially solve problems and find ideas they have never heard of and can learn how to implement them at work.
John believes the benefits to the developer verses the company are different. Developers could meet a potential employer who would pay you more than your current employer. For companies, if people want to leave, forcing them to stay may not be the best thing to do. Forcing someone to stay could lead to low productivity, which is not the best thing for the company. The more educated the employee the happier they will be, and happy employees stick around.
Charles believes that the reason you go is for things you can’t do at home. These are interactions, new thought processes, and mindshare. Companies that don’t give their employees chances to go to conferences are missing out on reasons why they hired them in the first place.
[00:09:00] Why Attend Conferences?
If the goal of attending conferences is to try to be better than everybody else, there are better goals. Go to conferences for yourself and your own education. Go to be the best developer that you can be.
Before you get to a conference ask - What are the problems you’re trying to solve at work? How do you keep up? How could a conference help me? How are people feeling about the technology? If you cannot find out information online, it makes it a huge asset.
Charles once heard a financial expert say you should get three to five times out of anything you do as you put in. Be sure to make the conference worth it.
[00:13:40] – New Trend at Conferences
There has been a noticeable trend at conferences for smaller groups to not watch sessions. They do not go to workshops, listen to speakers, or seemingly network with other developers. Instead, they just go to the parties with their friends. This could be a reason employers feel it is a waste of time and money for employees to attend conferences. Alyssa still thinks that people will take away something even by simply being around like-minded individuals.
[00:15:50] Companies Perspective on Conferences
Companies will want people who have experience with speaking at conferences. They will want those people who have influence in the community they have been speaking to. But sometimes, once the company hires them, they do not want them to speak at any more conferences. They get the job because of the extra things they do, but now they want people to focus on the job and don’t want to risk people finding another job.
People need to have a conversation about the values they and their new company have to see if they match. To do this they need make sure to ask questions to see if something they value, such as conferences, will be allowed to continue once they are employed. Some companies may not want them to go to or speak at conferences. Any company’s core value is to do business and make money. If they are not doing that then they cannot employ people. They may think that letting people attend conferences is holding up their production.
People need to be sure to think about the concerns the company has when negotiating. For example, there was an employee that wanted to speak at conferences, but was so valuable to his company that he could not leave. That led him to train someone who could handle things while he was gone. People have to earn trust from their employer. Some people do not think about how to do this; instead they give away swag from the company or tell secrets while speaking at conferences. This is a way to lose trust and potentially be fired.
[00:27:18] Alternative Perspectives
Some companies will send and pay for people to go to conferences; no questions asked. They will be happy that their employees were invited to represent their company. There may be rules about what they are allowed to speak about.
One thing to do as an employee is to always clarify if the contract is the same before going to speak at a conference. Make sure to continuously ask, “does this still fit for me?”
[00:30:45] Developers and Conferences
As a developer, attending conferences is good for your career. Should attend two a year. There are no negatives. Could never talk to another person, and still have benefits from sitting in the room.
[00:31:54] Becoming a Speaker
What do you want? All developers want different things. Some want to write great software, have a job, contribute, learn, but do not want to build a reputation. Some feel like they can make a difference and get excited about speaking. There’s not a right or wrong as long as you get what you want out of your career. Speaking is valuable and a good way to give back to the community.
Start speaking at meet ups. Talk for five-minute intervals. Afterwards ask people to give feedback and do not take it personally. It will help to make you a better speaker. It is easier to know what you need to improve.
Meetup.com helps you to find places to speak. Contact the organizer of a meet up and ask to speak. Two to three times a year hire a speaking coach. Look at this as a perspective of a professional who can give you advice to get better. It is easier to have feedback rather than self-evaluate. This also teaches how to get better at communicating with people.
Joe:
Valerie Kittel
Alyssa:
NG Houston
John:
Do not speak at the audience; bring them on the same journey you went through when you learned that thing you're speaking about.
Charles:
Angular Dev Summit