Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35624 > unrolled thread

Splice array of arrays with objects.

Started byJonas Thörnvall <jonas.thornvall@gmail.com>
First post2018-09-22 02:16 -0700
Last post2018-09-22 04:00 -0700
Articles 5 on this page of 25 — 4 participants

Back to article view | Back to comp.lang.javascript


Contents

  Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 02:16 -0700
    Re: Splice array of arrays with objects. Julio Di Egidio <julio@diegidio.name> - 2018-09-22 02:45 -0700
      Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:07 -0700
        Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:09 -0700
          Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:15 -0700
            Re: Splice array of arrays with objects. JJ <jj4public@vfemail.net> - 2018-09-23 05:44 +0700
              Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 15:51 -0700
              Re: Splice array of arrays with objects. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-09-23 09:28 +0200
                Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-23 02:01 -0700
                  Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-23 02:03 -0700
        Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:24 -0700
          Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:28 -0700
            Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:43 -0700
          Re: Splice array of arrays with objects. Julio Di Egidio <julio@diegidio.name> - 2018-09-22 03:40 -0700
            Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 03:47 -0700
              Re: Splice array of arrays with objects. Julio Di Egidio <julio@diegidio.name> - 2018-09-22 04:00 -0700
                Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 04:02 -0700
                Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 04:03 -0700
                  Re: Splice array of arrays with objects. Julio Di Egidio <julio@diegidio.name> - 2018-09-22 04:09 -0700
                    Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 04:21 -0700
                      Re: Splice array of arrays with objects. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-09-22 16:17 +0200
                        Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 09:30 -0700
                    Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 04:45 -0700
                Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 04:16 -0700
            Re: Splice array of arrays with objects. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-09-22 04:00 -0700

Page 2 of 2 — ← Prev page 1 [2]


#35643

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2018-09-22 16:17 +0200
Message-ID<24c1714d-4e22-643e-ba47-e4b5990283cb@PointedEars.de>
In reply to#35640
Jonas Thörnvall wrote:
> Well natural language open to interpretation Julio but i had 178 in the
> last IQ test i did,

Given what you post and how you post, that is so unlikely as to be impossible.

> so in the medical psychiatric term,

Indeed, it is much more likely that you are a(n untreated) mental patient
who is just imagining these things and is seeking attention here.  It is
called “narcissistic personality disorder”.

> i am far from it.

It is obvious now (at the latest) that you are beyond mental sanity.  This
is also indicated by the fact that in your next follow-up you assume that
there is a conspiracy against you because there are things that you do not
understand, a tell-tale symptom of paranoid schizophrenia.

> But then again medical terminology about just as useful as Javascript
> syntax in real life.

A common fallacy coming from mental patients: “I do not have a problem,
psychiatry and medicine are the actual problems.”

You should seek professional help immediately.

You have no clue what you are talking about, "Javascript" included.

You are using Google Groups to post to Usenet which does not work without
"Javascript".  Very likely neither would your Web browser (according to
StatCounter, browsers based on V8 or SpiderMonkey have a global market share
of ca. 90 % now):

<http://gs.statcounter.com/>

This is not counting the many client-side and server-side applications that
are based on Node.js.


PointedEars
-- 
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
  -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

[toc] | [prev] | [next] | [standalone]


#35644

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-09-22 09:30 -0700
Message-ID<1b915781-c7cf-41ac-953e-c22c55fa133d@googlegroups.com>
In reply to#35643
Den lördag 22 september 2018 kl. 16:17:50 UTC+2 skrev Thomas 'PointedEars' Lahn:
> Jonas Thörnvall wrote:
> > Well natural language open to interpretation Julio but i had 178 in the
> > last IQ test i did,
> 
> Given what you post and how you post, that is so unlikely as to be impossible.
> 
> > so in the medical psychiatric term,
> 
> Indeed, it is much more likely that you are a(n untreated) mental patient
> who is just imagining these things and is seeking attention here.  It is
> called “narcissistic personality disorder”.
> 
> > i am far from it.
> 
> It is obvious now (at the latest) that you are beyond mental sanity.  This
> is also indicated by the fact that in your next follow-up you assume that
> there is a conspiracy against you because there are things that you do not
> understand, a tell-tale symptom of paranoid schizophrenia.
> 
> > But then again medical terminology about just as useful as Javascript
> > syntax in real life.
> 
> A common fallacy coming from mental patients: “I do not have a problem,
> psychiatry and medicine are the actual problems.”
> 
> You should seek professional help immediately.
> 
> You have no clue what you are talking about, "Javascript" included.
> 
> You are using Google Groups to post to Usenet which does not work without
> "Javascript".  Very likely neither would your Web browser (according to
> StatCounter, browsers based on V8 or SpiderMonkey have a global market share
> of ca. 90 % now):
> 
> <http://gs.statcounter.com/>
> 
> This is not counting the many client-side and server-side applications that
> are based on Node.js.
> 
> 
> PointedEars
> -- 
> Use any version of Microsoft Frontpage to create your site.
> (This won't prevent people from viewing your source, but no one
> will want to steal it.)
>   -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

You are indeed low IQ Thomas, well you would never even be near to pass one in a million test at Mega society.

You are a very good parrot though, and have excellent memory, your abilities lacks elsewhere.I do not say i am better but i am definitly smarter and more creative than anyone that ever visited this NG.

That is a fact.

[toc] | [prev] | [next] | [standalone]


#35641

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-09-22 04:45 -0700
Message-ID<611ec54d-82ea-46e5-bc17-65467513374c@googlegroups.com>
In reply to#35638
Den lördag 22 september 2018 kl. 13:10:02 UTC+2 skrev Julio Di Egidio:
> On Saturday, 22 September 2018 13:03:46 UTC+2, Jonas Thörnvall  wrote:
> 
> > I am far to stupid to get offended, by foul words Julio
> 
> Idiot, rookie and spammer are not foul words, Jonas.
> 
> But I do wish I knew better English: I am going to learn some legalese...
> 
> *Plonk*
> 
> Julio

Are you trying to say that you now try to make the Javascript syntax exquisitely hard to read and understand as a way to keep it a tradesecret in your little "boxed guild" of script programmers LoL

Well that was not the intention at all with script languages nor with hypertext and CSS.

[toc] | [prev] | [next] | [standalone]


#35639

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-09-22 04:16 -0700
Message-ID<e99b6330-b764-4e06-a31d-d5cfdcba0e4d@googlegroups.com>
In reply to#35635
Den lördag 22 september 2018 kl. 13:00:40 UTC+2 skrev Julio Di Egidio:
> On Saturday, 22 September 2018 12:47:10 UTC+2, Jonas Thörnvall  wrote:
> 
> > Well that is not an insert Julio....
> 
> Well, sorry for not guessing what you meant, idiot.
> 
> > track[tracknr].midiMess.splice(trackEvent, 0, { time: clock, data0:
> > message.data[0], data1 :message.data[1], data2: message.data[2] })
> 
> (Use spacing appropriately, all the more so when you are a fucking rookie.)
> 
> And now what's wrong with that, you bloody spammer??  A rethorical question,
> this is simply the last time I waste my time on you, promised...
> 
> *Plonk*
> 
> Julio

And by the way there is far to little activity in the NG you should be happy i spam you with my little questionings. Before the syntax of Javascript is far from perfect.

By the way i still think that

track[tracknr].midiMess[trackEvent].splice(0,{time:instime,data0:144,data1:insnote,data2:insvel});

 Is apparently a much more logical and intuitive syntax.
And it is so much easier to read.

[toc] | [prev] | [next] | [standalone]


#35634

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-09-22 04:00 -0700
Message-ID<1ef95e2b-45a6-4d86-baf2-3ad956bdde95@googlegroups.com>
In reply to#35631
Den lördag 22 september 2018 kl. 12:40:47 UTC+2 skrev Julio Di Egidio:
> On Saturday, 22 September 2018 12:24:46 UTC+2, Jonas Thörnvall  wrote:
> > Den lördag 22 september 2018 kl. 12:07:09 UTC+2 skrev Jonas Thörnvall:
> 
> > > I mean it make sense to remove the full object "Event element" midiMess.
> > > But thought i could splice objects of midiMess one at a time, but maybe I
> > > must update them all like when doing push new object?
> 
> Splice is defined for arrays, not for objects.  To "update" objects, you just
> assign values to their properties, e.g.:
> 
>   rack[recTrack].midiMess[trackEvent].data0 = "144";
> 
> (or, 144: you keep mixing them by they are not the same...)
> 
> > Well this is what i mean it is all so fucking confusing?
> 
> No programmer has ever said programming is easy: in fact, by simple trial
> and error, it's rather guaranteed you'll be forever a crank...
> 
> HTH,
> 
> Julio

Well anyhow apparently my guess was close enough, it worked.
track[tracknr].midiMess.splice(trackEvent,0,{time:instime,data0:144,data1:insnote,data2:insvel}); 
What does the curled brackets denote here that it is an object or?

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.javascript


csiph-web