Lotushints

Lotus Notes tips & tricks you always hoped you will not need

Entries for the ‘Best practices’ Category

Javascript string traversing

Lately I needed to parse format that Cisco uses for specifying transfer masks and route patterns to an array of telephone numbers a user could choose from. I wrote a neat javascript function that traverses the string and does what needed. I even wrote a neat recursive function that displayed the numbers in HTML select [...]

Reinventing the wheel vs. code reuse

Lately I have been marked as a ‘reinventing the wheel’ guy. I don’t object to that. After all, when I see this cool new feature, I just need to see how it was made. And since I am there, I can also test my skills and rewrite it. But is it really that bad to [...]

Cleaning behind you

Ending up a big project, I was brimming with confidence. The code was well structured, it ran fast despite using external web services and on top of that, it worked on test system. Oh boy, did it work. I should have seen a warning sign there. But no. I let my vanity kickĀ  in and [...]

Web services and arrays in LotusScript

Recently, I was working on an agent that used a web service to export data. Now, I don’t know if you noticed, but for some reason, consuming services is way easier in LotusScript than it is in Java. As far as I know, and I could be wrong, you need to import Axis in Java [...]

Software that makes you go arrrrrrgh

Recently, I had a “privilege” to acquaint myself with numerous small business applications for Windows. First, I would like to state that there is some good software out there and kudos to all of you who deliver it. Unfortunately, such software is in wast minority. However, you can quickly detect such software. Installation process is [...]

What not to do in multi-domain evnironment

There is one thing you oughtn’t do in multi-domain environment. Ever. We did it, as it was needed to successfully connect Cisco Click-to-call plug-in for Sametime with Cisco Presence server.

Absolute positioned objects hiding behind flash animation

Anyone dealing with HTML will or already has encountered an interesting behavior of embedded objects and absolute positioned objects. When embedded object (e.g. flash animation) is positioned over part or entire absolute positioned object, absolute position object is always displayed behind embedded one.

Design patterns – Part 11: Bridge pattern

In part 11 of Design pattern series we will go into creating and using the Bridge design pattern. It is moderately used and uses encapsulation, inheritance and aggregation to separate responsibilities into other classes. The Bridge pattern decouples an abstraction from its implementation so that the two can vary independently.

Design patterns – Part 10: Builder pattern

In part 10 of Design pattern series we will take look at Builder design pattern. Albeit much similarity, this pattern it is not to be mistaken with Abstract factory pattern. As Abstract Factory emphasizes a family of products and returns the product immediately, Builder focuses on constructing complex object step by step, returning product in [...]

Design patterns – Part 9: Mediator pattern

This week, I present to you not much used, but quite useful Mediator pattern. Mediator pattern provides a unified interface to set of interfaces in a subsystem. Or, to simplify… Mediator pattern is mediator for communication between several classes.