3 Refactoring Techniques

This mess was yours. Now your mess is mine.

Vance Joy

Hacktoberfest is coming up. If you’re new to open source contribution and unsure how to help, may I suggest refactoring code? You can provide a fresh perspective to unclear code and discover ways to leave it better than you found.

There are 3 refactoring techniques that I often practice:

  • Rename things
  • Remove nests
  • Extract functions

Knowing how to apply just these 3 can get you far. I’ll explain what they mean and how I used them (or should have used them) in projects.

Continue reading “3 Refactoring Techniques”

Rewriting Apps in Ember Octane

Last Friday, Ember 3.15 was dubbed the Octane edition. To see how easy (and fun) writing an Octane app is, I spent the weekend rewriting my apps Ember Animated (v3.8) and Lights Out (v2.18). Let me share what I learned.

If you have tutorials and demo apps, I encourage you to rewrite them in Octane. You can publish both versions to help everyone understand how the programming model in Ember has evolved over time.

Continue reading “Rewriting Apps in Ember Octane”

Topics in Computational Mechanics: Part 5

The last part of this series is short. You can check out the Matlab code for implementing FEM today! I encourage you to see how the code demonstrates ideas that we studied. These include pullback to parent domain, Gauss quadrature for numerical integration, and postprocessing for visualization.

3 Projects for Teaching Numerical Linear Algebra

In a recent conversation, I realized that I had forgotten to post some of numerical linear algebra (NLA) projects that I had created in graduate school. These projects, along with a few others that I have already published in this blog, can help us appreciate the theories and applications of NLA.

Continue reading “3 Projects for Teaching Numerical Linear Algebra”

Animation and Predictable Data Loading in Ember

At EmberConf 2019, I had the chance to meet and learn from many Ember developers around the globe. I’m excited about Ember Octane, a new edition built with developer productivity and app performance in mind. It’s in beta and readying for release. I think there’s no better time to learn and use Ember.

This tutorial covers how to load complex data in a predictable manner and how to add animation to liven up your site. A hearty thanks goes to Sam Selikoff and Ryan Toronto, whose teaching at the conference I’m heavily basing mine on. They had taken time to build a polished demo app; I was inspired to follow their footsteps.

tl;dr. Use Ember Animated and Ember Data Storefront today!

Continue reading “Animation and Predictable Data Loading in Ember”