Friday, July 13, 2012

New Scrabble - A Re-examination

When the new Facebook Scrabble game was foisted on us, my first reaction was shock. It looked butt-ugly, had problems loading, and was plagued with bugs. I quickly resigned or forfeited all my active games, even though I was winning most of them. Since then, Electronic Arts (EA) has made some adjustments to the game. Once the game came back this week after a four day long server crash, I decided to play through a complete game to put it through its paces.

The first thing you see is a panel that tells you to invite your friends to the game. Unfortunately, there seems to be no clear way to get past that panel. I ended up clicking on the "Board Size" button. That brought up a new dialog, one that had a clear exit button, and I could then begin play.

Regarding the "Board Size" dialog, if you click on the buttons labelled "+" or "-", you might be surprised when nothing happens. The dialog simply tells you how to resize your browser content using the keyboard. (This is a function of the browser, not the game.) Worse, once you're done your game, you have to resize your browser content back to its original size. This was a later change to the program based on user feedback, but a hack solution at best.

Next, look at the text at the bottom of that panel. That's just one of several examples of text that overflows the intended area. Other examples are the "Create New Game" button and the 2-letter word list that ends at "RE" on my computer. Mind you, not everyone has these problems. But it does show that the designers have not taken all browser and operating system combinations into account.

Three words into the game, my opponent sent me a chat message asking me to move. I replied that I made my move about five minutes earlier. She clearly had problems with her game not refreshing when it should. During the game, she often had to manually refresh in order to continue. Another time, she had to restart the game before she could continue.

There were other nuisance bugs. But I'll spend the rest of this epistle discussing the user interface. When I first saw the new game, I was shocked by the busy graphics, distracting animations, and gaudy colors. Supposedly, EA made some adjustments to the graphics in the meantime. However, the only difference I could see was that the board had lost it's 3-dimensional look. Elsewhere, pretty much all the colors and graphics are the same. Overall, the effect is jarring and hard on my eyes.

Other aspects of the user interface are inconsistent. Compare the graphics on the left for your turn and your opponent's turn. When it's your turn, the "My Turn" box appears above the "Suggested Players". However, the "Their Turn" box renders below "Suggested Players". Further regarding the "Their Turn" box, note that the box lists the last word you played, not the last word your opponent played. Is that confusing, or what?

Overall, there are a lot of elements that are too prominent and too distracting, such as the "Suggested Players" box. Why should I care so much about starting new games while the current one is in progress? The old game allowed us to do that, however, in a much less intrusive manner. Likewise, the ratings box at the bottom is way too big and too distracting. In the old Scrabble game, the chat dialog was certainly too small. But in the new Scrabble game, the chat area is overkill. And too cartoonish. Clearly, the designers of this game wanted to squeeze a lot of content into the game. The scroll bar at the left shows that they had too little screen area for what they wanted.

Another post-release change based on user feedback was to make the count of your opponents letters during the end game more prominent. Unfortunately, this message obscures part of the board, and you have to explicitly close this dialog. Again, yet another poorly designed afterthought.

Clearly, the designers of the new EA Scrabble game failed to understand the needs of their loyal Scrabble players. Scrabble is a quiet, contemplative game. Flashy effects and distracting animations just do not serve the game well. After my game ended, I had little desire to continue playing. EA has promised a new version of the game with a choice of user interface, including the old "classic" look and feel, a gesture that I certainly appreciate. But will we get the real old game? Or just an old-looking skin on the new program? If it is to be the latter, then will we still have to endure all the bugs programming defects in the game?

There's one more difference between the original new game and the current new game. When the new game was first released, it wasn't called "Scrabble Beta". Sometime after the initial release, after all the complaints starting pouring in to the EA support forums and Facebook groups, they added the word "Beta". As if that makes our Scrabble playing experience any more enjoyable. It may well be beta quality, but obviously, EA didn't think so when they first released it. Which begs the question: Where was EA's quality control department while the game was under development?

Before the new game came out, I used to enjoy playing the old Facebook Scrabble game. However, I think I'll wait a few more months before trying out the new EA Scrabble game again. EA has simply taken all the enjoyment out of the game.

Cheers! Hans

Tuesday, July 10, 2012

Scrabble - How To Piss Off Your Loyal Players

How many months has it been since Electronic Arts (EA) released their new Scrabble game on Facebook? It's been almost two months now since EA put their new "improved" game into open beta, even though the testers from their closed beta test gave them all they needed to know at the time, that the new game was severely flawed. And did EA explain why they released a new game? No. Even now, EA is saying little in response to the continuing litany of complaints.

To be fair, EA has announced that, in a month, they will release a new version of the game that has the old look and feel as an option. But that gesture has largely been ignored, while more and more people clog the Scrabble Facebook pages with complaints. (See ScrabbleEA and Scrabble, as well as Bring Back The Old Scrabble.)

We can only speculate why EA foisted this new game on us, knowing full well the feedback from the beta testers. Some argue that they wanted to push out more ads to the players. However, they tried that before with the old game and backed down after getting an earful from its players. Others suggest that they wanted to encourage players to invite more of their friends to the game. But heck, it's already one of the most popular games on Facebook. Surely everyone on the planet knows about the game.

Here's my theory: I suspect EA had to make a change because they had to. Maybe there were some incompatible API changes that caught EA off guard, forcing them to rush out a poorly written replacement game. After all, the old game still had problems of its own. I often had to use a different browser just to play the game. But it just made no sense to make such a drastic change. If there were impeding API differences, why couldn't the old game be modified?


EA hasn't been forthcoming with explanations, while the revolt among Scrabble players grows. Who knows how many have left the game with no intention of returning? Many people complain about opponents who have just abandoned their games. EA is now in a difficult situation. What do they have to do now to regain the trust of its Scrabble players?

First, EA needs to understand that Scrabble players in general are fairly intelligent people. By its very nature, the game attracts people who like to play with words. You can't easily dismiss such a group.

Second, EA needs to be forthcoming, and honest in its communications with its Scrabble players. They need to acknowledge the problems in a way that's not condescending. Scrabble players are not happy. EA staff need to accept that, and plan appropriately.

Third, EA needs to explain honestly why they made the change. Public relations experts have learned long ago that people can easily sniff out BS, and that sincere honesty is really the only way to handle PR nightmares, such as this. If the reason was an API change, then tell us. If the reason was that someone within EA thought that the new game had a better user interface, then tell us. Or, if the reason that that EA thought they could make more profit, then that must be admitted as well. EA has already lost the trust of its players. It's up to EA to do the right thing to bring them back.

And of course, fourth, EA needs to fix the problems with the Scrabble game. Offering the "classic" look and feel is part of that. But the bootflow errors, loss of scores, incorrect scoring, slow loading, etc. all need to be corrected. I know many programmers like to call them "bugs", implying that somehow tiny six or eight-legged creatures are somehow responsible. But the more correct term is "defect". These are all example of defective programming that never should have gotten out of the programming shop.

Whatever EA says publicly now, it will be picked apart by a group of extremely upset people. As I wrote before, Scrabble is an emotional issue for most players. EA needs to understand how best to make a public apology. Probably the worst thing EA could say now is "just get over it, get a life!". For many Scrabble players, Scrabble is an important part of their life.

Cheers! Hans

Wednesday, July 4, 2012

Don't Know Your Religion? Take The Test

We all believe. For many people, their beliefs come with a name attached. Often, their beliefs match the beliefs of a particular religion. These people can easily find others who share their beliefs. But others have a harder time defining what they believe in, and so, have a harder time finding others who share their beliefs.

Which brings me to the Belief-O-Matic quiz, found on the beliefnet web site. If you belong to a church, this quiz will likely be nothing more than a curiosity. You know what you are already. But if you know more or less what you believe in, but don't know what to call your beliefs, the quiz may well tell you. And the rest of this epistle is for you.

To continue, let me tell you a bit about me. I've thought about the great questions of life, universe, and everything for a long time. There are some things I know for sure, such as the importance of treating others as I want to be treated. There are other things that I doubt, such as the existence of a supreme creator being. In some ways, I consider myself a spiritual person. Like Einstein, I find spiritual inspiration in the fundamental principles governing the universe. In particular, I find something mysterious and magical about Euler's Identity:

e^{i \pi} + 1 = 0\,\!

What label would you give to my beliefs? Atheist? Agnostic? Secular Humanist? Would those terms describe you? Before continuing on, do the Belief-O-Matic quiz, if you haven't already done so.

Now to get to the point of today's missive: If, like me, you identify yourself as a secular humanist, you might be a bit surprised to find a few other faiths on your Belief-O-Matic results, such as Liberal Quaker or Unitarian-Universalist. The latter is what I'll focus on here. As a secular humanist, you may well think that there's no church where your beliefs would be welcome, or no church where your particular spiritual needs may be met. If that sounds like you, you know there are others like you. But in what church (if any) can they be found? They may be in your local Unitarian congregation. Yes, there is a church that may well be for you!

Just to be fair, Unitarians aren't all secular humanists. Some Unitarians are atheists or agnostics. Some Unitarians are Christians or Jews. And some are Buddhists or Wiccan. Almost all are on a journey of religious exploration. We all have different beliefs, and we all accept and encourage each other in our individual spiritual growth. If you come to a Unitarian service, you won't be told what to believe, unlike other churches. You are accepted no matter who you are, no matter what you believe, and no matter who you love.

If you want to learn more, start with the Canadian Unitarian Council or the Unitarian Universalist Association web sites. If you live in the Kingston, Ontario area, check out the Kingston Unitarian Fellowship. Some people who learn about Unitarianism for the first time wonder: What's the catch? There's no catch. If you are intrigued but have doubts, make an appointment with the minister of your local Unitarian church, and ask the most difficult, challenging questions you can. Or just show up at Sunday service and see what it's all about.

By the way, here are my own top three Belief-O-Matic results:
  1. Unitarian Universalism (100%)
  2. Secular Humanism (89%)
  3. Liberal Quakers (81%)
Cheers! Hans

PS. If you want to check out the Kingston Unitarian Fellowship, note that the church takes a break over the summer. Services resume in September.

Saturday, June 30, 2012

PHP - What Really Sucks About It?

PHP sucks. That's something I think a lot of programmers will agree on, even PHP programmers. For example, Jeff Atwood offers an interesting viewpoint in his blog entry The PHP Singularity. But heck, a lot of programming languages suck. And even though they suck, there are many millions of KLOC written in languages like COBOL, PL/I, and RPG.

Programming languages, like human languages, evolve. PHP started life as a web templating system, and evolved into a general-purpose programming language. During subsequent releases, new features have been added and some cruft deprecated. Other languages, like Perl and RPG have over the decades undergone similar transformations away from their original purposes.

Why is PHP so maligned? Perhaps because many of us have had to deal with PHP code written 10-15 years ago when the language lacked many of the nice features added in recent releases. Or PHP code written by programmers who knew better than the previous programmers on the project.  Or PHP code written by programmers without extensive programming experience. 10-15 years ago, programmers who knew the risks associated with web programming typically chose other languages if they could.

When I started doing PHP programming, I started with PHP 5 and CakePHP. With Cake, you can't help but structure your application using a more or less proper MVC design. It's probably too much trouble not to. And so I know from personal experience that it is indeed possible to write relatively clean code using PHP. Unfortunately, we don't all have the luxury of working with clean PHP code.

What kind of programming shop typically uses PHP? I would guess the typical PHP shop evolved as follows: The shop started out small, perhaps as a one-person company. As the business grew, the demands on the custom PHP application grew as well. Other programmers were brought in, each with their own programming styles. Perhaps one of them was assigned the task of managing the others. But without any significant management experience, eventually the programming staff gets to the point of running from crisis to crisis as the code base gets harder and harder to maintain. Does that sound like your PHP experience? It's a sure-fire recipe for job stress and significant staff turnover.

Based on my own experience, the next time I'm interviewed for a programming position, PHP or otherwise, I would come armed with a bunch of questions, including:
  1. Can I see your documents describing your development process?
  2. Can I see proof that the documented development process is followed?
  3. Would I be reporting to a manager with specific management experience?
To be fair, it's possible to write bad code in any language. But if a programming shop wants to grow beyond a small business, it needs to adopt a different mindset. It needs professional management experience. It needs proper coding standards and processes. It needs programmers who know what it means to work as a team. It needs a staff that understands the importance of egoless programming. Can those things be found in the typical PHP shop?

Cheers! Hans

Thursday, June 28, 2012

Scrabble - It's Emotional

We love Scrabble. Lots of people do. It's certainly one of the most fun board games around, and one of the most popular. There are also a number of on-line implementations of the game. One of the most popular was a version hosted on Facebook provided by Electronic Arts (EA). Unfortunately, a few weeks ago, EA changed the program.

The new Scrabble program went through a beta test. And even though the new program was almost universally panned by the reviewers, EA went ahead and foisted the new game on more people. The stream of complaints has been almost steady ever since. Now, they are pushing the program to everyone, and the complaints continue.

Here's a side-by-side comparison of the two programs:

Image by Russ Nemec.
The program on the left is the old program we all enjoyed playing. On the right, the new program, with a cluttered and confusing user interface. In fact, EA even had to write a FAQ for the new program to explain how to use it. Speaking as an experienced programmer, if your program needs a FAQ to explain its use, there's something seriously wrong with the user interface.


Here's one bug I noticed right away on my computer. Note the text "Create New Game" spilling out from the button. Real professional user interface design, eh?


But there's more! The new program won't load for many people. Or it loads very slowly. There have been reported cases where your score gets added to your opponents score. Many complain that they can't move their tiles on the rack, as we could with the old program. There have been complaints about the dictionary. Some don't know how to get to the chat area. Many complain about the general cartoonish appearance of the game. People complain about the ads that pop-up between moves, and the constant request that users recommend the game to their friends. Heck, I wouldn't recommend this piece of shit to my enemies!

You could ask: Why the fuss over a simple game? The answer is simple. This is an emotional issue. Most of us who love playing Scrabble have been playing it for years. I remember playing it as a child. When planning my moves, I would use a dictionary, and I learned a lot of words that way. I'm sure most Scrabble lovers can offer their own stories of how the game has affected them personally. And so for most of us, the connection to the game is visceral. We loved playing the old version of the on-line game. We hate playing the new version.


If you want to add your voice to the complaints, there are two pages on Facebook where EA reps can sometimes be found: ScrabbleEA and Official Scrabble. Are they listening? They do seem to be interested in bug reports for the new game. But they seem to be turning a deaf ear to the flood of requests for EA to bring back the old game. What can they be thinking? Do they think the storm of complaints will die down? Do they think that the Scrabble players who have already left will return? EA needs to understand that this is an emotional issue for us. If they ever did restore the old program, we may well forgive. But we won't forget.


Cheers! Hans

PS. Check out the Facebook page Bring back the old Scrabble.

Monday, June 11, 2012

Is RPG Dead? The Wake

In a previous post called Is RPG Dead? The Autopsy, I suggested I'd probably have more to say on the subject. This offering is in response to Scott Klement's editorial, RPG is Dead? Are You Serious?! I'd like to respond to a couple of points he makes.

First, he brings up the fact that people have been debating RPG's death for the past 20 years, and yet RPG is still around. But why bring up the question at all if there was any doubt as to RPG's future? Does anyone ask if Python is dead? Or PHP? Of course not! No one has to.

Next, he raises the point that most application development on IBM i is done in RPG. No one is denying that. However, no one can deny that IBM i is a platform in decline. The numbers just don't lie. The fortunes of RPG are intimately tied to the fortunes of the platform. As IBM i slowly dies, so does RPG. (I said more on this theme in my blog posting Is RPG Dead? Do We Still Have To Ask?.)

Skipping past some history, Scott talks about what's important to programming business logic. Let's look at each in turn:

Business logic uses numbers heavily. Well, this is not unique to business applications. However, most arithmetic in any business application, like in any other domain, is integer arithmetic. Business logic does make use of decimal numbers, but even there, most operations involving decimal numbers are simply the movement of data. Actual decimal arithmetic is a small part of the logic, and in most business apps, could be implemented fully in SQL code. That said, other languages do have support for decimal arithmetic. Scott mentions Java for one. Python is another. Even PHP has support for decimals.

Business logic uses databases heavily. Business applications don't have a monopoly on using databases. Many different domains, from gaming to on-line social networking to statistical analysis make at least moderate use of databases. And so you can find support for databases in practically every programming language out there. RPG gives you two choices: built-in I/O operations and pre-processed SQL. Other languages often provide higher-level access to databases. For example, in CakePHP, you define your high-level relationships (1-1, n-1, 1-n, n-n) between your tables, and one find() operation can bring in all related data for a transaction. That is, the framework figures out the SQL for you, including joins. Among the available RPG frameworks, which one can provide that level of power?

Business logic uses dates frequently. And so do many other types of programs. And so you can find date support in practically all modern programming languages. RPG is certainly not unique. Python has the datetime class. PHP has an extensive list of date/time functions and classes.

Business logic uses a lot of string manipulation. I disagree with that assertion since strings are most commonly needed in the presentation layer of an application. But let's assume it's true for business logic. Again, what modern programming language lacks support for strings? Languages like Python, Perl, and PHP (to name a few) all have very powerful string support. Much more powerful than RPG's support. In those other languages, strings are all objects, with a rich set of methods. RPG, in comparison, has a rather limited choice of string operations. Consider the ease of doing regular expression matching in Perl, Python, and PHP. And compare that to what you need to do in RPG.

If these four categories define what's important in programming business logic, there are clearly languages other than RPG that have a definite advantage. Whenever I see someone claim that RPG is the best language for business logic, I always interpret that to mean that the author simply knows RPG best. And Scott certainly is an expert on RPG.

Finally, Scott makes the point that RPG is still being enhanced and supported. True. However, other languages have long ago surpassed RPG in terms of features and capabilities. In my previous missive, I listed half a dozen features common to other programming languages that are still lacking in RPG. And I could have listed more. And other languages continue to grow and gain in popularity.

RPG will not disappear overnight. To say that RPG is dead is an exaggeration. However, it is becoming increasingly irrelevant in the I.T. world. I'm reminded of a job interview I had back in 2008 where the interviewer looked at my resume and asked: "What's an iSeries?". (RPG wasn't discussed at all in that interview.)

Cheers! Hans

Thursday, May 31, 2012

Is RPG Dead? The Autopsy

In a previous post, I promised to say more on the subject of RPG's death. But I'm finding it tougher than I expected. Don't misunderstand me, it's not for lack of content. It's just that I worked with RPG for a long time. I don't want to see RPG go away. Writing this blog posting feels like I'm kicking an old friend while he's down on the ground. On the other hand, it's just a programming language. And the facts need to be understood.

When I first learned RPG III, 31 years ago, I was impressed by a couple of things. First, I was impressed with the externally-described file. As far as I knew, no other language had such a powerful feature. Second, I was impressed with the syntax-checking source editor. At my university, some professors were just beginning to think about something like that.

But other aspects of RPG III were definitely goofy, such as the fixed-form syntax and the indicators. Fortunately, the language has grown since then. Indicators can be largely avoided, and calculations can be coded in a free-form syntax. However, although RPG has progressed, other languages have progressed faster, and new languages have cropped up with even more powerful features. More and more, RPG looks like an anachronism, rather than a modern programming language.

I'll list some features that are commonplace in other, modern programming languages that RPG still lacks:

1) Namespaces. That is, what happens when you want to import two libraries with the same name? In languages like Java and Python, imports can be put into a directory hierarchy. And if there are conflicts, things can be renamed.

2) User-defined data types. Sorry, data structures and LIKEREC just don't cut it.

3) Object-oriented programming. What language doesn't have OO support these days? It's something we now take for granted elsewhere.

4) Extensive list of built-in functions or classes. Just compare what RPG has to the Python Standard Library or PHP's Function Reference. No comparison.

5) Frameworks. Most modern programming languages have a goodly selection of frameworks that simplify programming web applications. These frameworks have various levels of functionality, however, typically they take care of a lot of nitty-gritty details. Using a framework, you should never see a query string, or XML, or JSON, or SQL.

6) Operating system independence. Programs written in languages like Java, Python, and PHP can easily be ported across different operating systems.

Some would argue that RPG could be further enhanced to address these short-comings. But why bother when there are already other languages that have these features? The planners at IBM certainly know what's lacking in RPG, and they still seem to have the resources to make the occasional enhancement. But over the past decade, there seems to have been little effort to address these specific short-comings. Looking at the situation from that perspective, one could argue that IBM itself also sees no future for RPG.

So far, I've written about 500 words, and yet there's still more to be said. Stay tuned.

(Update: Next installment: Is RPG Dead? The Wake)

Cheers! Hans