It is currently Thu Mar 28, 2024 4:13 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
Offline
 Post subject: Re: Google Code Jam
Post #21 Posted: Tue Apr 10, 2018 6:32 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
In general, I preferred the old format for google code jam. You get the input file, do what you want in your own environment, and get an output file. There are fewer surprises, and nobody has to worry about environment details.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Google Code Jam
Post #22 Posted: Tue Apr 10, 2018 6:37 am 
Lives with ko

Posts: 259
Liked others: 46
Was liked: 116
Rank: 2d
dfan wrote:
Ruby is over 20 years old, and (speaking as someone who has written more C++ than any other language) I think that when it comes to overall fragility, including how easy it is to introduce subtle bugs, C and C++ are much worse than languages like Ruby and Python.

It is true that you have to be a little careful about making sure that your versions match, which is true for any language with a rich standard library. The current version of Ruby is actually 2.5.1, and the latest version of Ruby 2.3 is 2.3.7, so if you ask me Google is the one who dropped the ball here if they only support 2.3.3.


I was half joking, half serious. But I wouldn't recommend C++ (which C++?) either for this purpose. And I don't think C really runs significantly more risk for subtle bugs for trivial problems such as these - and I note that Herman also had a mystery issue with problem 1.

Top
 Profile  
 
Offline
 Post subject: Re: Google Code Jam
Post #23 Posted: Tue Apr 10, 2018 7:41 am 
Gosei
User avatar

Posts: 2011
Location: Groningen, NL
Liked others: 202
Was liked: 1087
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
bernds wrote:
I note that Herman also had a mystery issue with problem 1.


On problem 1 I got solved for the small set, wrong answer for the large set, so the code ran but gave the wrong output. That must've been my mistake, not ruby versions.

Top
 Profile  
 
Offline
 Post subject: Re: Google Code Jam
Post #24 Posted: Tue Apr 10, 2018 8:01 am 
Gosei
User avatar

Posts: 2011
Location: Groningen, NL
Liked others: 202
Was liked: 1087
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
bernds wrote:
Sorry to hear that. I knew Python was incompatible with itself, but I didn't know anything about Ruby. I'd kind of like to make a case for using industrial strength languages like C rather than these newfangled shiny but fragile things. Why handicap yourself in a contest?


I write code way faster in modern languages like ruby or python. In this round, there was plenty of time, but in the next ones you're time-limited and it becomes significant. Also, these languages have some powerful default options (such as unlimited size ints and powerful enumerable manipulation libraries) that I don't have handy in C.

Really I should've just paid closer attention to the contest conditions. Switching to ruby 2.3 takes all of two seconds on my system with chruby, I just wasn't sufficiently prepared for the new contest format. :)


This post by HermanHiddema was liked by: dfan
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group