atoponce,
@atoponce@fosstodon.org avatar

For creative out there:

What would you name a variable that holds 1 byte?

"byte" is a reserved word since ES3. Variables cannot start with a digit, so "8bits" isn't valid.

"data", "unit", or "num" could work, although less descriptive.

Capitalizing the first character as "Byte"? IMO, looks funny and might break convention.

A homonym? "bite".

For whatever reason, my brain is refusing to cooperate with me today.

aral,
@aral@mastodon.ar.al avatar

@atoponce A variable that holds one byte?

oneByte

:)

janriemer,

@atoponce Why not

byte_

It doesn't have the disadvantage of _byte (prefix _) being misinterpreted as a private class member.

atoponce,
@atoponce@fosstodon.org avatar

"octet" works perfectly. Can't believe I didn't think of that earlier.

Thanks everyone!

davep,

@atoponce And two bytes can be ocelot.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • javascript
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • GTA5RPClips
  • cubers
  • ethstaker
  • normalnudes
  • tacticalgear
  • cisconetworking
  • tester
  • Leos
  • modclub
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines