webOS Nation Forums >  webOS apps and software >  webOS discussion > Snarky comments left in WebOS code
Snarky comments left in WebOS code

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/19/2009, 01:17 PM   #1 (permalink)
exi
Member
 
Join Date: Jun 2009
Posts: 68
Likes Received: 0
Thanks: 5
Thanked 4 Times in 4 Posts
Default Snarky comments left in WebOS code

All,

Is there a list somewhere that contains the amusing little quips left as comments within the source code of our phones?

I remember seeing a few spread out in a thread or two here, wherever that was, but I'd like to read through them. I need a laugh today.
exi is offline   Reply With Quote
Thanked By: aughtism
Old 07/19/2009, 01:19 PM   #2 (permalink)
Member
 
cashen's Avatar
 
Join Date: Jun 2009
Location: Clarkston, MI
Posts: 773
Likes Received: 0
Thanks: 559
Thanked 162 Times in 71 Posts
Default

Quote:
Originally Posted by exi View Post
All,

Is there a list somewhere that contains the amusing little quips left as comments within the source code of our phones?

I remember seeing a few spread out in a thread or two here, wherever that was, but I'd like to read through them. I need a laugh today.
Is anyone else surprised there is even comments left in the release code?
cashen is offline   Reply With Quote
Old 07/19/2009, 01:42 PM   #3 (permalink)
Member
 
storino03's Avatar
 
Join Date: Feb 2008
Location: Wisconsin
Posts: 552
Likes Received: 0
Thanks: 49
Thanked 53 Times in 22 Posts
Default

It's probably meant to catch the interests of news sites online and to drum up buzz for Palm and WebOS
storino03 is offline   Reply With Quote
Old 07/19/2009, 02:23 PM   #4 (permalink)
Member
 
Brain_ReCall's Avatar
 
Join Date: Jun 2009
Posts: 395
Likes Received: 7
Thanks: 123
Thanked 116 Times in 68 Posts
Default

I found a few awhile back. I don't know of any comprehensive listing of them all. There are actually surprisingly few comments (at least compared to the way I comment). Here are the more amusing ones:

Quote:
//<-- gaze into the javascript abyss
// This should not happen
// Every time you call this, somewhere a kitten dies
// this is weird
// Welcome to the house of javascript hacks. Please enjoy your stay!
// Finally remove any remaining scripts to avoid any evilness they may bring
// TODO: Peter will fix this
__________________
Quote:
Originally Posted by Brain_ReCall
I'm an Embedded Software Engineer. My idea of a Good User Interface is printf().
Brain_ReCall is offline   Reply With Quote
Thanked by Binson, Drakej, Hobbz, Seik
Old 07/19/2009, 10:00 PM   #5 (permalink)
exi
Member
 
Join Date: Jun 2009
Posts: 68
Likes Received: 0
Thanks: 5
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by Brain_ReCall View Post
I found a few awhile back. I don't know of any comprehensive listing of them all. There are actually surprisingly few comments (at least compared to the way I comment). Here are the more amusing ones:
Thanks.
exi is offline   Reply With Quote
Old 07/21/2009, 09:52 AM   #6 (permalink)
Member
 
Join Date: Jun 2009
Posts: 145
Likes Received: 0
Thanks: 2
Thanked 12 Times in 10 Posts
Default

Grep the linux source (I should probably say linux kernel source) for naughty words sometime. One involving a chainsaw comes to mind. . .
rmbwebs is offline   Reply With Quote
Old 07/22/2009, 03:36 AM   #7 (permalink)
Member
 
Join Date: Jul 2009
Posts: 89
Likes Received: 4
Thanks: 4
Thanked 13 Times in 7 Posts
Default

ha...i wonder who peter is?
jateelover is offline   Reply With Quote
Old 07/22/2009, 06:44 AM   #8 (permalink)
Member
 
meyerweb's Avatar
 
Join Date: Dec 2003
Location: Fairfax, Virginia
Posts: 3,387
Likes Received: 0
Thanks: 1
Thanked 148 Times in 90 Posts
Default

Quote:
Originally Posted by jateelover View Post
ha...i wonder who peter is?
I wonder if he ever fixed "this."
__________________
Bob Meyer
I'm out of my mind. But feel free to leave a message.
meyerweb is offline   Reply With Quote
Old 07/22/2009, 11:04 AM   #9 (permalink)
Member
 
Join Date: Jul 2009
Posts: 21
Likes Received: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by meyerweb View Post
I wonder if he ever fixed "this."
HA!
leftfoot is offline   Reply With Quote
Old 07/22/2009, 01:49 PM   #10 (permalink)
Member
 
Join Date: Jan 2003
Posts: 539
Likes Received: 9
Thanks: 15
Thanked 321 Times in 43 Posts
Default

The Camera App has some good comments too.
__________________
8MB Visor --> Treo 300 --> Treo 650 --> Treo 800w --> Palm Pre
All devices obtained within first week of launch
Kaerey is offline   Reply With Quote
Old 07/22/2009, 02:06 PM   #11 (permalink)
Member
 
sarah peterman's Avatar
 
Join Date: Jun 2009
Location: York, PA
Posts: 259
Likes Received: 0
Thanks: 32
Thanked 141 Times in 55 Posts
Default

I just found this one: /* Used to be float:left, but this did not cause the parent element to have height (it was always 0px). Daniel, please investigate. */
sarah peterman is offline   Reply With Quote
Old 07/22/2009, 02:10 PM   #12 (permalink)
Member
 
Join Date: Jul 2009
Posts: 10
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hah, i like this thread
PreKillsIphone is offline   Reply With Quote
Old 07/22/2009, 02:44 PM   #13 (permalink)
Member
 
Join Date: Jul 2009
Posts: 8
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how do you even get in to the source code?
also, is there some kind of file explorer on the pre so i can look at files i have put on it when i use it as a usb device?
redraider is offline   Reply With Quote
Old 07/22/2009, 05:18 PM   #14 (permalink)
Member
 
Brain_ReCall's Avatar
 
Join Date: Jun 2009
Posts: 395
Likes Received: 7
Thanks: 123
Thanked 116 Times in 68 Posts
Default

Quote:
Originally Posted by Kaerey View Post
The Camera App has some good comments too.
Ah, there are! Here are a few more:
Code:
/* *** FREEZEFRAME HACK - RIK *** */            
// God only knows when we will get the saved event!

// We got the save event, before the Captured event.  That's OK, I'm getting quite
// proficent at making lemonade these days..

//NOTE: The Captured event _could_ come in earlier if the SetSnapshotDelayDuration function ever get 
//added and called and was used to reduce the capture freezeframe to less then 1second ... OMFG!

// On the offchance that the user hits the 'minimize' 
// before we finished capture ... slimy ******* users.

//I was going to go with '42', but if there are any other "Hitchhikers" fans out there, it's more likely to cause a problem.

// Ted Haggard's dream

//console.log("ENNNNNABLE! " + this.occurs);

// "You were sick, but now you're well again, and there's work to do"

// TODO ALWAYS MAKE SURE THIS IS VALID

// TODO remove this hack when times are better :)

// TODO HACK: works for now, but figure out a better way to do this with Jesse

// TODO read developer secret from somewhere

// Hard coded for testing, these don't work

// ------------------------------- This needs to go away -----------------------------------

// TODO: take this out before ship

// TODO: remove this ugly hack

var depressed = false; // spot the pun!

// ugh

"showGAL": true,  // wanted: something plausible that GUY could stand for

// TODO FIXME HACK FOR 'GLIMPSE OF WHERE THINGS CURRENTLY STAND'

// TODO: what does this mean?

// hide all buttons and plead for patience.
On a side note, the Phone app has a surprisingly large amount of code in it.
__________________
Quote:
Originally Posted by Brain_ReCall
I'm an Embedded Software Engineer. My idea of a Good User Interface is printf().

Last edited by Brain_ReCall; 07/22/2009 at 06:25 PM. Reason: added even more
Brain_ReCall is offline   Reply With Quote
Thanked by aughtism, Hobbz, Rennat, Seik
Old 07/22/2009, 09:43 PM   #15 (permalink)
Member
 
Join Date: Jun 2009
Posts: 96
Likes Received: 1
Thanks: 79
Thanked 14 Times in 8 Posts
Default

LOL This is even further proof of the development crunch the team was in to get this thing out the door...
draven76 is offline   Reply With Quote
Old 07/22/2009, 09:48 PM   #16 (permalink)
Member
 
Join Date: Jul 2006
Location: Cleveland, Ohio
Posts: 35
Likes Received: 0
Thanks: 25
Thanked 5 Times in 5 Posts
Default

LOL! Glad to know that Palm thinks we're "slimy ******* users."
DrNoah is offline   Reply With Quote
Thanked By: glamisfanatic
Old 07/22/2009, 10:33 PM   #17 (permalink)
Member
 
glamisfanatic's Avatar
 
Join Date: Jun 2009
Posts: 310
Likes Received: 0
Thanks: 80
Thanked 36 Times in 24 Posts
Default

Quote:
Originally Posted by DrNoah View Post
LOL! Glad to know that Palm thinks we're "slimy ******* users."
lmao
__________________
Prē *********♥
1Ghz
Pixi *********♥
Patched up
(Gone)
Now on a Samsung Epic
*Creator of the best thread on precentral*

RIP

glamisfanatic is offline   Reply With Quote
Old 07/23/2009, 02:27 PM   #18 (permalink)
Member
 
Join Date: Sep 2006
Posts: 109
Likes Received: 6
Thanks: 1
Thanked 15 Times in 11 Posts
Default

My favorite one so far though is:
dialpad-assistant.js line 1575:
case this.dialFailurePUK1Lock: // puk puk bo buk bananafana fo ***


Here are a few more from the phone app:

dialpad-assistant:

this.setupPicker(); // so many different people in the same device

"showGAL": true, // wanted: something plausible that GUY could stand for


activecall-assistant:
Line 1092:
this.controller.revealBottom(); // try the lobster. tip your server.


QDLogger:
/*
* wrapper for Mojo logger. tags our lines with a string, keeps us quiet
* better than bad, it's good. everyone wants a log.
*
*/

There are a ton of others... What is apparent is how Palm must have been rushed to get this out as there are still a bunch of TODO's and FIXME's all over the place.
fizban_tx is offline   Reply With Quote
Thanked By: Seik
Old 07/23/2009, 02:49 PM   #19 (permalink)
Member
 
Join Date: Jun 2009
Posts: 28
Likes Received: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by fizban_tx View Post
* better than bad, it's good. everyone wants a log.
haha, ren and stimpy quote...nice
bluesforsalvador is offline   Reply With Quote
Old 07/23/2009, 04:22 PM   #20 (permalink)
Member
 
JimmyD's Avatar
 
Join Date: Feb 2005
Location: Chicago 'burbs
Posts: 134
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great thread!

I wonder if the developers will get in any kind of trouble since these comments are now floating around the interwebs? I hope not.
__________________

..Handspring...\..........Palm.........\.........Palm........\.........Palm......\.....Motorola.....
.VisorDeluxe.../............Vx.........../........M-100......./......Treo650.../.......Droid........
JimmyD is offline   Reply With Quote
Reply

 

Tags
easter eggs, funny

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0