webOS Nation Forums >  webOS Discussion >  webOS Discussion Lounge > Snarky comments left in WebOS code
Snarky comments left in WebOS code
  Reply
 
Thread Tools Display Modes
Old 07/19/2009, 01:17 PM   #1 (permalink)
exi
Member
 
Posts: 63
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
 
Posts: 759
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
 
Posts: 546
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
 
Posts: 389
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
 
Posts: 63
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
 
Posts: 129
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
 
Posts: 85
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
 
Posts: 3,379
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
 
Posts: 16
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
 
Posts: 539
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
 
Posts: 254
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
 
Posts: 10
hah, i like this thread
PreKillsIphone is offline   Reply With Quote
Old 07/22/2009, 02:44 PM   #13 (permalink)
Member
 
Posts: 8
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
 
Posts: 389
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
 
Posts: 96
LOL This is even further proof of the development crunch the team was in to get this thing out the door...
draven760 is offline   Reply With Quote
Old 07/22/2009, 09:48 PM   #16 (permalink)
Member
 
Posts: 35
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
 
Posts: 300
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
 
Posts: 109
My favorite one so far though is:
dialpad-assistant.js line 1575:
case this.dialFailurePUK1Lock: // puk puk bo buk bananafana fo fuk


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
 
Posts: 28
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
 
Posts: 134
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