[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

for i in (1..100) if i % 3 == 0 print "Fizz"

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 2

File: ar04.jpg (17KB, 324x204px) Image search: [Google]
ar04.jpg
17KB, 324x204px
for i in (1..100)
if i % 3 == 0
print "Fizz"
end

if i % 5 == 0
print "Buzz"
end

if i % 3 != 0 and i % 5 != 0
print i
end

puts
end
>>
>>59886682
Looks horrible
>>
File: ruby_smug.png (276KB, 400x400px) Image search: [Google]
ruby_smug.png
276KB, 400x400px
_=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->{$.+=_;$><<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.)<<(''<<$__*@_);$.<($__*@_)**@_?___[]:_})[]
>>
>>59886682

What does the "puts" do ?
>>
>>59886990
"\n"
>>
>>59886990
Here it's the equivalent of
print "\n"
>>
>>59887101
>>59887086

Thank you.
>>
I love Ruby!
>>
#consider <FEMINIST_RAGE.Xir>


// TODO replace main() as Progrym entry point; "structured

// programming" is classist oppression

// TODO2: main() is now womain()


// NB one does not argue with C+= Progryms; one makes requests, which

// the Progrym is free to consider or ignore as she pleases

xe womain (xe RequestCount, strong *RequestList[]) {

//Always check your privilege

CheckPrivilege();

// NB typically patriarchal fizzbuzz enshrines socially

// constructed limits as immutable fact; here we expose this

// subtle mental tyranny for what it truly is

xe ArbitraryBeginning accepts(present(-50));

xe ArbitraryEnd accepts(present(50));


// naturally, everything revolves around this

xe ThePlaceBetween accepts(present(0));


among(ThePlaceBetween accepts(ArbitraryBeginning),

ThePlaceBetween honors(ArbitraryEnd),

ThePlaceBetween improvesBy(present(1))) {


check(ThePlaceBetween envelops(present(3))) {

yell(present("Fizz"));

ENDMISOGYNY

recheck(ThePlaceBetween envelops(present(5))) {

yell(present("Buzz"));

ENDMISOGYNY

unpack {

// strength & independence!

yell(present(ThePlaceBetween));

ENDMISOGYNY;


yell(present("\n"));

ENDMISOGYNY;


present(Satisfaction);

ENDMISOGYNY;
>>
>>59886682
this is nice but we need a rails version to push into production
>>
>>59888137
R u havin' a giggle
>>
>>59886682
Great work anon, you're ready for a real job now!
Thread posts: 12
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.