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?

National League Teams Already Have DH, So Why Wait?

After nearly fifty years, the experiment will finally be recognized as a success. Baseball Commissioner Rob Manfred has hinted that the designated hitter, which the New York Times once called a “gimmick,” will be used in the National League.

It was in 1973 that teams in the Junior Circuit elected to have another player hit for the pitcher, a concept that most considered a short term effort to increase offense. History was made that spring when Ron Bloomberg stepped to the plate for the Yankees to become the first DH ever.

The DH quickly became a valuable tool for American League clubs, who went on to win five of the next seven World Series. Although the DH was not used during the Fall Classic, one must admit that it certainly proved advantageous in several respects during the season.

Because they did not have to bat, the American League pitchers were better rested with fewer bumps and bruises than their National League counterparts. The A.L. managers had happier players, since each team had nine starters and thus increased playing time for everybody.

Now that the Commissioner has broached the idea of the DH across the board, players on the National League teams can look forward to similar happiness. Manfred declared that the DH in the National League could come as early as the 2017 season. bolder move would be to institute the DH this year, an idea which would intensify the season as well as increase what has been an embarrassing lack of offense over the past half decade. This would be particularly welcome now, since almost half of the teams in the N.L. find themselves in complete rebuilding mode.

Not only would using the DH help these clubs compete, but it would also increase fan interest during the rebuild. Most clubs already have players who fit the DH mold perfectly, and here is the list of those sluggers.

Braves: Nick Swisher

The veteran has been a clutch hitter with decent power and pop throughout his career, but he currently has no spot in Atlanta’s regular lineup.

Brewers: Jonathan Lucroy and Chris Carter

Having Lucroy in the lineup without having to catch every day would certainly increase his production and career. He has already had experience at first, so he could occasionally allow Carter to get a defensive rest without losing his turn in the order.

Cardinals: Matt Adams

Adams would be the perfect DH, especially against right handers. A bonus for St. Louis would be using Yadier Molina as the DH against lefties, thereby preserving his health for a postseason run.

Cubs: Kyle Schwarber and Jorge Soler

Schwarber’s struggles in left were apparent in the playoffs last year, as he had been catcher for most of his career. With the DH in play, he could still catch on occasion and allow Soler to rest defensively.

Diamondbacks: Yasmany Tomas

The International free agent still has no true defensive home after an entire year in Arizona. He would be the perfect fit as DH, almost the Big Papi of the N.L.

Dodgers: Andre Ethier

Instead of trying to trade Ethier, as they have done for the past few winters, Los Angeles could have his quality bat in the lineup every day.

Giants: Buster Posey and Brandon Belt

The former Most Valuable Player and star catcher has already suffered several significant injuries behind the plate, so he has been used occasionally at first. Providing San Francisco with the option of the DH would help Posey’s production and lengthen his career, while allowing Belt more opportunities to spell the outfielders.

Marlins: Ichiro Suzuki

Another former M.V.P., Suzuki is still one of the most exciting players around. Seeing him bat every day would be a good reason for Miami fans to start coming to games. Mets: Wilmer Flores

Currently the fan favorite has no regular position, and he has enough power to warrant a role as the club’s DH.

Nationals: Clint Robinson

He is too good of a hitter to be a backup outfielder/first baseman, so Washington could really benefit from the implementation of the DH.

Padres: John Jay

He was acquired over the winter to be a backup outfielder, but a DH role could allow Jay to be a good veteran presence as San Diego undergoes a rebuilding year.

Phillies: Darrin Ruff

There is already controversy about Ruf taking playing time away from veteran All-Star Ryan Howard, a problem which the N.L. DH would immediately quell.

Pirates: Michael Morse

Had the DH come last year, the Pirates would probably have kept Pedro Alvarez. Nevertheless, Morse could fill a similar role in 2016.

Reds: Devan Mesoraco

Any doubt whether the catcher can fully recover from surgery to be an effective backstop, a situation that would leave Cincinnati without the All-Star’s valuable bat.

Rockies: Mark Reynolds

Reynolds, even though listed as a corner infielder, has always been the N.L.’s version of a DH. An edict from Manfred would simply make it official.

Posted in Uncategorized | Comments Off on National League Teams Already Have DH, So Why Wait?

Six Tech Trends to Know Heading Into the New Year

As we look back at 2016 and gear up for a new year, it’s smart to brush up on new trends in the legal industry. By new trends, I mean new technology, because the terms have become almost synonymous.

Technology has impacted our profession dramatically in recent years, and it continues to do so at an accelerating pace. If you’re not on the technology bandwagon, you and your firm will have a hard time staying afloat.

This fact isn’t a revelation. We’ve known for decades that success in most industries comes down to adopting new technology. But doing so in the legal profession comes with its set of challenges.

First, regulations make change difficult. Second, sometimes it’s hard to know which new products and approaches in the legal industry have value, and which are just hype.

Those challenges aside, firms that don’t embrace technology will have trouble attracting the best new legal talent. The revenue at law firms clinging to old school ways will drop off as a new generation of clients takes their business to new-school, tech-savvy companies.

What does it take to join the ranks of the new-school? There are six major trends to be aware of going into 2017.

Social networks

Social networking is the cornerstone of legal industry marketing. This fact shouldn’t be a surprise. Rainmaking has always been about networking, relationship building and word of mouth. It still is; these techniques in their offline form still build practices. But if you’re not working the online component, too, you’re at a catastrophic disadvantage. Social media has become a factor in how clients choose attorneys, according to a survey taken this year by FindLaw. In 2017, take steps to ramp up your social presence on your website and blog, on LinkedIn, Facebook and Twitter. Doing so will maximize your online presence and help you grow relationships over time.

Your clients, prospects, and leads are online and checking social media regularly. Being part of the social media landscape isn’t hard, but there are right and wrong ways to go about it. Invest in expert help this year. Set a goal to get your social marketing plan up and running in 2017.

Virtual Law Firms

These are firms that can operate anywhere: A lawyer’s home, a satellite office, even from inside a Starbucks. Many lawyers have closed their downtown offices and work remotely. Technology lets them do this without hurting service or quality. Remote work can reduce overhead and travel time while increasing flexibility and improving work/life balance. Plus, you have the option to rent offices or meeting rooms as needed.

The leap to virtual doesn’t have to happen overnight. Experiment by working remotely one day a week and see how it impacts your productivity and revenue. It may very well provide the edge your firm needs to succeed in 2017.

E-discovery

Electronically stored information (ESI) is now considered discoverable in court. ESI includes e-mails, texts, instant messages, voicemails and other electronically stored information. What you need to know: This technological reality has changed the face of litigation. Lawyers can (and should) use digital services to access all types of records. And we need to remind our clients that their deleted texts and e-mails are retrievable.

Legal process outsourcing

Outsourcing legal work to a vendor, law firm or overseas resource has become an increasingly favorable trend for law firms. Streamlined by new technology, LPO continues to cut expenses and reduce workload overflow. It can be a huge factor in scaling your business and managing workflow. LPO technology firms that market to the legal industry are on the rise. They’ll be coming after you in 2017 to present their case. When they do, listen.

Reviews and testimonials

Adding positive reviews to Google+, Yelp and Avvo is critical to growing your business and managing your reputation. 72 percent of consumers said they trusted companies more when they have positive customer reviews, according to a BrightLocal survey in 2014. The number of people reading online reviews is increasing, so take steps to post reviews in 2017. If you can’t get customers to go on record, that’s OK. According to the data, consumer trust increases even when the reviews are anonymous.

Cloud-based online document repositories provide secure, on-demand access to records for you, your clients, and your team members. You can store, organize, view, and change files.

More customers want instant gratification and access to their documents and records. It’s relatively easy to set up, makes for a better consumer experience, and can save you time from fielding emails and sending attachments. Make sure your clients have this access in 2017!

So there you have it. Six new trends that aren’t entirely new, per se, but are increasingly important as our industry ventures forth into the brave new world of 2017.

Lawyers like to err on the side of caution. Many of us are slow to embrace new technology or rock the boat. Historically, we get hung up asking ourselves whether we can afford to take such risks.

But what we need to be asking is: Can we afford not to?

At the end of 2016, the answer is a resounding no.

Posted in Uncategorized | Comments Off on Six Tech Trends to Know Heading Into the New Year

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