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

How Does the Ford GT Stack Up?

How will it compare to the competition?

The GT is by no means a Shelby GT 350 R, not even close. Besides the over $350,000 jump in price and the additional 100 or more horsepower. The new GT is even more track-focused then the previous ones. And the mid-engine layout, combined with the GT’s carbon-fiber construction it much more than a muscle car and more of a Super car.

Even though Ford has not decided on a specific horse power, the new GT with 3.5-liter twin-turbo V6 will produce more than 600 horsepower. Standing up well to the Corvette Z 06 and its’ 650 horses. Now Ford says it is working on the power-to-weight ratios to be the best of any production car. Even if they can’t hit the ratio of the Koenigsegg One with its 2.2 lbs / hp and make it to the range of the McLauren P1 with its 3.5 lbs / hp. Even with its aerodynamics the approx. 3500-lb Corvette Z06 may be a little overweight to held ground with the new GT Priced like a Lamborghini Aventador

Knowing it’s expected price range points to the real competition of the new 2017 GT. Granted the Lamborghini Aventador is packing 691 horse power, but outweighing the Corvette Z06 in curb weight by another 500 pounds, it may have a hard time keeping up with the new GT on the track. When you consider the Aventador holds twice the cylinders as the GT’s twin-turbo V6, and the fact that the Aventador is a naturally aspirated V12 all wheel drive, you can expect it to be faster off the line.

It will be interesting to see how the GT compares to the McLaren 657LT the car that feels like a competition vehicle. Weighing in at less than 3000 lbs, the 657 is pretty light, but the GT will probably weigh less. The Mc Laren 675LT is also a limited-production car, with only 500 units slated to built and cost about $50,000 less than the Lamborghini.

Then there is the Ferrari F12tdf with a price point just under $500,000 with a substantial increase in power. Touting a 6.3-liter V12 with 770 horsepower hitting 0 to 60 in under 3 seconds. The Ferrari will be a head over the GT by more than 100 horsepower, but the based on Fords claims the GT should be much more light weight. With Ford skipping a hybrid-electric system, it will be something to pit the new and severely less expensive Acura NSX with its hybrid tech and all-wheel drive against the new GT and its focus on light weight. With the NSX and its 573 horsepower will it be enough to hold its own against the GT? Time will tell.

Posted in Uncategorized | Comments Off on How Does the Ford GT Stack Up?

Tips for Developing Astute Investing Skills

Learn to discern conflicting analyses, reports, and data as you research investing opportunities

As an investor, you must make decisions based on your study, research, and personal opinions and beliefs. You should not depend solely on the research and opinions of others. There is much good advice and information available to you.

However, there’s also a lot of differing information that you must cut through to make informed investing decisions. Here’s what you can start doing now:

Understand decisions made by entities independent of publicly traded companies

General Electric (NYSE:GE), through its Power & Water division, GE Hitachi, offers advanced and sophisticated technology for the nuclear energy industry. The GE Hitachi nuclear alliance unites GE’s design expertise and history supplying reactors, fuels, and services worldwide with Hitachi’s proven experience in advanced modular construction. This is all well and good.

Nonetheless, previously, the Canadian Press noted that, “A Federal Court ruling has thrown out the preliminary approvals for a series of new nuclear power reactors in Ontario.” Therefore, this is a case of weighing company initiatives against the landscape and mindset of the jurisdiction in which they operate, or may wish to operate with new projects. You must be aware of this when you invest.Understand the difference between company outlooks and what’s going on in the marketplace

Cameco (TSX:CCO) (NYSE:CCJ), regarding its long-term prospects was very positive about its outlook and the outlook for the uranium industry in general. The company did say in its 2013 annual report that any development or expansion of its remaining projects would depend on how market conditions develop. Cameco’s intention is to build up Cigar Lake and to expand the McArthur River/Key Lake operation.

Commercial production commenced in May 2015 at Cigar Lake with a total of 11.3 million pounds (100% basis) produced by the end of the year. The expectation is that the build up to licensed capacity of 18 million pounds per year will be in 2017.

What’s’ happening in the marketplace? In 2014, Mining.com reported that poor markets caused Cameco to put its Millennium uranium mine on hold. The highly prospective Millennium deposit is on the shores of Slush Lake in Saskatchewan. Cameco had asked the Canadian Nuclear Safety Commission (CNSC) to postpone a hearing scheduled in June 2014 into a licence application for the Millennium Mine project. The estimation is that this project has in excess of 50 million pounds of uranium.

Consider company strategies and the new economy

Sears Canada (TSX:SCC) Sears Holdings (NASDAQ:SHLD) never seemed to transform its operations as other retailers. Sears Canada dispensed some of its best stores and raised hundreds of millions of dollars in the process. Sears Canada was a mainstay in Canadian downtowns and major shopping malls.

The Company’s Toronto Eaton Centre flagship store became a Nordstrom (NYSE:JWN) store. Sears Canada has seen its target consumers taken away by bulk stores and higher-end retailers, not competing with them effectively.

Consider government reports

These are reports prepared by any level of government: federal, provincial/state, or regional or municipal. Oftentimes, federal government pronouncements paint a rosier picture than what is really happening in the economy. This is especially true at election time. You must look at what other government agencies are saying, not just the political figureheads of parties. Consider what U.S Federal Reserve Chairman Janet Yellen said in the past. She told the Joint Economic Committee of Congress that under present policies, the federal government’s deficits, “will rise to unsustainable levels.”

As an investor, you must consider what that will do to the U.S economy, the business environment, and businesses. By extension, what will this do in the coming years to Canada’s? When the U.S. rolls over, it typically nudges Canada who’s napping on its shoulder.

Due diligence means more than just studying the latest quarterly results of companies. It means studying and discerning between different government, economic, as well as marketplace reports that often are contradictory. It’s your responsibility to discern between the wheat and the chaff. If this means taking longer to make an investment decision, so be it. In the end, you will make a better investment decision.

Posted in Uncategorized | Comments Off on Tips for Developing Astute Investing Skills

4 Content Marketing Trends for Business Owners

As we approach 2017, it’s interesting to think about where we’re headed in the coming year when it comes to marketing our business.

All business owners want to stay on top of their game by being prepared for what’s ahead but in today’s fast-changing world, what does that look like?

Below are some content marketing trends you’ll want to prepare for when marketing your business in the coming year:

1) Incorporate More Social Media Graphics, Infographics, Visuals and Videos. Since your followers are 80 percent more likely to read your content if you use coloured visuals, this area needs to be built up more across your social media channels.

The popularity of visual content will only increase, so you must be prepared. Using Facebook live is still a hot commodity so be sure to dive into that opportunity too!

2) Build a Team. 60 percent of marketers in one survey said content creation was their biggest challenge last year.

To overcome this obstacle, get a team of people to help make content development and publishing easy. This includes having a good writer and social media specialist.
3) Tap Into Influencers. 90% of consumers trust peer recommendations where only 33% trust ads.

Consumers have begun to tune out traditional ads and increasingly connect to their social networks to guide their buying decisions. That’s why connecting with influencers is so important.

What is an influencer? “Influencers are people with significant networks (followers, readers, etc.) who can speak to a broad range of products and services with the ability to sway opinions in their favor.” – Jess Estrada.

Identify influencers to reach out to in your industry. Follow them on social media and see where you can strike up a conversation.

4) Drive Content Marketing Leads into a Funnel. High value content is one thing, but if you don’t build in a strategy that continues building rapport with prospects in the right way, you are leaving money on the table.

Content Marketing is a highly effective way to segment your audience and send them targeted follow-ups and offers, instead of adding them to your main email list.

Creating an Effective Content Marketing Plan for 2017

One of the biggest mistakes I have seen businesses make is they jump into content marketing without a strategy. While trying to appeal to their target market, they slap together a couple of eBooks and free offerings and hope it will be enough to drive sales.

The first step to making content marketing really work for you is to have a solid, smart content marketing plan in place.

Make sure you outline the following essentials in your content marketing plan:

Understand Who You Are Marketing to. Before starting any kind of marketing strategy, it’s vital you understand who your ideal target market is. There’s no point in investing your time and money into marketing when you don’t have a clear understanding of who you want to buy from you.

A Comprehensive Review of Past Efforts. Review your past content marketing efforts and results from 2016. This helps you to see what was most effective, what wasn’t, and develop a plan to improve for next year.

Set Goals and Benchmarks to Determine Future Campaign Success. Having a clear understanding of what you want to accomplish and what that will look like is important.

Develop Content Ideas that Align with Sales Goals. Here’s some example sales goals:

o Boost sales of Mega Fit Bootcamp by 25%.

o Get 50 new leads a month into our sales funnel.

o Create an eBook on Sales Tips for People Who Hate to Sell to drive leads to the funnel.

Plan a Content Marketing Calendar with Dates and Deadlines. Create an editorial calendar that clearly lays out your dates and deadlines so you can easily prioritize your efforts. This eliminates the “what do I write” problem.

It also makes it much easier to work ahead on content and delegate to team members.

I hope you’d enjoyed these highlights, stats, and facts to help you prepare for content marketing in the coming year.

I’m curious: What changes do you plan to make to your social media strategy in 2017?

Posted in Uncategorized | Comments Off on 4 Content Marketing Trends for Business Owners

Less Than 1,000 Days Until the Next Total Solar Eclipse in the United States

On Monday, August 21, 2017, a total solar eclipse will be visible in some areas of the United States. This is now less than 1,000 days away. The event has been a long time coming. While the last total solar eclipse to be seen in the United States occurred in 1991, that event was limited to Hawaii. Before that, the last solar eclipse visible from the continental United States was on February 26, 1979.

While the 1979 event tracked across Oregon, Washington and Montana, people in 12 states will see the 2017 event. Both eclipses started in Oregon. The earlier one then tracked up into Canada. The 2017 eclipse starts in Oregon, travels across the central United States before finishing far out to sea beyond South Carolina.

A total solar eclipse is a rather rare occurrence. Estimates place the likelihood of any point on Earth experiencing one only every 400 years. This is not absolute, however. Several Oregon locations saw the 1979 eclipse and they will see the 2017 event as well. For them, experiencing two solar eclipses in a little more than 35 years is quite unusual. Closer yet are the cities of Carbondale, Illinois, and Cape Girardeau, Missouri. Residents there will see the 2017 eclipse as well as another in April, 2024. This separation of less than seven years for these two eclipses is very unusual. Of course, it may be hundreds of years before these cities see another.

To be a total eclipse, the moon must completely obscure the sun, for an observer standing on Earth. This can occur monthly, at New Moon. Ordinarily, however, the moon passes either above, or below, the sun’s position, as viewed from Earth. As a result, the moon’s shadow normally sweeps across open space. On rare occasions, as the moon passes directly in front of the sun, a shadow is cast upon the surface of the Earth. If the sun is partially obscured, a partial eclipse results. If the sun is completely obscured, a total solar eclipse occurs. The moon is much smaller than the sun, of course. In fact, the moon is some 400 times smaller. In an astronomical twist, the moon is also 400 times closer to the Earth. This makes the apparent size of the moon very close to the apparent size of the sun. When the moon passes directly in front of the sun, it is able to completely eclipse the sun, for some viewers on Earth.

The shadow cast by the moon, however, is very small. Depending on the distance between the Earth and the moon, which varies somewhat, the moon’s shadow will darken a strip of Earth about 70 miles wide. This strip is called the Zone of Totality. Those people located within this zone will experience a total solar eclipse. Those near, but outside, will see a partial solar eclipse.

On August 21, 2017, the sun is eclipsed for as much as 2 minutes and 40 seconds at the maximum point. Hopkinsville, Kentucky happens to be located at this point. People not located there may see a shorter eclipse duration. Those located outside the zone of totality will only see a partial eclipse. Some cities that will experience totality include Nashville, Tennessee, Kansas City and St. Louis, Missouri. The 2017 eclipse will potentially be seen by millions of people located across the United States.

Each total solar eclipse is unique, but there are similarities. The Earth will darken over time as the moon obscures more and more of the sun. This is the partial eclipse phase. As totality approaches, the amount of sunlight striking the Earth will be greatly diminished. The sky will become similar to twilight. Colors normally seen at sunset will be visible during the day. Birds, animals and insects will be fooled into believing that night is falling. Some will return to their nests or roosts. Nocturnal creatures will begin to emerge. These effects often happen even if a total solar eclipse occurs early in the morning. After totality ends, another partial eclipse phase occurs until the moon passes beyond the sun’s location.

The biggest factor that cannot be predicted with certainty is the weather on August 21, 2017. Cloudy weather could obscure the eclipse for interested observers. As a result, many people examine historical weather patterns in order to determine prime eclipse viewing locations. Since the 2017 event occurs in August, there are some rather promising weather possibilities. In Oregon, the August weather tends to be sunny and dry, perfect eclipse conditions. Morning fog, storms, or clouds, could thwart eclipse viewers, however.

Idaho and Wyoming residents will also experience the 2017 eclipse. The weather in these states could allow a very good eclipse viewing experience. The eclipse occurs fairly early in the day, lessening the possibility of localized thunderstorms.

As the total solar eclipse tracks across more states, from Nebraska to South Carolina, the possibility of inclement weather increases. These locations will experience the eclipse later in the day. Afternoon storms, or hazy weather, could be encountered. Such weather could limit the eclipse experience.

Many US cities have already begun planning for the August 21, 2017 total solar eclipse. The event represents an opportunity to entertain tens of thousands of visitors to cities located within the zone of totality. With proper attention to details, cities can provide a favorable eclipse experience that also highlights the attractions of the local area. Weather permitting, of course.

Bonus Facts:

– the distance from the Earth to the moon increases each year. In less than 1.5 billion years, the moon will not be close enough to produce total solar eclipses. After that, only partial or annular eclipses will occur.

– when the moon eclipses the sun, the sky darkens enough to allow planets and bright stars to be seen in the daytime. On August 21, 2017, the bright star Rigel should be visible low in the south. – Albert Einstein predicted that a total solar eclipse could provide direct proof of the General Theory of Relativity. He postulated that the eclipsed sun would cause light to be bent, for an observer on Earth. This would be proved as stars located behind the sun would appear to be shifted in location. This visual evidence was demonstrated during an eclipse in 1919.

– as the moon passes in front of the sun, it blocks enough sunlight that the solar corona, the super heated atmosphere, becomes visible to people on Earth. The shape of the corona is different during each eclipse as it is influenced by the level of magnetic solar storms, which constantly changes.

– ancient civilizations did not understand the science responsible for total solar eclipses. Eclipses were attributed to supernatural causes and thought to be bad omens.

– the theoretical maximum duration of a total solar eclipse is about 7 minutes. The 2017 eclipse is less than half this duration, at 2 minutes, 40 seconds for those located in Hopkinsville, Kentucky.

– the sun is not safe to view during any portion of the partial eclipse phase. Even if only 1% of the sun is visible, observers risk damage to their eyes through direct observation. At this eclipse stage, the sun appears to be dim enough to view. Unfortunately, the lit portion still transmits full force sunlight to the optic nerve. Because the level of light is so much lower than normal, the observer feels no urge to avert their gaze. Moreover, the optic nerve does not contain pain receptors so victims are unaware that their eyesight is being damaged. Proper eye protection is vital for all observers of the partial solar eclipse phase.

Posted in Uncategorized | Comments Off on Less Than 1,000 Days Until the Next Total Solar Eclipse in the United States