Language:
switch to room list switch to menu My folders
Go to page: First ... 92 93 94 95 [96] 97 98 99 100 ... Last
[#] Fri Feb 01 2013 09:58:42 EST from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

using the c-pre processor to generate html:

http://www.cs.tut.fi/~jkorpela/html/cpre.html

.oO(???)



[#] Fri Feb 01 2013 12:49:33 EST from zooer @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

What do you question about it?

[#] Fri Feb 01 2013 15:30:11 EST from Spell Binder @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I've been doing some light reading on programming techniques and patterns recently, and came across something that made me go, "I wonder..."

The visitor pattern: http://en.wikipedia.org/wiki/Visitor_pattern

From the description given, it seems to me that the visitor pattern is, in functional programming terminology, equivalent to doing a map on a container type. Though map in most functional languages seems more geared towards list objects, there's no reason it can't be defined for a non-list type. In that sense, both map and the visitor pattern will traverse an arbitrary structure, applying some function/method along the way.

Does this sound reasonable to anyone else, or am I just sufferring from empanada withdrawal?
Pattern Binder

[#] Fri Feb 01 2013 20:53:59 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


The visitor pattern is most commonly applied (within compilers, interpreters, translators, and other language toolchains) to an abstract syntax tree or perhaps some other lower-level representation such as a flow graph.

The motivation for the design pattern is that you have an object structure for some recursive data structure. And you want to be able to recurse over it, with the structure itself helping you out with the detils of the recursion. But you don't want to place all your application code within the data structure; the data structure itself should be "thin" and only define the structure plus negligible helper methods.

Also, the visitor pattern enables type-safe dispatch.

Hope that helps. If you want to talk to more, I may miss further comments in this room, so CC to mail maybe.

[#] Tue Feb 19 2013 23:39:37 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Does this sound reasonable to anyone else, or am I just sufferring
from empanada withdrawal?

That depends. Do you have stairs in your house?

[#] Wed Feb 20 2013 14:19:48 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

a non-list type. In that sense, both map and the visitor pattern will

traverse an arbitrary structure, applying some function/method along

the way.

Actually it's more than just a map: the visitor pattern involves the visitor in the recursion. If the visitor doesn't call child.visit(this) then child does not get visited. So the visitor controls the order and what items are of interest.


[#] Wed Feb 20 2013 14:20:23 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

That depends. Do you have stairs in your house?

Clearly a case of insufficient stairs.

[#] Mon Feb 25 2013 02:31:57 EST from the8088er @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

That depends. Do you have stairs in your house?

I am protected.

[#] Tue Feb 26 2013 16:40:48 EST from ax25 @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

http://www.youtube.com/watch?v=7E0ot9iJm_k

Wrong room, but I could not resist the stairs comment.



[#] Wed Apr 03 2013 15:45:32 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Attention: Graeme Rocher is HITLER!!

That is all.

[#] Thu Apr 04 2013 12:43:38 EDT from Mike Godwin @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I'm Mike Godwin and I approve of this message.

[#] Thu Apr 04 2013 18:13:45 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Update: the real McHitler turned out to be the guy on my team who selectively disabled error notifications in exactly the location that was causing me the most trouble.

[#] Fri Apr 12 2013 10:47:04 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


"Let's disabled logging in this area of code and see if LS notices..."

[#] Fri Apr 12 2013 12:34:39 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Graeme Rocher is still Hitler though. All the levels of abstraction in Grails are just insane.

[#] Tue May 07 2013 07:10:55 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Reclaim the content you lost property rights on in those walled gardens:

http://reclaim.fm/

interesting page layout ;-)



[#] Sun May 12 2013 08:34:46 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


The page layout is somewhat trippy, to be honest. I rather like it.

[#] Sun May 12 2013 15:03:03 EDT from kc5tja @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Uugh, I hate page layouts like that. They trigger my vertigo something fierce. :(

[#] Mon May 20 2013 08:41:02 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


I'm not entirely sure which WTF you mean.. that someone would seek to use PHP for natively compiled binaries on a Win32 platform, or that someone would put together a Snoop Dog montage advertising such a tool.

[#] Mon May 20 2013 18:44:04 EDT from kc5tja @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

The correct answer is "Yes." :)

Go to page: First ... 92 93 94 95 [96] 97 98 99 100 ... Last