Friendica
Rick Scott 🏳️‍⚧️
Rick Scott 🏳️‍⚧️

Rick Scott 🏳️‍⚧️

shadowspar@ottawa.place

Rick Scott 🏳️‍⚧️

shadowspar@ottawa.place
Tired of technology; still hopeful about what it can do for people. Thoughts posted in whatever language they occur to me in; apologies in advance. 😅
ActivityPub
2024-09-24 22:29:18 2024-09-24 22:24:59 2024-09-24 22:21:27 5598120

Rick Scott 🏳️‍⚧️
Rick Scott 🏳️‍⚧️
hometown - Link to source

Rick Scott 🏳️‍⚧️

11 months ago • •

Rick Scott 🏳️‍⚧️

11 months ago • •


learning about types in javascript is going great
Screenshot of a Node.js console session.

me: define an array called arr, [1,2,3]
node: ok.  [ 1, 2, 3 ]

me: what's the type of arr
node: 'object'

me (thinking): whut


me: define an object called foo.  foo = {"one": "I", "two": "II"}
node: ok.  { one: 'I', two: 'II' }

me: what's the type of foo.
node: 'object'


me: what's the length of arr
node: 3

me: show me arr as a string
node: '1,2,3'

me: assign 'barney' to the "fred"th place in arr
node: ok. 'barney'

me: uhhhh. what's in arr now
node: [ 1, 2, 3, fred: 'barney' ]

me: and what's the length of arr now?
node: 3

me: and what's arr look like as a string now?
node: '1,2,3'


me: ok what's really in arr
node: [ [ '0', 1 ], [ '1', 2 ], [ '2', 3 ], [ 'fred', 'barney' ] ]
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Rick Scott 🏳️‍⚧️

Hubert Figuière
mastodon - Link to source

Hubert Figuière

in reply to Rick Scott 🏳️‍⚧️ • 11 months ago • •

I love JavaScript. It's one of the best designed language.

#sarcasm

#sarcasm
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Hubert Figuière

Rick Scott 🏳️‍⚧️
hometown - Link to source

Rick Scott 🏳️‍⚧️

in reply to Hubert Figuière • 11 months ago • •
@hub "we designed javascript not so that using it would be easy, but so that designing it would be easy" 😂
@Hubert Figuière
  •  Languages
  •  Search Text
  •  Share via ...
⇧