Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

davidr, to python
@davidr@hachyderm.io avatar

How much an insane dinosaur will I be if I ask my junior #developer to use 2 space indents in #python vs the PEP-8 4 space waste-of-whitespace?

Actually, I think I might prefer 3, but I'm pretty sure everyone will hate me if I pick an odd prime...

meejah,
@meejah@mastodon.social avatar

@davidr @alecthegeek I greatly prefer 4 for legibility (and agree with the other comments of "use 100 characters").

I use like 22pt or bigger typeface and still have plenty of room for those occasional (or at least -- should be occasional!) longer lines.

Two-space indenting can be good for JSON or other deeply-nested structures with 'shallow' + delimited blocks, but 4 is "basically standard".
(I did once see a "3" codebase; it is now 4).

elduvelle,
@elduvelle@neuromatch.social avatar

@davidr 3?!?! 😱

davidr, to Finance
@davidr@hachyderm.io avatar

I'm no or genius, but.

As an , if I had any other series that was pretty smooth for several years and then started getting very spiky month to month, I'd look for some underlying malfunction.

davidr, to ComputerScience
@davidr@hachyderm.io avatar

and ball trees seem cool, but require full knowledge of the thing I'm searching for. What if it's 7 dimensional and I only know 4 of the values?

I feel like a "parallel kd tree" with a separate binary index on each dimension would work better here.

Reduce depth. Allow unspecified values. It'd also be a snap to create and search each dim in parallel.

This must already exist...

davidr, to microsoft
@davidr@hachyderm.io avatar

Any company that uses for is fundamentally unserious.

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