January 27, 2015 by Daniel P. Clark

or

Truthiness Both or and || will return the first item that evaluates as true from the left side to the right. true or “this doesn’t return” # => true true || “this doesn’t return” # => true false || true # => true false || false # => false false or false or 1 or…

Continue Reading »

January 22, 2015 by Daniel P. Clark

Learning Your First Programming Language

If the idea of designing software intrigues you; then you’re in the right place.  Often times the things that keeps you from moving forward is the “fear of the unknown”, or simply doubting your ability/capacity to learn.  If programming looks like some big ominous thing and like it’s more trouble than it’s worth, then you…

Continue Reading »

January 20, 2015 by Daniel P. Clark

Refinements over Monkey-patching

Monkey patching is rather straight forward.  You take an existing object and you apply your own duct tape, glue, nuts and bolts, or even chewing gum.  Or if it’s bad you hit it with a hammer.  No, but more seriously, it’s when you modify something existing from outside it’s original project code. For example you…

Continue Reading »

January 16, 2015 by Daniel P. Clark

The 500 Millisecond Rails Partial

Click… 15 seconds later: “Something went wrong”.  So that happened.  I’d written a web based email client and it was taking too long to load.  If it reached 15 seconds it would quit because of the servers time-out setting.  Here’s my journey into finding out what went down. First things first, I needed to know…

Continue Reading »

January 14, 2015 by Daniel P. Clark

Email Composer/Editor Template for WebDevs

I went searching online for a HTML template of an email composer and didn’t find any.  I’m very disappointed in the interwebs for not being so forth coming.  There are many sites and services that allow you to write email.  Heck even Rails has ActionMailer which can handle sending mails.  But why not have a…

Continue Reading »

January 12, 2015 by Daniel P. Clark

Vanilla JavaScript – Stepping into the language

When you see “vanilla JavaScript” it’s titled for not having any added “flavors” of JavaScript.  Not to be confused with the Vanilla-JS framework.  In other words it’s the unadulterated original language.  On my blog post about JavaScript being easy with jQuery I received a few comments about JavaScript being easy anyway.  jQuery is designed so…

Continue Reading »

Encryption in Ruby on Rails

January 9, 2015 by Daniel P. Clark

Encryption in Ruby on Rails

When I had first looked into encrypting data in my Rails database I found on a couple of forms, and StackOverflow issues, they recommended two gems: attr_encrypted and strongbox.  Besides that there where a few do it yourself examples with Ruby’s built-in OpenSSL library and some other small libraries like AESCrypt.  After examining these gems…

Continue Reading »

January 8, 2015 by Daniel P. Clark

JavaScript is easy with jQuery

If I had only known how easy it would be to pick up JavaScript with jQuery I would have learned it a long time ago.  But I had allowed a glimpse of obscure looking JavaScript to deter me in the same way Java kept me from learning programming for years. When I first wanted to…

Continue Reading »

January 5, 2015 by Daniel P. Clark

Dealing with Rails 4 forms and params

In the learning stage of Rails developments one will come across different scenarios of handling parameters from Rails forms that are submitted.  Also since Rails 4 introduced Strong Parameters there are some additional things to keep in mind. Form Params 101 Parameters: { “utf8″=>”✓”, “authenticity_token”=>”nqLr/ZukyXt5/sFNU9FGciBbSOSJ2MkE7Roo5WwfVEo=”, “profile”=>{ “first_name”=>”Daniel”, “last_name”=>”Clark”, “socials_attributes”=>{ “0”=>{ “kind”=>”twitter”, “username”=>”@6ftdan” } } },…

Continue Reading »

January 3, 2015 by Daniel P. Clark

“Empiricism Like This”

No two people are the same.  When learning we have many different ways.  There are auditory learners, visual, and hands on.  Whenever you combine any, or all, of these methods the learning experience will become more vivid and better retained knowledge. In my writings I’ve largely focussed on an exploratory experience.  A more hands on…

Continue Reading »

Page 8 of 11
1 6 7 8 9 10 11
1 6 7 8 9 10 11