Re: How do you force resources to download these days?

2017-06-04 Thread Kirk Brooks via 4D_Tech
David,
I tried using this most recently when I was building some html templates
for display in web areas. I found it problematic but couldn't really
understand why. Simple setup - 4D server running on one machine, update the
resources folder with things like html pages, css, js, etc. On dev machine
call the NOTIFY RESOURCES FOLDER MOD command. On another client machine not
see the changed files propagate. Get frustrated. Restart everything to see
changes happen.

On Sun, Jun 4, 2017 at 8:32 PM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Mon, Jun 5, 2017 at 10:22 AM, Justin Carr via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > NOTIFY RESOURCES FOLDER MODIFICATION
>
>
> Thanks J. Hmmm. Added in V11. Hmm. I'm clearly the last to know.
>
> Any words of wisdom from the field on use of this command in
> multi-developer mode? I'm trying to update constants around the joint.
> Right now I'm doing EXECUTE ON CLIENT and Execute on client to have each
> machine run the right code locally.
>
> Thanks!
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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

4D Printer Central down?

2017-06-04 Thread John Baughman via 4D_Tech
Did Partner Central just go down? Trying to submit a bug report and cannot get 
to the log in window for Partner Central. I can get to 4D.com  
but when I click on Existing 4D Partner? Log In the browser hangs.


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

Re: How do you force resources to download these days?

2017-06-04 Thread Justin Carr via 4D_Tech
On 5 Jun 2017, at 12:32 pm, David Adams via 4D_Tech <4d_tech@lists.4d.com> 
wrote:
> 
> On Mon, Jun 5, 2017 at 10:22 AM, Justin Carr via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> NOTIFY RESOURCES FOLDER MODIFICATION
> 
> Thanks J. Hmmm. Added in V11. Hmm. I'm clearly the last to know.
> 
> Any words of wisdom from the field on use of this command in
> multi-developer mode? I'm trying to update constants around the joint.
> Right now I'm doing EXECUTE ON CLIENT and Execute on client to have each
> machine run the right code locally.

I'm pretty sure that's exactly what this command is for. Not sure about 
constants though. I think they only get loaded at startup. So this command will 
probably put them in each developer's Resources folder but they won't see them 
till they restart. If only there was a feature request which asks for a way 
around this... :)

http://forums.4d.fr/Post/EN/19514761/0/0/
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How do you force resources to download these days?

2017-06-04 Thread David Adams via 4D_Tech
On Mon, Jun 5, 2017 at 10:22 AM, Justin Carr via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> NOTIFY RESOURCES FOLDER MODIFICATION


Thanks J. Hmmm. Added in V11. Hmm. I'm clearly the last to know.

Any words of wisdom from the field on use of this command in
multi-developer mode? I'm trying to update constants around the joint.
Right now I'm doing EXECUTE ON CLIENT and Execute on client to have each
machine run the right code locally.

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

Re: How do you force resources to download these days?

2017-06-04 Thread Justin Carr via 4D_Tech
On 5 Jun 2017, at 9:50 am, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Grrr. Didn't figure out how to find this in the docs. There used to be a
> tickbox.

Could be but I don't think I ever used it. We just run a method with the EOS 
bit checked which contains the NOTIFY RESOURCES FOLDER MODIFICATION command. 
That's been pretty solid.

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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread David Adams via 4D_Tech
On Mon, Jun 5, 2017 at 4:28 AM, Jim Dorrance via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Constants are meant to be used. If you do not re-initialise everything,
> you might have code built with previous constant values.

In my feature request, I put this down as definitely an 'at your own risk'
feature. With that said, you could run into trouble from modifying
*anything* in Design and not starting again. Forms, methods, etc.
Restarting for constants is a pain and it keeps people from using them.
Getting more people using constants seems like a Very Good Thing. Also,
this feature should only be allowed in interpreted mode. Heck, it could be
a menu item in Design without a command for all I care. Maybe that's
better, actually.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

How do you force resources to download these days?

2017-06-04 Thread David Adams via 4D_Tech
Grrr. Didn't figure out how to find this in the docs. There used to be a
tickbox.

If anyone knows off the top of their head and can answer with minimal
effort, I'd appreciate a reminder of how you force resources to download
automatically from 4D Server when 4D connects remotely. I'm not seeing
components sync automagically. V16 something.

I'm 100% sure that the problem is in front of the keyboard
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Deploying with R release?

2017-06-04 Thread Wayne Stewart via 4D_Tech
John,

No 'r' features will be included in a dot release until 17.0. 

No bug fixes will be made to 16r2, its frozen in time now. However bug fixes 
will be incorporated into 16r3 which is nearly final now and r4, r5. 

16r6 is of course 17.0. 

If you go down the r path, and I see no reason why you shouldn't, you are 
committing yourself to continuing through the r releases as the way of 
obtaining bug fixes. 

Regards,

Wayne
Sent from my iPhone

> On 5 Jun 2017, at 07:21, John Baughman via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> v16 R2 has a feature that I want to include in an upgrade from v15 to v16. I 
> am pondering the consequences of deploying an R release...
> 
> 1. It will not include any bug fixes since v16.0
>   16R2 Modified date = 3/15/17
>   16 .1  Modified date = 4/19/17
>   16.1 hf1 Modified date = 5/30/17 
> 
> 2. R2 is not exactly backwards compatible with 16.1 due to changes in the 
> language. So far I have found this true in the Listbox and Object themes.
> 
> 3. I am not entirely convinced that new features in the R2 release will in 
> fact see the light of day in 16.2.
> 
> 
> Welcome any comments.
> 
> John
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Deploying with R release?

2017-06-04 Thread John Baughman via 4D_Tech
v16 R2 has a feature that I want to include in an upgrade from v15 to v16. I am 
pondering the consequences of deploying an R release...

1. It will not include any bug fixes since v16.0
   16R2 Modified date = 3/15/17
   16 .1  Modified date = 4/19/17
   16.1 hf1 Modified date = 5/30/17  

2. R2 is not exactly backwards compatible with 16.1 due to changes in the 
language. So far I have found this true in the Listbox and Object themes.

3. I am not entirely convinced that new features in the R2 release will in fact 
see the light of day in 16.2.


Welcome any comments.

John


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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jim Dorrance via 4D_Tech
> On Sun, Jun 4, 2017 at 2:40 PM, Kirk Brooks via 4D_Tech <

The reload thing is a deal on apps with an extensive startup process.



> Constants are meant to be used. If you do not re-initialise everything,
> you might have code built with previous constant values.
>
>
>
> --
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v16 Component Compiler error

2017-06-04 Thread Bob Finnerty via 4D_Tech
Kirk,

First of all, 4D has now released the source of its components such as
4DPop, so your on your own for debugging.

On my component compiling error, I think the problem is thus:

My Compiler folder next to the 4D app is where I keep the critters. Being
lazy, I put the 4DPop components interpreted in there, along with the
compiled components of my own.

This mix causes problems when I recompile a component update. If all the
components in the folder are compiled, no problem; if some are interpreted,
I get the "method=variable name" error, and warnings about duplicate method
names for the component being compiled. Take out the interpreted
components, problem goes away.

So I'm guessing the compiler gets confused with components in mixed
environments. Didn't on prior versions - but perhaps because I was using
4D's compiled 4DPop components



On Sun, Jun 4, 2017 at 8:17 AM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Nigel,
>
> On Sun, Jun 4, 2017 at 6:15 AM, Nigel Greenlee via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > ​...
> > so it seems someone at 4D needs to pop in to the pop plugs and fix some
> > things.
> >
> ​Nice.
>
> ​But seriously - why would you ​build an app with 4DPOP in it?
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
>
> *- Edmund Burke*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Bob Finnerty via 4D_Tech
Kirk,

I've been growing my constants list exponentially for this very reason.
Since object attributes are case sensitive, the opportunity for maddening
bugs is high. Attribute name constants eliminate this. I group them with a
prefix for easy typeahead and code clarity ("PREF Save error to log attrib"
with value "pref_save_error_to_log_b") so the value also tells me the
typing of the value.

On Sat, Jun 3, 2017 at 9:40 PM, Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> David,
>
>
> On Sat, Jun 3, 2017 at 10:30 PM, David Adams via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > * Constants for strings as they make @$%@#$%@#% stupid errors from typos
> a
> > thing of the past, well, at least where they use them. This is super
> > helpful when working with property names in C_OBJECT. (Really what we
> need
> > are definable schemas for C_OBJECT contents that the compiler checks -
> > custom types - but that's a whole different discussion.)
> > ​
> >
> ​Agree. ​
> ​Since I've been using c-obj more and more for parameter passing and just
> general data handling in memory I've started using constants more than
> before for object keys exactly because of the need for keys to be exact.
> With constants the key label can be more semantic (ie: module specific
> thingy name) even when the actual key is more generic (ie: "name").
>
> And you suggestion for being able to re-load constants is good.
>
> You know what else would be good is if constants weren't stored in
> Resources but in a separate Constants folder. Why? Because they don't need
> to ship with the db if it's compiled and it's a pain to remember to remove
> them after building the compiled app.
>
> And ultimately it would be preferable for them to be integral to 4D rather
> than as an add on. ​
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
>
> *- Edmund Burke*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Kirk Brooks via 4D_Tech
David,

On Sat, Jun 3, 2017 at 11:40 PM, David Adams via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> On Sun, Jun 4, 2017 at 2:40 PM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> > You know what else would be good is if constants weren't stored in
> > Resources but in a separate Constants folder. Why? Because they don't
> need
> > to ship with the db if it's compiled and it's a pain to remember to
> remove
> > them after building the compiled app.
> >
>
> Huh, interesting idea. Do you mid submitting that as a feature request and
> see what we get back?

http://forums.4d.fr/Post//19516139/1/

​I bet the option on the build routine is easier and would be perfectly
acceptable for me. ​

> And ultimately it would be preferable for them to be integral to 4D rather
> > than as an add on. ​
> >
>
> Agreed. I've thought so since custom constants were first available in 4D
> 6.5. Holding breath.I think that would mean storing them in the
> struture, which has some downsides and doesn't seem to be the way 4D is
> heading.

​Good point. Maybe what we need is just a more robust editing option? 4DPOP
isn't bad - but like you say it's a little cumbersome. And having some
tools for surveying multiple files for things like duplicates and
repetitions would be good. ​

I'm not sure how best they could integrate them natively in
> design, but it sure would be nicer. Maybe some kind of define statement?
>
> Define(Theme;Label;Value) // Value can be Long, String, Real, or Boolean
>
> Define("Error Constants";"Error level is informational";1)
> Define("Error Constants";"Error level is warning";2)
> Define("Error Constants";"Error level is error";3)
> Define("Error Constants";"Error level is critical";4)
> Define("Error Constants";"Error level is fatal";5)
>

​I'm going to have to try that and see if it makes things easier for me. I
do like the idea of adding them on the fly. Coupled with an (interpreted
only) RELOAD CONSTANTS command it would greatly ease the headache of adding
constants early rather than later. Typically I sketch out a process (I
still use paper or a whiteboard) and then start roughing it out in 4D. Once
the fundamental actions are working I start filling in more error handling,
options and all the stuff that makes it good for users but more
complicated. Sometimes the constants I'm going to want are apparent early
on but more times than not it's not really solid until deeper in.

The reload thing is a deal on apps with an extensive startup process.

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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

Re: v16 Component Compiler error

2017-06-04 Thread Kirk Brooks via 4D_Tech
Nigel,

On Sun, Jun 4, 2017 at 6:15 AM, Nigel Greenlee via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> ​...
> so it seems someone at 4D needs to pop in to the pop plugs and fix some
> things.
>
​Nice.

​But seriously - why would you ​build an app with 4DPOP in it?

-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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

Re: v16 Component Compiler error

2017-06-04 Thread Nigel Greenlee via 4D_Tech
Kirk

Probably unlrelated..but i am getting an error from 4D pop in V16-i used the 
application maker and when it build the application i then get and error..so it 
seems someone at 4D needs to pop in to the pop plugs and fix some things.

> On 4 Jun 2017, at 05:00, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Bob,
> I'm betting that one of the components has the offending culprit in it -
> either a variable name or method name. And the method may be invisible
> which makes it even more challenging to identify.
> 
> On Sat, Jun 3, 2017 at 8:41 PM, Bob Finnerty via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Well, yes
>> 
>> But I may have stumbled on the answer: It seems to be related in some way
>> to 4DPop - when I remove these components, the error disappears..
>> 
>> Not sure why, exactly
>> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
> 
> *- Edmund Burke*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Arnaud de Montard via 4D_Tech

> Le 4 juin 2017 à 12:04, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Re-loading constants. Run Menu, Restart Interpreted: Alt Command I.
> 
> Faster than finding a command and executing it.

Nice!
First time I realize its not only a toggle compiled/interpreted  :-(

-- 
Arnaud de Montard 




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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jim Dorrance via 4D_Tech
Re-loading constants. Run Menu, Restart Interpreted: Alt Command I.

Faster than finding a command and executing it.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread David Adams via 4D_Tech
> I have been a fan of custom constants since I started using 4D, probably
because
> my background in C meant that I couldn’t imagine a programming
environment which
> didn’t have them (whether as preprocessor directives or enumerations).

How have you coped with no enumerated types and no structs? I regularly
feel the urge to resort to self-harm because 4D has no structs and I never
used C. I mean, structs (and similar) a language feature from the
1970s...not exactly some fancy modern novelty.

>Boolean constants: why? What more than True and False do you need?

Now there is an entirely fair question which I failed to answer well in my
feature request. Happily, Miyako answered it well:

I think what you are after is more like

MyMethod (with_this_option;without_that_option)

instead of

MyMethod (True;False)

Yes. Lables that mean true or false - I would use them a lot. Here's an
example:

Method_DoThingsAndStuff (True) // Eh?
Method_DoThingsAndStuff (Open file) // That's better.

> Removing constants from compiled / distribution code. For completed
databases, yes. For components, no: I use constants
> exported from components as a way of communicating with them, as
selectors or parameters.

Good point. Yeah, better that this is an option. I'm still getting used to
4D's components and haven't thought everything through. Sometimes, I want
exacty what you describe, other times what I want is to make sure that
extra constants are tossed to avoid duplication up at the host database
level. Best would be if 4D would check for duplicate constants and notify
us. Righ now, you can stack multiple identical constants into the same
system.

> I remember being bewildered when I started using 4D that the 4D Chart
didn’t using constants for the huge
> array of selectors passed to its routines, but needed me to remember
numeric selectors.
Oh, that's been fixed! They killed 4D Chart ;-) Oddly enough, the new
charting (toy) feature GRAPH supports 8 chart types but they're specified
by numerics without constants. I added my own custom constants for these.

> But I must confess to being a monster, sadly.
You. Monster. I think that a lot of fancy conversations about programming
style boil down to typing speed. I'm probably in the 80-90% in typing speed
and I
loveReallyLongNamesThatCompletelyDescribeWhatAMethodDoesClearlyAndCompletely.
Others don't. I had a boss that typed like a chicken looking for corn. His
names were, well, brief. No philosophy, it was just hard for him to get
anything done because of his limited keyboard skills. There would have been
no problem spreading some philosophy on top of that as an excuse but, well,
it came down to only having a finger on each hand for typing.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jeremy Roussak via 4D_Tech
#define informational 1
#define warning 2
…

Hmm. I think I’ve seen that somewhere before.


Jeremy Roussak
j...@mac.com



> On 4 Jun 2017, at 06:40, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> 
> Define(Theme;Label;Value) // Value can be Long, String, Real, or Boolean
> 
> Define("Error Constants";"Error level is informational";1)
> Define("Error Constants";"Error level is warning";2)
> Define("Error Constants";"Error level is error";3)
> Define("Error Constants";"Error level is critical";4)
> Define("Error Constants";"Error level is fatal";5)
> 
> Thoughts?

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

Re: Custom comments: Lots of tips, more wanted!

2017-06-04 Thread Jeremy Roussak via 4D_Tech
David,

I have been a fan of custom constants since I started using 4D, probably 
because my background in C meant that I couldn’t imagine a programming 
environment which didn’t have them (whether as preprocessor directives or 
enumerations).

I think some of your suggestions are wonderful. RELOAD CONSTANTS would be great 
to have while developing. But a couple puzzle me.

Boolean constants: why? What more than True and False do you need?

Removing constants from compiled / distribution code. For completed databases, 
yes. For components, no: I use constants exported from components as a way of 
communicating with them, as selectors or parameters. I remember being 
bewildered when I started using 4D that the 4D Chart didn’t using constants for 
the huge array of selectors passed to its routines, but needed me to remember 
numeric selectors.

But I must confess to being a monster, sadly.

Jeremy


Jeremy Roussak
j...@mac.com

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