Routing and State (The AngularJS Discussions)

I’m a big fan of the Adventures in Angular podcasts.  At a recent podcast that happened at ng-conf in Salt Lake City, there was a lively discussion around the topic of routing and URL’s.  Specifically, one side of the discussion was that a URL defines a state of an application.  The other side said that is not true. Personally, I think it’s ridiculous to think that a URL can define that state of applications.  My first proof is that there is a huge amount of discussion around it.  If it was clear and true, there would not need to be discussions about it. I believe that URL’s are simply pointers to places in web sites.  That’s it.  Any more than will breed confusion.  The most trivial example is that … Continue Reading

Showing The Record Count in a Sencha ExtJS Grid Made Simple

I use Sencha’s ExtJS for lot’s of data maintenance type applications.  One such application is an email response manager where it’s convenient to know how many different URL’s got clicked.  Basically, how many rows in the gridview.  Certainly, counting is an option but showing it in the title makes a lot more sense. The tip here is that often you have to call store.load() on the store associated with a grid so with just a couple extra lines you can put the count in the title of that grid.  Those extra lines are basically just a callback to the store.load that then grabs a reference to the gridview.  In my case, I have a button on my toolbar (just above the gridview), and in the button’s handler I execute the … Continue Reading

Google Chrome Extension Clear Cache, My Pick!

I’ve been listening to the podcast recently Adventures in Angular and in particular the “Podcaster Picks” at the end of each podcast.  At first I thought this was pretty silly but have been surprised that many of the picks I did not know about and have been quite useful.  So, in the Holiday spirit of giving, here is my pick for the day. Clear Cache from Benjamoin Bojko Motivation For Needing this I’ve been doing a lot of JavaScript programming for the past couple years and Chrome Dev Tools is my debugger of choice.  It’s amazing easy to clear cache which is something I do quite often.  To be clear, all I have to do is:  1) Tools Pull down then 2) select “clear cache” and finally 3) select the URL in the browser … Continue Reading

Why Refactoring Support in a JavaScript IDE Is so Important

As I’m building out a new version of the Silicon Valley Code Camp web site in AngularJS, I’m running into the very common case where I have not created my program files hierarchy optimally.  What I have now (as seen from JetBrains WebStorm) is the following: I realize now that I’m adding the login screen that I really should have an app folder account and registration should be a subfolder of that.  To make that change without a good tool (like WebStorm), I would need to go into my file manager and copy the files I want, then go into my index.html file and manually change all those directory references.  Likely (because I’m not that good at that kind of work) I’d make at least one mistake and have to come back and revisit … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: