Geek Humor Break...
Q. Why do computer geeks get Halloween confused with Christmas?A. Because oct 31 == dec 25.Of course!
Q. Why do computer geeks get Halloween confused with Christmas?A. Because oct 31 == dec 25.Of course!
In our earlier examples (see links below the fold) we had two examples of instance properties: birth_date and call_name. To review, these are properties that exist in each instance of a class. For exa...
Yesterday I showed you how to add a method to the Dog class (see navigator links below the fold). Today I'm going to add a second method, but more importantly, I'm going to show you how to define clas...
Yesterday I showed you how to make a very simple JavaScript class, and promised you that next I'd show you how to build the code that calculates a dog's age right into it. Well, that day has arrived, ...
This post is the first in a series, intended to be an introduction into writing object-oriented programs in JavaScript. All of the examples will be done in the Service-now.com server-side environment,...
Yesterday I told you about on-demand functions ā and right away I get some emails. Some of you said "Enough with the esoteric, high-falutin' math nonsense ā give us something practical!", and the rest...
She seems a bit skeptical about this, but it's true ā starting with the Fall 2010 release, you'll be able to define functions whose definitions are automatically included when you use them.This is muc...
A common use for regular expressions is to extract some text from a larger piece of text, based on some delimiters that define the range of text to pull out. For instance, I might want to extract the ...
Yesterday I showed you how to figure out whether an object had a certain property. But suppose you didn't know ahead of time which property you wanted? Then what you'd want to do is to enumerate all t...
Parallel Homepage Rendering is a new feature introduced in the Spring 2010 Stable 2 release. The following information was created by Pat Casey, Service-now.com Principal Architect:OverviewHome pages ...
Hi everyone,Documentation is now available for the Tiny URL Support Plugin, newly released with Spring 2010 Stable 2:http://wiki.service-now.com/index.php?title=Tiny_URL_Support_PluginThe Tiny URL Sup...
Yesterday I showed you how to represent things in a JavaScript object. But what if you have the opposite problem ā you have an object, but you want to know what it represents? More precisely, you want...
A few days ago I was talking with someone I'll call Joe about one of our Discovery scripts. Joe was trying to figure out something we were doing in the script, and I finally figured out what was givin...
Discovery has just acquired a snazzy new feature that will be available starting with the "Stable 3" build coming up in early September, and it will be in the Fall 2010 release. The screenshot at righ...
In an earlier post, I touched a bit on the arguments property that's available in any function. There I showed how you can use it to create functions that take a variable number of arguments. Today I'...
Have you ever written a handy-dandy little script function, and then wished you could have it accept different kinds of arguments? For instance, perhaps you wrote a function that took a list of people...
There are occasions when it is quite useful to have a function argument that isn't an actual value (in the usual sense of a number, string, etc.), but rather a way to get a value. There are also occas...
Hi everybody,Today's release is now officially documented! A nice end to another release cycle. If you want to find out what's coming in Spring 2010 Stable 2 and how it works, here's the release notes...
If you've done any scripting of Service-now.com, you've almost certainly run into the notion of a sys_id: the unique 32-character long identifier that is the primary key for every record in every tabl...
[asset|aid=344|format=Small|formatter=asset_lightbox|title=destructive_god.jpg|width=150|height=150|align=right]Wanton destruction is generally a bad thing (though fun to watch on a movie, if the spec...