Definition of “Abstraction” in Computer Science

I’ve been working on putting together a simpler definition for “abstraction” than I’ve been finding online that doesn’t get into other Computer Science concepts.

Here’s the conclusion I’ve come to:

There’s a few “common” meanings of the word that help to gather the full understanding of the word:

– To draw away
– To separate

and finally:

– To form a general concept from consideration of particular instances
(All definitions were taken from the Chambers Dictionary)

So, if I saw chicken wrapped in a tortilla, covered in cilantro, smothered with salsa and lime and being enjoyed by the limelight of Mexican horn music, I could abstract that this is a taco.

Similarly in computer science, I don’t want to have give all those little details every time I describe something to my program, I want to just be able to say “taco” and the program would put together my cilantro, chicken, tortilla and lime programs together. Thusly, I define “taco” as meaning all of that. I have created a layer of “abstraction”. Now I can “abstract” myself further when I want to describe my dining experience by putting my taco program together with my table program and my cerveza program. Then I would define it as my “lunch program”. As a result, I now I just say “Lunch” and my program understands and creates the whole taco party.

If that’s too simple for you, I’m sorry. This wasn’t intended for you though. Check out the WikiPedia article instead.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrShare on RedditBuffer this pageDigg thisEmail this to someone
Tell Your Friends

How to – 301 Redirects

301 Redirects are what tell your browser, “Hey! This page has permanently moved! Go to xyz location!”

This is useful if you are for some reason changing domain names or simply changing a few pages URLs. You don’t want to lose any “link juice” (the great Google Elixir) your old pages may have. Not to mention, if you have people linking to your site, you don’t want them to be reaching 404s!

301 Redirects to the rescue!

If you are using WordPress or another CMS there’s probably an easier to use plugin to do this, but I’m a huge fan of keeping plugins to an absolute minimum. Plus this is really simple to do.

Connect to your site via FTP and in the root directory you will generally find a file called .htaccess.

Open it up and copy a backup of the file locally.

On a new line add (the spacing has to be exactly as below):

Redirect 301 /old-site-page/ http://yoursite.com/new-site-page/

/old-site-page/ is a relative URL of your old web page and http://yoursite.com/new-site-page/ is an absolute URL of the page you want users to be redirected to.

Now what if /old-site-page/ had a subdirectory e.g. /old-site-page/sub-site-page/

The order of how you handle this is important because if you do this:

Redirect 301 /old-site-page/ http://yoursite.com/new-site-page/
Redirect 301 /old-site-page/sub-site-page/ http://yoursite.com/new-site-page/sub-site-page/

You’re going to have a bad time. The second redirect you declared won’t work as you have already redefined what “/old-site-page/” means.

Do it this way and have a good time:

Redirect 301 /old-site-page/sub-site-page/ http://yoursite.com/new-site-page/sub-site-page/
Redirect 301 /old-site-page/ http://yoursite.com/new-site-page/

Remember to test that it worked after you finished!

Obviously Hackerman GIF

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrShare on RedditBuffer this pageDigg thisEmail this to someone
Tell Your Friends

Direct Link Your Clients to Leave You a Google My Business Review in 2016

You use to be able to directly link to the review box on Google for your business by simply getting the link to the about portion of your Google + page and simply adding “?review=1” to the end of the URL.

It’s now 2016 and this is not the case anymore.

Fortunately, it’s still simple to do!

  1. Type in your business name in Google.
  2. Click on “Write a Review”
    Link to Google My Business Reviews
  3. A pop-up box will appear and again click on “Write a Review”.
    Link to Google My Business Reviews Part 2
  4. Copy the new URL in the URL bar and create your link.

See? It’s Pretty painless, so go out there and make it rain Google reviews!

Make it rain gif

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrShare on RedditBuffer this pageDigg thisEmail this to someone
Tell Your Friends