as I recall, in lisp and other functional languages (f a) calls f with a as the parameter, and (f (a)) calls a and passes its result to f (though that's more akin to f(a) vs. f(a()) in more sane languages, or you could take the difference between (f a) and ((f a)) which is akin to f(a) vs. f(a)())
airdrik
@airdrik
Best posts made by airdrik
Latest posts made by airdrik
-
RE: Representative Line
-
RE: Eclipse Add-ons Dialog
What kinds of details did you expect? When installing a plugin all it does is fetch the plugin (determine the url where the plugin resids and download it), and install the plugin (possibly unpack it and move the contents to the appropriate plugin directories in your eclipse install/workspace).
I suppose the wtf could be that it told you it was fetching the plugin (or that it told you the (collapsed) url) in the condensed view, rather than reserving that information for the details view, but meh, whatever. Or I suppose the wtf could be that they don't report the progress in terms of MB downloaded, MB to go, current download rate, expected completion time; but nobody pays attention to those details anyway.
-
RE: Interview pro-tip
@Lorne Kates said:
@PJH said:
@Xyro said:
Just for fun, are you able to share the code you used?
+1Should be 1+. Prefixing the incriment is for COBOL greybeards!
Don't you mean COBOL whitebeards?
-
RE: Database Design Party
So can an address and a customer have the same PARTY_ID, or are they globally unique? Or is it the other way around that everything with the same PARTY_ID is part of the same entity (party?)?
If they are globally unique, I'd like to know why since there that would be a WTF in its own right (though in this case they should be using auto-increment, and not using it is another WTF).
If multiple other tables can have the same PARTY_ID, but that doesn't mean correlation then there's no reason to have the PARTY table with its PARTY_IDs and each table would have its own unique identifier.
If anything with the same PARTY_ID is part of the same entity it at least makes sense - a party refering to an entity with all of its constituent parts (though you lose the ability to use the PARTY_ID as a unique key if you need to introduce any kind of -to-many relationships). Of course even then each table should have its own ID and foreign keys properly identified and established accordingly (so that while a customer has an address and a vendor has an address a customer can't be associated with a vendor unless such a relation is explicitly established)
-
RE: Making sure a value is assigned
@snoofle said:
boolean mostlyTrue = Math.ceil(Math.random()) > 0;
That is evil! So wonderfully evil! Throw that deep into some inconspicuous code before you leave...
-
RE: It's probably not flat.
@Mr. DOS said:
Filed under: write-once-run-nowhere
Or more likely: write everywhere, right nowhere?
-
RE: Initech Lives!
I personally appreciated the banner on the uk one which advertised: "don't put all your eggs in one basket? with an initech solution..... you can!"
Because of course you can trust initech with all of your eggs. While they're at it, they can count the chickens before they hatch and store all of their eggs in that same basket as well (should be easy with a little extra xml, some wooden tables,...)
-
RE: Bit flagging right?
You might grok the code base for usages of LOG_ALL to see if it is being (mis)used anywhere. Who knows but that you might learn something "useful" (if not for personal enlightenment, for the entertainment of your fellows in these parts).
@Severity One said:
So how would you do
setLogging( QLoggingLevel )
?You don't call setLogging(QLoggingLevel), you call setLogging(int), and you pass in the combination of logging levels or'd together. Of course that should only be done on app startup by the log configurator after reading in the logging configuration from file. Similarly the log level check should be wrapped within the corresponding log.error/log.warn/log.info/etc. method call to make things simple for the people who are using this framework (and to make it easy to switch to a more standard logging framework when they find out that that's all they're rewriting anyway).
-
RE: AT&T Has randomly decided to disable the most-used feature of my phone.
@BoringJames said:
WTF #1: "Steady decline in instant messaging on non-smartphones". Yeah, I'd like to see the numbers here, because otherwise this doesn't mean anything to me except "more smartphones exist now". I'm betting that the only declining numbers involved are sales figures.
Probably also because people who use alternate IM clients (e.g. AIM, YM, MSN, etc) are either switching to smartphones or just not using them from their non-smartphones anymore (relying more and more on basic text messaging instead, which gets the job done just as well especially now as everyone has a phone and texting is practically universal).
@BoringJames said:
WTF #2: Just the phrase "non-smartphones". Okay, so what exactly is a smartphone? My Pantech Link is a budget phone, yes, but it has apps, an internet browser, an IM client, an E-mail client, calendar, camera, and a friggin GPS. The only other differences I can think of between my phone and a "smartphone" is that a "smartphone" costs a lot of money. Oh, and perhaps most smartphones have a touchscreen too... except most models of Blackberry, which is AT&T's top-line smartphone series. Yeah, I'm betting it's money.
Smartphone generally refers to a device with more advanced features, usually requiring a constant data connection. Currently the OSs considered to be Smartphone OS are iOS (iPhone), Android, Blackberry and Windows Phone 7 (all of which are comparable to your typical desktop OS in terms of power and capabilities). Admitedly the line between what constitutes a smartphone vs. a non-smartphone/budget phone/featurephone is very blurry, especially considering that your typical non-smartphone today would have been considered a smartphone 3 years ago (btw, my previous phone - a non-smartphone - had a touchscreen, as does my wife's current non-smartphone, so even that isn't a differentiator. Alternatively I got my current ( admittedly lower-end) Android smartphone for free (subsidized by the data plan * 2 year contract)).
-
RE: Elevator fail
@Renan said:
I then realized what happened. There was some guy waiting for an elevator car in the last floor with us. He was standing in front of one of the pairs of sliding doors. I figure that as the car we were in started closing its doors, the button's light would turn off. The confused dude must have thought that that meant his car wouldn't be coming, so he pressed the button, which in turn reopened the doors of the car that was present. A couple seconds later the car would start shutting its doors and the cycle would begin again. And again. And again.
Another WTF is elevators that reopen the doors if someone hits a call button while the doors are closing. I thought that it was standard that if the doors are closing the only ways to reopen them was to block them or hit the open door button from inside the elevator (or if the emergency system has another mechanism), and that hitting the call button would call the next available elevator. Or if I am completely off my rocker and it is commonplace for the doors to reopen if someone hits a call button while the doors are closing, then TRWTF is the light on the call button turning off before the doors have closed and the elevator starts moving (i.e. if the light turns off that should mean that hitting it again will call the next available elevator).