experchange > javascript

Jonas Thörnvall (09-25-18, 11:24 PM)
Den tisdag 25 september 2018 kl. 21:47:09 UTC+2 skrev Silvio:
[..]
> so you can use that syntax with every class that defines an update
> method with two parameters.
> Please see above.


Well you are correct in everything you said, but as i said from the beginning syntax expressions is about choices.

Yeah but why build the expressions around such fucked up unreadable semantics i asked, and you basicly tell well that the way it yes.

Yes it is bananas.
Evertjan. (09-25-18, 11:37 PM)
<jonas.thornvall> wrote on 25 Sep 2018 in comp.lang.javascript:

> Well you are correct in everything you said, but as i said from the
> beginning syntax expressions is about choices.


What the hell is a "syntax expression"?

> Yeah but why build the expressions around such fucked up unreadable
> semantics i asked, and you basicly tell well that the way it yes.


That is called "logic".

> Yes it is bananas.


So your enormous IQ even is instrumental in recognizing kinds of fruit?
Jonas Thörnvall (09-25-18, 11:46 PM)
Den tisdag 25 september 2018 kl. 23:37:28 UTC+2 skrev Evertjan.:
> <jonas.thornvall> wrote on 25 Sep 2018 in comp.lang.javascript:
> > Well you are correct in everything you said, but as i said from the
> > beginning syntax expressions is about choices.

> What the hell is a "syntax expression"?


Well it is rules of a programming language, combination of one or more constants, variables, operators, and functions they make up the syntax. Syntax is just the programming equivalent of semantic expressions, maybe you heardof those or maybe you were born blip blopping.

> > Yeah but why build the expressions around such fucked up unreadable
> > semantics i asked, and you basicly tell well that the way it yes.

> That is called "logic". No the choice of syntax are in cases idiotic when in come to arrays, the guys who did the string functions had a much better logic.


> > Yes it is bananas.

> So your enormous IQ even is instrumental in recognizing kinds of fruit?


You are not only intelligent you are also witty LoL
[..]
Silvio (09-26-18, 12:06 AM)
On 25-09-18 23:24, Jonas Thörnvall wrote:
> Well you are correct in everything you said, but as i said from the beginning syntax expressions is about choices.
> Yeah but why build the expressions around such fucked up unreadable semantics i asked, and you basicly tell well that the way it yes.
> Yes it is bananas.


Your mental approach to programming is the cause of your confusion.

A programming language has nothing in common with a natural language.
The latter is organic and you can get the point of a story without
understanding every subtle detail. You may even succeed in telling your
own stories using broken sentences and still have people mostly
understand you.

Programming languages do not work that way. Unless you master the
essential details and subtleties you can not really understand code
written by others. And although you may succeed partially in creating
something using trial-and-error this will not scale to anything
meaningful, let alone flawless.

You do not program, you mess around with (sample) code until it does
something that resembles your objectives. In the process you share your
musings with yourself in this newsgroup.

If you had devoted 5% of the time you wasted this way to actually
learning programming and, in this case, JavaScript you could have
achieved much much more. But you will probably perpetuate your
stubborn-es and disregard my advice.
Jonas Thörnvall (09-26-18, 12:55 AM)
Den onsdag 26 september 2018 kl. 00:06:40 UTC+2 skrev Silvio:
[..]
> learning programming and, in this case, JavaScript you could have
> achieved much much more. But you will probably perpetuate your
> stubborn-es and disregard my advice.


Well i am quite on my way to a working midisequenser in javascript, that actually requires a little effort. maybe i have programmed for some 300-400 hundred hours and i am learning constantly. But it is fucking weird when theapi and syntax is the main obstacle from achieving ones goal to finnish it..
Evertjan. (09-26-18, 10:52 AM)
=?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall> wrote on 25
Sep 2018 in comp.lang.javascript:

> Den tisdag 25 september 2018 kl. 23:37:28 UTC+2 skrev Evertjan.:
> Well it is rules of a programming language, combination of one or more
> constants, variables, operators, and functions they make up the syntax.
> Syntax is just the programming equivalent of semantic expressions,


That would be "expression syntax".

> maybe
> you heard of those or maybe you were born blip blopping.


Hey, it is you who claims to be even more intelligent than Trump.

>> > Yeah but why build the expressions around such fucked up unreadable
>> > semantics i asked, and you basicly tell well that the way it yes.

>> That is called "logic".


> No the choice of syntax are in cases idiotic when in come to arrays, the
> guys who did the string functions had a much better logic.


Whether it is better or not, it is still "logic" that drove them.

So your "no" is wrong.

>> > Yes it is bananas.

>> So your enormous IQ even is instrumental in recognizing kinds of fruit?

> You are not only intelligent you are also witty LoL


Thank you.
[..]
Evertjan. (09-26-18, 10:58 AM)
<jonas.thornvall> wrote on 26
Sep 2018 in comp.lang.javascript:

> But it is fucking weird when the api and syntax is the main obstacle
> from achieving ones goal to finnish it.


So now you claim to be officially fucking weird Finnish?

Finnish is also an official minority language in Sweden.
Jonas Thörnvall (09-26-18, 11:48 AM)
Den onsdag 26 september 2018 kl. 10:58:31 UTC+2 skrev Evertjan.:
> <jonas.thornvall> wrote on 26
> Sep 2018 in comp.lang.javascript:
> So now you claim to be officially fucking weird Finnish?
> Finnish is also an official minority language in Sweden.
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)


Well you prudent litte anal retentive ENTP i am sloppy deal with it, finish wanking to spelling, i hope that settles your unrest soul from nightmares about words hunting you.
Evertjan. (09-26-18, 12:30 PM)
=?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall> wrote on 26
Sep 2018 in comp.lang.javascript:

> Den onsdag 26 september 2018 kl. 10:58:31 UTC+2 skrev Evertjan.:
> Well you prudent litte anal retentive ENTP i am sloppy deal with it,
> finish wanking to spelling, i hope that settles your unrest soul from
> nightmares about words hunting you.


The whole group is trying to help you in your donquixotical quest,
and you respond by insulting them.

Did you ever thy to help others in this group?
Jonas Thörnvall (09-26-18, 01:45 PM)
Den onsdag 26 september 2018 kl. 12:30:14 UTC+2 skrev Evertjan.:
> =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall> wrote on 26
> Sep 2018 in comp.lang.javascript:
> The whole group is trying to help you in your donquixotical quest,
> and you respond by insulting them.
> Did you ever thy to help others in this group?
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)


Well you are an insult to humanity Evertjan, i never start picking on someone, and i never pick on anyone until he totally deserves it.
Face the fact you got it coming, you worked for it.
Jonas Thörnvall (09-26-18, 01:53 PM)
Den onsdag 26 september 2018 kl. 12:30:14 UTC+2 skrev Evertjan.:
> =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall> wrote on 26
> Sep 2018 in comp.lang.javascript:
> The whole group is trying to help you in your donquixotical quest,
> and you respond by insulting them.
> Did you ever thy to help others in this group?
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)


Well i ain't exactly the syntax expert in the group LoL
And it is mainly syntax questions.
John G Harris (09-26-18, 07:31 PM)
On Tue, 25 Sep 2018 12:35:00 -0700 (PDT), Jonas Thörnvall
<jonas.thornvall> wrote:

<snip>
>Yeah what the fuck is going on here, if you have not read the splice method. <snip>


The answer to your question is obvious :
Read the definition of the splice method.

John
Jonas Thörnvall (09-26-18, 08:28 PM)
Den onsdag 26 september 2018 kl. 19:32:03 UTC+2 skrev John G Harris:
> On Tue, 25 Sep 2018 12:35:00 -0700 (PDT), Jonas Thörnvall
> <jonas.thornvall> wrote:
> <snip>
> <snip>
> The answer to your question is obvious :
> Read the definition of the splice method.
> John

I did and concluded it it an uttetly poor replacement for a delete and an insert.
a[3].delete(5).insert("splish,"splosh");
John G Harris (09-27-18, 11:49 AM)
On Wed, 26 Sep 2018 11:28:22 -0700 (PDT), Jonas Thörnvall
<jonas.thornvall> wrote:

>Den onsdag 26 september 2018 kl. 19:32:03 UTC+2 skrev John G Harris:
>I did and concluded it it an uttetly poor replacement for a delete and an insert.
>a[3].delete(5).insert("splish,"splosh");


Suppose a's element 3 holds the value 17.

Do you agree that
x + a[3]
would then mean add 17 to x?

If you do, what do you think
17.delete(5)
should do ?

John
Jonas Thörnvall (09-27-18, 12:38 PM)
Den torsdag 27 september 2018 kl. 11:49:24 UTC+2 skrev John G Harris:
> On Wed, 26 Sep 2018 11:28:22 -0700 (PDT), Jonas Thörnvall
> <jonas.thornvall> wrote:
> Suppose a's element 3 holds the value 17.
> Do you agree that
> x + a[3]
> would then mean add 17 to x?
> If you do, what do you think
> 17.delete(5)
> should do ?
> John


In the former case it is clear that .delete is a method that work upon an array of elements. It has one argument/parameter it simply must be the number of elements to delete. What could it else be, you have funny suggestions.Replace it with splice bwahahahah, or that it would mean arr[17].delete(5)would subtract 5 from arr{17], no no no that method would be named subtract it is quite different noone in their right mind would suggest that. Thesewould be possible methods on integers and variables but they seem utterlyredundant arr[17].subtract(5), arr[17].add(5)

Well if there also was a method working on variables called .delete i don'tsee it would mean a shit, unless you specify it in the programming language. Or did you have a suggestion?
And since operators like +,- already part of the arithmetic operations i don't see the use of any of them working on variables or values.

Your point is lost to me.

Similar Threads