New Year, New Post
So the holidays went by pretty fast and I kept busy enough without having to try to write blog posts. It’s a habit I have to work on…
I wanted to note down a few things I’ve read or am meaning to read over the past month. Much of it is reference links as I work on testing an AngularJS app.
Testing AngularJS:
- A good intro; wish I would have had it earlier
- Not testing your Angular code? Here’s how to start
- Video here: https://vimeo.com/150441324
- In the comments someone mentions ngDescribe. It cuts down on all the boilerplate needed to write tests in angular.
- My real goal here would have been to have more information with each of these links, like, what I got out of them.
- Some sites I’ve used recently while working on writing tests for an angularjs app
- AngularJS Docs on testing
- Found a nice site talking about testing, with a video, that went a bit more in to the different types of test, what to test and when.
- What’s not to like about a site called “Year of Moo”
- http://www.yearofmoo.com/2013/09/advanced-testing-and-debugging-in-angularjs.html
- Used this to help me get on my feet initially
- Another overview of AngularJS Testing. I liked some of the way this was done and adopted some of the practices
- Yet another overview I skimmed through…
- Some material on using ngMock
- So it seems that if you locally install npm modules there is a bin path you should have setup so you can run commands from those modules. This gave me a bit of a headache till I found the below.
- One of the many references I used while figuring out how to test http calls
- I have way too many modals that need tested…
- Getting more idea of testing AngularJS Services
- I think this gave me some clarification that I could do multiple beforeEach calls. I forget.
- Simple unit test for Angular service
- Of course I’d eventually get around to pulling up the Jasmine site itself
- I was getting an error for awhile in my tests and found a related SO question
- I was using a spy while doing an http.get or post call, I think
- Unknown provider: $routeParamsProvider
- Unknown provider in angular unit test
- http://jsfiddle.net/fdietz/2Ny8x/
- Learned to use the ‘debugger’ keyword
Material Design
- Google has a design specification called ‘Material Design’.
- A package for Angular was put out that makes it easy to code your web page to that specification.
- I’ve not had a chance to dive in too much; but it looks like a replacement for Bootstrap.
- There is a nice writeup that talks aboue Material Design and Angular Materials here: http://onehungrymind.com/reasons-to-love-angular-material/
Things about Reading
- The Pomodoro Technique
- I have this as an ebook and started in to it but recently found it on Audible and started to give it a listen while driving in to work.
- The idea is that you break up your tasks in to ~25 minute chunks. The person who came up with it literally used a kitchen timer, set it, and focused on a task for that period of time and once done, took a break. Then sat back down and worked for another chunk of time.
- That’s the overly simplified mostly not correct version of what this book talks about. It has some interesting ideas and some data to back up those ideas.
- A side note about listening, I heard it suggested that on books like this (ie not entertaining) play it back at ~1.5x speed. I have to say; that suggestion seems to be working for me as I usually find listening to those types of books very boring. More testing is required
- I was reading an article about Reading More and picked up one reading suggestion.
- 5 principles that will help you read more - Business Insider
- There seemed to be some good suggestions in there. I’ll have to try to make notes as I read to see how/if it really enhances things for me.
- How does one do this with ebooks, just not quite the same…
- Which lead me to pick a book or two from Amazon
- ‘How to Read A Book’
- Picked up the soft copy as well as the audio version.
- Also picked up ‘How to Speak How to Listen’ as suggested by Amazon.
- ‘How to Read A Book’
- How to be a Programmer
- Came across this essay that had been converted to markdown and put on github
- https://github.com/braydie/HowToBeAProgrammer
- Basically saving this to read over later.
- The comments on reddit were a bit back and forth on the usefulness/validity of this info
- Community and Career Reads in 2015
- Just saw this link courtasy of Jono Bacon on FB
- Looks like there is some potential reading material there, just haven’t looked through all the way.
Videos
- Suggested this playlist to a friend who is trying to get in to the world of VoIP
- I like this guys training videos. I at least watch the intro one for AngularJS
- At some point I’ll come back to watch this as I tinker with electronics