This is something that I needed to do in a recent AngularJS project. I had scaffolded the project with my favorite yeoman generator, Gulp-Angular, and I would build my project with the simple gulp command. However, in order to actually deploy it I had to hand off the files to some one else. The company was using a small time CMS that only allowed for manual upload of files, and I wasn't even given access being that I was just a contractor at the time.
0 Comments
I found myself working at a place where they didn't appreciate unit testing. Worse, there were developers there who didn't even know what unit testing was! It can be very intimidating for people who are new to unit testing regardless of how much general software development they've had in the past. These days I find myself working with mostly AngularJS developers. I wanted to boil it down to something people could latch onto. A phrase that describe's (no pun intended) exactly what a spec.js file is. And so I cam up with this quote:
Man, I've been wanting to write this post for a while now because of how awesome this yeoman generator really is! In a magical twist of fate I started using the Gulp-Angular generator simply because it ranked highly on the yeoman.io search page for "angular", but later I learned that this generator would be the one recommended by my Angular 102 instructor, George Dagher, and in fact the whole NYCDA. I'm fully on board with them on choosing this generator, and in this post I'll try to explain why I think it's so great.
So I'll go into my troubles with this and how I overcame them. I had an list of <md-item>'s that had a time, title, and image. It looked pretty good, but I didn't like how the title and image were not aligned since they were being "pushed" right by the actual time text. Here's an example of what I'm talking about (the green background is to emphasis the different widths of these two spans):
While looking at some examples I've seen that early on in the code there will sometimes be a line that simply says "use strict"; which can be confusing to a beginner trying to understand every line. A lot of times "people will ask, what does this mean?" and kind of get shooed off with a "just do it" response. Here I'll try to explain some of what the difference is between doing it and not.
|
AuthorThe posts on this site are written and maintained by Jim Lynch. About Jim...
Categories
All
Archives
March 2023
|