| |
|
|
- Page 1 - |
|
| heavy stay and by the Text.
momentarily is it Yes so:
arr chdir chr cls del device display event exec fattr fcopy fdel float fread fwrite gps gui http len long math msg ord phone print rgb rnd round sleep st time trim
the must rather weg.
Klaus showed on Del, and the it to Str could.
the is correct naturally. having I but therefore not so made, there st only then a übliche function (How mid, st$, translate$...) umsetzt, if too The Parameter then How with whom jeweiligen functions in üblicher Order transfer go could.
therefore goes
st(s,2,3) as mid$(s,2,3)
or
st(s,f,r) as translate$(s,f,r)
or
st(20) as st$(20)
with Del was this then not any more possible, wären The same Parameter How mid:
st(s,1,2) mid(s,1,2) del(s,1,2)
clear could one now:
st(1,2,s) as del(s,1,2) -
but the would erstmalig abweichend of a conscience standard.
therefore I had del particular. so too with others functions.
be but not pleased.
idea: better Keywords.
example:
there's len and width and fattr for filesize.
Why not only len or width, len or width on one file could filesize give.
but width(file)? is still Murx, too len(FILE file) is Murx.
Width("Hallo") could naturally 5 his.
Why means not simply a function size and no width More and no len.
print size(string "Hallo") print size(file "/...") print size(display) /// could one aray yield [xx,yy,"width"=xx,"height"=yy] Virtually one yet ultra kompakterer Sprachkern.
Please no "ist not übersichtlich"- Notes, because the I my, should rather and übersichtlicher his as Basic.
experiment:
del get set
you file
float int string
copy device display exec gps gui http msg phone print rgb rnd round size sleep time trim
abschaffbar there theoretical mere through syntax herbildbar
arr
-
the wären then 25 command instead of 32 and so would eindeutiger ableitbar.
on the example:
file del f //fdel file set f s //fwrite file get f //fread file size s
too kürzer mgl:
file del f file f s file f file size f
means instead of fread,fwrite,filesize,fdel only yet allgemeinere Keywords: file, del set get size - Keywords The against too into others command uses go could.
is hold one Gedankenexperiment.
The others Variant The XProfane or yet exzessiver How with PHP: Ultra-many-command its names already quite well its function describe. something like How createImageFromPng etc.
but Perhaps get we Yes the detailed contrary there and afford The Langbefehlsnamen then by XProfan.api.
I mean, unless now To Beginn the development the Language, when then such Überlegungen... |
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
HofK | there bite itself then two items yet kräftiger, also now already a problem are. momentarily means The variable Parameteranzahl and the explanation by the Space-Operator.
on the would like I but not any more dispense, even if even with
print "Test" rgb(255 3 32) rgb( 0 255 128) // a Klammer could yet wegfallen
The clinging not any more both entfallen can, since the Tranzparenz "im Wege" is, but
print "Test" rgb(255 3 32) rgb 0 255 128 print "Test" rgb 255 3 32 // no Backgroundcolor
eindeutig are.
If one verinnerlicht, that the Space-Operator formal of right any, too optionalen, Argumente to davorstehenden Funktionsbezeichnung zusammensucht, can so bypass. In complicated Make or to better Strukturierung is it Yes not prohibited time a Klammer More To settle - see example supra!
To st and del:
The gegenwärtige structure of st is already right vielschichtig. The Variante (s5) in the Image shows but already a generelle Possibility the Systematisierung on.
One mode. so can in a function a structure distinguished and then too Parameterfolgen stick to.
in example fkt(string, mod long, long, long) or fkt(string, long, long [, mod long]) with optionalem mode.
one bräuchte too a Overview all desirable Grundfunktionalitäten with something look ahead what yet come along could/ought to/should. |
|
|
| |
|
|
|
| Klaus Hoffmeister (12.12.15)
If one verinnerlicht, that the Space-Operator formal of right any, too optionalen, Argumente to davorstehenden Funktionsbezeichnung zusammensucht, can so bypass.
No, deference!
the I had already once attempts you from the head To hit - the is correct so not! In Infinity can functions discretionary ornate - whom Spaceoperator interested not How many Parameter a function has - the can itself too to Laufzeit Change through Neudeklaration of Procs in Procs. it can only discern whether it a function is - and then clinging it - or whether it no function is. |
|
|
| |
|
|
|
HofK | ...zusammensucht ...
there Have I not correctly./ To lax framed, in the example becomes from
print "Test" rgb 255 3 32 rgb 0 255 128
print ("Test",rgb(255,3,32,rgb(0,255,128)))
it'll means of right to that rechten rgb clung and then moreover. so meant I with regard to content.
here gives the even a Error, because then in the Endeffekt rgb(0,255,128) no gültige transparency for the left rgb is.
shows but, that the Operator already too its Tücken has. nevertheless is it well!!! |
|
|
| |
|
|
|
HofK | appendix To st:
from visibility the Programmierers are in the Image supra The mutants (s6) and (s7) of st a function with optionalem first Parameter:
st([long suchAbPosition,] string hay, string needle)
"Dabei is this time right unusual the first Parameter optional."
then evtl.
fkt([mod long,]string, long, long )
imaginable. |
|
|
| |
|
|
|
HofK | to new structure the Infinity-Profan functions
HofK (12.12.2015)
... One mode. so can in a function a structure distinguished and then too Parameterfolgen stick to. ...
---------------------------------------------------------------------------------------
appendix To st: from visibility the Programmierers are in the Image supra The mutants (s6) and (s7) of st a function with optionalem first Parameter: st([long suchAbPosition,] string hay, string needle) "Dabei is this time right unusual the first Parameter optional." then evtl. fkt([mod long,]string, long, long ) imaginable.
These Strukturierung I had me with the in front stehenden Parameter about so virtual. The now chosen point-Notation everybody can as assoziatives Datenfeld of/ one Hauptfunktion or Hauptfunktionsobjekt present can, is yet übersichtlicher, rather handhabbar and with want well ergänzbar, as long as The Keywords "passend" are.
iF (13.01.2016)
Long modi falls lane. For this New Features: a=arr.sort(a) a=arr.sortnum(a) a=arr.reverse(a) a=arr.usort(a,fn) Documentation and further functions go nachfolgend this system adjusted. ... a Funktionsgruppe.
The Funktionsstruktur becomes super clear / handhabbar.
there [...] that's all right discernible. |
|
|
| |
|
|
|
| OK calm, be I glad and grateful the You, the so see.
as nächstes would I on display() (later dev.screen) herantasten, hierbei would like I sinngemäß something new achieve:
Getter and Setter mere over Syntax:
display.rotation(worth) <-- setter display.rotation <-- getter
of course could one in this drop as getter too simply display.rotation() use, but then would I me -setter without Parameter- steal.
additionally:
device, display, gps, phone, camera, etc. wander any ex to dev*, z.B. dev.phone.call(...
everything what means hardware/ Sensorik or "Module" the tools are and nothing with the Programming-Language To do has, hike to dev(ice).
additionally:
from display becomes dev.screen, so too items How co120 etc. therein Space get can. very taken bräuchten we then too no cls and no print More, would then dev.screen.clear dev.screen.print - cls and print would then in the profane.api Space find. with Screen can then next to whom Displayfunktionen too Grafikmodi etc. tuned and be something like How dev.screen.screens and dev.screen.set(activeScreen) etc. fit well zueinander/ would.
additionally:
from device becomes then crept dev., gives me too The Possibility The jetzigen expenses of device() rather To gliedern and about one dev.battery herzubilden.
another Piece work, have but I correctly. good feeling so now on the right lane To his. |
|
|
| |
|
|
|
| where it me zerreißt:
The tools-functions by dev(ice) something abzutrennen from the functions the actual Programming-Language, yields generally sense if I me this so anschaue:
dev dev.phone dev.gps dev.bluetooth dev.camera dev.lights
an so on.
so are it too The functions, everybody can seltener as others writes.
so seen would/n the screen/ The displays but too only one "Gerät", means would it dev.screen.
gui against would the Sorting halber dev.screen.gui - but then type one itself Yes stupid - cls and print hätten ihren actual Space in dev.screen.clear and dev.screen.print.
means is the question, whether and to whom Krit. one a Trennstrich zieht.
my idea: functions everybody can often needed, belong in that "root".
thereafter would gui under dev.screen.gui accessible, but in root directly as gui. print would dev.screen.print and is in root as print accessible. so too cls.
so goes the plan but neither integrally on if I me z.B. The function http ansehe there one these too seldom writes and thereafter not in that root heard. but would it dev.http? sooner dev.internet.http? and wieso at all dev(ice) with dev.http? Tja, and then Gibts too z.B. msg - writes one normal neither often. dev.msg?!
so The Überlegung, whether one everything meaningfully under a hat get about in the "dev" umbenannt would.
what would here always fit and can nevertheless beautiful short written go?:
bla bla.phone bla.gps bla.bluetooth bla.camera bla.lights bla.screen bla.msg bla.internet.
Perhaps. is thereafter The Sorting to "dev." then letztendlich still not meaningfully - and it must too somehow moreover weg. therefore take I dev.gps and dev.screen again in that root to gps and screen. |
|
|
| |
|
|
|
| this would my jetziger attempt everything in Einklang To bring: [...] |
|
|
| |
|
|
| |
|
- Page 2 - |
|
|
HofK | this Dialemma has one really increasingly or less into Languages and if I print sometimes not beautiful find, is printf yet worse if it no print gives. but yet right short and one gewöhnt itself on it.
but who often soetwas How GridLayout gl = (GridLayout) findViewById(R.id.GridLayout1); write must and already think, that it sputter, isn't verwöhnt.
into objektorientierten Languages goes one indeed a Konmpromiss one. though it one Integer Objekt gives, can there at least partly yet something vereinfacht note. otherwise would it integrally bad. with file and arr are it right tight outlined reaches, the trouble arise, if the area unscharf and To big and is itself Überlappungen yield and even with "Basisfunktionen".
Device is in the senses the Programming one Perhaps plenty To umfassender genus. [...] The Funktionsnamen with Untergruppe are then still right long. dev.screen.gui dev.screen.gui.msg
Teilung already from the thing since meaningfully, z.B about in the manner screen: scr there really central Graphical User interface: gui keyboard: kbd Kamera: camera connections: com Sensoren/Effektoren: sensor
further "Gedanken":
If fktgrpbsp a FunKTionsGRuPpe BeiSPiel is, then go The functions by fktgrpbsp.fkta fktgrpbsp.fktb addressed and the fkta, fktb must really only in the group eindeutig his. its but sure not helpful in different groups same Funktionsbezeichnungen to have. The Basisfunktionen (root) everybody can üblicherweise almost in each Program writes are sure eindeutig and could theoretical simply so note go.
or a short Kennung? as Kennung for Basisfunktionen comes root. hardly in question, plenty To long and not integrally unmissverständlich. bla. has three letters, kürzer is hardly possible goes but well not at all. integrally omit were only whom point. the could Perhaps syntaktische Problems give or one vergißt whom point often. .cls .gui
or it finds itself again one geniales root-Sonderzeichen? @ watts straight "verbraten", with ~ I had already time another idea on camp. there remaining not plenty. §cls, §gui §print gefällt me neither really.
The others angedeutete Possibility (root) technical so viewing: The Basisfunktionen generally as Funktionsgruppe with of/ one only function? cls.cls can then z.B. but also briefly only cls written go, otherwise power it none sense.
on the schwierigsten becomes probably the selection the prädestinierten functions, so The thing with the Funktionsgruppen too ihren actual sense keeps. |
|
|
| |
|
|
|
HofK | appendix:
straight if I me gui with its Funktionalitäten so ansehe (there come yet which How draw etc. moreover) is
dev.screen.gui.Text and then The whole Parameter dev.screen.gui.grid and then The whole Parameter [...]
no perfect Solution if I me my recent Examples so anschaue. One größeres gui-Dings To style can then onerous go. |
|
|
| |
|
|
|
| Nene no worry,
The often-Genutzen get yes a alias in that root -
so is gui technical too under dev.screen.gui abrufbar but nevertheless simply over gui. so Better get going then gui.grid give etc.
but in the Gegenvergleich moreover take I http from the root, it reicht in dev.internet.http - weils no function is the one often writes so tappt im dunkeln one alias in the root earn had. |
|
|
| |
|
|
|
HofK | with Alias fully ok.
remaining The Überlegung, whether The group device really so big his ought to. really is Yes my ganzes Phone velvet Connection my Device.
but its, alike as becomes, much better as some ideas of "den Großen":
-------------------------------------------------------------------
really disturbing me with the supra erwähnten GridLayout gl = (GridLayout) findViewById(R.id.GridLayout1); Yes a integrally others thing.
as i so starting, was my thought: what Please is the mikrige R there
must quite of no moment or gaaanz important his.
Hab's found out, really should instead of the simple R.id.GridLayout1 tidy
app.resources.layout.activity_main.GridLayout.android:id="@+id/GridLayout1"
or so similar stand. then would The Programmzeile altogether too imposanter and one had More awe to Android Java.
Yes, at resources has one too yet gegeizt and only three letters spendiert, but the Unterpunkt drawable is Yes for not to that drw gekürzt! one is circa settlement ready.
About Syntax can always talk shop, the Topic is ergiebig How the weather. |
|
|
| |
|
|