« first day (894 days earlier)      last day (4095 days later) » 

12:11 AM
Really, people need to treat exceptions right.
I hate one exception being logged 6 different times because everyone thinks it's there job to log it
 
better than rethrowing exceptions that are different, and not propogating the original
i've had "ConfigurationNotFoundException"s thrown at me due to a NPE that's 6 levels deeper
that was fun...
 
Is this a good question for you guys?
0
Q: Where should I post a request for project developer volunteers

JoeUntil very recently, I used to use AutoKey many times every day. It's a wonderful keyboard automation/macro utility for Linux. There is an active community of users. The sole developer was great at fixing and enhancing the package. About 6 months ago, he quit (or at least went into long term hib...

 
psr
@JimmyHoffa - They are probably using the TPS Report logger.
 
user20683
12:56 AM
@MichaelMrozek Developer Requests/Hirings are off-topic
 
user20683
careers.stackoverflow.com is an excellent place to find them but it costs like $300 a month to post a listing and it's generally paying stuff only
 
@WorldEngineer It's not a request, it's a question about where to post requests :)
 
user20683
@MichaelMrozek the answer is: not really anywhere on the SE network
 
user20683
Hacker News sometimes works
 
user20683
put a link to the Github in your profile
 
user20683
12:59 AM
or whatever VC host you use
 
I'm not looking for the answer, it's not my question; I'm trying to find out if the question is on-topic on Programmers so I can move it there
 
user20683
oh
 
user20683
sorry been a very long day
 
user20683
it'd probably be closed as non-constructive here
 
Ok, thanks
 
1:05 AM
I've rewritten two open source snips of JavaScript using my library now, to results I think prove it's worth. Anybody got ideas how to share it out such that people will notice?
 
user20683
@JimmyHoffa put it on a VC host: Github/Bitbucket/KilnHG/Whatever and then link that in your profile with a "hey, here is some cool shit I made!"
 
user20683
or similar
 
I can put it on github with a wiki but then that doesn't mean anyone will ever see
 
user55340
github also links back to careers 2.0 (or the other way) - so it can help in other endeavors even if no one looks for it to use it.
 
To date I have 330 profile views, not much me thinks
On p.se that is
But will do it all the same
Otherwise I'll just try posting refactors of other people's open source code back to them like I've started. Surely someone has to like it other than I. I should minify it so nobody complains it's unreadable since minified should be
 
1:33 AM
quick question: I'm writing some JQuery and having to operate on a lot of different elements on the page, so I'm doing a whole swag of $('[id*=xx]') selectors... for elements that I'm working with all the time, should I just pull these out into "globals" so I reference an object rather than having to do the selectors all the time?
or is that a huge no-no
 
Cache if the choices won't change otherwise use the selectors like if com elements get added/removed
Dom*
Hey @Deco how do you feel about using a hot new js lib that will clean up the code you hacking right now :D
 
@JimmyHoffa that depends... I might be very interested
this page i'm doing has 80 odd elements on it
and so far I've got >800 lines of Jscript
because each element has change events that effect other elements, such as hide/show, enable/disable, prepopulate, etc..
so i'm doing a lot of selectors
but generally across the same common subset of elements
 
1:51 AM
The way my lib works, you create small functions that take in a value, do whatever then return success or failure with that or a new value, then you compose all of these functions together with then and or. If a function returns failure thens chained off it fall through until an or, and the or is executed then, though as long as each function succeeds the following function chained gets the value it returned
It good for workflows, could be used for dynamicism in your rules engine sounds like you need
Rules around what to select for eg
var fromCool = function(a) { return a.id === 'cool' ? Success($.('#yay')) : Failure(a); }; var fromLame = function(a) { return a.id === 'lame' ? Success($.('aww')) : Failure(a); }; var show = function(a) { a.show(); return success(a); }; var lameOrCool = fromCool.or(fromLame); $.('#cool').click(lameOrCool.then(show));
Holy crap that was annoying to type on my phone
Var showLameOrCool = lameOrCool.then(show); showLameOrCool($.('#lame'));
@Deco think about it
...because everyone needs to stop worrying and learn to love the monad
Var showLame = fromLame.then(show); var showCool = fromCool.then(show); showCool.or(showLame) is equal to lameOrCool.then(show). So you get all these small pieces you can quickly compose differently wherever you need them
 
2:40 AM
@JimmyHoffa - I'll check it out.. got a bitbucket/github I can see?
 
@Deco Not yet. I can give you the lib but pay attention to the interface I described more than the implementation, unless you're familiar with monads the implementation would likely take a lot of mental parsing to get your head around unless you're a javascript mastah
 
i'm not a mastah
nfi about Monads either :S
have you got an example.html too? I'm a noob :<
 
No worries, like I said, pay attention to the interface, the interface is simple
 
user20683
@Deco A monad is an object that returns a monad
 
user20683
;)
 
2:45 AM
one moment @Deco I'll toss something together
 
@JimmyHoffa cheers
Is monad similar to closure? I dont wanna look it up either (I'm being lazy)
 
nah, monad is a whole 'nother story
 
I'm also impressed you phone typed in Javascript @JimmyHoffa
 
3:14 AM
@Deco you there?
(it doesn't work in jsfiddle, but there's the machinad.js javascript file and the example.html file for you to poke around with)
just look at the javascript in the html for clues to how to use the then/or functions to compose things together
and the success/failures to control flow
 
@JimmyHoffa cheers for that
the "preview" part of JSFiddle is blocked by my proxy
(stupid work)
so i'll copypasta and play locally
Thanks <3
 
Yep. Let me know if it comes in handy at all or you have questions
 
3:35 AM
ahhhhh I get how it works
very nice little library there @JimmyHoffa
 
Thanks :)
 
now I have to think how to refactor some of my stuff to actually use it properly, without getting myself into a huge mess
Oh, also @JimmyHoffa - If I use this, what license do you have it under (if any)?
 
uh, I demand a pint. That's totally aside from the license though, no license right now. I'll likely use an MIT or BSD license if any. For now call it a DBAD license dbad-license.org
 
I'll send you an e-pint for now, as you're not physically near me
 
@Deco the key is to identify the things you'll want to do and conditionals and break them up into individual functions then compose all of them together at the end. One of the valuable things of functional programming is it forces you to start by designing regarding the functions
forces you to start with the details
 
3:46 AM
@JimmyHoffa - my issue at the moment is I'm basically just literally translating from one framework DSL to Javascript
we have an internal legacy framework that uses XML to perform this sorta stuff, so I'm just doing a read-write IO in my brain from that language -> Javascript.. I also have until Friday to finish :(
3420 lines (statements) that all do something
 
pflech
 
they're all fairly straightforward but still >lots< of them
 
yeah.. that's a ton of code to hash. Hopefully you can identify small common pieces and make it less code.
 
Here's an example for you, just so you can share some of my pain:
<if test="pathEqual" element="//errorFlag" value="1"><if test="pathEqual" element="//prompt01" value="1"><setVis type="show" element="warning01"/></if></if><else><setVis type="hide" element="warning01"/></else>
some of these have 20+ levels of nesting and span 15-20 pages
 
ah, exactly what I wrote that library for
to avoid the horrible mess of state machines
 
3:56 AM
I've condensed the first ~2000 lines down to 650 in javascript now, which I'm well proud of considering I'm really a noob at the advanced features of javascript
 
they always end up with a ton of cases nested inside of cases inside of cases, this way you just define the functions of what to actually do, and then compose it all from tiny pieces into larger more simple pieces bit by bit
 
Is this style based on functional programming?
 
100%
it's a rip from Haskell
 
ah. I've never looked at functional programming - been meaning to though
 
your xml there would be something like:
var showWarningOne = function(a) {
return a.errorFlag === 1 && a.promptOne === 1 ? success(show(warningOne)) : failure(a);
};
showWarningOne.or(hideWarningOne)

etc
Iduno, that xml is a trainwreck
lol
I hate state machines
 
4:04 AM
yahuh..
and it's not just one or two things
the body onload is 250 lines so far, and i've only done half of it
I have to refactor as this is hideous
 
Yeah, state machines always are..
 
 
13 hours later…
5:16 PM
Which one is more of a "Don't tamper with/remove this license, but do anything else you want" license, MIT or BSD?
They're both kind of like that I think.. not sure which is less restricted off hand though, thinking BSD
 
user55340
6
Q: Difference between MIT/BSD and CC-BY licenses

BoldewynMIT/BSD licenses basically say: Hey, use the stuff, but don't claim it's yours. CC-By license (without nc and the such, just the plain cc-by) says: Hey, use the stuff, but don't claim it's yours. Now is there any substantial difference between these licenses? What is the legalese trying to hide...

 
I think I'm going to just tack on a a DBAD license with my name in it and a tag line "All redistributions of this work either modified or not must contain the aforementioned license in an unmodified form."
 
5:51 PM
Subtle alterations to the DBAD license basically just requesting attribution. github.com/JimmyHoffa/Machinad/blob/master/machinad.js
interestingly DBAD requires me to name it differently since I altered it
 
6:07 PM
@Deco: There ya go, now it's got a license so you can know what to abide by if you do happen to use it.
 
 
1 hour later…
7:29 PM
My pseudonymity is now officially shot.
Doesn't feel good. Don't know how the new generation is so comfortable without it.
 
user55340
8:08 PM
@JimmyHoffa Its a matter of accepting it long ago. Scott McNealy - "You have zero privacy anyway. Get over it." (1999). pcworld.com/article/16331/article.html
 
user41796
8:32 PM
@JimmyHoffa - Congrats Captain Hoffa on releasing your product to the world. :-)
 
@MichaelT I think too many people actually take that belief that you quoted towards pseudonymity, but it's total hogwash: Until this morning there was no way for the public at large to know the name of the person using my pseudonym. Private companies knew it, and private companies could likely buy it from those private companies. But that means it's all still private, so I did have privacy. Now it's public.
@GlenH7 thanks :) I already know a few changes I should really make to make it better
but whatever, why waste my time if people don't find useful the basic idea, and there's only one way to find out if they do.
I'm not even a front-end or javascript guy, in reality I'll probably never use it. Just wrote it because trying to bring the error monad to a larger audience than haskell couldn't be done decently in C# without parametric polymorphism, but javascript can pretend to have parametric polymorphism just because it's dynamic.
And actually I have now compromised two pseudonyms trying to publicize this thing.. balls. Whatever.
The beauty of the pseudonym, I can always just make up another
 
9:24 PM
Interesting, I guess I have no idea how reddit works because my post seems to have disappeared from there..
lame.
 
user55340
10:24 PM
so sad... 0 close votes remaining.
 
11:20 PM
I see, reddit has downvoted my library
Guess I suck at JS
 
psr
11:31 PM
You are probably more interested in uploads than up/down votes. Upvotes seem unlikely - not a lot of javascript threads out there crying out for error monad libraries.
Plus you didn't make it a JQuery plugin
 
@psr that's why I made it, they actually are, they just don't know it
there's a grip of state-machine style libraries that are cropping up a colleague showed me
because js folks (especially on the node side) are trying to make state-machine's easier
and a JQuery plugin eh? why would this ever need to be hacked into JQuery?
 
psr
Joking. Really a snide comment on developers who want everything to be a JQuery plugin.
Since libraries are only useful to people who already know they need them, this seems Quixotic
 
@JimmyHoffa :( :( reddit is blocked at work
what license is it??
 
11:49 PM
@psr no C# dev knew they needed linq
cuz it's a monad
That's just how monads are, things you didn't expect or imagine because they're so out there, until you're using it and realize it's awesome
 
@JimmyHoffa I'm confused - the first line is about Ryan Swindle? I thought you were Jimmy Hoffa? :P
Unless you're Jimmy Hoffa by day and Ryan Swindle by night!?
Also, I really want to use it just so I can check in a file with DBAD license on it :D
 

« first day (894 days earlier)      last day (4095 days later) »