329 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Unplugged for iOS is now available
Mon, Mar 5th 2012 256
I will show you mine if you show me yours
Mon, Feb 13th 2012 245
There is more than one way to skin a cat
Thu, Feb 2nd 2012 243
My 2 Cents on Lotusphere 2012
Tue, Jan 24th 2012 217
Developers, like lawyers, should not ask questions they do not know the answer to
Fri, Dec 16th 2011 354
A development tip, and more
Tue, Nov 8th 2011 239
Teaching an old dog...
Mon, Sep 12th 2011 241
Top 10
Developers, like lawyers, should not ask questions they do not know the answer to
Fri, Dec 16th 2011 354
Unplugged for iOS is now available
Mon, Mar 5th 2012 256
I will show you mine if you show me yours
Mon, Feb 13th 2012 245
There is more than one way to skin a cat
Thu, Feb 2nd 2012 243
Teaching an old dog...
Mon, Sep 12th 2011 241
RIM Acquiring Ubitexx MDM Could Open Up a World of Opportunity for Vendors
Mon, May 16th 2011 239
A development tip, and more
Tue, Nov 8th 2011 239
Test Driven Development in LotusScript
Thu, Jan 27th 2011 220
My 2 Cents on Lotusphere 2012
Tue, Jan 24th 2012 217
A word on our recent twitterstorm
Wed, Aug 17th 2011 201


I will show you mine if you show me yours
John Kingsley    

I'll show you mine if you show me yours...

Okay, I'll go first.  This code is so bad I had to share it.  And let me be clear - this code is from R3 days.  But that means it may have been looked at many times AND LEFT ALONE!  We can all help Notes suck less if we stamp out code like this whenever we see it.

In this first example, the only line in this entire block that did anything IS COMMENTED OUT!  Just delete the entire block.

        If oppDoc.iprgWonPercent_SS(0) <> prvWonPercent And revType = "Configured Software" Then
                 
                  prvWonPercent = oppDoc.iprgWonPercent_SS(0)
                  If prvWonPercent <> 0 And prvWonPercent <> 1 Then
  '                        Call UpdateNextStep(oppDoc.RMReplicaID(0), oppDoc.imctContact_SS(0), revType, Format$(oppDoc.iprgWonPercent_SS(0), "0.#0"))                        
                  End If
                 
          End If
 

This next example is just sad.  I mean, who hasn't used @Select before?  Ever wonder why your application seems sluggish in December and snappier in January?   Try evaluating this expression in December.

monthdisp :=@If(months=1;"Jan.";months=2;"Feb.";months=3;"Mar.";months=4;"Apr.";months=5;"May";months=6;"Jun.";
months=7;"Jul.";months=8;"Aug.";months=9;"Sep.";months=10;"Oct.";months=11;"Nov.";months=12;"Dec.";"");

And this last one even says V2 in the code - come on people!

@If(@IsDocBeingLoaded; @If(TotDisc=""; 0; TotDisc); @V2If(@IsAvailable(Disc); Disc; 0) + @V2If(@IsAvailable(Disc_1); Disc_1; 0) + @V2If(@IsAvailable(Disc_2); Disc_2; 0) + @V2If(@IsAvailable(Disc_3); Disc_3; 0) + @V2If(@IsAvailable(Disc_4); Disc_4; 0) + @V2If(@IsAvailable(Disc_5); Disc_5; 0) + @V2If(@IsAvailable(Disc_6); Disc_6; 0) + @V2If(@IsAvailable(Disc_7); Disc_7; 0) + @V2If(@IsAvailable(Disc_8); Disc_8; 0) + @V2If(@IsAvailable(Disc_9); Disc_9; 0) + @V2If(@IsAvailable(Disc_10); Disc_10; 0) + @V2If(@IsAvailable(Disc_11); Disc_11; 0) + @V2If(@IsAvailable(Disc_12); Disc_12; 0) + @V2If(@IsAvailable(Disc_13); Disc_13; 0) + @V2If(@IsAvailable(Disc_14); Disc_14; 0) + @V2If(@IsAvailable(Disc_15); Disc_15; 0))

I think my eyes are actually bleeding!


---------------------
http://getthemostfromnotes.com/tsblog.nsf/d6plinks/KFRA-8RFP95
Feb 13, 2012
246 hits



Recent Blog Posts
256


Unplugged for iOS is now available
Mon, Mar 5th 2012 11:13a   Karen Frasca
With the Unplugged XPages Engine and HTML5, we’re introducing a simple yet powerful way to extend your Lotus Notes and Domino apps to iOS devices! Unplugged works with Domino Designer to create mobile apps for iPhones and iPads, which update via mobile sync to Domino servers.And, the HTML5-based architecture of the Unplugged XPages Engine unleashes the full creativity of the mobile user interface designer – so you can create touch-optimized, visual, customized mobile apps for iOS [read] Keywords: domino lotus notes xpages interface mobile
246


I will show you mine if you show me yours
Mon, Feb 13th 2012 11:12a   John Kingsley
I'll show you mine if you show me yours... Okay, I'll go first. This code is so bad I had to share it. And let me be clear - this code is from R3 days. But that means it may have been looked at many times AND LEFT ALONE! We can all help Notes suck less if we stamp out code like this whenever we see it. In this first example, the only line in this entire block that did anything IS COMMENTED OUT! Just delete the entire block. If oppDoc.iprgWonPercent_SS(0) prv [read] Keywords: notes application
243


There is more than one way to skin a cat
Thu, Feb 2nd 2012 11:11a   John Kingsley
Americans sometimes use a funny little expression: There's more than one way to skin a cat. This is a (kind of creepy) way of saying that there are several different ways to accomplish a given task. And this is my challenge. My developer side says to do it one way, but my admin side might have a different perspective. In the end, a decision must be made one way or the other. Case in point: Recently, I completed the first part of a source code control and build process managem [read] Keywords: admin agent interface server twitter
217


My 2 Cents on Lotusphere 2012
Tue, Jan 24th 2012 3:10p   John Kingsley
This year marked my 8th or 9th time attending Lotusphere (if only I had a backpack to commemorate each one!). I've always attended as an exhibitor. Back in my Digital days, the senior management always wanted the full conference passes, because in the early days exhibitors got boxed lunches and full-conference badge holders go the fine dining hall. Anyway, here's my personal take on the show: 1. I got a nice surprise when someone stopped me and asked if I was from Teams [read] Keywords: lotusphere notes xpages database development facebook mobile
354


Developers, like lawyers, should not ask questions they do not know the answer to
Fri, Dec 16th 2011 10:09a   John Kingsley
I recently inherited responsibility for maintaining some applications. At the same time, we happen to be decommissioning a server, so I needed to change the Server to Run On for the agents. And, for some reason, I had to ask: "What does this agent do, anyway?" Turns out, this was the agent that runs once a week against all documents in the database. Well, first of all, it doesn't *really* run against all documents in the database. I don't think it matters much, but target of [read] Keywords: agent notes application applications database development server
239


A development tip, and more
Tue, Nov 8th 2011 3:09p   John Kingsley
I recently inherited an application from someone who inherited it from someone else. It reminded me of something I discovered back in the R4 days: When you copy and paste a field multiple times, Notes takes the original field name and then adds an underscore and a sequential number (as in Product, Product_1, Product_2, etc.). The problem comes when you have to loop through each field -- and who hasn't had to do that? What you get is something like this: For x = 0 To 15 [read] Keywords: agent notes R4 application blackberry database development




241


Teaching an old dog...
Mon, Sep 12th 2011 9:09a   John Kingsley
I'll admit to using punch cards during my college programming years - and this was at a world famous engineering college in IBM's back yard. Those were the old days... But it still takes me awhile to try new things. Only recently did I create a list where each entry was an object - my first class and my first list all at once. I'll also admit that a lot of my programming bravado comes from the guys down the hall here at the Teamstudio office. You see, I don't consider myself a d [read] Keywords: ibm archive css office
201


A word on our recent twitterstorm
Wed, Aug 17th 2011 4:09p   John Kingsley
(As if "twitterstorm" is a word). We recently sent an email to our mailing list that raised a few eyebrows and caused a bit of a ruckus on Twitter. There were a few reasons for this, the first of which was that, due to an email glitch, half of the emails arrived in the recipients' inboxes as blank messages. Because of that, we had to send the message a second time, which was probably annoying enough in itself. But it was the content of the message that really got people ta [read] Keywords: adminp agent domino notes application applications development email microsoft server twitter
149


The Same... Only Different
Wed, May 25th 2011 9:10a   John Kingsley
I was traveling recently, and had the opportunity to stop and spend a night with one of my brothers and his family in Longmont, Colorado. On the way to his house from the airport, he was complaining to me about a new nightly build process that they implemented at his office. Apparently, it resulted in every developer having a complete copy of all the modules in the build, not just the ones they were working on. I chuckled and told him, "I sort of know what you're talking about - [read] Keywords: notes application applications development mobile office openntf
239


RIM Acquiring Ubitexx MDM Could Open Up a World of Opportunity for Vendors
Mon, May 16th 2011 3:10p   Richard Sharpe
There were a few announcements made at the BlackBerry World show in Orlando earlier this month, one of the most significant being RIM’s acquisition of Ubitexx, a German based mobile device management (MDM) solution vendor. As stated in the announcement: "RIM plans to be able to incorporate technology into the BES to allow the management of otherdevices." What this means, on the surface, is that the BES will be able to manage Android, iOS and Windows 7 devices as well as others. It w [read] Keywords: ibm policies bes blackberry development eclipse enterprise google mobile oracle rim security




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition