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

Things To Do When Waiting For Exam Results

After your exams, you binge on caffeine, spend sleepless nights and bear a lot of stress. Well, it happens, especially when the result day is close. At times, the stress you have after exams is far intense than the stress you have during exams. There is no doubt that coping with this stress is difficult, but the tips below can help you keep the anxiety at arm’s length.

Move on

No matter what you do, you can’t go back in time to make changes. What is done is done. There is no use of comparing the answers. As a matter fact, doing so will do nothing except adding to your level of anxiety. So, take your time and move on.

Stay away from online forums

After your exams, stay away from online forums until the result announcement day. Although these forums are great places to spend time on, you shouldn’t go there just to see what others have to say about their performance in the exams. Reading the remarks of others about the exams on these online platforms may intensify your stress. Don’t sit idle

What you need to do is keep yourself busy. In other words, if you keep yourself occupied, your mind won’t pay attention to the result day. For instance, you can get a job or join a gym to keep yourself occupied. You can also start a hobby, such as gardening or photography.

Talk to a Friend

Spend time with your close friend and share your worries with them. Keeping it to yourself will only increase your depression. What you need to do is let your worries come out gradually at a certain pace rather than growing it inside you.

Write your worries on paper

In your free time, write you worries down on a piece of paper and then burn it down. While it seems odd, this technique will work wonders and you will feel better.

Sleep Well

Sleeping well is necessary if you want to stay fit both mentally and physically. It will also improve your quality of life. Ideally, you may want to get at least 8 hours of sleep in 24 hours.

Don’t drink

Alcohol can’t help you to stay happy. Instead, you should eat something healthy. You can drink milk or fruit juice, for instance. Be positive

Why should you be optimistic? Well, the biggest benefit of being positive is that it will help you lower your stress level. And this will help you deal with the stress on the result day. The least you can do is smile at others whenever you meet them. According to scientists, when you smile, you release a chemical known as endorphine. The stress hormone called Cortisol is also reduced. Therefore, you can get rid of stress by smiling.

In short, you will find these tips helpful. Keep in mind that stress will have a bad impact on your health. To stay in good shape, what you need to do is keep yourself busy, eat healthy and smile at others.

Posted in Uncategorized | Comments Off on Things To Do When Waiting For Exam Results

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

How Can I Set Up An Online Business?

If you’ve been considering setting up an online business you’ve most likely been motivated by sheer volume of buying and selling that is now taking place on the internet.

More and more people are buying products and services online. And if you set up your own online business you can claim your cut of this expanding marketplace. Here are the 5 steps to follow to set up an online business.

1. Pick Your Market

If you’re going to set up an online business your first task is to determine what type of business it’s going to be. Are you going to sell products or services? You can sell your own products or you can sell products produced by other businesses who will pay you commissions on your sales. Or you may choose to set up a membership website or offer teaching and coaching services online.

Getting a website online isn’t as complicated as you may think. Initially you’ll need to purchase a name for your website (known as a domain name). Next you need to ‘rent’ some space on the internet (known as website hosting). Lastly you’ll need a software package that will make it possible for you to put written text, images, videos etc onto your website. There are many website building programs available that make this whole procedure very easy.

3. Get Visitors To Your Website

When you website is online you have to get potential customers to visit it. There are two main ways to do this. You can use free website traffic techniques or paid website traffic techniques. Both have their pros and cons and the most effective traffic tactic to use a mixture of both.

4. Develop A Customer List

It’s doubtful that your website visitors will want to buy anything from you on their first visit to your website. They may visit your website and never return. But obtain a visitor’s email address with a special email capture form, you can remain contact with them via email. Your emails can keep them informed about your business and encourage them to return to your website. If you offer something of value for free in return for someone’s email address they are more likely to give you their email address. This can be something as straightforward as a free report or eBook that is relevant to your industry.

5. Provide Value

The content material on your website and in your emails, articles or blog posts has to be more than continuously trying to sell. When you provide high quality, useful information to your target audience will come to know, like and trust you. Your prospective customers will then be more willing to buy from you and continue to be as loyal customers for many years.

Posted in Uncategorized | Comments Off on How Can I Set Up An Online Business?

Marketing Trends To Follow

A business without marketing is like driving with your eyes closed. It’s because if you can’t tell anything about your products and services so you are not able to make a sell and therefore marketing is important in all aspects. It allowed you to know and understand the actual demand of the customer so you can sell the right products and services in a right manner that fits their need. So, what’s your strategy to stand out in the market in the year of 2017? Don’t get surprised, 2017 is around the corner and you have to tighten your belts and make a plan from now so you can win the cut-throat competition of the market and achieve all such goals which you are not able to attain this year. Content Remarketing: It simply stands for users who visited your website, but didn’t become a lead to bring them back to it. It bounced visitors into leads, increase brand recalls and effectiveness of SEO (Search Engine Optimization) and content marketing. Therefore, you must follow the content Remarketing trend in the year 2017 to achieve your target like a pro.

Mobile Website Ruling The World: Another thing you need to include in your 2017 marketing strategy is a mobile-friendly website. If you really want to rule the market and be in the each and every home so you have to switch to a mobile-friendly website. If you are not using mobile marketing to search new audience so you are actually losing all such opportunities which your competitors gain instead.

Video Marketing Is The Rising Star: Without any doubt, one good video can lead a massive social following because of people likely to watch a video instead of reading a page of text. It is an effective way of communication that allowed you to target a wider audience and therefore, you should include it in your marketing plan to win the ever-changing market competition. Storm The World By The Power Of Social Media: Social Media Marketing is about communicating with a wider audience. It allowed you to win the market and boost your position over the World Wide Web and increase your reputation.

All above points help you to make a winning strategy for the year 2017 which actually gives you the result that leads your business at a higher level. So, what are you waiting for? Make a plan as soon as it possible so you can implement it with confidence to achieve your goals.

Posted in Uncategorized |