Skip to main content

While and Comment Differences

I just thought I'd share what I thought about a couple of differences between JavaScript and VBScript.

Loop Difference

I think it's better that JavaScript doesn't have a do...until loop. The do...until loop seems kind of superfluous to me, since the same can easily be accomplished with a while loop. For example, these two are equivalent:

Do Until (x)
 ' do something

while (!x) {
 // do something

Comments Difference

Notice the difference between the comments in the examples above. That was the other difference I wanted to mention. I tend to think that faster is better, and it's faster to type the single quote (') than it is to type 2 forward slashes (//). On the other hand, JavaScript provides for making part of a line a comment anywhere in the code, like this:

if (x /* == true */)

As you can see, the end parenthesis ")" comes after the comment. I don't know if VBScript provides any way of making comments like that. Does anybody else know?


Popular posts from this blog

How (Not) to Handle Different Exceptions

Came across this sample from a certain multi-billion-dollar company, purporting to show how to implement exception handling. I slightly changed a few cosmetic details to make it anonymous. try { // ... } catch (GeneralException e) { if (e instanceof SpecificExceptionA){ // ... } else if (e instanceof SpecificExceptionB){ // ... } } This is a true actual story--you can't make this stuff up. Yeah, I thought it was pretty hilarious; so I felt like I had to share it.

What We're About

About Us Mission Statement: We provide a product to make high performing software developers happy by giving them a chance to work in a more self-directed way on software that is more meaningful to them. Core Values (in priority order): Integrity : Honesty, trustworthiness, and faithfulness Preparation : Research, planning, and goals Reputation : Branding, naming, presence, and networking Profitability : Product sales Production : Product development, ideas, online content Improvement : Research and training Support : Minimal overhead Who We Are Isaac Serafino  is a Software Architect in Omaha, Nebraska. He has a strong experience developing technology solutions. He has long had the dream to lead his own startup business. Our Products Snap Screen™ More efficiently provide a safe environment for using electronic devices. Sends pictures of what is on the display at somewhat random times so user knows they could be observed at any time, but the supervisor does not

Reality Checks to Demystify Buzzwords

As an IT insider, I feel I have something valuable to offer nontechnical people in terms of correcting misinformation. Here are a few simple tests for some popular buzzwords in tech. When evaluating a product or service, if you can honestly answer Yes to the reality check question, the buzzword probably truly applies. If the answer is No, it is probably fake. agile Does it make the developers happy? blockchain Does it cut out the middleman? cloud Does it automatically scale? microservice Does it only do one thing? object oriented Is it mostly made of interfaces? RESTful When requests arrive at a certain address, are they ready to use (without parsing)? unit test Does it prevent the tested code from touching anything outside itself?