Category: Ruby + Rails
-
DHH – Software’s Warrior
Warrior? That’s a bold statement, and possibly widely discarded by DHH himself and the industry at-large. Really, though, think through the HerosJourney, what are the basic traits of the Hero – courage, vision, principles. DHH on courage. The article RailsIsOmakase presents an underlying trait of DHH – courage to stand his ground, regardless of the…
-
Rails + Webpack + Webpack-Manifest + React + Babel 7 + HMR – [chunkHash]
I’m writing this quick one up so you can save the 1.5 hours that I spent debugging this. Terms :HMR – HotModelReload – webpack-dev-server option to trigger browser-auto-refresh when webpack detects filechange (and re-compiles) Here’s what I’m using : Rails 5.2 Webpack-Manifest Gem Yarn Webpack (-cli) Webpack-dev-server @babel/core @babel/preset-react The issue : When running webpack-dev-server…
-

Building an App – EKG
In this series, I’ll build an app in step-by-step posts that will produce an EKG (heart monitor) display. The inspiration is the Phillips IntelliVue MP50 (found at my local hospital): Tools we’ll use Pretty much the whole point of this series… to learn some new tools and techniques: Rail 6 – coming from a Rails…
-
Brown Shoes Introduction
I will be writing about lessons-learned as I move through the implementation of Shoes on Jruby.. known as Brown Shoes. Repo – What’s what where The Brown Shoes Repo is at : https://github.com/shoes/shoes/tree/brown_shoes – a branch on Shoooes Github project. Right now there are two parallel implementations within the brown_shoes branch. At ./lib/shoes is the…
-
Pros & Cons – Rails vs. .NET Study
I’m debating between moving my career in one of two ways : Rails Study ruby on rails, leave Microsoft development, move my career in a new direction. I feel immediate happiness in this endeavor. Pros Test-driven development “baked in” to the development software Installation and environment setup is free. No extra computer is required. Ruby…
-
Sexy is only Skin Deep in Software
So I just watched the “5 minute video” by Iron Designer for .NET Very sexy. Very very sexy. As an MSDN subscriber (thanks to my corporate sponsors employers) and MCP (SQL Designer test or something, I’ve forgotten), this is very enticing… AND .NET has failed me in several situations where I was trying to do…
-
Anagrams can bite back !!!
Jim’s article demonstrates this : Don’t say CRUD say FUC’D. I Love It!
-
Coverage (rcov 0.5.0.1) in Ruby on Rails 1.1.2
rcov 0.5.0.1: code coverage for Ruby released by Mauricio Fernandez contains all that is needed to produce code-coverage reporting in Rails. Requirements Ruby 1.8.4 (especially on Win32 requires updated libraries.) Rails 1.1.2 Classes There is only one file to add to your current rails app: lib/tasks/coverage.rake Rake -T Here’s the new tasks with rake -T…
-
Single Fixtures declaration for Selenium on Rails
When testing out a complex website, replicating the |open|/selenium/setup?fixtures=x| line would be painful! So, Add a const at the beginning of the setup_controller in Selenium Plugin at ./vendor/plugins/selenium_on_rails/lib/controllers/selenium_controller.rb: Also alter #setup as so : New lines are 6-9, and the change on 10 from referencing params[] to the local var fixtures. Then, use this in…
-
1 – Strategy Pattern
The Strategy Pattern really resolves to “composition” in practice. This OO technique says to take components that could change at runtime and encapsulate them in their own objects. The master-object is then “composed” of instances of the dependent clasess. Example: Produces: So now handle the en-user request to have ducks with different flap : Now…