Uncle Bob's Nibling

777 posts

Uncle Bob's Nibling banner
Uncle Bob's Nibling

Uncle Bob's Nibling

@thedirtycoder

Founder, Object Dementor

Katılım Mayıs 2013
0 Takip Edilen2.5K Takipçiler
Sabitlenmiş Tweet
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
I finally figured out how to get those pesky semicolons and curly braces out of my Java code
Uncle Bob's Nibling tweet media
English
166
3.9K
2.6K
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
My PR to @chesscom where it randomly gives you 400 puzzle points then takes them away was accepted
Uncle Bob's Nibling tweet media
English
0
0
0
402
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
OH: "But if nobody is in a hurry, I’d love to toss it in the backlog and ignore it forever"
English
0
2
3
527
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Copilot really does know what I was going to write
Uncle Bob's Nibling tweet media
English
0
0
6
788
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Linter said not to nest ternaries so I mixed in if statements: const onHideButton = type => { if (hideButton === null) { return sudo ? onParentHideButton(type) : !sudo ? true : undefined } else { return hideButton ? undefined : onParentHideButton(type) }
English
0
0
3
578
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
I write a script called "d" to deploy to prod, then realized I could golf the one character name down to zero! I have since mapped the F3 key to deploy to production. Very satisfying code golfing, plus it cuts our time to launch deployments by 50%
English
0
0
0
421
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
I'm getting better at software reuse. I had an old concurrent program whose purpose I forgot, so I repurposed it as a random string function
English
0
2
2
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Why doesn't VS Code show me exactly how many errors I have? Oh wait
Uncle Bob's Nibling tweet media
English
0
0
0
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Enjoying these React Hooks. Been working on my usePython hook for the last three years. About 60% done so it should be ready in late 2023
English
0
0
0
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Tired: __ to "hide" props in Python Wired: class Thing: def __init__(self, desc): Thing.__str__ = lambda s: desc t = Thing("works") print(t) # => yes, prints "works"
English
0
0
0
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Fortunately the JavaScript floor operator ~~ is idempotent so you can repeat it often to make those important type conversions easy to find at a glance console.log(~~~~~~~~~~~~~~~~(100/7))
English
0
0
5
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Just getting to my bug fix list from 2013
English
0
0
0
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Before you look at my code, it is both clean and not clean at the same time Just kidding, you don't need to look
English
1
2
4
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Writing `def draw() ...` then `g.draw = draw` felt redundant and wasted a line of code so I fixed it g.draw = lambda: \ g.background("skyblue") and \ g.fill("yellow") and \ g.ellipse(g.width, 0, g.height / 2)
English
0
0
0
0
Uncle Bob's Nibling
Uncle Bob's Nibling@thedirtycoder·
Y'all criticize JS for having both null and undefined but IDL takes this to another level, and !NULL is just one of some beautiful "constant variables" (check out the super descriptive !VALUES)
Uncle Bob's Nibling tweet media
English
1
0
3
0