« first day (1054 days earlier)      last day (3913 days later) » 

user20683
12:02 AM
@JimmyHoffa I whipped up a mapping version of FizzBuzz
 
user20683
12:14 AM
@JimmyHoffa I went and looked up the python version of the y combinator...WAT
 
psr
1
A: Rosetta Stone: Y-combinator

fortranPython (translated from Lua example above, still not completely sure how it works xD) def y(f): def g(h): return f(lambda x: (h(h))(x)) return g(g) #factorial example fact = y(lambda f: (lambda x: x if x < 2 else x * f(x-1))) fact(5) # returns 120

@WorldEngineer That one?
 
user20683
@psr aye
 
psr
So tempted to write on in MUMPS using command objects with an apply method. The complete lack of closures would make actually using it an incredible chore (not to mention making all the bloody command objects - no lambdas other than an eval with scope issues).
 
user20683
@psr do it and turn your travails into a P.SE blog entry :)
 
user20683
then watch people go "Oh God"
 
12:40 AM
@WorldEngineer I've never seen an implementation in any language that wasn't confusing. My implementation of until in machinad.js is like it but I don't think the same. JavaScript implementations I've seen are probably the clearest I have, but even then it's confusing as all get out
 
user20683
def y(f):
def g(h):
return f(lambda x: (h(h))(x))
return g(g)
 
user20683
Okay let me try and sort through this: good interview practice
 
user20683
way harder than interview but similar
 
user20683
define a function y taking parameter f
 
user20683
that defines a function g taking parameter h
 
user20683
12:44 AM
which returns a function containing an anonymous function x acting as a function h of the function h of the anonymous function x
 
user20683
when that returns return g as applied to itself
 
user20683
I think the recursion is g(g)
 
user20683
f(lamblah blah) sets up the "carriage" for the recursion
 
5:39 AM
wow. Just... wow
> What can I do to let people know that I'm a great developer and would complement the best companies in the world?
12
Q: How can I let prospective employers know I'm a great developer?

ZoeI've recently read through Joel's guide to finding great developers, and I feel really strongly that I am smart and get things done. The problem is, I didn't learn how to get things done until about halfway through college, so my GPA is less than stellar. Additionally, I've got a few other things...

 
 
3 hours later…
8:13 AM
Yay! I was hungry for flags...
 
 
2 hours later…
9:54 AM
@YannisRizos blame yourself - you taught me to look beyond a single link-only answer
May 3 at 19:59, by Yannis Rizos
@gnat Then flag the question and ask for it to be deleted.
...another guy to blame is @MichaelT - his marginal answers query turns into powerful tool to detect problematic questions when configured right. Basically, I set AnswerLength low enough to get a manageable selection to pick from (who needs 1K results at 255 when 160-170 return less than a hundred posts to review)
...an important part of crap search magic is to pick high enough AnswerScoreMax (I use 99). Highly upvoted link-only answers typically split into two categories: 1) really good references (infrequently) that only need a brief summary to fix and go away from query and 2) crappy stuff (frequently) - low effort questions with equally low effort answers
 
 
3 hours later…
user41796
1:11 PM
@YannisRizos I put a number more in the queue from crappy comments that I ran across while closing out crappy questions. I blame @gnat. Regardless of whether he deserves to be blamed or not, I still blame him.
 
I wonder if you could find Qs with pending close votes through dese to create your own extended review queue
 
user20683
1:32 PM
@JimmyHoffa Is it weird to feel like map is more natural than a for loop?
 
user20683
my version of python FizzBuzz does this: Output = map(fizz_buzz, range(1,100))
 
@gnat @GlenH7 We need our own wheel of blame jsfiddle.net/AYPpF/82/embedded/result
2
 
user41796
yes, yes we do. And they've got too many people to blame. Ours would be much easier.
 
user41796
@JimmyHoffa I think the votes would age off too quickly to make it in DESE
 
2:19 PM
@WorldEngineer nope, functors make a lot of sense
 
2:53 PM
This seems like a troll almost:
-1
Q: Does the method Array.Copy in the Array class change the size of an array in C#?

Kquane IngramFor example: using System; public class myClass{ public static void Main(){ int[] intArray = new int[] {1,2}; int[] intArray2 = new int[intArray.Length + 1]; Array.Copy(intArray, intArray2, intArray.Length); intArray = intArray2; foreach(int i in intArray){ Console.Write(intArray[i]); } } } w...

The question has nothing to do with the code (he speaks about changing array size but none of the code so much as looks at the array's actual size) and the code is spectacularly bad in ways that you would think were on purpose, and the guy's argumentative in comments
 
user55340
3:08 PM
for fun... IIRC, in C, a[1] == 1[a]
 
user55340
I kind of feel like asking; how experienced are you in Java, or object-oriented languages? Do the terms "call stack", or "inheritance" mean anything to you? — Katana314 1 hour ago
 
user55340
@Katana314 I completely understand both these terms, and worked in C++ but not with multiple files. — user221287 27 mins ago
 
@MichaelT C had some seriously strange operational semantics... I really never noticed all of that when I first learned C
 
user55340
Only dealing with single file C++ projects and dealing with inheritance and call stacks too?
 
user55340
@JimmyHoffa That was one of the examples given when learning C++ - that it wasn't C, and it did break some things that C thought was true (in C++, you can override the [] operator and thus that equality doesn't exist)
 
user41796
3:32 PM
@JimmyHoffa trollish behavior, but not likely a troll. Most trolls use throw-away accounts. His SO account is a little over a year old.
 
@GlenH7 Maybe he's just that good; he's lasted an entire year!
 
3:59 PM
@YannisRizos P.SE Blame Wheel
I'm too lazy to add anything else, add them yourselves or deal
 
user41796
I'm torn between pinning, flagging, and doing both.
 
4:15 PM
+1 well said and welcome to P.SE, answers like this are a great start. — Jimmy Hoffa 2 mins ago
Always enjoy seeing low/no rep users writing quality answers
Wow our close queue is as small as I've seen it in a while, 5
 
4:36 PM
@MichaelT You have the rep but I went to see if I might be winning on rep-per-answer, oddly we're both tied at exactly 67 as rep-per-answer
 
user55340
4:50 PM
@JimmyHoffa Is that a raw rep/answer? or did you do a vote analysis?
 
user55340
Because I've got a LOT of negative rep from downvoting answers (gah, 10k tools let you find things that people saw and said aren't helpful... and you know, they're right... downvotes all around!)
 
Nonsense, we have the same rep per answer, and I'll hear nothing more of it.
 
user55340
I'm trying to make it easier for you... if I've spent all this rep on down votes (probably about 1k), then you don't need as high votes on your answers.
 
@MichaelT Look, let's just agree that I'm winning and call it a day.
 
5:26 PM
how nice, a crappy question accompanied by similarly crappy answers. Match made in heaven...
5
Q: Any difference between version control and/ or revision control?

C JIs there any difference between: version control and revision control. I am particulary interested in knowing this specific to git and SVN. Or is there no difference? I know it doesn't matter perhaps, but a small difference in terminology can make a big difference!

asker put no effort, answerers do their best to match that
I misunderstood the question and thought he was asking about git vs svn. — OneOfOne Jan 3 '11 at 12:55
 
user55340
@JimmyHoffa btw, I am trying to come up with a clever short bit of obfuscated perl for that spinner.
 
@MichaelT ...obfuscated perl, sounds difficult
 
user55340
@JimmyHoffa Its the clever part that is the challenging. Something that has meaning to someone who runs it that isn't immediately obvious to the reader.
 
@MichaelT "that isn't immediately obvious to the reader" isn't that all of perl? I thought perl scripts had to be encrypted in a markov chain that conforms to a regular grammar...
nyuck nyuck, actually all of this "ruby poetry" crap reads like markov chain garbage
 
user55340
@JimmyHoffa Its ruby's "trying to copy perl" fascination.
 
user55340
5:34 PM
Black Perl is a famous piece of Perl poetry. It was posted to Usenet on April 1, 1990. It is written in Perl 3 and will not parse under Perl 5. Multiple independent updates to make it parsable in Perl 5 have been published. The full text of the poem is reproduced below. Attribution While the poem itself is signed Larry Wall, the original message was posted with forged message headers, causing uncertainty of authorship. Sharon Rauenzahn née Hopkins has been suspected, but has denied authorship. Randal Schwartz has claimed that Larry Wall is in fact the author, and later on Larry Wall co...
 
Ah yeah I have read that before
you likely posted it
What does it do?
 
user55340
The thing is, much of perl poetry is a "mistake". Early on, when it was a young language and the number of people using it were measured in dozens... one of Larry's co-workers asked him for a feature in the language to be able to write some poetry. He shrugged his shoulders and said why not and added it - allowing bare words.
 
It never worked exactly as it reads did it? Surely there's some behind the scenes code that defines and makes all of those valid variables and functions et al?
 
user55340
This was since recognized as a mistake and use strict; has been "mandatory" since. Trying to copy it is a mistake too.
 
user55340
@JimmyHoffa In perl 4, it ran just fine. Didn't seem to do anything. No behind the scenes macros or vars or functions needed.
 
user55340
5:40 PM
And see, that was the mistake... bare words being able to be just placed in there and let perl set them up as desired. Bad things.
 
@MichaelT Of course, I can't think of a single place where bare words are a good language feature...
What languages even have that? Ruby?
 
Figures
I suppose lisp allows bare words in a sense, especially with macros
But that's just a happenstance of S-Expressions
You could almost call Erlang atoms bare words, but they're really not..
 
user55340
btw, found an anti-energy drink. It had tryptophan in it (the stuff notorious for making you sleepy after eating turkey).
 
What's it called?
 
user55340
 
user55340
(I'd have to check the ingredients on the bottle I had again... that list suggests pre-metabolic version of it)... it also has Melatonin which is associated with circadian rhythm and dreaming...
 
@MichaelT I stumbled across a bottle of that last time I was in the airport looking around the little bodega, they had a couple few including one that was like the 5-hour energy version little shot (don't recall the brand)
had to give it a shot, don't recall if I actually slept or not...
I used to take melatonin for sleep pre-kid when insomnia was a bigger problem, it would give me some weird dreams sometimes but tended to get the job done without making me drowsy the next day like benadryl/dramamine do (those are the two ingredients of basically all OTC sleep aids)
hah this is an interesting thing to stumble across.... accepted answer at -62 votes
-62
A: Why use try … finally without a catch clause?

Pankaj UpadhyayCatching errors/exception and handling them in a neat manner is highly recommended even if not mandatory. The reason I say this is because I believe every developer should know and tackle the behavior of his/her application otherwise he hasn't completed his job in a duly manner. There is no sit...

 
user55340
6:04 PM
Intriguing with our lifestyle - caffinate all day. I wonder how many programmers have difficulty sleeping (and thus need to caffinate more the next day). If this helps me settle down at night faster without causing problems (if anything, it looks better, but thats my wikipedia scan take on it)... it will let me caffinate less the next day.
 
user55340
@JimmyHoffa IIRC, the most negative accepted answer on the SE network.
 
@MichaelT My response to this problem has been to kick the caffeine, I only need it when I've been having it. A week without (dragging the whole time) and then I'm not tired without any aid and stay a lot more even; no afternoon crash etc
I seem to only go a few months at a time without though before some event occurs that makes me utterly need it (like a night of insomnia before some important work day)
 
user55340
@JimmyHoffa I've got a slightly caffinated water flavor thingy... so its no afternoon crash with it.
 
@MichaelT As soon as I start, I just get worse and worse. Cup a morning for a couple months then two rapidly becomes 3 then 4 and it just escalates until I quit again for a few months.
 
user55340
@JimmyHoffa And then you find yourself making Water Joe soup for lunch?
 
6:11 PM
no, it escalates to a rockstar, then two rockstars a day, I think the next step after that is just chewing up nodoz but I've never gotten that far
 
user55340
(Oh, sweet proper $VISUAL - git commit brings up vim... not nano)
 
user55340
I find myself keeping a 5h energy in the car glove compartment for the times when I do a 3h drive that starts at 5pm... to avoid any evening yawns.
 
user55340
The best thing for the drives is talking to someone, but that eats up cell phone minutes when driving alone.
 
user55340
@JimmyHoffa btw, the P.SE blame wheel should pull from chat.stackexchange.com/rooms/info/21/the-whiteboard and pick the people who are most active with generic messages if they don't have a customized one... (for epic code change rather than the current spinner)
 
@MichaelT hey you can see deleted questions, can you post a comment to this one asking him to let us know if he see's any other people posting redirects to P.SE programmers.stackexchange.com/questions/205836/…
 
6:22 PM
@JimmyHoffa I think only mods can comment on deleted posts. There's an SEDE query to find comments on SO that link to Programmers.
 
user55340
sigh
 
user55340
0
Q: Why do women avoid programmers?

zlomerovicHope this one fits here, as I haven't found any other STE web site to fit this subject... So, I have no good expirences with dating women. I've been researching this subject and found that women are too much addictive to sociality and they accept many social stereotypes as standards. As all of...

 
And if there isn't a query, it's fairly easy. %programmers.s% and %prog.s% should find them.
 
user55340
@ThomasOwens at one point, i was trying to flag and comment that "no, this shouldn't go on P.SE" but the rate of the comment addition is quite fast... and with the data explorer, I've got data that is a week old and already thousands of views of the bad information past.
 
Yeah. It's better than nothing, though.
Better: blocking people from suggesting other sites in comments via black lists.
 
user55340
6:31 PM
@ThomasOwens Just like whathaveyoutried? hmm... can a custom message be sent back to the user adding the comment? "If you believe this should be on another site, please flag it for migration"?
 
@MichaelT No idea. Maybe?
 
user55340
I'll try to remember to write up a feature request on MSO and see where that goes.
 
user55340
It should take into consideration that something with a question (or answer) link should be allowed for the pseudo-cross-site-dup.
 
user55340
(I am happy I was able to identify and document a reproducable 10k tools bug that got fixed by the next morning... it makes me wonder how few people use it)
 
user41796
> It's not women, it's you. – Gilles 7 mins ago
 
user41796
6:37 PM
Made me bust out laughing
 
user55340
I snerked when I saw that.
 
user55340
@GlenH7 maybe... there is a solution to a problem here. We need to get Leslar a girlfriend.
 
user41796
I make no presumptions about our recurring trolls and their non-SE lives. A degree of intelligence is required in order to come up with some of their better troll bait. Nor do I assume anything about gender, although I acknowledge most trolls are male.
 
0
A: How to practice ATDD if design is not yet emerged from TDD?

Robert Harvey ...shouldn't it be the role of TDD to emerge the design and therefore these components? No. This is a common misconception about TDD. The purpose of TDD is not to "grow a design." The purpose of TDD is to insure that a program stays "well-designed." TDD will force you to create an API t...

 
user55340
@GlenH7 The indications suggest he's 13.
 
user20683
6:44 PM
@GlenH7 Pity, you never met Kalina. She toed the line on Gaming.
 
user41796
@RobertHarvey How do you manage to get in the middle of it with the trolls and likely to be flame wars? And what in the world made someone think we need ATDD? Seriously?!
 
user20683
@GlenH7 Gary Gygax.
 
user20683
:)
 
psr
@GlenH7 It's well known that women are attracted to the kind of "bad boy" that trolls programming sites - especially machine language bad boys. I wouldn't be surprised if he had his pick of the Junior High prom.
2
 
user55340
Another Themed Driven Development?
 
user41796
6:45 PM
ROFL. I'm going to go curl up in a corner and whimper softly. It's too much.
 
OK, what is ATDD?
 
Acceptance Test-driven development.
 
user20683
@ThomasOwens Advanced Test Driven Development I'd think
 
user41796
@WorldEngineer If Gary was on any of the SE sites, I'd go up vote all of his answers out of sheer homage
 
One mo...
 
user20683
6:46 PM
ah
 
user20683
@GlenH7 I've upvote him on account of resurrecting himself from the dead.
 
user41796
'cause you know there's no value in the test if it doesn't show up as an acceptance test.
 
user55340
I'm waiting for the variations of BDD - Bus Driven Development (put the programmers on a bus with wifi) and Bike Driven Development (they have this at google).
 
user41796
@WorldEngineer Leave a community for a little while and the legends go and die on you. Sheesh. Where have I been?!
 
user20683
6:47 PM
Tits Driven Development - You take the programmers to a strip club. It worked for Feynman. ;P
 
user55340
 
user20683
@GlenH7 He died in 2008.
 
user55340
@WorldEngineer There was such a club across the highway from the company I worked at in Cali.
 
user41796
@WorldEngineer Just looked it up. Shameful look on my face. At least the Texas Steve Jackson is still around, AFAIK
 
user55340
 
user55340
6:52 PM
(somewere in the Trenches web comic, there's a story of a guy going on a date that ended with her finding out he was a video game QA person)
 
7:03 PM
@RobertHarvey Another *DD?
 
user41796
<conspiracy theory> Are all the *DD advocates former (or current) RPG'ers who cut their gaming teeth on Dungeons & Dragons?
 
@JimmyHoffa Hm? ATDD is discussed on the TDD site (cited in the graphic).
It's just an extension of TDD, meant to clarify the role of the customer.
 
user55340
@GlenH7 AD&DDD?
 
ADHD-DD
Short-Attention-Span Programming
 
ARRRDD, programming on a boat
 
user41796
7:10 PM
@RobertHarvey There was a mini-rant yesterday about the proliferation of *DD methodologies. This jumps to the head of the rant. chat.stackexchange.com/transcript/message/10447002#10447002
 
user41796
We've got YACC, so let's add YADD to the mix. :-)
 
user41796
7:29 PM
@MichaelT The more I'm thinking about that, the more I'm liking it. "Roll d20 to save your use case! -10 for unclear requirements!"
 
user55340
@GlenH7 Gonna troll RPG.SE for rules for requirement gathering encounters?
 
user55340
Make it under the Open Game License...
 
user55340
The Open Game License (or OGL) is a public copyright license that may be used by tabletop role-playing game developers to grant permission to modify, copy, and redistribute some of the content designed for their games, notably game mechanics. However, they must share-alike copies and derivative works. Language of the licence The OGL describes two forms of content: Open Game Content (or OGC) : Product Identity (or PI) : Product Identity is content covered by normal copyright. Using the OGL By attaching this license game developers allow the use of their OGC and any additional conte...
 
user41796
Nah, it would need a Grue license. :-)
 
user41796
A grue is a fictional predator that dwells in the dark. The word was first used in modern times as a fictional predator in Jack Vance's Dying Earth Probable first occurrence in print of the term grue denoting a living creature would have been this quote in this initial serialization of this story/chapter, "Cil", in The Magazine of Fantasy and Science Fiction in 1965, although the phrase "It gave me the grues" (i.e., a feeling of fearful revulsion, short for "gruesome") occurs in the 1934 murder mystery The Nine Tailors by Dorothy L. Sayers. universe (described as being part "ocular bat",...
 
user41796
7:35 PM
+100 for the Infocom reference... :-)
 
user55340
On Everything2, I enjoyed intentionally misinterpreting node titles and writing my own content based on it (this was encouraged by the powers that be). One 'excerpt' from the "Real Life RPG" everything2.com/title/Marriage+Encounter
 
user55340
> Other factors influencing the marriage encounter include the save vs sexual desperation for both parties and the modifier of the amount of flesh visible as a total percentage (this is strongly influenced by charisma).
 
user41796
@MichaelT that's a hilarious read
 
user55340
@GlenH7 Thats where my writing skills matured. Learning to write is critical skill for a programmer that we often skip over in college.
 
user20683
 
user55340
7:43 PM
@GlenH7 Btw, there are 'hidden' jokes (that may require following the link - not all links still exist there). I did quite a bit with text saying one thing and link saying something else.
 
user41796
@MichaelT Oh, I hovered over all of the text. That was a must.
 
user41796
@WorldEngineer my only complaint is the audio & video aren't in sync. But I'm picky that way. That's pretty funny
 
user55340
The best link appears to be gone now. Oh well (it was a story of a woman back in the 60s/70s and a group marriage).
 
user55340
> Certainly, a straight male will have low chances for a marriage encounter in a gay bar, or most any pub in Silicon Valley ("you mean there is only one woman in here?!").
 
user41796
we always drew our infocom maps on graph paper. I think we all liked the ease of drawing squares vs the free form of a blank page
 
7:51 PM
@MichaelT I really don't understand some things on everything 2, like how that says marriage encounters but is titled real life RPG, which is it about?
 
user55340
@JimmyHoffa The node shell is titled "Marriage Encounter". Within that node shell is a node that I wrote. The text of that starts out with <h1>Section from The Real Life RPG</h1>
 
user55340
(actually, a node shell is a node of type shell rather than idea... but thats internals)
 
@MichaelT Can you create a duplicate of somebody elses post with changes?
 
user55340
@JimmyHoffa Nope. Each node has its owner, and only the owners (or powers that be) may edit the contents of a node. Its not a revisioned history either. Its just there.
 
@MichaelT I can't make a clone though? Like another node with the same title?
or a subnode or something?
 
user55340
7:59 PM
@JimmyHoffa Not in that implementation. Perlmonks uses the same engine with a different layout that has threads. perlmonks.org/?node_id=177277
 
user55340
The everything engine (and yea, the site looks to be lost) was a modified/refactored version of early slashdot.
 
user55340
And yea... its all really interesting perl.
 
user55340
8:38 PM
Does anyone think dogfooding should be a tag? — Jace Browning 52 mins ago
 
user20683
no
 
user55340
There are more than a few references to it in search - programmers.stackexchange.com/search?q=dogfood
 
It's just too tertiary
We may as well have monitor-size as a tag too then
 
user55340
6
Q: Steve Yegge post about platform vs product

sharp_netI am reading this and I came across: The Golden Rule of Platforms, "Eat Your Own Dogfood", can be rephrased as "Start with a Platform, and Then Use it for Everything." You can't just bolt it on later. Certainly not easily at any rate -- ask anyone who worked on platformizing MS Office. Or any...

 
user55340
2
Q: When do I need web services?

rlb.usaAre there any general guidelines to understand when I should consider using (as a eat-your-own-dogfood) and providing web services, and when I shouldn't worry about them? Or, any reading materials you can point me to? My project is in PHP but I don't mind if it's language agnostic.

 
user55340
8:41 PM
2
Q: Design for using your own API

restingSo I'm planning to use APIs for my host app. But the APIs are built such that it requires a sessionkey for every request. So my question is, how would I dogfood my API? Cause, apparently I'm thinking in the line of creating a "special" key for my host app (cause it makes no sense to request for ...

 
user55340
I mean... it is there... it wouldn't be a one off if it was added. And lots of answers go back to dogfooding too.
 
@MichaelT I don't think anyone's going to burninate it if you create it, but I don't think anyone's going to particularly notice either
17
Q: Monitor screen size and programming ease

rrazdI recently heard that a big part in successful/quick debugging and easing the process of programming is to use a big screen. I may be purchasing a new computer in the future and this has me wondering: 1)Is the aforementioned statement actually true or is it a bit of a stretch? 2)Have you noti...

6
Q: Horizontally positioned or vertically positioned monitor(s)?

gablin Possible Duplicate: How many monitors do you use? Why? How they are used? With inspiration from this question, I thought I'd ask my own concerning monitors. Some monitors you can turn 90 degrees so that it stands vertically positioned. I've also seen this setup be used in some offices...

14
Q: Have programmers at your work not taken up or been averse to an offer of a second monitor?

Chris KnightI'm putting together a business case for the developers in my company to get a second monitor. After my own experiences and research, this seems a no-brainer to me in terms of increasing productivity and morale/happiness. One question which has niggled me is if I should be pushing to get all de...

I'm going to go create the monitor-size tag now
 
user55340
@JimmyHoffa It would be synonm'ed back to monitor though.
 
@MichaelT There is a multiple-monitors tag
 
user41796
8:59 PM
I use the term dogfood (and not just for my canine) but I really don't think it should be a tag. It is insufficiently defined as a concept to stand by itself as a tag.
 
9:40 PM
@JimmyHoffa you mentioned recently Scala was for Java guys comfort. Most definitely this is not so. Method names I saw today would scare Java programmer to death
> Our Rabbit also has a bunch of weapons: % (lettuce), ^ (boomerang), / (sword), and * (bomb)
Note ` %, ^, /``, * are method names of the class Rabbit
Class Monster is, well, no better, it has method ---< (tail) and method |^ (axe)
 
user55340
o_O
 
9:59 PM
question like: "Does an algorithm exist to do Y?" makes Programmers a surrogate of Google. Also, think of what will happen next, right after you happily leave with that freakin' Yes this is Library1. Month later, next guy will come and answer Yes this is Library2. Month later, next... and so on and so forth. That works fine for Google, where they load to you page after page, without a limit. Stack Exchange just isn't designed to work the way you want. Yes/No question turns into shopping with ease — gnat 47 mins ago
 
@gnat I know that, but I was referring to people have said that's what Scala is supposed to be, I was claiming it's not that because of the things you just mentioned
I've heard people claim the good thing about scala is it's supposed to get java devs to work their way into FP, which is total nonsense because it does have infix functions and all kinds of strange syntax abound that java devs would balk at
@gnat The monster has an axe? I should have expected the hero to have that one
 
10:15 PM
@JimmyHoffa yup I was surprised, too. Book says the code was ported from Ruby, probably that's where these strange ideas came from. I heard that Ruby programmers are all crazy. Principles of their language make them suffer from the lack of astonishment which they sublimate into astonishing others with weird stuff like a monster with axe
c++ guys got their portion of astonishment pondering Why does sizeof(x++) not increment x? - this makes their monsters plain and predictable. Ruby guys don't have such a luxury
 
@gnat Let me guess, the monster hits you with the axe and throws a YourDeadException
 
@JimmyHoffa code looks like,
scala> Dragon.---<.tilDeath(Dwemthy.s.stairs)
and the output
[ScubaArgentine(46)...Dragon(1340)] magick powers up 13
Dragon(1340) hits with 1722 points of damage!
[ScubaArgentine(46)...Dragon(1340)] hits with 31 points of damage!
…
Dragon(296) hits with 816 points of damage!
[Dragon(1340)] hits with 84 points of damage!
Dragon(212) hits with 1061 points of damage!
You won: Dragon(1340) -> Dragon(212)
Enemy: [ScubaArgentine(46)...Dragon(1340)] -> []
res6: (Dragon.Us, Creature.Them) with Dragon.Rebattle = (Dragon(212),[])
 
is . composition?
 
@JimmyHoffa it can be anything. In Scala, there is the only special symbol - underscore
 
as in a -> b, b -> c = a -> c
 
10:27 PM
anything else can be part of the name or name
dot, all the arith signs, comparison - all are valid in names
 
Do you know what that snippet of code does right there?
@gnat I get that, I was meaning in that snippet of code is . the composition function
 
@JimmyHoffa there was a detailed explanation but I just quickly skimped over it. I do not intend to study Scala
 
Oh
The way you speak of it I figured you had been studying it, why are you reading about it then?
More objective interest than actual curiosity to learn it?
 
@JimmyHoffa yes something like that
I actually first took a brief look into it, without even a plan to read. But got hooked :)
 
That's a bit strange, you're reading all about it but not trying to learn it
Does that mean you're unintentionally learning it?
 
10:31 PM
author writes about many interesting things besides Scala
well I picked a bit of the language along the way, but mostly on a very basic level, to merely be able to follow simplest code snippets (and that one was not the simplest:)
 
I have a quick question about C++. How come you use #include <string> and using std::string;?
 
actually I was going to skip the whole chapter that had this code ("Traits and Types and Gnarly Stuff for Architects"), but decided to take a look only to make sure that I won't miss something necessary for next chapters
 

« first day (1054 days earlier)      last day (3913 days later) »