Sign in to your account



This field is required


forgot your password?


New to the site? Create an account →

Blog (6,219) · comments · rss · json

  6,219 articles


CamelCase vs. lower case

tcr! · Oct 27, 2017 at 10:25 am

In C/C++, method names should be capitalized and use CamelCase. (source)

…and…

In JavaScript, functions should use camelCase but should not capitalize the first letter. (source)

I will only use lower case and the underscore for word boundaries. And 4 stop tabs. For all code. JavaScript, PHP, MySQL, HTML, CSS, whatever. Consistency, folks.

In other news…

if ($view_data['icd_code_1_86001'] == '') {
  $view_data['icd_code_1_86001'] = '';
}

if ($view_data['icd_code_2_86001'] == '') {
  $view_data['icd_code_2_86001'] = '';
}

if ($view_data['icd_code_3_86001'] == '') {
  $view_data['icd_code_3_86001'] = '';
}

if ($view_data['icd_code_1_86003'] == '') {
  $view_data['icd_code_1_86003'] = '';
}

if ($view_data['icd_code_2_86003'] == '') {
  $view_data['icd_code_2_86003'] = '';
}

if ($view_data['icd_code_3_86003'] == '') {
  $view_data['icd_code_3_86003'] = '';
}

Good thing that all the icd_code variables are checked for empty and then set to empty. If they’re empty.

#devhell

6 comments

keamoose keamoose · Oct 27, 2017 at 11:48 am

By their own rules, should it not be spelled javaScript?

Reply

It’d be better if you signed in before commenting


Post

tcr! tcr! · Oct 27, 2017 at 1:22 pm

YES! I will be sure to mention that if it ever comes up.

In related news, I went to edit their page to correct the JavaScript spelling (similar to how I correct articles on Wikipedia) but I was stopped at the front door. 🙄

MDN requires a sign in to edit pages

Reply

It’d be better if you signed in before commenting


Post

keamoose keamoose · Oct 27, 2017 at 1:54 pm

Aww. I was also gonna make a case for gitHub, wikiPedia and faceBook.

Reply

It’d be better if you signed in before commenting


Post

tcr! tcr! · Oct 27, 2017 at 3:00 pm

How about moZilla, too?

Reply

It’d be better if you signed in before commenting


Post

keamoose keamoose · Oct 27, 2017 at 3:13 pm

Yes! moZilla fireFox.

Reply

It’d be better if you signed in before commenting


Post

tcr! tcr! · Oct 28, 2017 at 11:38 am

Perfect! 😁👍

Reply

It’d be better if you signed in before commenting


Post

Add a comment

It’d be better if you signed in before commenting


Post

More knob twists

tcr! · Oct 27, 2017 at 10:03 am

Audio (MP3): 20171027 - More knob twists

I’m in the private, single person work restroom. Somebody tries the door knob. It refuses because I’m not an animal and therefore lock the door.

Again, with the twisting. I scowl at the door. More knob twists. This time as if brute force will unlock the door. I’m annoyed now.

Three seconds pass. The knob twists yet again. I call out forcefully, angrily… “dude, I’m taking a shit.”

I don’t like talking to people in public but sometimes ya got to.

#socialproblems #publicrestroom #diariespodcast

2 comments

tcr! tcr! · Oct 29, 2017 at 9:36 am

While dining out last night I happened upon this restroom. Featuring additional seating.

Maybe the knob twister above was expecting he could just come in and wait for his turn.

Restroom with a toilet and a chair

Reply

It’d be better if you signed in before commenting


Post

jimi hindrance experience jimi hindrance experience · Nov 2, 2017 at 12:36 am

Companionship is losing ground. The naysayers are getting verbal and providing examples.

Reply

It’d be better if you signed in before commenting


Post

Add a comment

It’d be better if you signed in before commenting


Post

Tom’s Ware dress shirt

tcr! · Oct 26, 2017 at 8:38 pm

Fancy shirt and hat

I even wore a fancy collared shirt tonight! But not the hat. Because no.

Don’t be fooled though, I was wearing this underneath…

Im a mess shirt

#photos #fashion #forsale

Get the second t-shirt

Add a comment

It’d be better if you signed in before commenting


Post

The Bruno Marc Oxford boots

tcr! · Oct 26, 2017 at 6:32 pm

Bruno Marc Oxford boots

I only wear my fancy shoes on special occasions, such as tonight’s Fall Choral Concert that Maggie will be singing in.

Now I’ll move the camera to eye level.

Empty seats to my left…
Empty seats to my left

Empty seats to my right…
Empty seats to my right

I got the best seat in the house!

In other news… Maggie let me know it’s not okay to call other drivers in the school parking lot “tator tot.”

#photos #socialproblems #fashion #maggie

2 comments

keamoose keamoose · Oct 27, 2017 at 10:31 am

Ooh, on Facebook I couldn’t see that they were boots. They got zippers and everything!

Why is everyone else sitting up front? Are they in trouble with the teacher?

Reply

It’d be better if you signed in before commenting


Post

tcr! tcr! · Oct 27, 2017 at 1:17 pm

Yep, laces and zippers!! 🎉 👞

And it wasn’t so much as everyone was sitting up front. It’s more that I was sitting way in back… 😉

Reply

It’d be better if you signed in before commenting


Post

Add a comment

It’d be better if you signed in before commenting


Post

Super Target has Blue Diamonds

tcr! · Oct 26, 2017 at 4:08 pm

Audio (MP3): 20171026 - Super Target has Blue Diamonds

One time my brother ate a whole bag of walnuts. And my mom was furious. She still talks about it to this day even though said feeding happened sometime in the 80s. Apparently the walnuts were a gift to my mom from my grandpa during one of his nation-wide adventures. I think they came from out west but nobody knows for sure since he was known to disappear for weeks on end during his “fishing trips.”

One time grandpa bought a whole everglade forest or something in Florida. On a whim. I had always hoped to see it someday, to see if the elusive feathered-bigfoot-alligator was a real thing. But that never happened because the older I got, the less swamp sounded like fun.

Read more →

Add a comment

It’d be better if you signed in before commenting


Post

Oct 25th, 2017 at 11:20:16 pm

tcr! · Oct 25, 2017 at 11:20 pm

Cat on the bed 1 Cat on the bed 2 Cat on the bed 3

She insists on laying on me even though there’s tons of space. And then when I tell her to go sleep in her own bed she gives me this look.

#photos #cats

Add a comment

It’d be better if you signed in before commenting


Post

Oct 25th, 2017 at 7:57:45 pm

tcr! · Oct 25, 2017 at 7:57 pm

Maggie: Dad, it’s 7:50 pm. Are you gonna get out of bed?

Me: I know, I know.

Add a comment

It’d be better if you signed in before commenting


Post

Oct 25th, 2017 at 2:39:39 pm

tcr! · Oct 25, 2017 at 2:39 pm

Client complains of a problem with her website. Client forwards me an email from last June.

Me looks at her website. Me looks at her email.

Me tells her that the problem is because of her IT depart.

Me also tells her that the email she forwarded from June outlines that it’s her IT department’s problem.

#worknews #devhell

Add a comment

It’d be better if you signed in before commenting


Post

Prairie Street bridge sunrise

tcr! · Oct 25, 2017 at 8:15 am

Prairie Street bridge sunrise

Lo and behold the sun made an appearance over the Fox Valley just moments ago. The gas giant[1] the earth orbits is indeed, ladies and gentlemen. A Real Thing.

Geneva’s Mayor Kevin Burns told[2] local reporters that all city employees could embrace the morning sunshine for up to ten minutes before heading into work.

The crowd went wild and local town folk took to the streets to feast on the Boy Scout popcorn they had bought at the Walgreens on E. Main St. in St. Charles only days before.

One Geneva photographer snapped the attached photo on his daily commute. Being self-deprecating he only commented, “Sorry this was the best picture I could take driving over the Prairie Street bridge. I’m a man not a machine.”

In more local news, Geneva’s Aldi grocery store will reopen on November 9th with both LED and natural lighting. Go team!

Enjoy your hump day, guys!

#photos #sunrise #forsale

Get the photo print


  1. ~73% hydrogen according to Wikipedia.

  2. Kevin Burns did not actually say this.

Add a comment

It’d be better if you signed in before commenting


Post

Alexa, turn on the dining lights

tcr! · Oct 24, 2017 at 8:00 pm

Alexa turn on the dining lights - MP4

I’ve officially joined the smart home revolution. I’m eagerly awaiting Skynet to send in a T-1001.

#videos #alexa #homeimprovement

Add a comment

It’d be better if you signed in before commenting


Post