The Artistic Way of Programming

12 years back, when I started my formal classes in computer science, the first thing I learnt was “data” means “information”. A few days after that, we started conventional programming, where code and data were treated separately. For example, only data can be passed as the functional arguments. It was difficult for me to digest that “code, which is also information, is not treated as data”. I strongly felt that this will increase complexity of softwares in the long run.

A system does three things – read, transform (processing data), write. In other words – the mathematics (the transform part), and the effect of that in real life (the read/write part). The data transformation is indeed a mathematical concept, and with the help of read and write we make the mathematics (the transform part) useful to the real world. Bringing the “transform” part fully inside mathematical domain has its own benefit of using mathematics without fear (possible errors) for the analysis of the system, making the system more tractable mathematically. The catch is to treat both the elements of transformations, data and functions, equally.

Initially, code used to be bigger than the data, so sending data over the wire was feasible. But with time, data becoming huge, sending code to systems over the wire becomes the need, resting the data on the systems intact. With big data, the need of the hour is to treat the code as data, so that the code can be taken as argument to another meta function on a system having huge data which expects an algorithm for transformations.

Roughly speaking, codes are algorithms, algorithms are mathematical functions, functions are in turn actually look-up tables, i.e. data. Hence with this principle, all codes or functions are data.This is exactly the cornerstone of the functional paradigm. The functional programming is programming with functions, they treat functions and data likewise. Another principle I love, to control complexity, rules should not be complex itself.

Thumb rules rewritten for the functional paradigm:

Read-write and transformations(algorithms) should be separate.
Use immutable variables. Discourage use of reassignment statements.
Discourage side-effects (input/output or changing any variable in-place), every function should ONLY return its expected result.
Use referentially transparent functions (sometimes it is called pure functions) with no side effects, i.e. if x = y, f(x) and f(y) should be same forever.
Unit testing is a must for each function.
One of the main design patterns should be followed is to use expressions instead of instructions, i.e. it should be declarative in nature. Discourage use of loops like for/while – use recursive statements as shown above to calculate sum. Tell computers what needs to be done, not how to do it – it reduces error, especially edge cases.
With the need to control the complexity of the system and the advance design, the design pattern for the functional composition can be made to follow some basic algebraic structures, which in turn becomes more robust.

Posted in Uncategorized | Comments Off on The Artistic Way of Programming

4 Steps to Choosing the Best Promotional Products for Your Business

When investing your marketing dollars in custom branded promotional products, you want to ensure that you are getting your best return on investment. You want to look for products that serve more than one purpose and provide continued brand exposure.

1. Choose products that provide your company with good visibility.

The more your products are seen, the more promotional benefit your company receives. The best promotional products are prominently placed on everyday items, such as screen cleaners attached to mobile devices.

2. Give away products that will be used every day.

How many times have you received a piece of schwag that you threw in a drawer or even the trash? For your promotional products to be effective, you need to choose items that people will use over and over again. Products that are used often and in public places will gain your brand the most exposure for your investment. A great example would be screen cleaner stickers for phones and tablets, that are custom branded with your logo but people can use to clean their electronic devices. Another example are portable USB chargers, that have your logo on them but people can use in an emergency to charge their devices. These are useful products that people will carry with them, hence, increasing the amount of times your logo gets flashed around.

3. Reflect your business’s reputation with high quality products.

We’ve all received a branded pen or notepad that fell apart in our bag before we even left the exhibit hall. Handing out cheap promotional products gives the impression that your company is just as cheap. Make sure that the freebies you give away are representative of the high quality of the products and services you provide in your business.

The best way to test a product before you decide to pull the trigger and make an order for your event would be to get samples. Reputable promo product companies will provide free samples and stand behind their production. It should be crystal clear once you compare samples whether the promo product will be a hit or a miss.

4. Think versatility.

Choose promotional products that are versatile enough to fit every occasion you need. Whether you need giveaways for a trade show, gifts for your employees, or tokens of appreciation for customers who visit your office, having an appropriate product available for all occasions is key to getting the best results for your marketing dollars.

Posted in Uncategorized | Comments Off on 4 Steps to Choosing the Best Promotional Products for Your Business

Five Former All-Stars Who Need To Have Comeback Years in 2017

St. Louis did to Chicago what the Cubs did to the Cardinals during last year’s off season, signing a valuable part of their outfield to a free agent contract. In 2015 Jason Heyward went from the Cardinals to the Cubs, where he received a World Series ring.

This year, the Cardinals returned the favor, signing Dexter Fowler to a free agent deal. Fowler served as a spark at the lead off spot for the Cubs, as well as providing near Gold Glove defense in center field.

St. Louis hopes the overall season turns out as well as 2016 did for Heyward and the Cubs, who won their first Fall Classic in over one hundred years. In order for that to happen, the Cardinals will have to get better individual results from Fowler than the Cubs did from Heyward. Although he remained a top notch defensive right fielder, Heyward’s offensive numbers were disappointing. He struggled so much that manager Joe Madden did not even start him in several World Series games against the Indians.

The Cubs are hoping Heyward has a comeback season in 2017, as are a dozen or so other players. Several of them were mentioned in an article by David Schoenfield at ESPN.com on December 6,2016, a list including Arizona pitcher Zack Greinke, Boston infielder Pablo Sandoval, and Washington first baseman Ryan Zimmerman.

Omitted from that list are five other players who are hoping to bounce back after a down year, or in some cases, back to back down years. Here are five other prominent players who need to have comeback years in 2017.

Joe Mauer of the Minnesota Twins

The former American League Most Valuable Player has had two sub par years in a row, even though he still leads the Twins in quality at bats. Mauer’s batting averages in 2015 and 2016 were both more than thirty under his career .319 mark.

Bryce Harper of the Washington Nationals

After earning the National League M.V. P. honors the season before, Harper hit just .243 and his 24 home runs were barely half of the total he hit in 2015. The outfielder is also hoping to improve his numbers considerably, since he is eligible for free agency after the season.

Andrew McCutcheon of the Pittsburgh Pirates

Trade talk regarding the former N.L. M.V.P. has been frequent throughout the winter, so his comeback may have to occur while he is wearing the uniform of a club other than the Pirates. Ben Revere of the Washington Nationals

After hitting.317 with the Toronto Blue Jays in 2015, Revere’s average plummeted to .214 when he went to Washington. He really needs a comeback year for, like his teammate Harper, he will become a free agent at the end of the season.

Alex Gordon of the Kansas City Royals

His home run totals went up four from 2015, but his batting average dropped fifty one points to .221. Kansas City, which missed out on the playoffs after winning two straight pennants, needs Gordon to bounce back if they want to return to the postseason.

Posted in Uncategorized | Comments Off on Five Former All-Stars Who Need To Have Comeback Years in 2017

5 New Year’s Resolutions for Busy Families

It somehow seems that modern life is busier than it has ever been. As well as our work and family commitments, there are now so many ways to spend our leisure time; it often feels like 24 hours is simply not long enough to get everything you wanted done in the day.

The problem of being busy all of the time (even though it is a good problem to have) hits those of us who have time-consuming jobs and are also raising a family the hardest. If you fall into this category, you may find it helpful to read the following list of five potential New Year’s resolutions you could make to ensure your 2017 is less stressful than this year may have been!

1) Leave the office on time – Even if it’s only on one or two days a week, it is important that you sometimes put your foot down and leave your place of work as soon as your day is meant to finish. You’ll find that you get much more done in the evenings!

2) Invest in a 2017 calendar – It may sound like a simple step, but that’s sort of the point. Having your work and leisure commitments mapped out for the weeks and months ahead in an easy to view format will allow you to see at a glance just how busy you are and whether you are taking on too much.

3) Spend 10 minutes doing nothing – Again, this is more productive than it sounds! Set your alarm ten minutes earlier every day so that, before you get up, you can spend this extra time in completely undisturbed silence, thinking about what your priorities should be for the day to come.

4) What are your two most important tasks? – Speaking of priorities, it is also a good idea to take a step back from time to time and decide which the two most important jobs are that you wish to accomplish on any given day. This is a great way of clearing your head when you feel overwhelmed.

5) Consider hiring household staff – You may have thought that hiring a nanny or other household staff might be the ‘easy way out’, but this is not the case. Those who have invested in professional assistance of this kind know that hiring a caring and responsible person to help run your busy home is a fantastic way of relieving domestic pressures.

Posted in Uncategorized | Comments Off on 5 New Year’s Resolutions for Busy Families

Private Jet Detailing And Aircraft Cleaning Entrepreneurs Have Good News

The general aviation sector has been in the doldrums for quite a while. Some blame this on increased FAA (Federal Aviation Administration) regulations, much of which occurred after 9-11 to protect airports from potential terrorists, unfortunately these increased security requirements and increased regulations have stifled the general aviation (GA) sector. The economic crashes of 2000 and 2008 didn’t help, although in 2003 the economy was flying high thanks to Bush Tax Cuts and stimulus, then it hit a wall again and didn’t really do well until the run-up just before the 2008 crash.

The GA sector has only slightly recovered since then but not back to its 2003 highs. When Obama got elected he railed against Corporate Jets and Corporate Fat Cats which hurt jet sales and new aircraft sales. Remember when congress went after the Auto Makers for flying their corporate jets to Washington DC to beg for bailouts? Public sentiment against GA was at an all-time low. All of this had hurt aircraft cleaners and jet detailers – it made it tough to make money, but it looks like things are changing and the number of GA Aircraft is increasing. This new Trump Administration is pro-Aviation unlike the Obama Administration. Cutting corporate taxes will also help GA and jet sales. It looks like clear skies ahead for those in the General Aviation services business.

There was a great article in AIN – Aircraft International News – December Edition titled; “UBS Bizjet Index Sees Post-election Surge,” by Chad Trautvetter posted on December 12, 2016 which noted the following facts; The new Trump Administration in the U.S. is widely seen as a positive, with 61 percent of those surveyed expecting the outcome of the U.S. presidential election to ultimately be positive for the business jet market, while 11 percent don’t see a positive impact and 28 percent are uncertain. In fact the article went on to note that there was an increase of between 44-49% increased orders for private jets over last year. Many of those aircraft will be delivered by 2018, and the backlog will increase used aircraft sales and current new inventory. More aircraft certainly means more aircraft to clean and more new aircraft means more corporate detailing customers as well. Meanwhile, along with the fractional jet market, we see jet air-taxi services on the increase as well as Uber style aircraft ride-sharing plans smaller companies can buy into. All of this means the GA sector is ready to take off again and that’s good for business.

Posted in Uncategorized | Comments Off on Private Jet Detailing And Aircraft Cleaning Entrepreneurs Have Good News