Loop holes

Received this feedback today: "Refactored your refactor cause there were some loop holes"(sic)

Ok, buddy. I haven't been told there were holes in my logic since my first semester programming class in college, but let's take a look at what you found. Looked it up and there weren't any holes in the logic, he just wanted the logic moved from the subclass into the base class. Got it, not sure why he didn't just say it that way. It's a reasonable refactor, but my logic was flawless the way it was.

Addendum: Was working on some code at work that's been in production for 3 years (I've been there less than 5 months) that was dropping records from a parsed file. No one noticed, no client complained, I just had to deal with it for an upgrade. Had to trace the logic out and found out that the logic was bad. You want to complain about my logic? Noted.

Published on 09 October 2017 at 20h20 by Dave, tags ,

Dumb Little Tasks

When discussing losing weight on a podcast I listen to, Shop Talk, one of the co-hosts mentioned that people generally recommend a food log, and the other responded: "My whole life is dumb little tasks like this, like I need one more." If that doesn't describe my whole life I don't know what does. That's the stuff I need to find and automate instead of piling more on.

Published on 28 August 2017 at 21h23 by Dave, tags ,

No data mining allowed on facebook?

A friend of mine started a private facebook group for personal finance discussions, with the caveat that the group isn't to be used for marketing products, "business opportunities" (i.e. MLM), data mining, or recruiting. Heh, no data mining? I'm not sure you understand how facebook works. I know it's not what she meant, but it made me laugh. I joined the group anyway.

Published on 27 August 2017 at 06h20 by Dave, tags ,

Who does Lisa Fleisher think is hoarding the wealth?

Just saw this "article" from Bloomberg pop into my news feed on Google Now: We Know Where All The Money Is Hiding

Let me save you the click: this Bloomberg staff writer (I assume) is asserting that retirees are hoarding all the money to get the economy moving because they are spending 8% less than they can comfortably afford. Um, no. If you think that 8% means anything when put against the massive wealth redistribution from the middle class to the upper class over the last 40 years you're either naive or colluding.

This argument is the bullshit designed by the wealthy to keep everyone lower than them on the economic ladder fighting among each other over the scraps leftover from the wealth grab so that they don't realize where the money actually went. Fuck you for pushing this false narrative and fuck you for trying to make retirees look bad. Most of those people are on inadequate fixed incomes until they die and they have no idea how long that will be so they need to stretch their savings out for an indefinite length of time.

Literally the only leg your argument has to stand on its that *some* of the retirees are obscenely wealthy and they fit into the group that's actually crippling middle class growth, but you've segmented poorly which makes your argument lose credibility to anyone that's even glanced at this issue.

Published on 20 May 2017 at 07h38 by Dave, tags ,

Wrote my first Slack Slash Command!

I'm surprised at how easy it was to do. I went into the slack web interface and created an app through there and enabled the slash commands, then added a new slash command that posts to an API end-point. I wrote an API end-point in my application at work to return a JSON with the different AB tests we have on production for each of our web sites recently so I wanted to point to that. I used {"code":"200", "message":"24,145,146"} as the return but Slack uses "text" instead of "message" so I added a new endpoint that called the same function but with a 'slack' flag and if the flag is true it writes the output to "text" instead of "message" and then slack dumps that into the channel when it receives the slash command. I went back into the web interface and installed the app to the team. Super easy to do and now my front-end team that doesn't have access to the application but constantly needs to know which tests are on production have a simple way to get it without asking me! Empowering users, and saving my time. I like it!

Published on 05 May 2017 at 16h53 by Dave, tags , ,

Those spotlight photos on the login screen on Windows 10 highlight some really beautiful places on the globe...

... but seeing them makes me sad that I'm where I am instead of somewhere more beautiful. It's a weird feeling, because I love where I live and it's a vacation destination in its own right, but most days I'm not in the vacation parts of it. I'm in the concrete jungle part of it, and it just doesn't compare. I think I'm feeling a little bit of "the grass is always greener" though. I really do love it here. Thanks for the existential crisis, Microsoft.

Published on 03 May 2017 at 08h04 by Dave, tags ,

Let's code!

Found a great article about the coding tools to learn/work with in 2017: http://tutorialzine.com/2016/12/the-languages-frameworks-tools-you-should-learn-in-2017/ I'd like to see if I can add a few of these to the resume this year. I've actually already started playing with some of it, which is great! Progressive Web Apps: Haven't touched yet. The Bot Hype: I've been running a hubot instance which integrates into a personal slack team that I set up with my wife. I've made a few small commits to some hubot plugins, and I used one I installed (http-post-say, where you can POST in data and hubot will speak it into a room) as an integration with another side project. Front-end Frameworks: Interested in testing out ember.js and vue.js, but haven't touched either yet. I'm also super interested in figuring out how service-workers can extend my capabilities. The cloud: I already deal a little bit with AWS at work, and I have a side project that I'm hoping to deploy on AWS or Heroku very soon, just trying to get it into MVP state. Machine learning: Haven't touched, and don't really have any plans to right now. JavaScript: In messing with hubot I've had some exposure to CoffeeScript, which is cool, but I haven't yet touched on ES2017 (or ES2016 even!) or TypeScript, but I'm interested in exploring how these technologies will help me. C#, Python, and Java aren't in my wheelhouse right now. I messed with C++, Python, and Java in college, but it's bene years and I haven't maintained those skills. I'm using Ruby at home, though I'm not sure if I'm on Ruby 2.2 or 2.3. We are currently upgrading to PHP7 at work, though I'm not sure any of my work projects are really set up to take advantage of any of the new features. Swift3 from Apple interests me. I've been wanting to start building mobile applications for years but every time I try I end up getting called off to do something else. I have 2 side projects that will benefit from having mobile applications, so this should be the year that I figure this out. I'm probably inclined to start with Android because it's free, then move to Apple once I'm making some money. For back-end I'm playing with a Node.js blog right now, but I'm not sure that's going to help me really understand Node unless I start hacking on it. I've been interested in Node for awhile now so I might try to use it in a side project or two. For databases, PostgreSQL has been coming up on my radar quite a bit lately so I might try to figure out the advantages of using that versus MySQL, which is my go-to. I've been using sqlite3 in some Rails projects, and it's been fine for my needs too. My hubot experiments introduced me to Redis since hubot uses it as a "brain" and I'm intrigued by what else I can do with it. For IDEs I plan on installing Atom to try it out. I already use git extensively but I'm starting to play around with Node more and more so I'll be checking out yarn to check it's advantages over npm. Docker containers are probably the future, or at least along the lines of what the future will look like, so I would really like to play with that a little bit and see if I can make those work for me. Cool stuff coming this year!

Published on 21 March 2017 at 07h48 by Dave, tags ,

Powered by Publify | Photo Startup stock photos