These are chat archives for ractivejs/ractive

29th
May 2018
Chris Reeves
@evs-chris
May 29 2018 00:13
You can sort the object, and I think the order will be maintained
objects are weird though
so an array may be easier to reason able
by sort the object, I mean create a new one by inserting the keys in the order you wish for them to appear
Cerem Cem ASLAN
@ceremcem
May 29 2018 00:20

so an array may be easier to reason able

I agree. the reason I choose objects over arrays is multiple: 1. I have an array with a primary key (so an object naturally takes care of that), 2. searching that primary key in the object is far faster than doing the same thing for an array

by sort the object, I mean create a new one by inserting the keys in the order you wish for them to appear

I always stringify the data back and forth, so I'm not sure this will be persistent across database reads

by the way, I forgot to mention that Rich's https://ractive.js.org/Ractive-decorators-sortable/ seems something I was looking for. If I can understand the source code, then I might implement the same behaviour
Cerem Cem ASLAN
@ceremcem
May 29 2018 00:26
....and I remember what: ractivejs/ractive#3221
let me shuffle a bit :)
Cerem Cem ASLAN
@ceremcem
May 29 2018 00:41
currently no luck with shuffling
Arnaud Dagnelies
@dagnelies
May 29 2018 14:28
I think I'm getting crazy / blind ... no idea
could anyone please spot what's the problem with:
Cerem Cem ASLAN
@ceremcem
May 29 2018 14:30
Cerem Cem ASLAN
@ceremcem
May 29 2018 14:38
there was a typo buddy: Playground
Joseph
@fskreuz
May 29 2018 14:48
That typo was hard to spot :grin:
Chris Reeves
@evs-chris
May 29 2018 15:23
what's the longest you've ever bug hunted a typo?
I wrote an extra two unit tests over a typo while I was fixing a ractive corner case a week or so ago
Cerem Cem ASLAN
@ceremcem
May 29 2018 15:25
mine was never above 1 day :P
Chris Reeves
@evs-chris
May 29 2018 15:25
think I spent an hour on that one
Cerem Cem ASLAN
@ceremcem
May 29 2018 15:27
I want to ask another question, related with that: do you write without looking at keyboard?
Chris Reeves
@evs-chris
May 29 2018 15:41
most of the time, yes
Arnaud Dagnelies
@dagnelies
May 29 2018 15:41
I'm a bit ashamed of that, but I still look while typing ...but I've already had several colleagues who could type blindly while talking with you ...and really fast
Chris Reeves
@evs-chris
May 29 2018 15:42
I can't type and talk, or things I'm saying come out in the text in weird ways
Arnaud Dagnelies
@dagnelies
May 29 2018 15:43
yes, that's a rare talent indeed, actually, I just know of one who could type and talk
the others do either the one or the other
Chris Reeves
@evs-chris
May 29 2018 15:43
I do have colleagues who write code with two fingers still
Arnaud Dagnelies
@dagnelies
May 29 2018 15:43
in my experience though, those who type blindly also type fairly faster
Chris Reeves
@evs-chris
May 29 2018 15:44
I average between 40 and 60 wpm on most typing tests, but I feel like I can code faster than I can transcribe text
I suspect most people who can type like mad for human languages would have a hard time with all of our symbols and punctuation
I occasionally find the odd semi colon at the end of a sentence in my emails
anyone have to switch between very different grammars, like c# to vb?
Chris Reeves
@evs-chris
May 29 2018 15:51
every time, I get to go back and remove the ;s and change && and || to and and or
or, if there's possible need for short-circuiting (read: proper) conditionals, AndAlso and OrElse
Chris Reeves
@evs-chris
May 29 2018 16:00
@ceremcem regarding the shuffle flag, that only works for arrays when they are updated in a non-shuffling way (not with splice, etc) so that they can move items around based on content
I think what you're after would be the source flag with the ability to key into an object, which sounds like it would be super useful for syncing data stores and hard to get in a plugin form
Cerem Cem ASLAN
@ceremcem
May 29 2018 17:25
typing blindly gives the opportunity that you can read what you type and check if it has any grammar issues.
some people claims that "programmer thinks 10 times and write 1 time, so writing fast has no value while programming"
I'm totally disagree with that. for example, I can write what I'm speaking as I'm speaking. this lets me save extra brain resources :)
Joseph
@fskreuz
May 29 2018 17:58

what's the longest you've ever bug hunted a typo?

a day-ish

do you write without looking at keyboard?

Yes. No if it's a new/someone else's keyboard, especially if the right-hand symbols change places/differ in size. :smile:

Cerem Cem ASLAN
@ceremcem
May 29 2018 18:18

No if it's a new/someone else's keyboard, especially if the right-hand symbols change places/differ in size.

I even refuse to write anything if places are changed and/or sizes are different. I don't buy a computer unless Ctrl key is at left corner (eg. apple keyboard)

Chris Reeves
@evs-chris
May 29 2018 19:14
new/someone else's keyboard
what kills me is the ergonomic/wavy keyboard
especially the ones that are only kind of wavy
Cerem Cem ASLAN
@ceremcem
May 29 2018 19:33
then you would love this
Joseph
@fskreuz
May 29 2018 19:53
lol
or https://www.youtube.com/watch?v=8za_4g5zCOM or https://www.youtube.com/watch?v=LnxSTShwDdQ (because gitter embeds huge previews).
Cerem Cem ASLAN
@ceremcem
May 29 2018 19:57
I thought they are totally joke at the beginning :D
Chris Reeves
@evs-chris
May 29 2018 21:06
lol at the keyboard with rear view mirrors