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

Science Research Funding Under A Trump Administration – What Will Happen?

Right after Donald Trump won the presidency, scientists and researchers got together to stage a large protest with signs and marched on Washington DC to make their case for research funding fearing that academia would be cut off from those 10s of billions of dollars in money flows to themselves and their institutions. Apparently, academia is worried their gravy train will end, and maybe they are right – but protesting won’t work. Academia is already in serious challenges due to the outstanding college loan debt default rates. Is this a perfect storm for science? Let’s look at this a little closer shall we?

There was an interesting article in Scientific American in the January/February 2017 issue titled; “Ending the Crisis of Complacency in Science – To survive the Trump administration, scientists need to invest in a strategic vision that mobilizes social change,” by Matthew Nisbet which stated:

“As newly elected president Donald Trump takes office, the scientific community faces the likelihood not only of unprecedented cuts in government funding for research, but also of bold new attacks on scientific expertise as a basis for policy making and decisions. Trump campaigned on a pledge to eliminate as much as $100 million in ‘wasteful climate change spending’ and there have been reports of plans to severely cut funding for NASA and other agencies.” The article also talked about the NIH funding of Stem Cells and how they might turn back to the Bush years on that type of science funding. There was a point in the piece about the need for scientists to do better with PR and media so the tax paying public would be more supportive. In fact the author of the article suggested better cooperation with journalists was important to change the narrative to continue climate research funding.

Interestingly enough, the NIH and NSF and other big research funders are under the executive branch of our Federal Government. Academia is worried because they chose the wrong political side and academia had brain-washed our kids towards a leftist, socialist skew – they are in fear now, but they’ve allowed that academic bubble to build – academia has caused their own demise, with their High IQ’s they still don’t see it. What do I think of this as the founder of a Think Tank?

Well, here is my assessment; My gosh, that article was so out-of-touch with the new political landscape. In fact, Donald Trump’s Administration is a breath of fresh air for science, and he’s about the only one who can save scientific research and academia from their current path towards a cliff.

Sure there will be cuts in all the ‘politically correct research’ that many in academia are now calling “science” and yes there will be cuts in Global Warming research – after all, it is academia that continues to go with that IPCC globalist narrative that climate science; it’s “settled” by consensus (what?). The climate scientists hypocrisy is epic – you see, if it is settled then there doesn’t need to be anymore science research there, we already know right? Now then, we have to determine if we should act on that research or not to cut human emissions of CO2 (which by the way is only 3% of the total CO2 output of this trace gas). Academia can’t have it both ways and say it is settled, because if it is then there is no need to keep funding their incredible PhD level academic salaries then. Let them find something else to study or get a new line of work.

Sure there will cuts to BS science and waste – there is a ton of it, admit it. I see the grants being awarded by the NSF, NIH, and some of that crap is a waste. With the Trump Administration – the good science stays and the crap goes – there will be plenty of money and research for GOOD science. Academia will have to adapt, just like businesses do. Remember it was one of theirs who said; “Change is the only constant” so they will have to deal with it. No more sniveling.

Posted in Uncategorized | Comments Off on Science Research Funding Under A Trump Administration – What Will Happen?

New Jeep Wrangler Review

Introduction

The Jeep Wrangler Unlimited is a medium-sized, compact car from the famous SUV manufacturer. Its design roots can be traced back to Willy’s MB and Jeep CJ that used to be produced back in the early days of the SUV. The new Jeep Wrangler models have the traditional toughness you could expect from a Jeep yet gives an entirely refined appearance. The new 2017 Jeep Wrangler Unlimited is expected to hit the showrooms later this year. So, let’s give you a run-down of what you can expect from it and what changes are present from its earlier 2016 version as well as what its competitors are up to.

Appearance

The new 2017 Jeep Wrangler Unlimited won’t have a complete shift from its 2016 version that’s for sure since any major design overhaul from the company invites scepticism from the auto lovers. Most of us have been used to the rugged frame, full throttle four-wheel drive and a pair of robust axles and so we can’t expect anything too far-off. But, regarding the new model’s materials used, Jeep is expected to use rendered Aluminium since it will make the car even stronger yet lighter. You can also expect the iconic folded down windscreen as well this time around! Any mechanical changes?

Since Jeep has going on about it a while, we can possibly expect it in the 2017 edition, and that is the small matter of automatic transmission. The 2016 Jeep Wrangler Unlimited had 6-speed manual and 5-speed automatic transmission, and the problem was with the latter since the power breakdown wasn’t enough to cater for the heavy requirements of an off-road vehicle. So, Jeep will increase it to an 8-speed automatic transmission this time around, and this will help improve the accelerator response and fuel efficiency on the go for the new car. Torque is expected to remain unchanged at 260 lb/ft. The same thrilling 4WD experience will also be continued (Like it is ever going to end!)

Fuel Economy

Thanks to the new 8-speed automatic transmission and body frame, the fuel efficiency of 2017 Jeep Wrangler Unlimited is expected to increase significantly this time around. It can be as much as 1-2 mpg in manual transmission and 3-4 mpg in the automatic transmission. The car is expected to continue with 87-Octane fuel just like before. They are expected to go up a little bit more than the yearly inflation rates since the change in the transmission and body would require more premium work. Price range from a manual transmission-based two-door Sport model @ $25,000 and a fully loaded Rubicon around $45,000 inclusive of the destination fee that was about $1,000 on its own.

Competitors

Nissan Frontier, Subaru Forester, Toyota Tacoma and Colorado from Chevrolet are just a few of the competitors you can expect to give a tough time to the Jeep’s new and refined monster. But regarding fuel economy and pure thrill, who can come close to this beauty?

When is the release date?

The new 2017 Jeep Wrangler Unlimited is expected to release by late 2016 or early 2017 according to carpreview.com.

Posted in Uncategorized | Comments Off on New Jeep Wrangler Review

Real Talk on Overcoming Addictions

There comes a point in your life when you say “enough!” The fight within becomes so unbearable that you say.” No more, that’s it I’ve had it.” You’re done being a victim. A quick shift in consciousness appears. You hit rock bottom.. There is no way but up. You realize that you have to look yourself in the mirror and get real with yourself and become the person you know that you can become. Decide now and realize that “one day” is an illusion, “one day” never comes. Do the things that need to be done, now. The drugs, the sex, the feeling sorry for yourself, the hypocrisy, the porn, the lying, the whining and complaining needs to become a thing of the past.

Sometimes the truth hurts and sometimes the truth about yourself needs to be revealed. Lying to yourself and waiting on something outside yourself to save you ain’t gonna happen. You save you. Only the individual knows his or her truth. The doubts and fears are brought to the surface. We all know what we have to do in order to save ourselves. We have to go to the place that we don’t want to go. We have to get uncomfortable. The shift in thought becomes freedom. Look within and find the source of your misery. Face that demon and overcome it. We can be shown the way to end suffering, but it’s up to us to make the first step. We have to man up. Start with the small things and then gradually do bigger things. Start being grateful for the things you have now. Act the part or fake it till you make it and become liberated. There are people in the world who have so little and they are so happy. Happiness is a state of mind. Act happy, act free, become an actor. Don’t tell others your intentions either. Shut your mouth and move in the direction of right thought and actions. There are people in the world with every luxury that the world provides and they are miserable as hell. Happiness is not in material objects, otherwise those with the most wealth and stuff would be the happiest.

The kingdom of heaven is of no use if we think we can bring our vices with us. Heaven is a mindset. The old self, thoughts and habits associated with that old self has got to go. A new self has to be created. It can begin with a creation of a new attitude, a new way of seeing things and deciding to let go of things that don’t serve us any longer. Life is a journey and we all have obstacles to overcome. Dwelling on the past is useless. Leave the past in the past where it belongs.

Winston Churchill was the prime minister of the United Kingdom from 1940 to 1945 and again from 1951 to 1955 and he has a famous quote that reads, “If you are going through hell, keep going.” Don’t stop in hell and extend your visit, move on. Hell is a passing phase and for those who know where the keys to heaven are can enter. Heaven and hell are states of mind. Get tired, get fed up and do the things necessary to leave hell and enter heaven. Pray, meditate, read books, listen to motivational talk and fight to overcome temptation with everything you have. Change the way you think now. Stop listening to useless opinions, negative commentary from so-called experts. Resist being distracted by things that have nothing to do with the improvement of your life.

Learn from your mistakes and look forward to the future you want. Leave the past in the past. Get out of your comfort zone and get talked about. People gonna talk about you anyway, they’re talking about you now. Realize that not everyone will like you. Don’t take it personal. Not everyone like God, so why would you be any different? It’s almost 2017 and it’s time out for playing.

Technology is available almost everyone on earth. If you live in an industrialized nation, then there are no excuses if you want help for your addictions or destructive habits. The internet is full of free information and videos on practically any subject. YouTube is a great source for getting help in overcoming addiction. There are people from all over the world that will give free advice and tips. Just as technology can be used for bad, technology can also be used for good. I love technology, because it has helped me in overcoming a very bad addiction. I am free now. It took hard work, praying, meditating, counseling, books, videos and going deep within. Start with noticing the silent self talk within. Be aware of the voice in your head and watch it. The voice has always been there, notice the voice and separate yourself from that voice. Look at the voice from a distance. Silence yourself and resist falling asleep. Silence your electronic devices and spend time alone and watch your thoughts. You will start to think about what you are thinking about. Realization of the false self shows itself. Next, you will see the addict, the complainer, and that false self for what it is. A new way of seeing is revealed. If you have ever said,”what was I thinking?” That realization is a glimpse into consciousness awakening.

Going through hell can be a great teacher. Decide now and change your mind. Quit playing and realize that life is passing regardless. Get fed up and make the change for a better life now. Do what you know you should do. Free your mind now.

Posted in Uncategorized | Comments Off on Real Talk on Overcoming Addictions

How to Get What You Want in 2017

It is almost 2017 and time to start thinking about those New Year’s resolutions but the problem with New Year’s resolutions is that so few people actually achieve them. Why is this and what can you do to make sure you actually get what you want in 2017?

1. Write Down Your New Year’s Resolutions and Set SMART goals

The first step towards achieving what you want is to actually write it down and turn resolutions into goals. An unwritten resolution is quickly forgotten and unless you have some written, specific goals chances are you are just going to be wandering. SMART goals are specific, measurable, attainable, realistic and time-bound. In other words, say exactly what you want to achieve, by when and have ways of measuring how you are getting along. 2. Develop Habits and Consistency

Another problem that often occurs with New Year’s resolutions is that people do not form habits and develop consistency in those actions that are going to get them there. For instance, if you want to lose weight, it needs to become a habit to exercise and eat healthy foods. They say it takes 21 days to develop a habit but it is actually better to consistently stick to it for 63 days to ensure that the habit is well entrenched into your lifestyle before taking any breaks. Not all habits need to be done every day but you do need to be consistent in doing those things that will get you towards your goal.

3. Track and Measure

Set smaller goals and ways of measuring how you are making progress towards your major goal and then track these. Start by tracking those habits that it will take to get you there – how many times have you exercised this week for example. As you are tracking you will see how even the small steps count and will be more motivated to keep moving towards your major goal.

4. Stay Positive

Your mindset has a huge role to play in whether you are going to achieve your goals or not. Always try to remain positive and think positively. Focus on what it is you want but don’t beat yourself up over setbacks or slip ups, you will get times where things don’t go perfectly or you may have a setback but just keep going and you will get there.

Instead of just setting some New Year’s Resolutions for this next year why not turn them into actionable goals, develop habits that will help you achieve them and track these consistently. Keep positive and all the best for achieving whatever it is you want to achieve in 2017.

Posted in Uncategorized | Comments Off on How to Get What You Want in 2017