Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts

18 April, 2011

Scriptin' with Javascript and Ajax

Charles Wyke-SmithImage by linoleum jet via FlickrI am done reading this book, and while I can say that it is almost in the same line of methodologies as the other book from Riders (Bulletproof Ajax), they have different offerings.

Scriptin' focuses on reuseable javascripts, and the final two chapters is supposed to be a working example that brings in all the discussed knowledge.

Unfrotunately for me that can't materialize. It was dealing with PHP, and I don't have a server that runs PHP.

Anyway, the javascripts I have learned just fine, expecially those nice formatting techniques, stripes, character counting, etc., etc.

And of course, these functionalities, more or less, are somewhat available in the Visual Web Developer toolkit.

So what's good about this book?

I know from the ground up how these already-available controls work. If I have to code by hand, I may struggle, but I can survive. I can continue. I won't be stuck.

I can go on Scriptin'!
Enhanced by Zemanta

22 February, 2011

String to StringBuilder, AJAX, Silverlight

.Net Framework LogoImage via WikipediaAfter a week-long course on 2957B and 6463A, I found some new ways to make my applications run faster and sleeker (performance- and graphics-wise).

I know, these are not new, but I didn't know better before.

  • String to StringBuilder
  • Double buffering
  • AJAX
  • Silverlight

Silverlight 4 UnleashedString to StringBuilder

Especially when manipulating strings, 2 - 3 times at most, the String var type is still OK. More than that, you should be considering the use of StringBuilder.

One of the problems that I encountered with StringBuilder is the clearing or blanking off of the var. Then I found out that in .NET Framework 4.0, the Clear() method is already available. In 3.5 or lower, you can set the Length = 0, which effectively resets the char length.

The StringBuilder also has Append() and Appendline() methods, which effectively obsoletes the equivalent coding for String, like "& vbCrLf", etc.


Double buffering

A very simple functionality, but like I said, I didn't know better. So my Windows forms are now flicker-free.


AJAX and PHP: Building Modern Web Applications 2nd EditionAJAX

Now this is new. I am yet to implement this, because Web forms are a transition for me, at least I know that there is a technology that is available to my use - for a better experience of my users, performance-wise!


Silverlight

Adding to AJAX, Silverlight is another trick up my sleeve. Well, this is on the graphics side of webpages, so that they are more pleasing and more attractive.


Foundation Expression Blend 4 with SilverlightAnd these are some of the big things that I have 'learned' in my week-long course, so hopefully, I now will be a better software developer.

Till then.

Enhanced by Zemanta