Pezo - Zoltan Peto
10/19/2019, 12:52 PMsetA(A a), setB(B b), setC(C c)
or (setA a), (setB b), (setC c)
as different functions,
I’d like to have ([set A] a), ([set B] b),([set C] c)
.
So next time when I want to refactor/rename A
, or even set
to something else, I’d be able to do that easily.
The reason I got there is that I am really into Refactoring and my belief is the easiest Refactoring method is(/must be) Renaming so its a shame not being able to Rename stuff in 0.1 sec. (just changing the characters, not even addressing the change in meaning!) Without easy, secure renaming (lol) my productivity can’t even start.Pezo - Zoltan Peto
10/19/2019, 1:06 PMLeonard Pauli
10/19/2019, 1:22 PMput book in bookshelf
might be nicer (as in help you solve your problem faster, in some cases) than add object to container
). Then, you may switch between jargon and abstraction in the view layer as you go.
Identifiers should strive to be non-entangled, eg. setTemperature termostat 15deg
could instead be set temperature of termostat to 15deg
. If we then also have set volume of speaker to 20db
, the set
identifier could be (auto) linked as the same "action type", and thus renamed to, eg. "adjust" (or only rename when used with a temperature (then, "adjust" will become an alias to "set" with a specific association to "temperature")).Pezo - Zoltan Peto
10/19/2019, 2:03 PMDan Cook
10/19/2019, 3:49 PMGarth Goldwater
10/19/2019, 4:32 PMPezo - Zoltan Peto
10/19/2019, 5:01 PMDan Cook
10/19/2019, 5:18 PMPezo - Zoltan Peto
10/19/2019, 6:01 PMBreck Yunits
10/19/2019, 6:01 PMPezo - Zoltan Peto
10/19/2019, 6:04 PMBreck Yunits
10/19/2019, 6:24 PMBreck Yunits
10/19/2019, 6:27 PMAnd can you maybe give me an insight why these things are not widespread yet?1. It was not theoretically obvious that visible syntax characters are not necessary. 2. Tree Languages are only substantially better than BNF languages when you have tools that leverage the advantages of Tree Languages. BNF Languages + BNF Languages Tools > Tree Languages. From what I've seen so far Tree Languages + Tree Languages Tools > BNF Languages + BNF Languages Tools
Breck Yunits
10/19/2019, 6:28 PMBreck Yunits
10/19/2019, 6:28 PMBreck Yunits
10/19/2019, 6:28 PMBreck Yunits
10/19/2019, 6:28 PMBreck Yunits
10/19/2019, 6:29 PMBreck Yunits
10/19/2019, 6:29 PMPezo - Zoltan Peto
10/19/2019, 7:35 PMshalabh
10/19/2019, 11:44 PMid
for the cross reference and the string name as metadata attached to the id kind of solves this (with tooling support, see unison).
But the original post is talking about something else too. Specifically if I have a name setA
and decide to rename A to B, I want the name to automatically become setB
. Even with id references, this would have to be manual because setA
is the metadata attached to id1 and getA
is the metadata attached to id2
etc. Unless we go a bit further and instead of attaching string metadata to the id, define multiple pieces of metadata to link to the entities set
and A
.
The main requirement is you want only one place where the string A
exists and it is referenced everywhere else by its id.Dan Cook
10/20/2019, 4:03 AMVladimir Gordeev
10/20/2019, 12:15 PMPezo - Zoltan Peto
10/20/2019, 12:20 PMVladimir Gordeev
10/20/2019, 12:24 PMPezo - Zoltan Peto
10/20/2019, 12:52 PMVladimir Gordeev
10/20/2019, 1:10 PMBreck Yunits
10/20/2019, 6:59 PMPezo - Zoltan Peto
10/20/2019, 7:52 PMPezo - Zoltan Peto
10/20/2019, 7:56 PMchrispsn
10/20/2019, 9:03 PMPezo - Zoltan Peto
10/21/2019, 3:53 PMPezo - Zoltan Peto
10/21/2019, 4:00 PMset
and A
.
The main requirement is you want only one place where the string A
exists and it is referenced everywhere else by its id.
-------
Yes exactly! I want this! And it is really interesting because it gets to a weird place, where every name must be unique across the system! And if we are working with multiple systems which merge (have interaction) any time in future (like web) we might need global unique names!
Which seems is totally opposite of the standard view of “avoid global things”. (Okay, sure, it’s mainly against vars, not consts.)
However, if we are able to rename things easily I am totally ok with using globally unique names.