Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 PROGRAMMING


  Why Programmers don’t have a High Social Status?

Up to date there is No single street name for a top programmer or computer scientist in any of the Top 20 most developed countries in the world during the last 60 years.There is no statue built in the center of a major city for a renown programmer or computer scientists.No “Presidential Medal” or “Congressional Gold Medal” has been awarded to a computer scientists or programmer.There is no nationally televised social reward ceremony for computer programmers and scientists like there is for artists, football or basketball players, etc.There is no red carpet and Nobel pri...

10,507 5       PROPGRAMMER SOCIAL STATUS REMEMBER ACHIEVEMENT


  Regex vs IndexOf in Java.

OverviewThe author of these articles Are C# .Net Regular Expressions Fast Enough for You? and .Net Regex: Can Regular Expression Parsing be Faster than XmlDocument or Linq to Xml? recently pointed out to me that he had found that Regular expressions were at least as fast or faster than the alternatives in C#. However it has been my experience that regular expressions in Java were slower. It is hard for me to say why this might be different in Java and C# or even if these are fair comparisons but here is what I found in Java.Searching XML for the start of a fieldThis test searches for the exp...

6,088 0       JAVA REGULAR EXPRESSION EFFICIENCY INDEXOF


  Replacing small C programs with Haskell

C is the classic go-to tool for small programs that need to be really fast. When scripts.mit.edu needed a small program to be a glorified cat that also added useful HTTP headers to the beginning of its output, there was no question about it: it would be written in C, and it would be fast; the speed of our static content serving depended on it! (The grotty technical details: our webserver is based off of a networked filesystem, and we wanted to avoid giving Apache too many credentials in case it got compromised. Thus, we patched our kernel to enforce an extra stipulation that you must be runnin...

2,672 0       C HASKELL SMALL PROGRAM


  Erlang Style Concurrency

Introduction On an evolutionary scale of innovation from one to ten (one being Bloomberg and Citi Group, eight being Google and Cirque Du Soleil, and ten being the company you couldn't imagine in your wildest dreams), the company I work for is about a three1. Being employed by this bastion of ingenuity affords me certain opportunities I can't get elsewhere. For example, every developer gets to interview potential candidates he might end up working with. During our last round of these int...

2,521 0       INNOVATION CONCURRENCY ERLANG LOCK MESSAGE


  Finding selected checkbox items in a JSF dataTable

This is one of those problems that I couldn’t find a complete example for when I needed it, so hopefully this will save somebody else the extra time it took me to piece it together.We frequently need to have data tables in our UI, and allow the user to select a subset of those items for action. In JavaServer Faces, this means having a DataTable, each row having its own checkbox. But when the action is triggered, how to we find which items the user has selected.The first step is to add a boolean property to your objects that can represent the selection. If you have a lot objects in your ...

14,595 1       EXAMPLE JAVASERVER FACES JSF DATATABLE CHECKBOX


  Why do C++ folks make things so complicated?

This morning Miroslav Bajtoš asked “Why do C++ folks make things so complicated?” in response to my article on regular expressions in C++. Other people asked similar questions yesterday.My response has two parts:Why I believe C++ libraries are often complicated.Why I don’t think it has to be that way.Why would someone be using C++ in the first place? Most likely because they need performance or fine-grained control that they cannot get somewhere else. A Ruby programmer, for example, can make a design decision that makes code 10% slower but much easier to use. “Hey, ...

2,865 0       C++ COMPLICATED C++ PROGRAMMER DESIGN PATTERN


  Standardizing Python WSGI deployment

Over the past year I have been testing all of the new python platform as a service companies that have popped up, and I have posted my notes on my blog so that everyone can learn from my experiences. ep.io, apphosted.com, gondor.io, dotcloud.com, DjangoZoom.com, Heroku, Django hosting roundup,All and all, the platforms were very similar, they allowed you to easily host your python/django project without having to worry about managing a server or other typical system administration duties. Some of the services were more advanced and had more features then others, but since it was s...

2,786 0       JAVA PYTHON STANDARD WAR


  What the Heck are Algebraic Data Types? ( for Programmers )

This post is meant to be a gentle introduction to Algebraic Data Types. Some of you may be asking why you should learn Algebraic Data Types and how will they change your world?  I am not going to answer that, but suffice it to say that Algebraic Data Types are the underpinning of the type systems to the ML derived languages, Haskell and OCaml included, and their construction and properties allow for the power (and inference) that accompanies these type systems.  They are cropping up in other languages, like Scala, F#, and Clojure.  Well, here are my 2 cents.I wrote this blog pos...

3,180 0       PROGRAMMER ALGEBRAIC DATA TYPE SET OPERATOR