Subscribe: James Crisp
http://jamescrisp.blogspot.com/feeds/posts/default/-/Java
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
code  doubles floats  find  good idea  information  java  job  jobs  jruby  net java  net  nick sieger  ruby  search  svn  work powers 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: James Crisp

James Crisp



Ruby on Rails, C#, .NET, book reviews, film reviews, mind hacks, Wing Chun and the occasional personal bit.



Updated: 2018-01-16T03:29:53.525+11:00

 



Is .NET or Java dying?

2007-06-05T19:49:18.842+10:00

Are C# and .NET losing ground as Martin Fowler suggests? Or is Java's market share dropping? What about Ruby? And what about the Australian market in particular?Here's what I've been able to find.Job TrendsWhich technologies have the most demand for people?From Indeed.com, which claims to search "millions of jobs from thousands of job sites", but I suspect may have a USA focus:"Best Talent Index May 2007" from Best People Solutions gives an Australian perspective:Here's job counts from the (largest?) primarily Australian job search site Seek on 5 June 2007, 3pm (today):Keyword(s)Number of positions foundJava3,414".NET" or "dot net"2,744"c#" or "c sharp"1,722ruby100As an aside, I remember doing a search on Seek for "ruby" about 6 months ago, and getting under 20 jobs mentioning it.Search Engine Number of HitsExtract from the TIOBE Programming Community Index for June 2007: PositionJun 2007PositionJun 2006Delta in PositionProgramming LanguageRatingsJun 2007DeltaJun 2006Status 1 1 Java 20.025% -1.10% A 2 2 C 15.967% -2.29% A 3 3 C++ 11.118% +0.45% A 4 4 (Visual) Basic 9.332% -0.85% A 5 5 PHP 8.871% -0.72% A 6 6 Perl 6.177% +0.17% A 7 8 C# 3.483% +0.25% A 8 7 Python 3.161% -0.30% A 9 10 JavaScript 2.616% +1.16% A 10 19 Ruby 2.132% +1.65% AI think this gives a good idea of web buzz, but suggest that most non-IT companies do not publish information about their projects and chosen technologies and languages on the web.ConclusionThe data collected suggests that:Both .NET and Java are major players in the job market with thousands of positions advertised, implying wide industry adoption of both.Neither .NET nor Java seem to be undergoing any significant decline in jobs.Java has much more information about it on the internet, although .NET is slowing gaining ground and Java slowly losing it.Ruby is comparatively tiny but growing rapidly in terms of jobs and information on the internet.ThanksThanks to Jason Yip and Suzi Edwards for their help finding/sourcing information.[...]



JRuby Setup

2007-02-27T22:54:23.127+11:00

Recently got a JRuby/Rails system with Java integration up and running. Unfortunately, it took quite a few hours, as most of the docs and code you find through Google are out of date.

If you use JRuby 0.9.2 from Codehaus, you will get an error similar to this when you try to access a rails application:

[2007-02-26 17:54:59] INFO WEBrick::HTTPServer start: pid=22540508 port=3000

["c:/jruby-0.9.2/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:402:in `to_constant_name'...

If you're stuck in this rut, fear not! Nick Sieger has written very helpful instructions which outline how to get and set up the latest development snapshot. Please note that in addition to the instructions, you need to set your JRUBY_HOME environment variable. Under Windows, do something like this:

set JRUBY_HOME=c:\jruby

If you'd prefer not to use the snapshot, you can get the source code through subversion from:

http://svn.codehaus.org/jruby/trunk/jruby

but at the time of this post, you need to run svn checkout or update with "--ignore-externals" to avoid the following error:

Error: URL 'svn://rubyforge.org/var/svn/bfts/bfts/trunk' doesn't exist

Many thanks to Nick Sieger and the JRuby user mailing list for their help.



Using floating point variables to represent money => not a good idea!

2007-02-25T22:36:48.787+11:00

I was reading through some code the other day and was surprised to find that it was using doubles to represent dollar amounts. Reason for the alarm bells is that doubles and floats cannot accurately represent many decimal fractions (eg, 0.1), since doubles and floats internally work with powers of 2 rather than powers of 10. These inaccuracies are likely to lead to significant errors, especially when performing arithmetic (eg, adding up a table of dollar amounts). See this IBM article for a more in depth explanation and examples. The solution is to use types that work with powers of ten internally. In C#, you can use 'decimal' and in Java or Ruby, 'BigDecimal', to avoid these problems.