Indeed. This prompts to relay a quick anecdote - I worked on a 4D system 
originally developed by Aparajita more than 22 years ago for an investment 
bank. It used a plug-in that was probably little known at the time - 
ObjectTools. Aparajita's always been far, far ahead of the curve. That 4D 
codebase was, and still is, the cleanest and most maintainable 4D codebase I've 
ever had the opportunity to work on - apart from my own of course :D

Actually, Aparajita writes on his website, and I quote:
"I originally wrote ObjectTools in 1990. In 2013, 4D added C_OBJECT, which has 
most of the functionality of ObjectTools. It only took them 23 years to catch 
up, not bad! 😁"

Hint... if Aparajita was to give some trainings at the next 4D Summit on the 
work he's done porting npm pacakges to 4D, well we could all learn a great deal 
from his experience and I would be over there like a shot! I've made a couple 
of half-hearted attempts to get to grips with JavaScript's power in the last 
few years but not seen them through. Looks like it's time to try again with a 
fresh mindset. If we didn't know it already, that JavaScript stuff is 
everywhere these days...

In the meantime, it would educate us a great deal if 4D was to provide some 
really good detailed examples of these new commands. Perhaps they exist already 
and I just didn't come across them yet...

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
 
I am available for new consulting opportunities…
http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html
-- 

-----Original Message-----
From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Monday, 16 September 2019 at 23:32
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Kirk Brooks <lists.k...@gmail.com>
Subject: Re: More on 4D Objects and 'Inheritance'

    Well gee, what does Aparajita know about object oriented stuff? šŸ¤”
    
    Nicely put.
    
    On Mon, Sep 16, 2019 at 1:23 PM Aparajita Fishman via 4D_Tech <
    4d_tech@lists.4d.com> wrote:
    
    > > Well my recommendation is not to use New formula ever.
    >
    > Translation: ā€œI’m not sure I can use them properly, therefore no one
    > should.ā€  šŸ˜‚
    >
    >
    > > Even with properly
    > > encapsulated code structured in a way that makes sense, it's still
    > > impossible to get the context, source, or whether or not the method call
    > > even exists in the object.
    >
    > Not my experience at all.
    >
    >
    > > It's basically just a dangerous feature at this
    > > point just waiting to explode when your ".get()" isn't the same ".get()"
    > as
    > > you were expecting.
    >
    > Not my experience at all.
    >
    >
    > > 4D needs to add actual class structures for it to be
    > > 1) Easy to document and lookup the source, or see the actual function
    > > documentation like now when we mouseover a method call.
    >
    > True, but I have found the benefits far outweigh those minor
    > inconveniences. Looking up the source is trivial if you use a good naming
    > convention.
    >
    >
    > > Right now there would be a lot of
    > > overhead to design an object correctly so that New formula use doesn't
    > > spiral out of control
    >
    > Not my experience at all. I ported https://github.com/expressjs/express <
    > https://github.com/expressjs/express> to 4D.
    >
    >
    > > , and even then, time consuming to maintain.
    >
    > Not my experience at all.
    >
    >
    > > I tried applying it in another case
    > > where there was no UI and a lot of processing in loops. It was slow.
    >
    > Not my experience at all. I see no measurable slowdown.
    >
    > - Aparajita
    >
    > **********************************************************************
    > 4D Internet Users Group (4D iNUG)
    > Archive:  http://lists.4d.com/archives.html
    > Options: https://lists.4d.com/mailman/options/4d_tech
    > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
    > **********************************************************************
    
    
    
    -- 
    Kirk Brooks
    San Francisco, CA
    =======================
    
    What can be said, can be said clearly,
    and what you can’t say, you should shut up about
    
    *Wittgenstein and the Computer *
    **********************************************************************
    4D Internet Users Group (4D iNUG)
    Archive:  http://lists.4d.com/archives.html
    Options: https://lists.4d.com/mailman/options/4d_tech
    Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
    **********************************************************************


**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to