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

Mercedes Benz GLS : Premier Luxury SUV

American buyers can book their Mercedes-Benz GLS 2017 in December as deliveries initiate from March 2016. As of yet, no information is released regarding Australian and UK markets. Furthermore, fuel efficiency, pricing and performance are still undetermined.

Mercedes-Benz GLS 2017 is in essence a revamped GL-Class model. As per the GL strategy, all Mercedes’s vehicles including crossovers and SUVs initiate with GL-, followed by a letter, denoting the vehicle’s size. S-class includes the largest vehicles in category.

Apart from that, little is revised in GLS model, with trimmed down headlights and bumpers resembling its smaller models and LED lights are normative in Mercedes vehicles. Owners of Mercedes GLS-550 can opt for sports version for an aggressive edge.

Fast Facts

· Price: $64, 500

· Horsepower: 240-550

· Engine: 3.0 V6

Horsepower categorization Mercedes-Benz is all geared up with their engines slated to be incorporated into Mercedes-Benz GLS.

· GLS-350 BlueTEC is powered by V-6 diesel engine with turbo-boost, capable of producing 455 lbs-ft of torque and 240 horsepower.

· GLS-450 is equipped with V-6 turbo-engine, capable of producing 369 lb-ft of torque and 360 horsepower.

· GLS-550 is equipped with V-6 turbo engine, capable of producing 516 lb-ft of torque and 429 horsepower.

· The GLS-63 consists of factory-fitted V-8 turbo engine, producing 560 lb-ft of torque and 550 horsepower.

Engine categorization

The GLS model consists of the following categories:

· The GLS-350d is equipped with a 3-liter 6-cylinder engine.

· The GLS-450 is powered a by gasoline 3-litre 6-cylinder engine

· GLS-550 is equipped with 4.7 liter turbocharged 8-cylinder engine.

Miscellaneous options consist of adaptive damping options along with selectable modes, air suspension and driving modes for personal preferences.

Mercedes-Benz GLS 2017 can be facilitated with Distronic Plus, Mercedes’s own semi-autonomous cruise control system. It will operate at a predetermined speed before the driver takes control of the vehicle.

Interior

Mercedes-Benz has included subtle changes in its GL-class, updating various features from the 2013 version. The SUV class is now termed as GLS, depending upon the model of Mercedes in question. Mercedes-Benz GLS has an updated infotainment system, using trim materials and redesigned dashboard.

Mercedes GL class has been revamped for 21st century stylistic aesthetics. The infotainment screen has been redesigned into a floating tablet appearance, redefining Mercedes-Benz interiors. Furthermore, center console, instrumental panel and 3-spoke steering wheel have been redesigned. GLS models are normative with 3-rows of seats. In tech section, GLS model is remodeled with ample options. Normative tech utilities include myriad of safety systems, such as collision warning, automatic braking system and attention assistance for preventing drowsiness during driving. In case of an emergency braking, the vehicle will apply extra pressure.

Added tech galore

At an extended price, the GLS model can be bumped with impressive tech options. For an extra price, blind spot monitoring, cross-traffic detection and active lane-keep assist can be incorporated. With Active Curve System, the body rolling during taking sharp corners is reduced. Magic Vision Control facilitates spray free cleaning of windshield.

Pros

· Optimum for long-drive

· Attention-grabbing interior

· Comfortable seating

Cons

· Large size is a hindrance in driving

· Added tech can be expensive

· Driving cost is high

Posted in Uncategorized | Comments Off on Mercedes Benz GLS : Premier Luxury SUV

10 Ways Entrepreneurs Can Change the Social & Economic Story

Men and women who create for-profit and nonprofit new ventures can and should do things of the kind that the President-Elect is likely to neglect, negate, or avoid. Entrepreneurs can quietly change the story, one organization at a time, whatever government may or may not do.

Here are ten ways venture founders can alter the course implied by what we know of Donald Trump’s intentions. They are all within our own authority, not those of government. We can:

  1. actively appreciate the economic and social needs of disadvantaged groups and consider how our own organization can make a difference-or start a new one that can; at least ensure that our own organization does not contribute to disadvantage;
  2. be inquisitive about rural and underserved populations adversely impacted by political, economic and tech change-and examine ways that our organization can make a positive contribution, including the offer of products, services or employment;
  3. create inclusive policies on gender, gender identity, race, national origin & religion; offer all employees dignity & respect, provide healthcare, parental leave, clear policies on sexual harassment, & the opportunity for participation in decision-making and sharing organizational success;
  4. take the opportunity to participate in the life of local communities to mutual advantage, through direct civic engagement, as well as supporting employee volunteering; become involved in community supported enterprises;
  5. evaluate all practices of the organization that may contribute directly or indirectly to climate change-and introduce ways that will reduce pollution; seek to be powered by clean energy and move to zero waste;
  6. ensure that the pay ratio between the highest and lowest paid members of the organization does not exceed 20:1 (as it was in 1965) to reduce financial inequity, given that the ratio between average American CEO pay and worker pay is now 303:1;
  7. re-examine the consequences of all purchasing decisions, in order to avoid pain and hardship, either in supplier organizations or the local and global community; research supplier behaviors on socio-economic parameters;
  8. commit to support the lifelong learning of all members of the organization, regardless of where they are starting or what position they hold-through internal development programs and external qualifications;
  9. employ socially responsible financial policies that do not disfavor any stakeholder, either close at hand or nationally, as well as avoiding immoral or self-serving practices, such as the avoidance of repatriating foreign profits;
  10. build a widely communicated progressive corporate story that is reflected through the behaviors of everyone in the organization and enshrined in all official organizational procedures; regularly monitor its reality.
  11. GEI scores 137 countries on 14 pillars of a healthy entrepreneurship ecosystem

Posted in Uncategorized | Comments Off on 10 Ways Entrepreneurs Can Change the Social & Economic Story

Whither the World’s Fair?

The moniker “Expo 2017” is currently being bandied about in North America. In the US, various optimists, often plain vanilla citizens like you and me, have launched web sites and forums promoting a return of the world’s fair–or Expo 2017 in this case–to America. In Canada, at least four cites and/or organizations have recently promoted the idea of an “expo”, with one of the first efforts publicly unveiled in Montreal in 2007.

In America, the idea of a world’s fair–an officially sanctioned one, that is, will conceivably remain a distant dream until Washington comes to its diplomatic senses and rejoins the Bureau of International Expositions, or BIE–the governing body in Paris which awards world’s fairs in much the same fashion as the IOC decides who gets to hold the next Olympic Games. Just like the Olympics, an aspiring world’s fair applicant is required to invest a considerable amount of energy and expense putting together a bid, and, of course, impressing the appropriate officials. Unless, perhaps, you’re the city of New York which, after a clash with French dignitaries, decided to hold its 1964/1965 World’s Fair without BIE approval. At the time, superpower America had enough clout that many of the nations who were subsequently prohibited by the BIE from participating decided to show up anyway, posing as trade and tourist organizations.

Right after New York, and only a skip across the border, the city of Montreal staged what is often considered to be the most successful (and BIE approved) world’s fair of all time. Set on a sprawling venue of two man-made islands and a peninsula in the middle of the Saint Lawrence River, Expo 67 introduced a number of technological and cultural “firsts”–including the now ubiquitous moniker “expo” itself.

There are “expos” for everything now, from computers to kitty litter, while the mighty world’s fair that spawned these cheap imitations hasn’t been seen in North America for decades. Even if a city here managed to secure an official bid for “Expo 2017” it would be for a much smaller affair, a “recognized” expo limited by the BIE to 25 hectares exhibition area. That’s because there have always been two types of world’s fairs, a very large one (a “universal expo”) and, in-between, a smaller one (a “special expo”)–both of which are now, respectively, called “registered” and “recognized” fairs. In 2017, unfortunately, only the smaller recognized expo is allowed.

Nevertheless, I would argue that the world’s fair not only needs a major boost in North America, but that North America desperately needs another world’s fair. No other event has the collective potential to attract a huge audience to the latest cultural and scientific endeavours humankind has to offer. With our planet in the precarious state we have put it in, and North America no longer as influential and respected as it used to be, a world’s fair, properly staged and presented with the latest social and environmental initiatives, could be the political and technological beacon of hope this continent is yearning for. Of course, that might mean that Expo 2017 would need to encompass a great deal more than 25 hectares exhibition area and would need to address a lot more than the narrowly restricted theme (the fair’s purpose) officially allowed by the BIE for a smaller “recognized” expo. This could be done, with a little creative thinking (and without resorting to New York’s 1964 strategy), but that’s for another article to address.

Posted in Uncategorized | Comments Off on Whither the World’s Fair?

The Eurozone Train Wreck Continues Into 2017

The European Union seems to be trying to hold itself together, but it is indeed wobbling itself apart like an aircraft engine with an unbalanced propeller and the vibrations are getting worse reverberating from one side of the continent to the other, where no nation is spared from the challenges which await – so what can we expect in 2017 you ask?

Well, “Brexit” has already had some effect on Germany and other nations are considering similar exits from the EU, which could quicken its demise. The recent Italian vote was problematic as is the condition of the Italian banks. Remember when Greece got caught short? Do you remember in 2014 what was going on in the EU? Let me remind you quickly:

MSNBC Money “China, France drag on global manufacturing revival,” published on February 3, 2014, written by Jonathan Cable and Koh Gui Qing which stated; “Manufacturers around the world enjoyed a solid start to the year as order books swelled, surveys showed on Monday, though a struggle for growth in China and a downturn in France took the shine off the overall picture. Euro zone factories had their best month since mid-2011 and, with unemployment near record highs, increased headcount for the first time in two years. They were led by a sharp pick-up in Germany and a revival among the states on the region’s periphery. But France, the bloc’s second biggest economy, remained a drag on the region.”

As an example Greece, when they entered the EU they had a bad credit rating and any loans would of cost them a lot in interest, when they joined the EU they effectively got the same rate on loans as Germany who as you probably know are very stable in the financial sector, so Greece took loans out at low interest rates for years.

Yah, Greece has always been a financial disaster like Argentina or Zimbabwe… now it’s all gone sour they are left with huge debts and so on, Italy and Spain are in the same boat and seeing as the UK loaned ALOT of money to Spain and others we are massively exposed to the crisis. Spain for example has more empty property (new builds) than the ENTIRE USA.

Real estate tanked in Spain, we all read about that in the WSJ, few in the US realized it was that bad. In 2008 China was challenged even after their 2008 stimulus as their municipals did elaborate growth projects, building for the sake of it?

Remember the original plan for the EU was to introduce one currency (which they did) and then introduce a EURO Government to manage it, the second part never happened and now the backlash is huge, and it doesn’t really matter that the 2008 crisis started in the US. The EU wasn’t doing that well before the crisis. And we shouldn’t blame the US for the crash, let’s not forget one of the enablers was AIGs London Office selling insurance often with guarantees in excess of 130% of face value on those mortgage bundles and credit default swaps.

Yes, we have some socialists in the US and when the capitalists and socialists get together or start using each other it is as if everyone loses their brains. So, the slow-motion train wreck and Eurozone melt-down continues, who is to say if it can continue for long without falling apart, and once that engine falls off the plane, its coming in for a very hard landing. Let’s hope that doesn’t happen in 2017.

Posted in Uncategorized | Comments Off on The Eurozone Train Wreck Continues Into 2017