• Just a few minutes ago, while I was out at lunch, someone left the following comment on the last post. I was about to delete it but thought better of that action. I did not approve it (as it really does not relate to the post at all) but let me copy and paste it here in all its glory:

    Author : Ioustinianos (IP: 85.195.123.22 , 85.195.123.22)
    E-mail : yourdeath2007@gmail.com
    Comment:
    You bloated GREEDY sATAN worshiping slothful PIG !
    Is that all you can think about you disgusting blemish in the sight of Christ Yashua ?!

    You filthy slimy sleazy scumbag , you are a member of that sATANIC jEW club for your own material gain.

    Money money money ! You sick sick man , do you know what you are getting yourself into ?

    OK. Extremely insightful comment, that. I assume the commenter is referring to my membership in a Masonic Lodge, something that I not only do not hide but of which I am very proud — indeed a quick look at even the front page of my web site brings up that information.

    So, what exactly is this person criticising? What is he (or I guess possibly she, although I doubt it) actually complaining about?

    Do me a favour, read the previous post first. You will see that I pose the question: if you want to develop some software that can be provided as a service, what would that be? So this person fires back with:

    You bloated GREEDY sATAN worshiping slothful PIG !

    Ummm. OK. Let’s leave the “sATAN” worshiping part out of it for the moment. Bloated? Greedy? Slothful? Pig? What is this based on? I work hard — have done so all my adult life. I have not been handed anything on a plate; my parents were poor immigrants who worked for minimum wage so that they could afford to support my sister and me through school. I am married with 3 kids, all in school, and so I of necessity need to work to support them and myself. Greedy? I live in an average suburb. I drive a 15-year-old car. Slothful? I work well over 50 hours each week (while on a salary, so no overtime) and I do at least 10 hours of community and charity work each week too.

    Is that all you can think about you disgusting blemish in the sight of Christ Yashua ?!

    No that is NOT all that I can think about — if it was I would be rich.

    Look, anyone can be rich if that is truly the top priority in his life. I don’t want to be rich badly enough to do what it takes. There are other aspects to my life that are far more important to me than mere money or material possessions: my family’s welfare and health, their happiness and well-being, the effect I have on my community and my world. All these things are truly important to me.

    I need to be able to be satisfied with an honest answer to this question each and every night before I go to bed: Is every person I came into contact with today better, or at least happier, as a result? If the answer is no, then I have failed to live up to the yardstick that I have set for myself.

    Making money is not how I measure my worth or my success. Of course, I do need to make enough so that I can offer my family a reasonable level of comfort and security, but beyond that it just doesn’t matter enough. What the previous blog post was referring to was a feeling that it is time to build a recurring income stream that can free up some time to enable me to become involved in some major, long-term projects that will actually cost me money but which I think will benefit many of the most needy people in my community. I can’t tackle them without sufficient time and funds. That is what this is about, not some desire to be rich. Heck, I am rich in so many ways: I have my health, a loving family, a roof over our heads and enough to eat and stay warm. I don’t need anything more. I don’t want anything more. So this comment:

    Money money money ! You sick sick man , do you know what you are getting yourself into ?

    well, I’ll just leave that alone.

    Now, let’s get back to Freemasonry. The writer uses these terms:

    … sATAN worshiping slothful PIG !

    … you disgusting blemish in the sight of Christ Yashua

    … member of that sATANIC jEW club

    … for your own material gain

    … do you know what you are getting yourself into ?

    Caps-lock-induced dyslexia aside, Satan-worshiping? Satanic Jew Club? Come on now, does anyone still buy into this claptrap? I am not going to go over all this again, not because I can’t but because it has been done so many times before. Look, check out these pages on our own Lodge web site for a starting point, and if you have any sane questions please ask them here (or better yet, phone your nearest lodge and talk to someone — this “secret society” is in the phone book, so they aren’t that secretive!).

    For the record, I am a Christian. Many of my brothers are Jewish. Many others are Muslim. A few I know who are Hindu. It doesn’t matter — we are all equal brothers, work together in harmony for the good of our broader community without trying to convert each other. Does this unsettle the commenter? Why? Maybe a little introspection is called for here.

    As for my “own material gain”, anyone who knows anything about Freemasonry (or anyone who actually knows a Freemason) will know that being a Freemason costs a man both in terms of time and in money — just ask my wife! There is no other way to put it: if you thought you were going to gain materially from joining Freemasonry, you were very, very wrong. Many times throughout the joining process, each potential and recent member is forcibly reminded of that fact and admonished that seeking personal advantage from membership is not only frowned upon but can lead to discipline, punishment and even expulsion.

    So why am I a member of a Freemasons’ Lodge?

    Simple: because I was a Freemason in my soul first. Whether by nature or nurture, I fundamentally believe that there is an absolute concept of good and evil, and men know in their innermost being how to recognise it. I believe that good men are good regardless of their religious persuasion. I believe that tolerance, open communication and cooperation are a good and proper way to interact with others. I believe that I have an obligation to render myself of service to the world around me, and that in doing so I am acting in accord with the will of the Divine (whatever name each individual wants to use).

    I believe — no, I know — that what I have become by being a member of a Lodge, and the continuing process of personal development and growth, makes me a better father, a better husband, a better employee, a better workmate, a better friend, a better citizen… a better man.

    If I didn’t know that, if I didn’t believe it deep where I live, then I would not still be a member after nearly 25 years.

    So, let me turn the last quote on the commenter. When you ask me:

    do you know what you are getting yourself into ?

    I can answer you with a clear, confident and categorical YES.

    Do you know anything about this subject at all?

    Hopefully, this post will help, although there is a Greek saying that goes like this:

    On a deaf man’s door, you can knock forever!

    which I suspect is appropriate here.

  • You know, I am getting to the point where I want to do something for myself. After many, many years developing software, I want to develop something where I own the IP.

    There are two ways to make money with this sort of thing. One is to try to sell software, for as high a price as you can get away with (and some of the prices paid in the enterprise space are just amazing). However, I am not keen on this. I have been involved in this type of sales process, and I have yet to remove the sour taste it left in my mouth.

    I would rather look at developing an online service, and ask people to subscribe to it. Get just 1000 people world-wide to pay $10/month, and you have a reasonable salary. Make that 10,000 and you are talking serious income. In today’s global market, neither figure seems absurd.

    So, what to develop? Does anyone have any good ideas? I’d love to hear from you.

    What online service would you be willing to pay $10/month for?  What about $20/year?

  • After a bit of playing around, I found that I needed a few more features than WordPress provided, so the site was transferred to Drupal. This CMS requires a bit more work to get going, but boy does it have functionality. If you are a web master, you really should check it out.

  • I can’t believe that it has been over three months since the last post. I’ve been really busy, and done a few cool things, but did not stop to write about them. I’ll fix that over the next few weeks, and take the time to write down some of my current thinking.

    In the meantime, you might like to look at a site I am setting up for the Central District of the United Grand Lodge of Victoria at www.centraldistrictvic.org.  I am using WordPress (the same software that powers this blog) as the entire CMS for that site, forgoing PmWiki. I am impressed with just how powerful that software is, and while it does not have the flexibility of a Wiki, it is probably easier to use for non-technical users.

    More soon…

  • I really like Python, but was not aware of this little hidden easter egg. If you fire up the interactive interpreter, and type “import this”, you get this wonderful printout to the console:

    >>> import this
    The Zen of Python, by Tim Peters

    Beautiful is better than ugly.
    Explicit is better than implicit.
    Simple is better than complex.
    Complex is better than complicated.
    Flat is better than nested.
    Sparse is better than dense.
    Readability counts.
    Special cases aren’t special enough to break the rules.
    Although practicality beats purity.
    Errors should never pass silently.
    Unless explicitly silenced.
    In the face of ambiguity, refuse the temptation to guess.
    There should be one– and preferably only one –obvious way to do it.
    Although that way may not be obvious at first unless you’re Dutch.
    Now is better than never.
    Although never is often better than *right* now.
    If the implementation is hard to explain, it’s a bad idea.
    If the implementation is easy to explain, it may be a good idea.
    Namespaces are one honking great idea — let’s do more of those!
    >>>

    Enough said.

  • I’m a big fan of Ruby, the language.

    I’m really impressed with the potential of the Rails framework (although to be honest there seems to be a lot of voodoo going on behind the scenes, which is probably just an indication that I have not yet done enough with this framework to be comfortable with it).

    But there is no denying the reality that, for most of us, adopting Ruby and RoR is not a simple decision, because we already have code that has been developed atop a Java web stack.

    If we are looking at a new project, and there is some ability to absorb the risk of going with a new technology stack, I would be the first to suggest that RoR be given serious consideration. On the other hand, if we are involved in the on-going development of a Java web application that has been going on for several years, does it make sense to try to integrate a new stack into the mix?

    Let me set some parameters. You have a successful product that is continually being improved. Using “best practices” (I’ll come back to that term in another post), the application has been developed using an MVC framework — let’s say Struts, JSP and Hibernate as a concrete and all-too-common example.

    Now, we want to make some changes as a result of customer feedback. Typically, these changes are either new features or modules, or else changes to the existing functionality.

    Changes to the existing functionality are hard to do in any other technology. Sure, if the changes are broad enough, it might make sense to redevelop one or more modules from scratch; in that case, of course, we can treat it the same way we would treat the development of a new feature.

    So, for a new feature, what alternatives do we have?

    We can certainly continue on with our existing technology stack. In many ways, this is the low-risk option, because we know the technology. We know the tool-sets, we have knowledge within our development team, and we have historical data about how quickly we can do things using that technology. And let’s not forget that the stack itself is well-proven, because we (and countless others) have deployed applications on that stack and we know how the stack scales, how it deploys, how it responds to machine and network resource allocations. There is a lot of value to maturity.

    But is it really a low-risk option? What if the development velocity is not fast enough? Sure, we have good predictability, but if our predictions are that we can’t do it as quickly as we need to in order to satisfy the customer, or prevent the work being assigned off-shore, then surely persisting with that technology is in reality the high risk option.

    And here’s the real issue. Java web development using the classic development stack is just not fast enough. I’ve heard the arguments — you need to do all the fancy plumbing and documentation / annotation so that the app scales and is flexible and maintainable when it gets hit by millions of users per minute. The reality, however, is that most applications never need that scalability, especially if they are not finished because application development is too slow.

    So what do we do? Is there some way to incorporate some of the really rapid web application development techniques into an existing Java web application?

    I think that we are at a difficult time in Java web development. We have a lot of systems that have been developed over a long time (“long” being relative to the rate of change of software development, of course). While these systems are often still in active enhancement, they are also in a very real sense legacy systems, built using tool sets, frameworks and architectures that, well, seemed like a good idea at the time. Looking back at what we have done, and also looking at all the shining new toys all the new kids are playing with that show just how much faster web application development can be, we can’t help but feel frustrated and itchy to do something, well, different.

    At the same time, we have some interesting things “just around the corner” in the Java space. But we need something we can use right now.

    I see JRuby is coming along in leaps and bounds. This is an implementation of the Ruby language for the Java Virtual Machine. It is almost at the point that it can run Rails applications. However, I don’t see a clean way to do new-feature development for an existing web application using Rails, even if it is on the JVM. Another very nice dynamic language, Python, has a JVM implementation in Jython, but this is languishing and seems to have been largely orphaned when its initial developer switched focus to IronPython, which is an implementation for the .NET platform.

    Groovy is coming along nicely, but slowly. It is likely to be an “official” scripting language as a result of having a JSR. Also, it has a Java-like syntax, which means that there is a shorter pick-up time required for Java developers.

    If I thought that language is the limiting factor, then I would look at Groovy because it has a lot of the syntactical conveniences of the popular scripting languages with full access to existing objects that have been coded in Java (including the Java libraries).

    However, while I think Java can be too wordy, requiring lots of boilerplate code in some circumstances, I am not at all convinced that this is the major reason that web development in Java is too slow.

    In reality, I think that the real reason web development in Java is too slow is that we are making it too complicated. The real reason that frameworks like RoR are so incredibly productive, in my opinion, are more related to the use of very simple ORM designs like ActiveRecord, and the Convention over Configuration philosophy.

    Sure, Hibernate is REALLY powerful. But it is not ideal for all sorts of database access, at least not when used naively. Sometimes, a simple SQL query, processed as JBOF (Just a Bunch Of Fields, and yes, I did just make that up) is totally appropriate.

    Consider for example presenting a user with a filtered, paged list of widgets. In the prehistoric era of web development (that is, about 8 years ago, and using VB6 COM behind IIS/ASP) I designed a relatively simple, generic technique. I created an SQL statement by putting together the WHERE clause dynamically. I then did a SELECT statement, retrieving only the IDs that matched the criteria. IDs were just 32 bits each, so even a million of the suckers was just 4M — most lists were a few hundred to a (very) few thousand rows. I just stuck them in an array and stuffed them into the session. Then, paging was simple: just calculate the array indexes that correspond to the desired page, create an SQL statement that retrieves only the ID and the columns required for the list display (using an SQL WHERE ID IN … statement) and displayed the list. All this is totally generic, it scales REALLY well, and has not let us down after years of very heavy use in the field.

    More recently, and in the Java world, we end up retrieving lists of objects. We rely on Hibernate or the ORM de jour to do magic, multi-level caching and lazy object instantiation and hope that it all works. And then we dump the list into some magic JSP taglib that does sorting in memory. And when the list gets to a few hundred items, the list takes MINUTES to display, and customers are unhappy, and developers say “you didn’t specify performance criteria”, and analysts say “but of course it has to handle more than a dozen items in a list”, and you need to divert resources to do major investigation and refactoring or redevelopment, and you start to think that things are not meant to be this hard.

    In business application development, the needs of the application for data access are not complex. We need to get filtered lists of items, then we need to get complete individual items. That’s pretty much it, and that’s what DATABASE servers do — we should let them do their job and not try to replicate that in the application. Updating is only a little more complex.

    The other lesson that we can learn from RoR is that we seriously need to tame the configuration frenzy that Struts brings. I need more time to think about this, but I think that a good way to begin simplifying this in an existing product is to add a single Struts action that further parses the request URI and uses some convention to identify the class and method that should handle it. That class could be written in Java, or any of the new, JVM-hosted scripting languages. Do it well, and write a suitable class loader, and you could even hot-deploy a URI request handler class or JAR file.

    The reason that I am considering this is not because I don’t want to use an existing framework like Ruby on Rails (or for that matter Grails, Turbogears or Django). It’s that I need to be able to integrate whatever framework we use into the application as it exists so far, and everything I see (and my gut instinct) tells me that these frameworks are good for new projects but are likely to be a bitch to configure and integrate with a Java/Struts/JSP stack.

    I have not yet clarified my own thinking about all this, but I wanted to post it to get some feedback. What do others think? Am I alone in thinking that we are making Java web development harder than it needs to be?

 

This is my private blog and web site. You can find out more about this web site and its author on the About page.


Interested in where the name comes from? See the What's a Jimako page.


Feel free to browse the site to see what else is here, or peruse the random ramblings in the blog.


Categories

Archives

 
WP_Modern_Notepad