• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.

Coding "Joy of the Day" (JotD)

Leitz

SOC-14 1K
Admin Award
Baron
Working on my CT Character Generator while learning more Ruby and OOP. Figured out how to set the default Career based on Soc. Low is "Other", high is "Noble", and in the middle is Citizen.

Now, of course, to make the modules with those careers...

What's your Coding JotD?
 
Pawing through the GURPS JTAS discussion articles, scraping off most URLs and dead links, re-linking forward and backward navigation, indexing the topics, and making it generally a bit more suitable for a CD-ROM for Marc.

Perl rocks at this sort of activity.
 
Pawing through the GURPS JTAS discussion articles, scraping off most URLs and dead links, re-linking forward and backward navigation, indexing the topics, and making it generally a bit more suitable for a CD-ROM for Marc.

Perl rocks at this sort of activity.

Nice! Perl is great for that sort of task. If it didn't make me physically naseaus coding in it I'd probably still be there. Or at least better than I am now. :)
 
Well, they say Ruby is a dialect of Perl.

I've started learning Perl6. You wouldn't find it nauseating. Much more Rubylike. References, sigils, arrays of arrays, strong typing, methods instead of functions, OO, and more are like Ruby, and unlike Perl 5.
 
Pawing through the GURPS JTAS discussion articles, scraping off most URLs and dead links, re-linking forward and backward navigation, indexing the topics, and making it generally a bit more suitable for a CD-ROM for Marc.

Perl rocks at this sort of activity.

Not a coder, but it made my day to know this work is happening :D
 
Pretty much every day: adding a chunk of code to my next T5 iOS app and getting a warm fuzzy feeling after running it in the simulator and seeing the new functionality.

Unfortunately, this is often cancelled out by the horrible results generated by the buggy T5 design, so I usually have to modify the T5.09 rules and post what I did to the T5.09 Errata thread.

:(
 
A few major ones over the years (I`m not smart, but persistant)

Becoming proficient with Java (my favourite)

Reading (text) from Travellermap.com .sec files & returning Jump-9 destination lists from any hex, sector boundaries notwithstanding. (Location 0101 has destinations in 4 different Sector files).

Creating hexes of any size for printing.

Creating web pages and indices of links to other pages.

XML for use in creating tables (aligned columns) from .csv files and putting in .html files

Creating small Graphics with up to 20 lines of short text (justifiable)

Receiving alien words from tables in Alien Modules with one click at will.

T5 world generation

T5 Star System Maps (UWPs included) basic but works.

Double clicking in a list of possible destinations to jump position and automatically change display and highlight relevant hex with TAS Travel Advisory

Overlaying .gif files and using transparency.

Some files in File Library recently uploaded.

Learning basics of CSS to `style` output.

Automating Beltstrike (just not pretty, but sort of works)

and.................................(sorry, it`s late here).

Traveller gave me reason to learn programming (after 25+ years, you get an epiphany or 10)

Heaven & Earth gave me so much inspiration (but no source, sadly. I was too late for that)
 
More like a cross between perl and smalltalk.

Not sure about Smalltalk, but there's a lot of difference between Perl and Ruby. Because of its innate OO nature Ruby is more like Python. Matz, the author of Ruby, acknowledges a lot of other languages, though.
 
No reason to miss smalltalk. There are several very capable implementations.

Squeak and Pharo (a fork of Squeak) have a great community about them and are really capable.
 
After realizing my chargen stuff didn't have hair and skin tone, added those easily.
 
Not sure about Smalltalk, but there's a lot of difference between Perl and Ruby. Because of its innate OO nature Ruby is more like Python. Matz, the author of Ruby, acknowledges a lot of other languages, though.

Weirder and weirder: Perl6 has gone the innate OO route as well.
 
Spent the morning playing with Neo4J and Cypher. Created a very small set of relationships in the game I'm in. I think it will help map factions in an upcoming power struggle.
 
Able to make CharacterTools.muster_out() handle stat modifications and multiple awards of Gun, Blade, or Weapons. In under an hour or so after not having glanced at the code for a week. Yay Ruby!
 
Weirder and weirder: Perl6 has gone the innate OO route as well.

I'm trying to learn OOP. Sadly, even when using a pure OO language like Ruby my code tends to be not much different than my shell code. Still working on that. OOP seems to have some benefits, but some places just don't need it.
 
I think one of the best ways to learn OOP is at work with a team dedicated to the rigor of OOP. That's how I learned it.
 
My coding JotD was finding the Inflect library. The allow you to pass a couple of parameters to inflect and it correctly produces, depending upon number:

  • are no Hi pop worlds
  • is one Hi pop world
  • are two Hi Pop worlds

Plurals for nouns, verbs, and adverbs, number formatting, a/an done correctly. There's a version for both perl and python. I'm using the python version and not having to figure that out is awesome.

From their doc page:

BUGS AND IRRITATIONS

The endless inconsistencies of English
 
Back
Top