« first day (973 days earlier)      last day (2930 days later) » 

12:41 AM
deletions start to normalize that spike down
but it's still there
but it's gone down, when deletions catch up past it I think we'll see it went down. Was totally a semester start thing
1:04 AM
I really don't think style is a relevant metric for a candidate to be tested on, by definition it's subjective, and a good developer while having his own sense of style, will be able to adapt to write code uniformly in the style already there such that his code is indiscernible from the rest of the code. — Jimmy Hoffa 34 secs ago
I found this interesting, my new job was the first time I was ever asked style questions, and I was a little confused by it because I've never thought it had any relevance at all
Do any of you ever ask questions like that or know what people would be looking for in them?
1 hour later…
2:12 AM
Is it that the question is just meant to make you talk about your philosophy about style and how you would or wouldn't be able to work with standards?
12 hours later…
2:05 PM
@JimmyHoffa I wouldn't ask "two spaces or tabs for indent" on an interview unless it was clear I was trying to be funny and reduce the tension. On the other hand, at a whiteboard I would hope to see reasonable code conventions - short methods, meaningful names -- these are things that indicate to me that someone knows how to write maintainable code. I don't care how quickly they can write crap.
@MichaelT yeah, I can agree there, but I wouldn't call those things style... for instance, interviewing here I was asked if I put opening curly braces on the same line as the clause or on their own line
I wanted to just say "Uhh, what? Why? What?" but whatever, it was clear the engineers I was talking with knew their stuff so I wasn't particularly concerned regarding it. People just ask weird things in interviews sometimes I guess.
Even good engineers
I follow the code style of the code I am in no matter what the style is. I don't care if they use Whitesmiths style - I'll code that way if the code is written in it.
Of course, as I said above, any good engineer makes their code indiscernible from the code around it, which is why I find style questions in an interview odd.
In one department here, its Allman style. In another, its K&R... tabs appear to be fairly consistent because the spaces advocates can't agree on 2, 3 or 4 spaces so the tab was the least objectionable to them (you can set the tabs to whatever you like in your local eclipse for 2, 3, or 4...)
2:16 PM
Elastic tab stops. They move based on what is needed. It confuses the tab advocates... but makes them happy its tabs.
That's neat
So long as "tab" always means "collection of spaces" I'm happy. :)
actual \t should never be used because of cross-platform issues, as soon as your code goes in source control it may be encoded to that source controls form, and then can come out different, or if you pull it from source control on a different platform or just use a different editor on the file at one point then another, too many ways for tabs to be printed all kinds of strange
...but if the style of the code I was in used tabs, I'd use tabs...
then there's privateMember _PrivateMember m_privateMember m_PrivateMember m_PublicMember PublicMember publicMember localValue localvalue _localParam _LocalParam localParam and even more odd indicative markings I don't even know about
3:17 PM
Oh, I passed a reopen audit review... I went to click on the question itself and look at it, its edit histories and the answers it got... and it was open. Reopen audits suck.
I was initially tempted to say "off topic" on it and let it remain closed.
yeah. if a question raises any questions at all I immediately open it, and when I see any discrepancy between what I'm being shown in the review queue vs the actual Q I realize it's am audit
1 hour later…
4:38 PM
@JimmyHoffa - I'll ask about style depending upon what I saw in their code sample. Where I'm at, we generally follow an Allman style (brace on next line). If I see K&R, Hungarian, or worse a mix of both, then I'll ask about how the candidate feels about following a team style that doesn't match their preference.
Yeah, that makes sense Glen, I would tend to find it telling if somebody's own code isn't following a consistent style that they're likely pretty green, and if they claim years of experience then plausibly apathetic
For a C# shop, tabs should be the norm anymore. That allows the individual to pick their own spacing preference. Regrettably, XAML defaults to using spaces instead of tabs which causes all sorts of nuisances.
@GlenH7 Do note htat in the Java world, K&R is the style implied in the Java Style Guide. oracle.com/technetwork/java/javase/documentation/…
@JimmyHoffa - I had a candidate like that once, actually. Stylistically, all over the map. Claimed all of the sample code was his own. Couldn't code his way out of a wet paper bag. He's the guy who sparked us to always present fizz-buzz during whiteboard exercises.
@gnat There's little point in asking answerers to expand their year+ old link only answers on closed questions, especially when those link only answers are valid answers to the question. Vote to delete the question instead (if it's answerable with just a link, and it's been closed for a while, then no reason to keep it around). Generally people will not bother fixing their old answers if the question is unsalvageable, and a couple have complained about your comments...
4:42 PM
@MichaelT - oh, I know. :-( And I totally understand the preference of technical book publishers to use a compact style. Personally, I think it's ugly and makes it too easy to lose track of closing braces.
@gnat Rule of thumb: Moderate the question first, then (and only if there's a need) the answers.
@GlenH7 yeah, it's disturbing how often people will gladly just lie like rugs in interviews...
The sad thing is, people wouldn't do it so much if it didn't get them work, so there are apparently a lot of people who get hired based on it..
@YannisRizos, @gnat - I've noticed the "you can do better than this" encouraging comments on older answers. Part of me thinks it's good because it indicates to future visitors why that's a bad answer. OTOH, I can see the value in letting a sleeping dog lay. I appreciate gnat's cleanup work though.
@JimmyHoffa - we had a sketchy candidate or two that we failed based upon our collective gut feel. We had an implicit understanding that we kind of dodged a bullet or two that way. That's what led to our putting more concrete measures in place as part of the interview process, including pre-screening. We've weeded out 3 or 4 who were iffy anyway and then got cold feet at our pre-screen request.
Yeah, in reality any decent engineer will have absolutely no hesitation at the presentation of any standard hurdles.
4:48 PM
It's interesting to note that we don't use those measures as binary decision points. One of our better hires was a candidate who presented weakly at the pre-screen but simply amazed us during the actual interview. There were other indicators though that led us to green-light the interview. Without those indicators, we would have dropped the process after the pre-screen design results.
and you can relax them when looking at fresh grads
@GlenH7 Sure, no argument there. And I'm not saying comments on old answers are not valuable, for someone reading the answer today, it's age is irrelevant. But, if the question doesn't have any redeeming value, let's just kill it. You can't realistically expect people to come back and fix a year+ old answer on a question that 1) it's crap, 2) it's going away anyway.
I'd say we use proportional levels of expectation depending upon the role. An acceptable answer for a design Q will depend upon what level they're interviewing for. We had a few who could develop, but their skills didn't match their expected compensation.
@YannisRizos - agreed
@YannisRizos - can't wait for my rep to hit 20k and then I can vote to delete crap answers. :-)
4:54 PM
With those past couple days of ~200 rep each day, I'm much closer to the 10k tools than I thought I would be when I hit previous milestones.
@MichaelT - still milking that one hot question or whatever from a few days back?
I only got 50 from it yesterday, and 60 the day before... but I also got some with the "Recursion BrainTeaser with C++ and Java?" and "Handling compiler bugs in Continuous Integration" and "Custom Alphabetic Sorting of Array in Java"
Those sound like some curious questions.... Work has been fairly busy as of late, so it's cut into my time for answering Q's.
...I think FP.SE is going to be pretty dead...
@JimmyHoffa - take some time for clojure then....
5:01 PM
The recursion brain teaser one is really a "I'm banned on SO, so asked it here" and I went into the difference in the compiled code, sequence points, and misconceptions of precedence.
I did Euler #1 in it the other day
@JimmyHoffa which approach? The O(n) or the O(1) method?
@MichaelT - I have answered a few in hopes they would be migrated to SO and I'd get the rep gain there from the migration. :-)
O(n) I'm sure. I didn't memorize your mathy technique
@GlenH7 I know this one won't get there at the start (I looked, saw the several closed, negative) and so answered it more in the concepts than the specifics of how to fix it.
5:04 PM
We don't do that here... and I think he's better off for it now.
The alphabetic sorting one is kind of neat... let me pull out another lesser known Java Map - the EnumMap.
You declare an enum - so you've got type safety there... and order.
public enum Headers {
And then you can use the EnumMap...
5:07 PM
SortedMap<String, String> other = new TreeMap<String, String>();
EnumMap<Headers, String> headers = new EnumMap<Headers, String>(Headers.class);
try {
    headers.put(Headers.valueOf(key), value);
} catch (IllegalArgumentException  e) {
    other.put(key, value);
Where the keys are restricted to the enum. The actual backing implementation is a fixed sized array indexed by the enum.
Just read the recursion question - that's actually a pretty reasonable question. Makes me kind of wonder why we closed it as off-topic.
There's also an EnumSet which is really a bitfield.
It was attempted to be migrated to SO.
I think the title is misleading
5:10 PM
title implies "I have homework" or "I'm doing a coding challenge"
I'm fairly sure that could be edited to be a good P.SE question that would remain open...
but the body of the question is really wrapped around how the decrement operations are handled. Sidestepping around that long-running, well-known flame war within the realm of C++, it seems appropriate to here
And I do think we gave the better answer than SO could have given...
Thank You so Much for your detailed answer! I now understand it much better! — superspacemarines yesterday
5:12 PM
@YannisRizos - good question by Thomas. Horrific reference to Vanilla Ice though.
@GlenH7 Better than my occasional references to Bieber though.
@YannisRizos Gah... did you read his guest book entries at historical places?
@YannisRizos - Bieber's put out a ton more decent material than Vanilla Ice ever did. But that speaks more to how much I dislike Vanilla Ice than the quality of Bieber's pop stuff.
@MichaelT I read the Anne Frank one, and was thoroughly disgusted.
@MichaelT - I don't think he's got it through his head that he's not allowed the typical indiscretions that youth is normally afforded. Too many eyes watching him.
5:16 PM
I didn't actively dislike him before... I do now.
@MichaelT you bastard. All kinds of points for a question that was asking a technical detail about how the -- operator works in C++ :P
(though I will admit I'm not 100% that's accurate or humor... but the Anne Frank one is enough)
Does the --' operator work any differently on primitave ints in C vs C++? (I've avoided C++ for a very long time - as a web guy, it doesn't have much of a place in the code I've written for the past decade and a half)
The real misconception he had wasn't the '--' operator though, it was the lack of a sequence point in the expression (which is the same in C++ and C) and what associativity and precedence means for an operator.
5:23 PM
@MichaelT right, but that is a technical detail of how -- works in C/C++, sequence points are a technical detail to those languages
Either way, I'd bitch more but your answer is comprehensive and good
Q: How to Avoid Users on Stack Overflow

Nick Vaccaro(only half serious about this, but it was a fun exercise) I've got an issue on Stack Overflow. I'd really like to answer some C# questions to hone my skills, but certain users (cough) are way, way better than me, and always beat me to it. Is there any way I can know when these users are most a...

I'm generally asleep between midnight and 6am UK time, if that's any help. — Jon Skeet 4 hours ago
There is no sequence point in the expression on "foo = f(x) + g(x)" - so if f() or g() modify x, you can't guarantee the order they are invoked - its left up to the compiler. That's really what it boils down to.
@JonSkeet All I heard was "I have and post the correct answer to all C# questions the world has. And I do it on 6 hours of sleep" — Jimmy Hoffa 13 secs ago
Jerk. I got a call at 6am this morning because I'm on support this week, it took me 20 minutes to figure out how to connect to the wifi, and I went to bed before midnight
I think that's a great question and shows how stack exchange fails to do what users want. — micahhoover 5 hours ago
I'm so glad we're failing that test.
5:34 PM
@micahhoover yes, SE does fail to do a lot of things users want. The truth is that's by design though; SE only wants to do one very specific thing, and has been tailor made to do that one particular thing very very well. Realize SE wants to be like an encyclopedia: You open it up and see a bunch of topics with comprehensive accurate and correct details, no topic in an encyclopedia has a listing of possibilities. The creators of SE would love to help their users with questions like this, but they didn't make SE to do that, rather they hope to help these users in other ways. — Jimmy Hoffa 40 secs ago
A while back I realized SE is trying to be an encyclopedia, everything about the place suddenly made more sense. It came with the realization that SE doesn't actually exist for the participants, the gamification was created to bring those, but they really only wanted participants so they had people to create their encyclopedia. Jeff and Joel just came up with a different take on how to make wikipedia, that's what SE is
Wikipedia doesn't exist for the contributors, they made Wikipedia for all the passive readers, and so it is for SE. As an active participant it's easy to forget SE isn't for me.
The goal for any SE site is to eventually become a canonical resource on the subject matter. Not really an encyclopedia, but close enough.
I think the encyclopedia analogy is apt though, because you can be a canonical resource on subjective gossip, but an encyclopedia doesn't deal in that form of information
@JimmyHoffa a P.SE meta to help you explain it...
Q: Can there be an area for interesting discussion?

Devin DixonA lot of times, development requires discussion. As programmers we know that there is not clear right or wrong answer, but a myriad of solutions, each with their own benefits and draw back. Example: Which is Better To Use and Why: Mysql, PostgreSQL or MS SQL? What are the advantages of Redis ove...

5:47 PM
Doesn't have too many answers.. mine is the only upvoted one. Lets see what else I can find...
Ahh, here we go go...
Q: Is there a market for "which language to learn, which book to read" questions?

Mr ListerWith all the discussions about how to handle "which language should I learn" or "which book now" questions, and the consensus being to close these questions, I wonder if there's room for a new SE website specifically for those questions. I mean, there are so many questions like that, I think the...

apropos of nothing, where's our "resident teen" been lately? I haven't seen Dynamic in chat for quite a bit.
Q: Is it possible to write a code without class methods, globals, and class variables?

random_guyI'm designing my own programming language for fun, and i'm thinking of making it fully Object-oriented (no statics, no globals, no class variables, no class methods), so i need to find a way to completely eliminate the needs of class methods, but, first, i need to make sure that i know all the pr...

Do any of you understand him? It looks like a great question, but his definition of OO makes no sense to me such that I can tell...
classes without variables or methods? what?
@GlenH7 Last seen 19 days ago...
Still active in P.SE though (2 days ago).
> I'm actually using C, but i wrote the example in Ruby so it will be easier to read.
@MichaelT - noticed he hadn't really had any activity since beginning of April
@JimmyHoffa - I think that Q is trying to "purify" OO even further, but ... I'm not enough of a language guy to really understand the main concern.
@GlenH7 Given the teenish, I think it might be a strong emphisis on school at the end of the semester taking up time... or sports...
5:54 PM
@JimmyHoffa I think he's trying to decide if it needs static methods and variables.
@MichaelT but he doesn't want global variables, which is what statics are...
Nope... and I don't think he wants statics either.
But a private static variable can be quite useful for creating a flyweight cache inside of a factory... and factories are often static themselves (unless you start making singletons)
we need a "not a real problem" close question. ;-)
just trying to be snarky; I don't really mean to say that Q should be closed or not.
5:59 PM
I'm just very confused what he wants.. sounds like he's asking for a computer without a cpu
@JimmyHoffa No, can't say I understand the question. It's probably because he's using Ruby in his examples, and my mind just shuts down.
@YannisRizos Maybe it's a truly masterful troll. His question is +4 and no one has any idea what he's talking about
I thought in ruby it's called class methods... In PHP it's static methods. But there are instance variables and methods. — random_guy 2 mins ago
There's your answer, he's trying to grok OO through PHP. That explains the confusion...
@YannisRizos did you see Bart's comment to a query about Jon's activity?
There is a bug in your query. It seems to suggest Jon Skeet has an off-time, which is obviously wrong. — Bart 5 hours ago
6:17 PM
@casperOne I've tried that with SQL Server. It's a deep, dark place where all hope to answer questions is but a fevered dream of the madman. — Nick Vaccaro 4 hours ago
Lets see what lurks in P.SE's oldest unaswered questions...
Q: Y combinator and tail call optimizations

nicolasThe definition of a Y combinator in F# is let rec y f x = f (y f) x f expects to have as a first argument some continuation for the recursive subproblems. Using the y f as a continuation, we see that f will be applied to successive calls as we can develop let y f x = f (y f) x = f (f (y f)) ...

Q: printable PHP manual - 'all but the Function Reference section'

JW01My Motivation I find it easier to learn things by reading 'offline'. I'd like to lean back and read the narrative part of a paper version of the official php manual. My Scuppered Plan My plan was to download the manual, print all but the Function Reference section and then read it. I have do...

Q: How do I use a preprocessor with multiple AS3 files?

ShedokanI am trying to use the GNU cpp (C preprocessor) with multiple AS3 files, but from what I see the cpp command only accepts one source file and one output file (and using a directory's path didn't work). I would prefer some preprocessor that would work with flashdevelop (not limited to cpp).

6:21 PM
6:35 PM
How would you implement singleton without statics? — svick 16 mins ago
Just create one, then attach it to your main class or something, so everything is dependency injected, IMHO it's a better practise. If the arguments gets too long, then i have to find a make it shorter, in more elegant way. Yeah, it's a weird idea, no?, that's why i need to ask. — random_guy 6 mins ago
How do you attach it to the main class if the main class doesn't have statics?
@YannisRizos - does the IP addr check out ok for the Java no-methods, no-globals, etc... question? A little voice in the back of my head is wondering....
@GlenH7 I doubt it, just given the age of the account...
should I run and go flag, or ... :-)
6:46 PM
if true; would be a new tactic. Account was opened a while back and left to age for a bit.
@GlenH7 There's nothing suspicious there. He's just young (his profile says 19), and trying to do too much with concepts he doesn't really understand.
We've all been there.
@YannisRizos - thanks. It's interesting to note how a well crafted troll question algins with a n00b question.
The responses (so far) haven't been hostile, which would be a key difference I think.
That's the worst thing with Leslar's flavour of trolling, it's not just that he wastes everyone's time, but he also makes us suspicious of honest (but noobesque & confused) questions.
agreed. I've mentioned it before - A well crafted troll question requires a degree of intelligence. And the ramifications of it can be quite long lasting.
6:55 PM
@GlenH7 Look up Poe's Law...
Poe's law, named after its author Nathan Poe, is an Internet adage reflecting the idea that without a clear indication of the author's intent, it is difficult or impossible to tell the difference between an expression of sincere extremism and a parody of extremism. The law and its meaning Poe's law, in broader form, is: The core of Poe's law is that a parody of something extreme by nature becomes impossible to differentiate from sincere extremism. A corollary of Poe's law is the reverse phenomenon: sincere fundamentalist beliefs being mistaken for a parody of that belief. History The st...
Instead of extremism, noobism.
there is great truth in that law
7:13 PM
@YannisRizos I think I could answer this question if i wanted, I'm pretty sure the code he posted does tail call, I could compile it and post the IL to show the tail call opcodes are there, but he would never see it to select it as the answer and no one else would see it to have any idea about it at all
@JimmyHoffa Hm? Post an answer, people will see it.
The original asker may not, but everyone else will...
...I'm getting tired, I meant to say no one else who saw it would even know what we were talking about (in large part)
7:26 PM
@MichaelT My euler #1 clojure solution, is this seem idiomatic normal way of using clojure from what you've seen? paste.lisp.org/display/137007 granted it doesn't use the fancy O(1) method
Design your language, on paper. Use your language to solve real world problems, again on paper. After you've actually used your language a couple of dozen times, go and develop your language. Otherwise, you're reinventing PHP. — Gilbert Le Blanc 12 mins ago
(avert your eyes those of you who've never solved euler #1)
It looks reasonable... this isn't python so there's no clojureific....
Consider the use of filter though...
Oh yeah..
7:28 PM
And since most people aren't using clojure for Euler...
and the answer wouldn't help them write something else...
(defn e1 [limit]
  (reduce + (filter #(or (zero? (mod % 3))
			 (zero? (mod % 5)))
		    (take (- limit 1) (iterate inc 1)))))
(e1 1000)
IBM has a good bit on clojure using Euler problems - ibm.com/developerworks/opensource/library/os-eclipse-clojure
ah zero? that's a good one, and I knew # was for lambdas somehow, but hadn't taken the time to get to them yet... though I'm confused how you're using the lambda function as a partial? do the holes in a partial just get filled in automatically even if they're not consecutive as such?
@MichaelT I'm debating trying to work through the SICP again
now that I actually have time
7:30 PM
@WorldEngineer since when do you have time for anything? Aren't you working on some javascript insanity?
@JimmyHoffa that was done tuesday
and it was vomit inducingly bad code
I shall pretend I never wrote it
now I really want to see it
@JimmyHoffa you can't since i never wrote it
Don't pretend you didn't write horrific code. We all did, never forget. I wrote something like 2kloc in a single method using structs instead of objects years ago not knowing the dfiference, it was pure procedural, I didn't even have members I don't think
I am debating doing the SICP in JS though
7:32 PM
that would be cool.
@JimmyHoffa I wrote 1k lines of broken Java in 6 hours for my Software Engineering project
to be fair, I can write good code...probably
I doubt it
No offense :)
@JimmyHoffa I can write code that functions
that much is true
and I know how it functions at the end
@WorldEngineer Should we publish that blog post?
Yeah, but that's a long ways off from being able to write good code, none of us can until we've been in industry with good tutelage for a little while, or at least, the extreme majority of us can't
7:35 PM
@YannisRizos about to look at it
give me an hour and then we'll publish it
Cool. Didn't had a chance to look at it a second time, and right now I'm in my... beer time. It would be best if I avoided publishing anything.
@JimmyHoffa I do have the advantage of having a "me casa es tu casa" attitude toward the code I write in projects
@YannisRizos I like the ellipsis
@YannisRizos perfect, publish a 3 page article on tequilla
there is a homebrewing SE
go do a moonshine tour of the Greek mountains
then write about that
assuming you're still conscious at the end of it.
He'll be concious, but he'll no longer have sight...
7:39 PM
@JimmyHoffa only if they use the wrong kind of still
@WorldEngineer I do have an excellent mountain tequila story. The excellent part is that I didn't fall off the cliff.
@YannisRizos that sounds about like my grandpa as a young man. He was very much a drinking and fighting man
at that stage anyway
7:52 PM
Q: Programming, Bio-engineering, or both, or what?

atheistlearnerI don't want a moral or optimistic response to this question. I want to be a programmer but I do not like humans, I believe in friendship but in general I look forward to a supernova or something similar, something the would wipe out humanity. So my concern is that if I am planning on destroying ...

@WorldEngineer reeeally?? heh
@JimmyHoffa I've seen the handle before but I can't place where
I love that everyone is avoiding saying the obvious. Engineers the lot of you, efficient application of the rules on file always trumps creative application of new rules
I loathe extinctionists
7:55 PM
like "No asking how to destroy the world on SE", though I'm not certain that rule would stand up under scrutiny with this crowd..
@JimmyHoffa it'd be a legit question in Physics or Biology or Philosophy .SE
@WorldEngineer yeah, defeatism taken to it's extreme conclusion
@JimmyHoffa more than that to me but yeah.
I'm okay with people having fewer kids and all that and taking care of the environment but we owe it to the planet to at least try to make it a more healthy and diverse place
What's that latin fanciness for aggressive/recursive application of a logical rule until reaching the most basal and always ridiculous end?
I wish I had the ability to ever remember any of those logical oddities etc
@JimmyHoffa Ad assholum
7:58 PM
@JimmyHoffa Reducio Ad Absurdum
@YannisRizos unless I miss something, I believe that DV with comment pointing out the problem is really needed in such cases. You see, what would you expect my vote to delete to accomplish? I just checked, I've got 46 pending votes, most "ancient" one dated Jan 28 - and it doesn't look like these are going to have any effect in foreseeable future,...
lit: reduced to absurdity
...now what do we get? Look, there's a crappy question with some crappy answers, closed, and with oh! delete vote, yeah. Site visitors won't see that freaking vote, what they will see is that some piece of crap somehow got 5-10-20 upvotes. The question is closed, so what? if one gets 50-100-200 reputation for low effort shot, that's not a big deal. That is exactly what worries me. Visitors seeing low effort / useless stuff getting good score, will try to repeat it...
... They won't care if it's old, they won't care if it's to closed question, they will se it's tolerated and upvoted.
@WorldEngineer No, I think @YannisRizos had it
Don't get me wrong - I would really really prefer something easier than my current routine for these answers, but I honestly can't see how it can be accomplished. And, you see, your idea with voting to delete doesn't look like solution, does it?
7:59 PM
@gnat Then flag the question and ask for it to be deleted.
If 9/10 answers are crap, it makes more sense to just get rid of it than commenting on every crap answer...
@YannisRizos I see, that should work indeed. I actually do that sometimes already, just not too often
that sounds like a good plan, thanks
oh we discussed something like that at meta already...
@gnat I regularly check pending delete votes as well, so in most cases your delete vote would be enough.
A: Are readers supposed to vote, edit, comment, flag answers on old one-liner honeypots?

ChrisFIf you can't find any evidence that the poster is still active on the site (recent posts/votes etc.) then there would seem to be little point in commenting as they are unlikely to see the comment and act on it. Similarly with down-votes. However, in both cases you aren't just telling the poster ...

@YannisRizos okay deal :)
I generally annihilate or convert to comment the old, unused stuff
or the new crap
@gnat Yes, a comment and a DV makes sense. However sometimes it makes more sense to just get rid of the whole thing in one swift motion.
8:04 PM
if it's got 5 upvotes I generally leave it be
@JimmyHoffa I think I my solution was similar to the IBM one...
(defn divisible-by-3-or-5? [num] (or (== (mod num 3) 0)(== (mod num 5) 0)))

(println (reduce + (filter divisible-by-3-or-5? (range 1000))))
Destroying humanity is not exclusive to the realm of software development, therefore your question is off topic. — maple_shaft 30 mins ago
@MichaelT yeah, I didn't think to use filter; need to think aloud to myself how I'd do things in haskell before doing them in clojure..
> Weinberg's Second Law: If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
8:10 PM
We've already got destroying civilization down.
@MichaelT developing software is the same as the universe operating under physics. It's a complete mess held together by entropy, inertia, and gravity.
@JimmyHoffa My perlistic nature was showing when I wrote that - grep the list, and then sum it... oh, suming a list is a reduce thing in the language...
If builders were working under the adept managerial and organizing hands of software organizations, construction workers would die on the job by the thousands
@WorldEngineer SF book to read (its a good one)...
8:13 PM
@MichaelT yeah, I only knew reduce because in haskell you fold stuff constantly, and I had to remember the etymology study I did once; fold in haskell == aggregate in .NET == reduce in lisp == something else in java
and yet something else in scala
There is some in refrences in there to other SF books too that add a bit of help... Strossian singularity, and the Basilisk...
A web published version of a bit of the basilisk world... ansible.co.uk/writing/c-b-faq.html
There's also a Greg Bear short story about where doing certain equations changes the nature of reality...
8:16 PM
I've long considered writing something along the lines of a combo of "Snowcrash" and "House of Leaves"
@MichaelT the one where wizards get introduced to the calculator?
Seriously, you guys are calling in the mods about that?
No... its where people are 'hacking math' with huge computers to change the nature of reality...
can't everyone play nice in the sandbox?
Wait, no, it might be Benford, not Bear.
@MichaelT I heard an interesting bit on the radio the other day reviewing a book where a physicist is positing that he decided laws of physics are all subject to change over time, that time effects them all and they are not in fact actually laws
Try trolling Christanity.SE and Physics.SE with this book...
'hacking math' just made me think of that. Gives an interesting idea; hundreds of millions of years ago the laws of physics may actually have not been precisely what they are now. That sensation that time is going faster as you age? Maybe it actually is. Reality itself is shifting over time, maybe that sense of time dilation is our physical reaction to that
This guy I think?
8:19 PM
@JimmyHoffa I prefer the "Logarithmic Experience" theory on age and time perception
Never heard it
The obvious postulate from it sounds logical though heh
as a practicing Christian and a practicingish scientist (in so far as CS is a science), I largely tend to not care about proving things like that
what are we ants to comprehend the nature of things? Abstractions, Analogies, and Approximations one and all and to the last.
We live in the land of the halting problem, by definition being a computer scientist means you accept the unprovability of things, perhaps that's one of the major differences between us and physicists..
@WorldEngineer The idea of the Tipler book is that at the end of the universe, there will be such time and energy to be able to calculate the entire pre history of the universe and simulate everything... and such... and he's a bit crazy.
@MichaelT sounds like he found a Boltzmann Brain and toked it.
> Unfortunately, many of the Request For Enhancements mentioned above are partially implemented in the current version. The main reason was the rush to get it out the door - seven days is not enough time to go from rough specifications and a beta version to a full working version.
> Different requirements by the various marketing devisions have also confused the issue. Some wanted a soul, some wanted reincarnation, and others refused to promise the end user anything at all. With such wildly differing promises to the consumer, things got a bit hectic. When push came to shrove at which point one of the VPs said 'hey, it compiles! ship it!' and it went out the door with a big bang and much fanfare.
> Initial sales of universe v1.0 were good, and the sales market sold them faster than we could make them. Physicists now account for this period as the 'inflationary' period. After things cooled down a bit and sales leveled off customers kept sending in bug reports. As a quick patch the developer team wrote up a black hole hack and released it. This allows the user to shove anything that is causing a problem into the void and not worry about it again.
> At no time should the event horizon be removed from this patch - naked singularities are prohibited by the Universal Decency Act. We are aware that in several trillion years, there is the chance that these may be exposed again, however we believe that most forms of government have difficulty over such lengthy periods of time and hope to have it repealed by then.
> Thank you for your interest in Universe version 1.0 and please be certain to update the service pack regarding dark matter and dark energy. Things seem to be picking up again and we would hate for you to miss out on these latest features.
8:27 PM
@MichaelT It's crap without the Higgs expansion pack though
I wrote that back in '00... Higgs was not as prominent then... and its harder to pun on.
"and it went out the door with a big bang and much fanfare."
Aye, funny stuff, well done
Andrew Thompson on May 03, 2013

As a veteran of applet development (see credentials below), I think it is high time to make a call that teachers should stop teaching applets in general, & especially AWT based applets. Applets are an advanced and specialized type of app. that has little place in the real world around us (most things that are done by applets can instead be better achieved using Javascript and HTML 5).

It saddens me to see new students ‘tossed in at the deep end’ to learn how to make an applet.

The reasons are multiple, but first, I’ll look a little at the history of applets and why applets were ever considered a good idea for teaching small, simple projects. …

Cue the firestorm!
@YannisRizos for the sake of precision, I can't recall questions with 9/10 answers crap - guess these were deleted before. :) Typical "dose" I've seen in one-liner honeypots is about 1/3 - 1/2 crap
Q: Are readers supposed to vote, edit, comment, flag answers on old one-liner honeypots?

gnatSome old closed questions have many answers that probably were considered OK back then but are not quite up to current quality standards. Are readers supposed to vote, edit, comment, flag answers in these questions? If it's better to leave these alone, then I would like to also understand how r...

I did some stats when preparing above question
8:31 PM
Another fun one I wrote... I like the idea of the "modern pantheon" of gods... and someone wrote about Casual Gods (the album)... so I wrote about a set of deities... everything2.com/user/m_turner/writeups/Casual+Gods
> The casual gods have extended their influence to create a temple of their own known as "TGIF", named after the prayers to the casual gods just before the weekend.
Then I've got the Traffic Light Gods...
> The modern day god of the traffic light is a distant relative of the Roman god Janus (with two faces). The god of the traffic light (known by the abbreviated title of GOTTL) has three faces (though some statues of him have more). Each face shines in a different color - green, yellow, and red.
Wouldn't the traffic light god be a relative of Legba, master of roads and pathways?
@thorstenmüller probably an adopted child
8:37 PM
@thorstenmüller no, his only living descendants are the God of Pot Holes, and Garmin
> GOTTL has the responsibility of making certain that all the cars move about on the great beltway in an orderly fashion - for he the child of order and chaos. When all is well, things move orderly, but at times his face takes to blinking red and yellow and all around there is chaos to behold.
Roundabouts are created by heretics.
@MichaelT Two words: Spagetti Junction
@MichaelT in clojure is it your understanding that [ bla bla bla ] (vectors?) are just clojure's version of tuples?
That was confusing me at first until I came up with the conclusion to just use them wherever I would use tuples in haskell
I thought it was closer to Lisp's quoted lists...
8:42 PM
...I don't know what those are...
is it easy to add and remove things from a vector?
that is grow and shrink it
A: When to use 'quote in Lisp

Adam RosenfieldIt says "don't evaluate me". For example, if you wanted to use a list as data, and not as code, you'd put a quote in front of it. For example, (print '(+ 3 4)) prints "(+ 3 4)", whereas (print (+ 3 4)) prints "7"

That is totally not the understanding I got of vectors...
Let me get the current version of light table so that I can fire up some clojure...
getting light table to run in windows is a huge pain
The enormity of the executable seems to just chug, I'm guessing mccafee is just choking to death on it
There's probably clojure mode for emacs
ah not by default..
Mac and Linux are not bad...
8:48 PM
yeah, I was running it in linux at home
really cool IDE for sure
The LT I had on this machine was an early version... it just had a rev recently.
... and its really changed from what I remember...
Andrew Thompson on May 03, 2013

As a veteran of applet development (see credentials below), I think it is high time to make a call that teachers should stop teaching applets in general, & especially AWT based applets. Applets are an advanced and specialized type of app. that has little place in the real world around us (most things that are done by applets can instead be better achieved using Javascript and HTML 5).

It saddens me to see new students ‘tossed in at the deep end’ to learn how to make an applet.

The reasons are multiple, but first, I’ll look a little at the history of applets and why applets were ever considered a good idea for teaching small, simple projects. …

Hey - its your favorite topic... "Zippers - Functional Tree Editing"
Ok... playing with it... I kind of remember when I was playing with it before..
8:56 PM
@MichaelT What are you looking into zippers for? Other than because they're awesome :)
the first chapter of okasaki's is what made me understand them, they're confusing as crap at first
(for me)
Related functions
Create a vector: vector vec vector-of
Examine a vector: get nth peek rseq vector?
'change' a vector: assoc pop subvec replace
See also zippers
Ah yes, they aren't tuples, tuples are O(1) access but O(n) grow/shrink
> Vectors support access to items by index in log32N hops
So this is a B* (if I remeber that right) tree.
9:00 PM
I am just confused, it seems in the example code I've been seeing, they're used all over, as much as if not more than lists, which seemed strange to me
I feel like I learn so much more sitting in here reading you twos banter than I did in most classes I took
Lists are LinkedLists... and only have limited access to it. Vectors are much more array like.
List - adding a new item is at the front... Vector, adding a new item is at the end.
@MichaelT yeah, and that's exactly why I want to treat them like tuples
tuples are O(n) grow/shrink but O(1) index access (and the count is a part of the type); they model determinism where lists model nondeterminism
but they don't have the grow/shrink characteristics of tuples I'm thinking, so they're just lists that have been tweaked for performant index access (by being a tree)
If the vector is less than 33 entries, it is O(1)
9:05 PM
I'm going to pretend they're tuples until I know better. It will at least give me a sense of when and why to use them
That's the index log32(N) hops... so log32(32) = 1... so you can access something 32 entries or smaller in one hop, which is the same as just saying "its there"
aye, you access tuples as:
first (a,b,c) = a
second (a,b,c) = b
third (a,b,c) = c

But they run into trouble because the size is a part of the type information so if you want to do something across all members of a tuple that may have variable size, you'd have to implement that function separate times for each length tuple you support.
tuples are invariable size, vectors I'm guessing are variable size...
> conj puts the item at the end of the vector.
So yes.
9:13 PM
> conj[oin]. Returns a new collection with the xs 'added'. (conj nil item) returns (item).
so it isn't modifying the vector, but rather returning a new one.
@JimmyHoffa So... vectors are not variable in size. Once it is instantiated, thats it. There is a transient vector, though that looks like you can't actually get at it.
Nope, that's a different thing....
9:29 PM
@MichaelT can you map and fold and do all the list things to a vector?
Is there a way in light table to get the sig of a function? Best part of haskell's repl:

Prelude> :t map
map :: (a -> b) -> [a] -> [b]
Yeah, they're just...arrays... you can always use a list where you use a vector, and vice versa, but which one you use I guess is just a switch you make here and there to tweak performance characteristics for particular use cases...
10:09 PM
ack, clojure lacks good pattern matching.. for a language that expects you to rely on recursion, that's near unforgivable because pattern matching is the best way to implement your exit cases in recursive functions
I also find clojure.org/cheatsheet useful to see the "what do I want to look for" useful.
Yeah, the documentation is good for sure
@JimmyHoffa It's not an Apache incubator project... (ohh... burn...)
map was giving me crap until I realized I needed to '(my list) as you mentioned earlier
I'm trying to make a macro for a more haskell like lambda
10:21 PM
(map inc '(1 2 3)) --> (2 3 4)

(map inc [1 2 3]) --> (2 3 4)
The '() is a List, while [] is a Vector. Both collections.
Right, I think it calls them ISeq
ISeq is an interface that extends the IPersistentCollection and adds first, next, more and cons methods.
While IPersistentCollection just maintains a count, cons, and empty.
@MichaelT postfix notation is the only notation isn't it? lisp as a rule doesn't allow infix functions does it?
@JimmyHoffa Eh? Lisp and Clojure use prefix notation only.
postfix prefix... whatever it's called
but no infix
Postfix (think forth):
5 4 3 + * ---> 35

Infix (think C)
5 + 4 = 9

Prefix (think lisp):
(+ 4 (* 3 2)) ---> 10
(defmacro / [arg & body]
  `(fn [~arg] ~@body))

(reduce (/ x (/ y (+ x y))) [1 2 3])
no currying fail..
11:01 PM
Maybe this would fit me more...
Qi is a functional programming language developed by Mark Tarver and introduced in April 2005. A new version was reimplemented and issued as Qi II in November 2008. The first version was free software, licensed under GPL. But, as GPL was perceived as unfriendly to commercial use, Qi II is available via two proprietary licenses: one for personal and educational use, and another for producing closed source software. Qi is written in Lisp. It includes most of the features common to modern functional programming languages such as pattern-matching, currying, partial applications, guards and (...
a lisp with automatic partialling/currying, built in pattern matches and guards
apparently it's trying to just take all the haskell stuff and make it available to CLOS programmers
has type classes, which is awesome.

« first day (973 days earlier)      last day (2930 days later) »