Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Re: Re: Re: Re: Context aware functions - best practices?

by BrowserUk (Pope)
on Jan 16, 2003 at 20:39 UTC ( #227489=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Re: Context aware functions - best practices?
in thread Context aware functions - best practices?

Okay. So am I right in thinking that the objection only really applies if the sub in question is a method of a class and therefore break when called via the subclass?

Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.

  • Comment on Re: Re: Re: Re: Re: Context aware functions - best practices?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Context aware functions - best practices?
by demerphq (Chancellor) on Jan 17, 2003 at 12:39 UTC
    Im not sure which objection you mean exactly. But my original point applies to both OO and classical-imperative programming. Basically its "dont try to out-smart your user". Its usually unnecessary given the nature of Perl, and often a PITA to work around when you find out that you the user is smarter than the original programmer anyway.


    --- demerphq
    my friends call me, usually because I'm late....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://227489]
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.
[Corion]: I'd really like to create a dynamic frontend for my Google Keep clone, but so far, all the templating solutions seem to bring their own template language or require me to hand-code everything in (their own flavour of) Javascript. I'd like something ...
[Corion]: ... that can use templates from the HTML (via <script language="text/ template">... my template ...</script> and otherwise gets out of my way. But it seems that is not how the Javascript world is, currently :-/
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-03-27 19:03 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.