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

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

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

The Best Way to Learn Something New

When learning something new, the quickest easiest most successful way is to find a great coach and mentor. Recommendations are great, or Google the trainer you have in mind especially if the training involves the internet.

If you are learning anything, driving, hobbies, or even setting up a business expert advice to copy is the best way.

You need someone on hand to answer questions, offer training and monitor progress to make sure actions are followed in the right manner. Tutors work in schools, colleges and universities to teach and guide students, apprenticeships work in a similar way. Online language courses are guided with sound tracks to test yourself. Nurses are trained in hospital with supervision from superiors, in virtually all areas of life people are advised by others. Imagine athletes perfecting their style, golfers wanting to improve their swing without a coach. They may be picking up bad habits that are hard to correct in stance or execution. the same applies to most forms of learning, even learning a language, there is usually a voice operated system to copy.

So you need to be sure the coach you have chosen is honest and trustworthy and that they offer training that suits your learning style. Video is good as you can stop and start the video as you attempt to copy the actions. which is probably why YouTube videos have become so popular. However you also need direction to guide you through the learning process

There are currently 2,000,000,000 people daily searching Google for ways to work at home. A growing popularity of the internet, the growth of the relatively new industry and the fact that computers are included in the curriculum for schools. Most families now have laptops and other similar devices.

Franchises have always been popular because of the higher success rate that support gives the venture. The training the supervision and the system to copy. Internet marketing with a good coach and mentor works in a similar way without the extortionate expense of many franchises.

I am very lucky I found a great coach when I set out to develop an online business, it made my learning curve much faster and simpler. I didn’t feel so isolated or overwhelmed. Not only did I have a coach but the comradeship and support of others learning too. Another advantage is regular training and a great range of best-selling products provided for your customers and whilst you are learning the techniques you can earn commissions too. I found it much simpler than attempting to learn it all by my-self, source best-sellers and service my customers, when much of it was done for me.

So if a new venture appeals to you look out for a great coach, take a look at magazine racks for topic ideas and enjoy your new venture.

Make 2017 a year to remember!

 

Posted in Uncategorized | Comments Off on The Best Way to Learn Something New

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