Wow, for the longest time I've been suffering when using VIM to read and write code because I never knew how to reset the indentation! It's seriously amazing how much cleaner and clearer a piece of code can be when it's properly indented. Take this bit of wisdom, and don't forget it!
0 Comments
Good old BASH is probably the most popular command shell out there. Take any randomly selected Angular or React developer and ask him or her what type of computer OS they use, 99% of them will say Mac OS. Why? Some will tell you they like the sleek interface of Mac or it's resilience against malware, but the real key comes down to having a BASH shell. This is huge because things like npm, gulp, ng cli, ssh, git, travis CI, karma, protractor, cucumberjs, and more all run in a BASH shell. Sure, Windows has it's own command line, but it's not the same. Not at all! Lol. Anyway, I'm super excited that Windows has managed to give their own command line support for BASH, unlocking otherwise difficult to take on projects for many developers including my friend Wayne Pao who is fearlessly learning test automation with AngularJS right now as I'm typing this now (on his windows machine)!
So I'm almost finished reading this book, BDD in Action, by John Ferguson Smart, and I think it is really a fantastic book. Despite the wacky, ugly-looking cover, this is a super-awesome software development book that pretty much revolutionized the way I think about unit testing- and I think a LOT about unit testing so this must be a pretty big deal. I would highly recommend this book to anyone trying to wrap their head around behavior driven development, but in this post I'm going to reveal the crux of BDD- spoiler alert!
Continuous Integration- it might be the last thing I'm lacking that is preventing me from developing in a truly agile, world class programmer level. Nobody loves automated testing more than me, and so I was naturally by this concept of having the unit and e2e tests run each time the code is pushed to the git repo.
While working on a project for work I was presented with a plan to incorporate an animated jquery slider in our AngularJS application. I was able to wrap it in a directive and have every working honky-dory on gulp serve, but when I ran gulp build the jquery carousel widget wasn't working properly. It turned out that there were relative path references to other html, css, and JavaScript files declaring right there in the code with relative script tags. These import references were broken when the gulp build task did it's thing with minifying, uglifying, and concatenating files. Instead of going in and modifying the third party code, I was able to add these third party files into the project while keeping just these files safe from the build task.
|
AuthorThe posts on this site are written and maintained by Jim Lynch. About Jim...
Categories
All
Archives
March 2023
|