tgies: (Default)
[personal profile] tgies
def totsusan( words = "LOOPY BROAD", guy = "凸(・`Д・´o)" )
  words.upcase!
  words = words.tr('A-Z0-9\'', 'A-Z0-9’')
  wordarray = words.split(' ')
  guy = guy.toutf8
  # chunk is some generic helper crap to split an array into n pieces with as equal a number of elements as possible
  # figure it out
  left, right = *wordarray.chunk(2)
  # note that fullwidth spaces are used here
  totsusanstring = left.join(' ') + "━━━" + guy + "━━━" + right.join(' ')
  return totsusanstring
end

I would like to take this time to point out that Ruby is kind of weird

THIS CODE IS HEREBY RELEASED UNDER THE CREATIVE COMMONS NONCOMMERCIAL SHno

Date: 2007-09-24 08:16 pm (UTC)
From: [identity profile] jhskulk.livejournal.com
I would like to implement this as an xchat alias please tell me how.

Date: 2007-09-24 11:36 pm (UTC)
From: [identity profile] poliphilus.livejournal.com
I concur about the thing about Ruby and stuff.
I do not like the idea that punctuation can be part of method names. Dumb. I also don't like the thing where functions can get called implicitly without parentheses. I like Ruby sometimes but sometimes it smells like orange spider nipples.

Date: 2007-09-24 11:46 pm (UTC)
From: [identity profile] tgies.livejournal.com
I don't really mind those peculiarities of the syntax at all; I'm used to languages not being C and frankly think more languages should not be C

the whole underlying mechanics and the implementation are damn nuts though

Date: 2007-09-25 12:20 am (UTC)
From: [identity profile] poliphilus.livejournal.com
Tell me about these underlying mechanics and nuts. I don't feel like reading the interpreter's source code right now.

Date: 2007-09-26 06:41 am (UTC)
From: [identity profile] tgies.livejournal.com
well let's start with its memory requirements

the footprint of that script is about 132k

132k

Date: 2007-09-26 06:42 am (UTC)
From: [identity profile] tgies.livejournal.com
and it goes up in a semi-exponential fashion with each expression in your script

wooooop

Profile

tgies: (Default)
tgies

September 2016

S M T W T F S
    123
45 678910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 29th, 2026 09:27 pm
Powered by Dreamwidth Studios