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

Think Outside the Marketing Box: 10 Quick, New Ideas for 2017

The holidays are upon us again. It’s the time of year for good cheer and some creative marketing ideas to end your year right.

If you’ve been in a marketing slump through the fall, try a few new and interesting ways to get a little more business for your small business:

  1. Create a personalized calendar to gift your clients. You can include inspirational quotes or advice for each month. Staying in front of them will solidify your brand in their minds for years and years to come.
  2. Give your customers a small gift of appreciation, like a customized sticky screen cleaner or promo handout. If you happen to give something that is useful and is well made, your customers won’t just thank you, they will be more interested in giving you referrals to other potential clients. Offer gift cards to give customers more flexibility for gifts. Be sure to place them near your checkout to encourage impulse buys. Starbucks or Amazon gift cards tend to be consistently well received.
  3. Take clients to a more personal lunch or brunch instead of throwing a larger, impersonal holiday party. Focus on having a good time and building rapport through not talking about business. They will take the gesture and thank you by becoming your biggest cheerleader.
  4. Host a day with Santa at your business where you provide free photos with the jolly old man. If your target market has kids, this will be a huge hit.
  5. Give holiday shoppers a free shoulder massage by hiring a masseuse for a few hours.
  6. Partner with other local businesses to give a package of coupons in each shopping bag. This is also a way to encourage sharing business ideas with your neighbors or setting up referral incentives with them.
  7. Sponsor a local event. This time of year many run clubs and other organizations hold holiday runs or New Year’s Day resolution runs or other events. Pick one you enjoy and sponsor it to get your name out. Pair with a local charity. Schedule an event where you and your staff volunteer with the organization. Offer discounts to your customers who volunteer their time with the same organization.
  8. Hold a customer appreciation sale during hours when you are normally closed to show your customers how much you appreciate their loyalty. Create a special invitation and think about giving them door prizes and small gifts for patronizing your business.
Posted in Uncategorized | Comments Off on Think Outside the Marketing Box: 10 Quick, New Ideas for 2017

Autodesk : Top 4 New Features

Autodesk introduced AutoCAD 2017 in March 2016 aiming to help its users stay at the forefront. This latest release lets you work quicker and smarter across connected desktop and mobile solutions, create personalized design experiences, easily team up with colleagues, and stay updated with the latest features and updates. AutoCAD 2017 also includes AutoCAD 360 Pro, a mobile app that allows users use AutoCAD on the go. The latest version addresses several user functionality requests and delivers features that enhance everything from workflows to graphics processing. According to Autodesk, several AutoCAD users globally will be benefitted by several enhancements that have been added in the latest version, such as enhanced 3D printing, new features such as ‘smart centrelines’, share design views on cloud and improvements to PDF handling features.

In the updated features of the 2017 version, PDFs have been added to the supported ‘import file’ formats. As a result, users can import geometry, True Type text and raster images from a PDF file or underlay into the current drawing as AutoCAD objects. Also, the centerlines and center marks get updated accordingly when users move associated objects. Learning content and product updates are seamlessly delivered to help users get the most out of new features with Autodesk Desktop app, an application that substitutes Autodesk Application Manager. Here, users also tend to get the latest security patches and updates for all 2015, 2016, and 2017 versions of Microsoft Windows based Autodesk products. Now, let’s discuss the top 4 new features that Autodesk has included in its AutoCAD 2017 release. Top 4 New Features in Autodesk AutoCAD 2017

Enhanced 3D printing

Utilising the new Autodesk print studio you can create a 3D print ready file and directly print it in nearly all types of 3D printers. This 3D printing tool is offered by spark technologies and is available for 64 bit machines only. To make full use of this tool, you need to go to AutoCAD 3D modelling workspace and select print studio tool from 3D print panel of output tab. If it’s the first time you are using this tool then a prompt will appear from where you can download this tool. After you’ve downloaded and installed, click on print studio again and click on watertight or closed mesh object from your drawing which you want to use for 3D printing.

Smart Centrelines and Centre marks

This new AutoCAD release lets you to easily add centre lines and centre marks to the geometry. Likewise, you need to type the command ‘Centremark’ and click on circular object to create the centre mark, you can use this command to make a centre mark on circle, arc and fillet. Share Design Views on Cloud

Now, you can directly share files with users who don’t even have AutoCAD using A360 cloud account and all they require is a web browser for accessing shared drawing. In order to share a drawing, ensure that you’re logged into your Autodesk 360 cloud and your drawing is saved.

Co-ordination Model

In AutoCAD 2017 coordination model functionality has been improved with support for object snaps. Attach a Navisworks or BIM 360 Glue model to your AutoCAD drawing so you can view it as an underlay. Then just use the standard AutoCAD endpoint and center object snaps to snap to exact locations as you create and edit your design based on the attached models.

Posted in Uncategorized | Comments Off on Autodesk : Top 4 New Features

Economic Cycles, Stock Market Crashes and the Scary Scenarios

Here we are ready to inaugurate a new president in 2017 and our stock markets are at all-time highs after a huge ‘Trump Bounce’ after the election. Many that study stock market history admit that we are in a need for a pull back as the DOW is almost ready to break 20,000 pts. What does all this mean?

Well, many analysts are suggesting it is very possible we could get a market correction in mid to late 2017 and that it could be 10-20% by the time it is done, the longer this nonsense goes on, and the bigger the bubble builds then the bigger the drop, we are over bought, almost everywhere. Then all that money printed that ended up inflating emerging markets will look for safe haven, coming back here in the short term. As those go one-by-one, that money flies out, because the money is looking for the nicest looking house (for now) in a majorly bad neighborhood, look at the EU, Japan, Middle East, India, and who knows what the hell China’s real numbers are, they have one thing going for them, they own our debt – but that might not be worth much if things go on. All that money coming back to safe haven in the US will cause inflation here, but at what cost?

Cheap loans, another bubble burst and look at the Student Loan issues 35% in default (past 90-days) and cheap car loans is only producing higher repo rates which are hidden by increased sales figures. It’s all lipstick on a big pig, socialism doesn’t work and you can’t have utopia unless you build it, and that takes capitalism which we are crushing into next week for the falsehood of cronyism. But I digress.

If we don’t get a back pedal on the stock market soon, it will all come at once, and 2008 was 8-years ago remember? That wasn’t a recovery that I’d be bragging about – basically we’ve increased regulations, size of government, and cut our military – all very stupid things to do in the present period. We are digging a hole, and I assume when if it starts to fall apart the left will blame capitalism and get their people back into power – and they will just make things worse – this seems to be a repeating problem with humanity doesn’t it? That is what socialists always attempt to do, but it all collapses anyway – Venezuela, Argentina, Greece, Spain, Italy, Portugal, Zimbabwe, hell, how about that Arab Spring a few years ago, still in shambles – Libya, Egypt, Tunisia, Syria, Yemen, who’s next? Jordan, Turkey, Saudi Arabia? Civil unrest, food shortages, people will demand what was promised and take down their governments to get what’s left. Beware the socialist mobs. But I keep digressing.

Posted in Uncategorized | Comments Off on Economic Cycles, Stock Market Crashes and the Scary Scenarios

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