Sunday, October 13, 2019

Reading October 2019

I'm getting lazy. It's difficult to remember what I read if I don't get it in the list more quickly. Focus for this month is my own book - I need to put a pin in it and incorporate Eryn's feedback. So if I'm light on reading this month, that's the reason.
  • 10/31/2019:
  • 10/30/2019:
  • 10/29/2019:
  • 10/28/2019:
  • 10/27/2019:
  • 10/26/2019:
  • 10/25/2019:
  • 10/24/2019:
  • 10/23/2019:
  • 10/22/2019:
  • 10/21/2019:
  • 10/20/2019:
  • 10/19/2019:
  • 10/18/2019:
  • 10/17/2019:
  • 10/16/2019:
  • 10/15/2019:
  • 10/14/2019:
  • 10/13/2019: Why American Farmers Are Hacking Their Tractors With Ukrainian Firmware - Motherboard Tech by Vice by Jason Koebler, March 21, 2017.
  • 10/12/2019:
  • 10/11/2019:
  • 10/10/2019:
  • 10/9/2019:
  • 10/8/2019:
  • 10/7/2019:
  • 10/6/2019:
  • 10/5/2019:
  • 10/4/2019:
  • 10/3/2019:
  • 10/2/2019:
  • 10/1/2019:

Monday, September 09, 2019

Reading September 2019

September 2019

Theoretically I have 28 days to read the Divine Cities trilogy at 50 pages/day.  But I'll have plenty of tech training in at the same time.  When I started reading the trilogy it told me it was like 300 pages, but then when I read 15 pages, I was still at 1% complete on the Kindle.  I knew I had way more reading at hand than I had suspected.  Great book so far and I'm still in the first one.

Yep  - that was most of the month, although I have a few other things I need spatter in there and I didn't record some training I'm midway through.  That series was excellent.  I strongly recommend it.

  • 9/30/2019: The Divine Cities
  • 9/29/2019: The Divine Cities
  • 9/28/2019: The Divine Cities
  • 9/27/2019: The Divine Cities
  • 9/26/2019: The Divine Cities
  • 9/25/2019: The Divine Cities
  • 9/24/2019: The Divine Cities
  • 9/23/2019: The Divine Cities
  • 9/22/2019: The Divine Cities
  • 9/21/2019: The Divine Cities
  • 9/20/2019: The Divine Cities
  • 9/19/2019: The Divine Cities
  • 9/18/2019: The Divine Cities
  • 9/17/2019: The Divine Cities
  • 9/16/2019: GraphQL: the Big Picture (77 min) - Adhithi Ravichandran on Pluralsight
  • 9/15/2019: THAT Conference '19: GraphQL, More Like GraphQWOW (63 min) - Jonathan Kupcho on Pluralsight
  • 9/14/2019: The Divine Cities
  • 9/13/2019: The Divine Cities
  • 9/12/2019: The Divine Cities
  • 9/11/2019: The Divine Cities
  • 9/10/2019: THAT Conference '19: 7 Guaranteed Ways to Fail with Microservices (48 min) - Mike Acord on Pluralsight.
  • 9/9/2019: The Divine Cities
  • 9/8/2019: The Divine Cities
  • 9/7/2019: The Divine Cities
  • 9/6/2019: The Divine Cities
  • 9/5/2019: The Divine Cities
  • 9/4/2019: The Divine Cities
  • 9/3/2019: The Divine Cities
  • 9/2/2019: The Divine Cities
  • 9/1/2019: The Divine Cities Trilogy: City of Stairs, City of Blades, and City of Miracles, with an excerpt from Foundryside - Robert Jackson Bennett (2018) - 1400 pages

Saturday, August 10, 2019

Reading August 2019

I read a lot more last month than I thought.  Four full books....actually five.  The omnibus throws my count.  Being on a bike ride with lots of reading time and starting to ride the express bus makes a big difference.

I should note, because I can't find them anywhere and I want to record them, in the last year I also read:
  • A Long Way to a Small Angry Planet - Becky Chambers
  • Ring of Swords
  • Strange Bird - Jeff Van de Meer
I recorded only about 25 pages/day of Superforecasting.  That was a slow read for me.  Particularly as I was doing a lot of training/new job stuff this month.  I had whole days of onboarding.  Made for a bit of burnout.  And much of the training that's not here I started, but I'm finishing in September.  And, I recorded about 80 pages of Amber Spyglass each day.  That was a LONG book (but very enjoyable).

Sunday, July 07, 2019

Information Literacy and Centaurs

The Rise Of 'Fake News' Coincides With Society Outsourcing Its Thinking To Algorithms - Kalev Leetaru, Forbes

"We are outsourcing our thinking to algorithms designed to moderate, monetize, manipulate and mine us."

I had a one-sided conversation with a friend today (it was via email, so there's no response yet) regarding an aspect of this topic.  I was reading a chapter related to crowd sourced decision making, how to increase the accuracy of those decisions on an individual level, and what it means for human plus computer interaction and prediction.  Along the lines of what's referred to as a centaur.  It's my contention that computers as the driver of prediction with human-curated assessment and, more likely, human-based randomization and error insertion, like the the seed in a game, may require the youngest generation to come of age.  E.g. a generation that can get past feeling that computers serve humans and the internet is human centric, despite a very obvious tendency to give in to letting computers make the decisions with very little information literacy applied.  The internet is too new to most of us (still), and machine learning and AI even moreso, for a sizable segment to be able to critically assess what's being presented and how to counteract bad information, or to even think about those issues to the extent that we do anything other than accept what an algorithm tells us as fact.  To the extent that we have blatant echo chambers where contrary information is readily at hand.

Reading July 2019

I know, I know.  Nothing is listed for June.  I've got a hand-written list.  Crazy.  I know.  Who writes by hand.  I'll get it in there perhaps tomorrow.  In the meantime, I'm getting a new list out there so I don't have two hand-written lists.

Tuesday, June 04, 2019

Reading June 2019

  • 6/30/2019: Basic Sagemaker (AWS) demo
  • 6/29/2019: ITIL and AWS
  • 6/28/2019: ITIL and AWS
  • 6/27/2019: Exhalation by Ted Chiang "Anxiety is the Dizziness of Freedom"
  • 6/26/2019: Exhalation by Ted Chiang "Omphalos"
  • 6/25/2019: Exhalation by Ted Chiang "The Great Silence"
  • 6/24/2019: Exhalation by Ted Chiang "The Truth of Fact, the Truth of Feeling"
  • 6/23/2019: Exhalation by Ted Chiang "Dacey's Patent Automatic Nanny"
  • 6/22/2019: Exhalation by Ted Chiang  "The Lifecycle of Software Objects"
  • 6/21/2019: Exhalation by Ted Chiang "What's Expected of Us"
  • 6/20/2019: Exhalation by Ted Chiang  "Exhalation"
  • 6/19/2019: Exhalation by Ted Chiang "The Alchemist's Gate" (Loved this one)
  • 6/18/2019: AWS Certified Solutions Architect - Associate 2018.
    • [57 minutes]  EC2 - lots more EC2 - Load Balancers and ALB and Cloudwatch
  • 6/17/2019: AWS Certified Solutions Architect - Associate 2018.
    • [90 minutes]  EC2 - lots more EC2
  • 6/16/2019: AWS Certified Solutions Architect - Associate 2018.
    • [64 minutes]  EC2, Security Groups, EBS
  • 6/15/2019: AWS Certified Solutions Architect - Associate 2018.
    • [92 minutes]  S3, Glacier, Cloudfront
  • 6/14/2019: AWS Certified Solutions Architect - Associate 2018.
    • [90 minutes]   Intro, 10,000', IAM
  • 6/13/2019: The Refrigerator Monologues, by Catherynne M. Valente (160 pages)
  • 6/12/2019: The Refrigerator Monologues, by Catherynne M. Valente (160 pages)
  • 6/11/2019:  The Refrigerator Monologues, by Catherynne M. Valente (160 pages)
  • 6/10/2019: ITIL and AWS
  • 6/9/2019: ITIL and AWS
  • 6/8/2019: ITIL and AWS
  • 6/7/2019: ITIL and AWS
  • 6/6/2019: ITIL and AWS
  • 6/5/2019: ITIL and AWS
  • 6/4/2019: ITIL and AWS
  • 6/3/2019: ITIL and AWS
  • 6/2/2019: ITIL and AWS
  • 6/1/2019: ITIL and AWS

Wednesday, May 01, 2019

Reading May 2019

Reading, May 2019:
  • 5/31/2019: ‘A plunder of black wealth’: Predatory housing contracts gouged Chicago’s black homeowners, new report says. A report released Thursday is the first to put a dollar amount on how much wealth was extracted from Chicago’s black community in the 1950s and 60s through home sale contracts. - Chicago Sun Times
  • 5/30/2019: Why the Sea is Salt from The Blue Fairy Book by Andrew Lang
  • 5/29/2019: The Master-Maid from The Blue Fairy Book by Andrew Lang
  • 5/28/2019: Beauty and the Beat from The Blue Fairy Book by Andrew Lang
  • 5/27/2019: Rumpelstiltzkin from The Blue Fairy Book by Andrew Lang
  • 5/26/2019: The Tale of a Youth Who Set Out to Learn What Fear Was from The Blue Fairy Book by Andrew Lang
  • 5/25/2019: Aladdin and the Wonderful Lamp from The Blue Fairy Book by Andrew Lang
  • 5/24/2019: Understanding Fake Agile - by Steve Denning on Forbes (good article)
  • 5/23/2019: The programmer who created Python isn’t interested in mentoring white guys
    • You wouldn't get me to argue against acknowledging aspects of this in our own corporate culture, although I think it goes beyond this.  Women who adopt the same approach can be dismissed as not fitting the cultural mold, so it's a two-edged sword.  '“A guy who knows less than that woman might honestly believe [he is right], so they present a much more confident image.” In his experience, van Rossum sees incompetent men’s ideas gaining acceptance more often than merited because they are more forceful in how they present them.'
  • 5/22/2019: The Little Glass Slipper (Cinderella) from The Blue Fairy Book by Andrew Lang
  • 5/21/2019:  The Sleeping Beauty in the Wood from The Blue Fairy Book by Andrew Lang
  • 5/20/2019: The Ultimate Introduction to Big Data by Frank Kane via O'Reilly Learning [30 minutes]
  • 5/19/2019: Cryptid Review with the Game Boy Geek [17:51]
  • 5/18/2019: Cryptid Playthroughy by Trantrum House [25:48]
  • 5/17/2019: The Ultimate Introduction to Big Data by Frank Kane via O'Reilly Learning [30 minutes]
  • 5/16/2019: The Ultimate Introduction to Big Data by Frank Kane via O'Reilly Learning [30 minutes]
  • 5/15/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning - 30 minutes
    • Service Transition
  • 5/14/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning - 30 minutes
    • Service Transition
  • 5/13/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning 
    • Service Design - 30 minutes
  • 5/12/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning 
    • Service Design - 30 minutes
  • 5/11/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning 
    • Service Design - 30 minutes
  • 5/10/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning 
    • Service Design - 30 minutes
  • 5/9/2019: MHTA Spring Conference
  • 5/8/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning 
    • Service Design - 30 minutes
  • 5/7/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning
    • Service Design - 30 minutes
  • 5/6/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning Service Design - 30 minutes
  • 5/5/2019: Medieval Scholars Joust With White Nationalists. And One Another by Jennifer Schuessler, New York Times
  • 5/4/2019: How To Lead a Conversation Between People Who Disagree - TED Talks, Eve Pearlman (January 2019) - [9:08]
    • They stuffed both sides in an online group and gave them "facts and information."  This presupposes everyone wants facts and information.
    • "dialogue across difference is essential to a functioning democracy"
  • 5/3/2019: Ashton Kutcher May Testify in Trial of His Ex's Alleged Killer - Jezebel
  • 5/2/2019: ITIL Foundation Exam hosted by Jill Knapp, Pearson IT Certification via O'Reilly Learning [224 minutes]
    • Lesson 1: Laying the ITIL Groundwork
    • Lesson 2: Service Strategy
  • 5/1/2019: The Lifecycle of Software Objects by Ted Chiang (150 pages)

Monday, April 01, 2019

Reading April 2019

Updated the code a little - if I'm looking for it, it's in the Sublime 2.7 folder and it's called  I can count books at 50 pages a day, although I try to fit them within the context of a month.  Didn't include the over 300 pages of self written novel I read yet again and I'll log ITIL training next month.

Reading for April 2019...

Sunday, March 10, 2019

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 3, Paint a Room - L-Shaped

Here it gets a bit more interesting...the goal is L-shaped.  I should have let people pick the kind of room and used one app.  That's not a difficult mashup.

This time the challenge was also to make it accessible via mobile.  The nature of Vue is that it works on mobile so I did.....nothing.  That's not entirely true, I added /embedded/result to the URL to make it show on the screen.

So here are three screens showing the fiddle working on my mobile phone.  Reactive changes working as expected.

And some code:

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 3, Paint a Room - Circle

Variation a circular room.  I find that to be less about coding and more about reminding myself of basic geometry.  It's less code than the square room in some respects.

All Fiddles:

JS Fiddle Code:

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 3, Paint a Room - Square

Room area....did I already do  a room area/paint calculator?  I did...I did that room calculator.  This one is for finding the amount of paint.  So it's a bit of a mash up of the last exercise (pizzas) with a Math.ceil() and the area calculator.  This first swipe took moments.

The Code:

Sunday, March 03, 2019

Breakfast - Elsie's

Eryn and I rolled up to North Minneapolis to have breakfast with Kyle at Elsie's this morning.  It was a balmy -13F when we left if the details were correct.  Certainly felt that cold.  Eryn likes their breakfast steak, so I eat her left over eggs and hashbrowns with a pancake.  I think the pancake was overkill.  I realized we should have brought her bowling ball and shoes.  Then I realized 8:00 a.m. is too early for bowling.

For Ingress purposes, the trip home is amusing as I roll through the Riverview area and she tap hacks 30 or 40 L8 portals. Good way to top off.

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 3, Pizza Slices, Version 2

The second version of the pizza exercise was about changing the formula.  It was only a bit of math.  I was confused because my Math. functions weren't working right.  But it had nothing to do with Math.  It was all about my lack of a return keyword and some bad parens.  I've become better at sussing those out - fewer initial assumptions on my part.


The math is a bit more difficult to work out mentally than the other pizza exercise.  I almost had to write it down to make sure it was right.  I didn't do the part with use "piece" or "pieces" depending on 0, 1, many.  That seems like busywork.

The Vue.js code:


Saturday, March 02, 2019

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 3, Pizza Slices

Exercise 8: Pizza Party

I think my default is now Vue - I'm getting lazy.  I have the numeric validation figured out and the hooks, so it's just easy to cut and paste and modify.  Or fork and set as base and modify, if you're fiddling.  The big rule in this partial pieces of pizza.

There's a part b to ask how many pieces each person wants and then calculate full pizzas.  That's primarily different math, but I"m going to do it anyway.

Friday, March 01, 2019

March 2019 Reading

Look at that....generated with Python.  Like a champ.  I feel cool.  Sort of.  Vaguely. Definitely easier than typing it by hand.  Did you see February?  All 28 days and then some.  Rocked it.

Ha....lots of book reading this month, so I'm cheating and I get credit for 50 pages a day, because it's brutally hard to keep up otherwise.

  • 3/31/2019: Unreleased Book I'm Writing
    • 320 pages of reading.  So overall, I think I read 1500 pages this month easy.  I'm counting this because it chewed up so much of my time doing a slow re-read to edit it.  Done as of 4/1 and I can move on to doing something with it and writing something new.
  • 3/30/2019: Unreleased Book I'm Writing
  • 3/29/2019: Unreleased Book I'm Writing
  • 3/28/2019: Unreleased Book I'm Writing
  • 3/27/2019: The Outsider: A Novel by Stephen King
    • Enjoyed it - sort of a Cthulhu / alien vibe in a part, but lots of his work has an aliens we can't understand they're so strange vibe lately.  Read most of it on the trip to and from House on the Rock with the family. 
  • 3/26/2019: The Outsider: A Novel by Stephen King
  • 3/25/2019: The Outsider: A Novel by Stephen King
  • 3/24/2019: The Outsider: A Novel by Stephen King
  • 3/23/2019: The Outsider: A Novel by Stephen King
  • 3/22/2019: The Outsider: A Novel by Stephen King
  • 3/21/2019: The Outsider: A Novel by Stephen King
  • 3/20/2019: The Outsider: A Novel by Stephen King
  • 3/19/2019: The Outsider: A Novel by Stephen King
  • 3/18/2019: The Outsider: A Novel by Stephen King
  • 3/17/2019:  The Outsider: A Novel by Stephen King
  • 3/16/2019: 
    Hothouse by Brian Aldiss
    • Loved this book - yeah, maybe Blish hated the science, but it was fun.  All about a future so distant the world stops turning and plants start to take over.
  • 3/15/2019: Evolution of Natural Language Generation: An article to draw attention towards the evolution of Language Generation Models by Abhishek Sunnak
    • Great article
  • 3/14/2019: Hothouse by Brian Aldiss
  • 3/13/2019: Hothouse by Brian Aldiss
  • 3/12/2019: Hothouse by Brian Aldiss
  • 3/11/2019: Hothouse by Brian Aldiss
  • 3/10/2019: Doctor Who and The Krikkitmen by Douglas Adams (James Goss)
    • Felt a bit disjointed overall.  Sort of like a Doctor Who episode.  But part of it was the nature of pulling together old material to create a treatment.
  • 3/9/2019: Doctor Who and The Krikkitmen by Douglas Adams (James Goss)
  • 3/8/2019: Doctor Who and The Krikkitmen by Douglas Adams (James Goss)
  • 3/7/2019: Doctor Who and The Krikkitmen by Douglas Adams (James Goss)
  • 3/6/2019: Doctor Who and The Krikkitmen by Douglas Adams (James Goss)
  • 3/5/2019: Doctor Who and The Krikkitmen by Douglas Adams (James Goss)
  • 3/4/2019: The Surprising Power of Simply Asking Coworkers How They're Doing by Karyn Twaronite
    • I've read similar things: ask them how they're doing AND ask them where they see themselves going (for the day, for the quarter, for their career).  Show real interest.
  • 3/3/2019: KeyForge: Match #3, Ben v. Tom [17:05]
    • Ah....there's a Sting in play.  Maybe I missed that on the last game.  It moves fast enough that sometimes you can't tell what they're up to. That makes more sense with all that aember out there.  Three games in and they're still missing basic mechanics, however, so I don't have to feel bad about missing some things.
  • 3/3/2019: How to be Employable Forever by Tom Vander Ark on Forbes
    • What you conceive.
    • mindset--collaborative, interdisciplinary, ethical, empathetic, entrepreneurial and global
    • “Learning things that matter; learning in context; learning in teams. Envisioning what has never been and doing whatever it takes to make it happen. Do that 20 times and you will be employable forever," said Richard Miller, President of Olin College of Engineering. 
    • Very discovery sprint like, but rather than dumping folks into the sprint, they're taught how to channel it at discovery.
  • 3/3/2019: Recruiters Reveal the Buzzwords to Avoid on LinkedIn and How to Better Tell Your Career Story on Inc Magazine by Amy George
    • Use words in line with how you talk. Generally avoid these as vague or hard to define for those reviewing your resume.  I use ideation sometimes, but I don't think it's in my resume: synergize/synergy, tribe, game changer, silo, snapshot, bandwidth, traction, cutting edge, granular, omnichannel, paradigm shift, ideation, deliverable, digital transformation and touch base.
  • 3/3/2019: 3 Ways To Highlight Your Skills In A Job Interview on Forbes by Ashira Prossack
    • It's what I tell people, including the intern candidate last week.  Focus on what you can do for the company.  Use very specific examples.  She recommends showing off your soft skills, but depending on your presentation, that can sometimes come through regardless (listening, asking questions, driving to a deeper answer with more detail).
  • 3/3/2019: Visual GraphQLProgramming - Tomek Poniatowicz on
  • 3/3/2019: You may need Laziness in your Javascript - by Sergio Marin
    • He's using iterators to only return the needed values one or a few at a time instead of huge duplicated array.
  • 3/2/2019: Battle of the Beanfield - Wikipedia
    • There were 100,000 people at the 1984 festival at Stonehenge!
    • 1300 officers for half as many peace convoy participants
    • There were English hippies in 1985?  That surprised me.
    • There's a 1991 documentary Operation Solstice (Channel 4)
    • Neo-druid leader Arthur Uther Pendragon was arrested on each and every summer solstice between 1985 and 1999 whilst trying to access Stonehenge. [that's very persistent].
    • Roy Harper, Back to the Stones (song)
    • The Levellers - Battle of the Beanfield (song)
  • 3/2/2019: Rose Brash, 20, is led away by police at the Battle of the Beanfield, June 1985
  • 3/2/2019: Keyforge Match #2, Harry v. Tom [30:17]
    • There were so many things wrong here.  The bad terminology doesn't bother me like it does some folks in the comments.  After all, I sometimes call the houses "suits".  But after only playing two total games, even I know he should be turning in his yellow tokens for a key.  It's not an option, it's mandatory.  "If the active player has enough Æmber to forge a key during this step, they must do so."  Lot of other weirdness as well, but that's the one that kept distracting me.
  • 3/1/2019: The battle for the future of Stonehenge - Charlotte Higgins on The Guardian
    • writer Jacquetta Hawkes...“every age has the Stonehenge it deserves”.
    • images of daggers gouged out in the Bronze Age to Christopher Wren’s neatly carved signature. “You’d have thought he’d have known better,” said English Heritage archaeologist Heather Sebire disapprovingly
    • Clonehenge, a blog about Stonehenge replicas:
    • Victorian Stonehenge was a place of day-trippers, bicycle outings, Sunday school jollies, cricket matches and concerts. The craze for the new discipline of geology saw visitors chipping chunks out of the stones for their collections (a stall rented out chisels).
    • Even Samuel Pepys complained of being ripped off by shepherds and innkeepers.
    • Stonehenge is not even, properly speaking, a henge. 

Thursday, February 21, 2019

So much ***damn snow...

This is what my driveway looks like, and there's more snow on the way this weekend. Not owning a snowblower is leading to some rather tall mounds at the end of the driveway. Usually Eryn heads down there to top it off once in a while, but the dog has been peeing near the road (and a bunch of other dogs as well) so the snow mounds have dog pee in them. She's not willing to crawl around in dog pee for me. That makes me sad.  If we get an appreciable amount, it will be time to move to throwing the snow against the existing mounds and just reducing the width of the driveway to a single car (and getting rid of the side area).


Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 3, Room Area

Chapter 3 be all about da math!

Exercise one (or 7, depending on where you start) is calculate the area of a room, with challenges related to using a UI, validating the numbers, and offering meters and feet.  I cheated and did both meters and feet as separate UI bits rather than a drop down because I'm lazy.  I get the drop down.

This does give me an interesting idea...something to ideate on myself.

Here's the Fiddle:

The output....

And the code...

Monday, February 18, 2019

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 2, Retirement Calculator

I realized I claimed credit for reading all of chapter two, but had an exercise left, so I thought I'd better get it done today after a bit of Far Cry New Dawn so I'm not strictly lying to myself (my days are sometimes off in my reading list, but in general I try to keep them aligned within a day or two)..


Exercise 6 was a retirement calculator.  Amusingly, I can see in that last Fiddle where I'm reusing Vue code and leaving in bits, like the default being Scooter, where it doesn't matter because I'm working with numerics, not strings.  So....ignore those parts.  At the very least, I don't want to hear about it because it doesn't matter except for elegance/purists.  It's not like I have someone sitting nearby to code review my hobby activities.

I did learn a bit more about the difference between computed properties and functions in Vue, so that was useful in the context of this snippet.  No methods in there, but....that's because I really didn't need them once I started playing around a little more.

The code...less than in some of the others.  Vue takes a lot of the work out of things:

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 2, Simple Math

I was right.  The simple math exercise was really, really simple.  Use Vue and it'll lock the format to numeric, has a UI, autoupdates the answers and, with a min and a bit of javascript (validity.valid) enforces 0+, aka no negative numbers, per the exercise challenges.


Output working as advertised:

The Fiddle code...

Sunday, February 17, 2019

Exercises for Programmers: 57 Challenges to Develop Your Coding Skills - Chapter 2, Mad Lib (4) - Vue.js style with Drop Downs

Wow...the length of these titles is getting a bit off the hook.  Maybe I need to go with EfP57 as a short form.  I lose my keywords; but I don't care about my keywords.

The challenge for the madlib exercise was to put some control logic in the system.  I didn't like the acceptance criteria, because there's some knowledge of what's being entered that's necessary.  To avoid that, I thought I could force the user down a path of limited choices....aka a select/dropdown.  In that case, the branching logic is pretty straightforward because you know the possible values.  I see where to implement it in the display of the sentence using the computed property.  Getting the drop downs set up in the first place was the hard part.  Vue isn't intuitive to me.  Although, and I am ashamed, flipping "key" to "name" in the bound property was so simple I'm embarrassed it took as long to intuit as it did.  This will also be the first exercise with code so long it doesn't fit in an easy image, so all I'm posting is the textarea with scroll.

So here's the fiddle:
Here's all my fiddles:

Here's my oops where I use the key instead of the name.  I tried to get to the object via some collection notation [index] and failed repeatedly even though I got back a viable object inserting those indexes.

You can see it inserting the indexes into the concatenated sentence above.  That IS hilarious.

And there it works.  The trick was changing :value="verb.key" to :value="".  Simple.  Easy Peasy.  But I couldn't find an example on the web.  All sorts of other examples, just not that one.  And as you can see from the "person" code, I borrowed the initial code for modification and the example of how to flip it wasn't there.  Well, for as stupid as that was, I feel undeservedly smart. And I can finally move on to exercise #5 "Simple Math" which must be easier.