Blog (Tag: health)

The 5 Key Principles of the SOLID Object Oriented Design Principle as Applied to Swiss Knives

A Swiss Knife is a multi tool pocket knife which was originated from Switzerland. A Swiss Knife has various different models like the Wenger Giant or the Victorinox Swisschamp XAVT and each model has its own set of different tool combinations. For designing a Swiss Knife, certain principles are applied which are known as the SOLID object-oriented design principles. A few of these can be applied on the design of a Swiss Knife while the others fail to do so - you will see the difference between knives that are specifically purposed for the occasion (see Cut it Fine), as opposed to a Swiss knife. Check them out as follows.

1. The Single Responsibility Principle

The Single Responsibility Principle also known as SRP is the first principle which basically states that, " Every object should have a single responsibility i.e. a single reason to change." This means that an object should be able to perform only one specific task and it should only be created for accomplishing one goal. This principle of design is not applicable to a Swiss Knife in its full context because although a Swiss Knife is only created for defense, it performs various tasks. It not only works as a knife, but also a screwdriver, can opener, scissor, flashlight, nail filer but also as the object that is used as a projectile.

2. Open Closed Principle

The OCP principle preaches that, "Objects should be open for extension, but closed for modification." This means that when a function has been finalized, it should not be changed later. You can add new functions to it without changing its existing internal function. This protects the existing function from breaking at the time of maintenance or additions to the device. Now when you look at a Swiss Knife, you will discover that it is closed for modification since there are no visible ways to open it, nor there are any screws to unscrew. But, when you look at the key ring of a Swiss knife which is a major feature to it, you can see that is has an extension to it. This shows that a Swiss knife is open for extensions and closed for modifications, hence this principle of design can be applied to it.

3. Liskov-Substitution Principle

The LSP principle states that, "You should be able to use any derived class in place of a parent class and it should behave in the same manner with no modification." This principle is almost same as the Open Closed Principle and is applicable to a Swiss Knife's design. This is because it is basically an extension of the Open Closed Principle and states that the new functions should not disrupt the functions of a parent function which was installed before it.

4. Interface Segregation Principle

"Clients should not be forced to depend on interfaces they do not use." This is what the principle of interface segregation delivers. This principle divides the functions into different groups of responsibility and assigns different tasks to them so that the user does not have to buy a large interface and use the functions that it does not need. The functionality of the object is clearly defined according to this principle of design. This principle of design fails to apply on a Swiss knife because it is multi-tasking tool which not only works as a knife but also a nail file, screwdriver and various other things.

5. Dependency Inversion Principle

What this principle of design says that is that," Classes should depend on abstractions for their dependencies." This principle promotes flexibility within a system by making sure that it does not only implement one task at a time. The two main dependencies that a Swiss knife has are its sharpeners and its operator. This principle promotes the object to function on abstractions rather than the concrete evidences. The Swiss knife does function on abstractions rather than the concrete details. It does not matter where your blade is being sharpened or who is using the knife, it could be a dog, a child, an adult or an old person and the knife will still perform its functions.Hence, this principle of design is applicable on a Swiss Knife.
By Albert

How to Deal With Incorrect Deliveries Of Items Purchased Online

Online shopping has become very popular all over the world. From software to kitchen faucets to clothes to shoes to furniture and so much more, you can practically order anything you need online - pay for it online and just wait for it to be delivered right to your doorstep.

There are some items that you can order today and you can expect them tomorrow or the day after. Others take weeks or even months to be delivered especially if you have purchased a made to order item. The excitement builds up as the delivery date comes close and you just can’t wait to see, touch and use your purchase! The excitement dies down the moment you realize that the item delivered to you is incorrect or has some missing details. True enough, this is the worst and most disappointing feeling any online shopper can ever experience - or maybe it comes next to dealing with a bogus seller.

Check Your Order Multiple Times Before Submitting

You’d think that in this modern world, it is easy to undo or redo when you incorrectly submitted an order. If you’re lucky, the online store you purchased from has customer service 24/7 that you can call. If not, then you’ll be stuck waiting for a response to your email. You might want to place another order but then you might end up with a double purchase. The best thing to do is once you are on the shopping cart and getting ready to pay, check your order multiple times. Once, twice or even thrice might not be enough because you might overlook some details.

While doing this, check on delivery details and all the product details too. Find out whether there’s a warranty or a return option. In many cases, companies offer return options but shipping fees are on you. So it is best to just make sure you have it right the first time. Amazon is the exception here though.

An Incorrect Delivery Has Arrived In Your Home

When it comes to gadgets, clothes or shoes in the wrong sizes or other appliances, returning your purchase is your best bet unless you’d settle with the wrong one you have already received. Try calling the customer service number or send an email to ensure that the process is done correctly. Yes, it might take a while for you to have your product shipped but you just have no choice for now. Sadly, you can’t even get a discount even if the incorrect delivery wasn’t your fault.

When it comes to furniture though, these are usually large and bulky so shipping fees can be quite costly. You may have gotten a discount or even free delivery but if you are returning the item, you might end up paying for the fee already. If you have a piece of wooden furniture that you got for cheap, say a shelf or a rack, then you can consider settling for what you received. What you can do though is pick up your miter saw and see how you can improve the product your received. For example, you ordered some floating shelves but unfortunately, its dimensions won’t fit or doesn’t look good in your bedroom. According to Straight Kerfs, using the Makita LS1221 miter saw will give you the opportunity to make adjustments to the shelf. Than sand it, repaint it and you already have a better shelf! Yes, it seems like an inconvenience but if you’re after saving money for shipping fees and you just can’t wait any longer for a replacement, repairing the item yourself is your best bet.

It is good to mention though that in most cases, there are always consumer rights. If the item you ordered online is far from what was advertised or if it’s damaged or faulty, you can always ask for a replacement or demand for a refund. Again, go through the details again and again prior to submitting your order to avoid any hassle.

By Albert

Fitness Tracker That Helps Increase Your Physical Activity

Fitness Tracker

You might think that it’s just a simple gadget that gives you numbers, but a fitness tracker is a personal accessory that encourages users to increase their physical activity in order to achieve their fitness goals, regardless of what they are.

It’s definitely not a meaningless unit, as the numbers you’re seeing every day can motivate you to start living a healthy life. Because it gives you an insight of how much activity you’re getting and not getting will push you further and start taking the stairs, rather than the elevator.

Is it the same as pedometers?

Fitness tracker units are cousins of pedometers. As you can read at Fitness Exact, the only difference is that they’re smarter, have more features and can offer you more accurate data.

Another great thing about them is that you can pair them with your web account to properly track your fitness data. All auxiliary devices that you can attach to this type of gadget can provide you better insight about your lifestyle. Are you getting enough sleep? What’s your heart rate during exercise? How about your blood pressure levels? These things will all be provided by this little wonder product.

If you're looking for high tech, this is a gadget for you. Once you’re convinced that this tracker can help you succeed in your fitness goals, you might be wondering about the best fitness tracker to buy. There are many brands and models available to you. When choosing the right unit, it’s a must that you opt for a model that can provide you the features that you need for your fitness goals.

More information at

By Albert

About Shootout

Originally shootout was all about (you guessed it) basketball. However as time passed by it didn't get updated that frequently and in the end, well, hardly ever anymore.

My interests changed and these days I'm all about separating crap from quality, especially online. The spam I have seen over the years is just incredible. So, just for my and maybe also your reference I decided to publish some of my findings here. I hope it can be of help...

Sub Navigation