<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hitesh Jain on Medium]]></title>
        <description><![CDATA[Stories by Hitesh Jain on Medium]]></description>
        <link>https://medium.com/@hiteshjain118?source=rss-6f1364df5c4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aVe6oHm5YotnYH3ZdjC12Q.jpeg</url>
            <title>Stories by Hitesh Jain on Medium</title>
            <link>https://medium.com/@hiteshjain118?source=rss-6f1364df5c4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 01:03:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hiteshjain118/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My takeaways from reading Effective Executive]]></title>
            <link>https://medium.com/@hiteshjain118/my-takeaways-from-reading-effective-executive-c2823c5bd823?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2823c5bd823</guid>
            <category><![CDATA[knowledge-work]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[effective-executive]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[peter-drucker]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 05:24:48 GMT</pubDate>
            <atom:updated>2020-06-02T05:41:14.269Z</atom:updated>
            <content:encoded><![CDATA[<p>Effective executive is a book by Peter F. Drucker who is a well published author of modern management theory. Lots of his theory and principles have been incorporated to run modern organizations.</p><p>Drucker gave an example of Bell Labs/AT&amp;T — which became the only privately owned telecom corporation in North America for several decades. Under the leadership of Theodore Vail for two decades, Bell Labs pursued a deliberate strategy and 1) advocated for regulation within the sector since he saw embracing regulation as the only way for the company to stay private, 2) setup an innovation lab in the name of Bell Labs, putting the division in competition with the present, which would invent one technology after the other 3) created a very desirable stock AT&amp;T for the common man(in the era of speculation, a few who had access to capital markets) for sustainable capital access to fuel the business operations. I’ll let your imagination to connect some of the modern time examples to some nuggets in this example.</p><p>According to Drucker, within modern corporations an executive is someone who makes decisions that change the organization or a business in a meaningful way. A chemist working alone in a lab is also an executive since they are making multiple granular decisions that dictate the course of their research. Managers and individual contributors are both making multiple important decisions today within modern corporations to interact with the environment, their customers, hold the corporations together and propel their businesses forward. That’s why most companies have parallel manager and individual contributor tracks lately. To summarize, everyone who is engaged in knowledge worker is an executive.</p><p>Knowledge workers are much newer to the us than the manual workers. Prior to the advent of the computers and internet there were mostly manual workers with a few overseers and even fewer knowledge workers. But the developed world we live in now has a very large number of knowledge workers with the manual work off-shored to developing or undeveloped countries. While performance in manual worker can be quantified in terms of quality and quantity, performance in knowledge work is quite complex to judge since their work is only useful as long as someone buys in to their knowledge or ideas. Without action or adoption of their ideas, it’s meaningless or just good intentions.</p><p>The book has a number of good tips on how to be more effective for someone engaged in knowledge work. A number of the tips were obvious or well known, f.e. knowing where your time is going, being very specific and focussed on your own contributions to the whole, constant touch with the reality and the operational environment, careful appraisal of the situation with all the boundary conditions, identify the governing principles, pursue a deliberate strategy to solve the problem with each of the symptoms being adaptations in different situations, being very outcome focussed and action oriented. A lot of people around me have been practicing all these, but it was nice to read about them more formally in Drucker’s presentation.</p><p>An interesting takeaway on negotiations — almost all negotiations have a compromise at the end. To be an effective negotiator, start with what’s right, instead of what’s acceptable. It’s absolutely essential to have clear objectives laid out in the proposal. Ones those are understood, the negotiator should think about what are the concessions they are willing to make preserving the meat of the proposal.</p><p>I could relate some material to my earlier read, Leadership:In Turbulent Times, which talks about four American presidents and how brought about transformational change. Overall it was an interesting and a quick read.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2823c5bd823" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leadership:In Turbulent Times — III]]></title>
            <link>https://medium.com/@hiteshjain118/leadership-in-turbulent-times-iii-c6ed5afa1494?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6ed5afa1494</guid>
            <category><![CDATA[president]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[lyndon-johnson]]></category>
            <category><![CDATA[goodwin]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Sat, 23 May 2020 18:09:35 GMT</pubDate>
            <atom:updated>2020-05-23T18:34:11.902Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leadership:In Turbulent Times — III</h3><p>Continuing from the previous stories, this is the last one in the series of presidents as I’ve been reading Goodwin’s seminal work on leadership. Goodwin was an intern in the Oval office and active in the anti Vietnam movement during Lyndon’s presidency. Thanks for reading so far with me. I have addressed the feedback I received from the readers on the last stories.</p><p>It’s about Lyndon B. Johnson or LBJ(here onwards). Out of all 4, LBJ seems to be the most ‘human’ to me :).</p><p>LBJ was a Democrat from Texas(in 2020, Texas is Republican :)) served as the president of the US from 1963–69. LBJ is known for his tremendous work on Civil Rights reforms, ending the dry spell lasting more than seven decades after Lincoln ended slavery in 1860s’.</p><p>Throughout his career LBJ searched and found strong faithful mentors who invested in his success. LBJ looked up to them, depended upon them, was sincerely devoted to his mentors absorbing their stories and expertise, following their advice.</p><p>During college, LBJ started off sweeping floors, managed to engage the college president through his story telling, keen interest in acquiring a mentor, eventually becoming a very trusted personal secretary taking over all the administrative work and managing his correspondence with everyone else.</p><p>LBJ became principal at a small school in southern Texas with high Mexican and Black population, which is also first instance of his entrepreneurial spirit. Making the success of the school and students part of his own ambition, he completely transformed the school infrastructure for sports, taught students, conducted debates, etc. Even utilized some of his own funds. He brought the same rigor and zeal to another role working at a college where he transformed a sluggish debate club, to something very engaging and forceful where there would large audiences, cheerleaders watching the students contesting at district/state level. He pushed his students to be better, sometimes pitting one against the other to spark a little rivalry, making both better.</p><p>Through his connections he went to Washington and went to be the Secretary to Richard Kleberg who was represented Texas in the House of Representatives. Through his work and contagious enthusiasm, word was spreading about LBJ within political circles and eventually he met Sam Rayburn, who becomes another great mentor his life. Through Sam, young LBJ managed to become the director of New Deal initiative(package of reforms launched by Roosevelt after the Great Depression of 1929) in all of Texas. LBJ channeled all his vocational ideas by spinning up multiple initiatives throughout the state. At a point he had 18,000 people working on these initiatives across 350 agencies throughout the state. Some of the initiatives like roadside parks for quick breaks for travelers even became national roll models and got replicated elsewhere. LBJ would get very angry and lash out at his team — why is the letter not ready yet? Why have you not responded to the mail yet? He pushed his team to new limits, acquire new skills, be very imaginative, asking them for complete loyalty and submission, long hours 8 am — midnight were the norm, creating competition among them. A well organized desk was a sign of idleness while a disorganized desk was a sign of slacking. LBJ vacillated between being super secure and super insecure, assertiveness and indecisiveness, charm and taunting cruelty, desire to please and need for control. This was shaped thru his childhood experience, when he would have to negotiate between his misaligned mothers’ and fathers’ vision. All his life he would continue to work at very compulsive pace as if victory and success would somehow reclaim the love and affection he had been denied as a child. Even through all this, most of his team still stuck around due their bosses strong belief in the shared mission. No matter how late they stayed, LBJ would close the door behind them. Some of the staffers even lived with LBJ in his home. They stuck around to ride the entrepreneurial momentum and breadth of a very large story which was much larger than any one of them.</p><p>The swiftness with which he made life altering decisions is evident in how quickly he made up his mind and declared his intent to run for Congress from Texas, the moment he glanced at the newspaper depicting the death of James Buchanan, the then congressman. He shook hands with pretty much everybody he encountered, introducing themselves, having casual conversation. He even memorized the conversations, their relationships which was a carefully nurtured talent. LBJ became a strong proponent of Roosevelt(then president), strongly standing for his policies. (Notice Texas was a Democrat state then). In just a couple weeks, young LBJ fought and won against several aged and seasoned politicians. The young congressman-elect brought power and electricity to Hill Country, federal aid to Austin to uplift and clear out the slums, through his overwhelming enthusiasm, navigating the bureaucracy and congress, developing a strong relationship with Roosevelt and his other mentors.</p><p>In 1941, LBJ ran for the Senate. LBJ wasn’t a good public speaker. His speeches were essentially bland, unable to engage the audience. The figures of speech he used in informal communication were essentially absent in a more formal setting. He relied on handshakes and informal chats which were insufficient considering the size of Texas and the corruption back then. As a result, LBJ lost this election. Throughout his life, LBJ, thru his relentless efforts only knew how to win, starting with his victories at the schools, college, NYA, as a congressman. The loss enthused tremendous depression in him, led to several health problems and was a very tough phase in his life. He felt as if the people betrayed him, going back to the congress after losing the election was super frustrating for him. The institutional structure was a misfit for his temperament, where the people would stick around for two years, then leave, staying siloed in their shells behind layers of bureaucracy. LBJ believed in face-to-face communications, quickly making friends. The tailwind from Roosevelt was also absent due to the president involved in other engagements.(World war 2 was on during those times :)). This pushed LBJ more towards conservatism, he shunned the New Deal initiatives publicly once, focussed on amassing wealth for himself, drifting massively from his earlier ideology.</p><p>Opportunity present itself again seven years later with another election for the Senate. This was a massive opportunity cost for him and end of political career since he wouldn’t go back to being a congressman after losing this race. It was pretty much all or nothing for him and he took the plunge and won. Senate was the place where his skills of persuasion, charm, intimidation, face-to-face conversation, small group conversation would be immensely valuable charging his career forward. He was quick to spot the gears of power in the Senate in an informal coalition, led by Richard Russel. LBJ became his protege, took good care of him would see him everyday, have breakfast and dinners together, seeking his wisdom as much as he could. LBJ presented an elaborate plan for helping the poor, underprivileged, sick, elderly would completely dwarfed any such proposals before. He was really championing the New Deal programs now. Navigating the politics, he knew what his fellow politicians wanted(more lime light, foreign trips, conferences) and he found ways to get them that and slowing indebting them, he rose from Party Whip, to minority leader and then majority leader, engaging the young Senators, passing the first civil rights legislation nearly~70 years after the Civil War. Even though there were opinions regarding the bill being toothless, bring so many factions to compromise and settle on a bill was a remarkable achievement. Passing this bill was a momentous victory for LBJ and the Democratic party owed him a presidential nomination. For that to happen the power had to shift south and west. When the Democrats met, they chose John F. Kennedy as the presidential candidate and LBJ got the second ticket or vice presidency and they won.</p><p>LBJ in his classic style assumed to enlarge the breadth of vice president’s office but his efforts were stymied. Bereft of meaningful work, LBJ went into depressions, lost interest in work and meetings. He would be the most vocal in civil rights meetings but sulk in other topics. The elevated status, fancy dinners, trips, meant nothing to him. To his luck, Kennedy was assassinated and LBJ was made the president.</p><p>Kennedy’s assassination, uproar in the civil rights movement, filibusters deadlocking the Congress and Senate made the perfect environment for LBJ to take over the helm and lead the country to the path of progress. Kennedy focussed more on foreign affairs, also pursued a domestic policy which was stuck in Congress for the longest time. LBJ doubled down on the domestic policy, leaving the foreign policy aside. LBJs inaction and neglect of the foreign affairs during the Vietnam War brought him a lot of bad name and criticism, leading him to withdraw his candidacy for future election. Domestically, he envisaged the government to an assembly line of ideas with its several constituents — congressmen, senators, factions, minorities, majorities, etc making it a golden era for civil rights reforms and one of the most productive eras the government ever had with maximum number of bills enacted as laws.</p><p>LBJ had a way of dealing with people, being a master of timing, evolving the situation to his advantage, balancing persuasion and coercion, wielding his deep knowledge of government machinery, ability to identify the gears of power in the organization, influence and enthusiasm to push things through the way he had envisioned. There are numerous such examples — after Kennedy’s death, realizing the deadlock in the Congress, he flipped the order of bills with the tax cuts bill going in earlier to generate momentum for the more contentious civil rights bill. With only 11 months left for the next election, LBJ went all in for the civil rights bill, working with Martin Luther King and other activists to persuade the congressmen to gather enough votes against the person who was blocking the bill, forcing the bill to come to the floor, gathering bipartisan support painting Civil Rights as a Human rights issue, Black problem as an American problem, eventually garnering enough votes to pass the bill through both the House and the Senate. He eventually secured another presidentially term with a sweeping majority.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6ed5afa1494" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leadership: In Turbulent times- II]]></title>
            <link>https://medium.com/@hiteshjain118/leadership-in-turbulent-times-ii-ff5fd538d260?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff5fd538d260</guid>
            <category><![CDATA[great-depression]]></category>
            <category><![CDATA[goodwin]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[franklin-delano-roosevelt]]></category>
            <category><![CDATA[president]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Sat, 16 May 2020 18:35:57 GMT</pubDate>
            <atom:updated>2020-05-23T18:23:15.885Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuing from my last story, this one is about Franklin D. Roosevelt. FDR remains the only president elected 4 times to the office. His presidency was a turning point in American politics. Guiding the economy through one of Great Depression on 1929, he ushered a new era of regulation where government would play a much bigger role in regulating the private enterprises, raising the bar for public accountability and developed programs for public welfare, f.e. unemployment insurance, FDIC, etc. Please leave some applause, comments as you read through it :)</p><p>While Abraham Lincoln and Theodore Roosevelt showed very early sparks of leadership, Franklin was sort of a slower bloom. His mother at a young age could never imagined him to ever be the president. Franklin was the only kid, with no other siblings. Until the age of 8, the world was very rosy for little Franklin, his father, James took him on estate tours, fishing trips, ice-skating. While James nourished his love for the outdoors, him mother Sara organized a careful schedule of meal times, study and hobbies. Growing up, James and Sara’s affection and their unified vision for Franklin made him feel he was the center or the world producing remarkable sense of security and privilege, shaping a very positive perspective that things end up in a happy state.</p><p>Young Franklin collected stamps, bringing order to a random set of stamps gave him a sense of accomplishment and peace. Franklin, as the president, would turn to his stamps in midst of pressures from all sides, forgetting everything that’s going on around him for a brief moment. Franklin had a very different way of learning, which is evident from the knowledge he built up about different countries, states, peoples while collecting stamps. Every time he’d encounter a new stamp, he’d pick up his encyclopedia and dive deep to learn about the state, the people on the stamp. He was learning in his own way cutting across multiple domains, a characteristic mode of problem solving and practical mastery of detail that would last a lifetime.</p><p>At the age of 9, James, his father has a heart attack that renders him invalid for the rest of his life, which is a turning point in his life. Earlier James and Sara would care for him, but now Sara would partner with him to care for James. One day when he gets hit on the head, to prevent his father from worrying, young Franklin wears a hat for several days, hiding the scar on his head, pretending as if nothing happened. The skills of manipulation, duplicity, guile were starting to bloom at this young age. When he went to Groton later, he found it exceedingly hard to make friends, being two years late that the other students, but letters to his mother didn’t even have a hint of frustration. The image he portrayed was not only meant to placate his mother but also to hearten himself, blurring the distinction between his mind and reality.</p><p>After Groton, Franklin went to Harvard. Shortly after, when James passed away, Sara wanting to live closer to Franklin moved to Boston and got a townhome near Harvard. Sara would invite him for dinners, but Franklin was very creative in deflecting his mother’s asks, talk to her about how he was engaged in multiple things and couldn’t join. At Harvard, he met Eleanor Roosevelt, his fifth cousin. While Franklin had a very happy childhood, Eleanor’s was full of suffering. Her parents passed away at a very young. She was a very active social worker and believed the only way to live is to live for others. No one knew about their clandestine relationship for several months. Later Franklin took her home to Christmas dinner, introduce her to his cousins. Franklin loved Sara and was extremely cautious in letting Sara know about Eleanor during their courtship, avoiding sense of insecurity. Franklin was extremely decisive and would never second guess his decisions. Eventually Franklin married Eleanor and knowing Franklin Sara accepted his decision. Franklin said to Sara — “now you have two to love and two to love you”.</p><p>At Harvard, an ambition was starting to form in Franklin’s mind. Very influenced by Theodore Roosevelt, he followed his every single speech and accomplished and aspired to follow the same career path — state legislature, secretary of the navy, governor of New York and then the president. Franklin managed to become the president of Harvard Crimson, college newspaper by his senior year. Unlike Theodore, who thought of debates as vile, Franklin loved thinking about the topic from multiple perspectives then representing the side he was on, participating in multiple debates crushing his opponents by wide margins.</p><p>Next, Franklin went to Columbia Law and started working for a Wall Street law firm. At the age of twenty eight, the Democratic party boss approached him for a seat on the assembly, to which he jumped in joy and heartily accepted. Wanting to win over the rural areas a little further from the constituency, the party was more interested in the Roosevelt name, which was very popular in Republican circles. Lincoln grew up on a farm, was penniless, built his own path to earn a name, Theodore immersed himself in to polities by going to the local Hall socializing with other politicians, Franklin was the chosen one. Just five weeks leading to the election, his assembly seat was cancelled but they offered him a representation on Senate and Franklin gladly accepted. Now the challenge was to convince the people living far away from the city to vote for a candidate they hardly know. Franklin put his heat and soul in to the campaigning for the next five weeks. He drove with a driver in a “red” wagon out to the rural area every single day. Every time he found a resident, he paused to meet and greet them very affectionately, heard their stories. He campaigned — I will work for you 365 days a year, 24 hours a day, go against the party bosses if needed. Eventually Franklin won the seat with a wide margin.</p><p>Roosevelt’s charm and personal spirit made the novice senator spokesman of twenty member group .Franklin’s early days were very similar to Theodore’s where he despised corruption, charged against the party bosses, demonstrated a high independent spirit. He was too zealous and proud, felt privileged and developed a grandiose sense of importance. Soon he was losing ground and his influencing dimming among the fellow men. He learned in pretty much the same way, working with factions and striking bargains, starting to think not all members are corrupt.</p><p>During his time at the senate, he caught the eye of the newly elected Democratic president, Woodrow Wilson, who offered him assistant secretary of the Navy. Franklin was a water baby and this was another step on the trajectory he envisioned to follow to become the president. He gladly accepted the position to work as a subordinate to the secretary. With all the leadership skills, one thing was missing — humility. He eventually comes around respecting the Secretary, who had cultivated great relations with the members of appropriations committee. Franklin’s job was to administer the large navy fleet of 65k men with budget representing 20% of federal expense. Franklin thought of the Navy as a living organism rather than a moribund bureaucracy and envisioned the large number of people working in jobs that when added up produce a Navy ‘second to none’. Franklin held a map, with the navy guards, ships, yards positioned and he would constantly update that. Franklin reshaped the closed yards as manufacturing power houses producing radios, anchors, ropes for the navy. Roosevelt assembled a team to assist him not only to manage the existing bureaucracy but also to introduce new ideas. Being new to management, he’d leave the details of the day-to-day work to his trusted associates, while focusing on the bigger problems himself. Roosevelt brought in his own man, Louis Howe, who ends being his life long associate. While the genial and optimistic Roosevelt was averse to confrontation, Howe was tough and cynical, happy to battle head-on. Howe would deflate Franklin’s pride, tell him flatly where and when he had gone astray.</p><p>Roosevelt was a trial-and-error person and a grave risk taker. Holding strong conviction in getting things done, he would try different things, devise new strategies to achieve his goal. This was evident in multiple instances during his position at the Navy. He pursued an open door policy, honed his management skills and learned to deal with labor.</p><p>Just had luck brought him in to politics, a decade later, after World War 1, he gets another chance. Americans were looking to return to Republican leadership and major Democrat figures had declined to enter the fray. Governor James Cox of Ohio secured the presidential nomination and again because of his name, Roosevelt was offered to run as vice-president. With nothing to lose, Roosevelt traveled through the whole country giving more than 800 speeches, built tremendous amount of goodwill during his campaign. With his unflagging energy and exuberance, wherever he went, whoever he met, he would continue to talk incessantly — 15 mins would become an hours, an hour 3 hours. Doing this he had assembled a very core and close team, who revered and loved him. As expected, he lost the election, but termed it as “a darn good sail”.</p><p>Life took a big turn and Franklin caught polio while vacationing with his family at an island, which paralyzed his whole body, rendering his legs dead for the rest of his life. Even through this abysmal experience, Franklin stays very cheerful, optimistic about how he would be crutches in the next few months and walking by next year, greeting his doctors, nurses. His ambition to get better once, realization that there hadn’t been a disabled president in the past, his ability to paint a bright future led him to develop a tricycle, special shoes, connect him with the fellow polios, etc one thing after another. His charm not only kept the people around him hopeful, but kept him going. Franklin went through grueling workouts for his upper body, pulling himself to the rod suspending from the ceiling over his bed pretty much every hour, leading to a super athletic upper body. Franklin would attempt the stairs pulling himself up clinching the rails, dripping in sweat while his close family cheered every step he took. Wiggling his toes staying in bed for over two years would be delight for him and his team.</p><p>Franklin reinvented himself through his crucible experience relying on his core team of core team more than ever — Eleanor Roosevelt, Louis Howe, Missy LeHand. They would become extensions on him in to the world henceforth, bringing him knowledge and facts from all kinds of different places and domains. Eleanor resorted to keep name alive in the political circles met with multiple politicians, giving speeches, talking about social causes. Howe would meet with fellow Democrats and other politicians, bringing him political news, becoming his biweekly newspaper. Throughout his life Howe held one ambition — success of Franklin Roosevelt. During this time, he pretty much started living with Roosevelt family, seeing his own family very little. Franklin loved getting his facts orally, reading out loud, interrupting the discussions, throwing back questions, synthesizing his own mental model through those discussions.</p><p>Three years after he caught polio, Al Smith, running as Democrat nominee for the Governor of New York asked Franklin to deliver an endorsement speech in front of 12k people at the party’s convention. Roosevelt had been a little bit rusty, was barely able to walk a few yards, heartily accepted the challenge risking humiliation and embarrassment in case of a fall, kicking off an arduous prep for himself and his team. He would walk with one crutch, holding onto his son on the other side, clinching his arms step by step. The night of the event, using his crutches he made it to the podium, holding on to rails, throwing his head back in pride, delivered a powerful speech enthralling his audience.</p><p>Roosevelt had a mystical belief in the power of sun and water. He went down to Warm Springs, Georgia for brief retreat soaking the sun, swimming the warm therapeutic spring waters. Roosevelt decided to spent his personal $200,000 buying out twelve acres, the hotel, starting the renovation process, developing the golf courses, the rooms, tall windows for maximum sunlight, hospital, personally managing the entire construction and development process. He was building a place for polios, doctors, nurses to come together forming a whole community embarking on a transformative new recovery process for all such people. He held back-to-back classes in the big swimming pools, sharing back to the community and came to be known as old Doc Roosevelt.He saw it all, understood how one decision connected to the other, turned his initial vision into a combined resort and treatment center for hundreds of patients and their families. He took pride creating a remarkable spirit of cooperation and competition among the fellow patients to see who could improve the most. The love and affection bestowed upon him, the immense success, cultivated a new kind of leadership and confidence in him which he took back with him for the next chapter of his life</p><p>Franklin went back to New York and became the Governor in 1928. Not able to go out in to the world, he brought the world in to him through a very remarkable close knit and loyal team, flooding his home with experts from all domains. Roosevelt sought team members whose experiences amplified his own far flung curiosity. At dinner, he loved hearing their stories, what was going on in their personal lives, after dinner conversations would be held in his study room where he would ask deeper questions as the night went on</p><p>During the Great Depression of 1929, noticing long bouts of unemployment, in the absence of any federal solution, he took things in his own hands, kicked off piece meal solutions, spreading jobs to larger areas, part time work, shortened work week, reduced load, community projects. He advocated for the state creating jobs for the unemployed and unemployment insurance. Roosevelt craved details, based his decisions on compelling stories, noticed factories cutting down on labor and then getting out of business. Getting a lot of pushback from the Republicans, he threatened to veto the bill, but eventually got them to agree. Roosevelt avoid dull facts in the favor of vivid memorable images, translate issues in to public life and using a very simple language to communicate. Roosevelt called on the country to re-build its lost prosperity, putting the faith back in the forgotten man at the bottom on the economic pyramid. His radio addresses reverberated throughout the whole country.</p><p>Roosevelt sought to compete in the presidential election against the Republican Herbert Hoover. Hoover’s profound faith in individualism, voluntarism, fundamental strength of the American economy was up against Roosevelt’s call for bold, persistent action and experimentation by the government to help the people. In the depths of the financial depression, the volunteerism failed to rescue the economy, the economy continued to flounder, Hoover persisted and Roosevelt won the election with overwhelming majority.</p><p>In the depths of banking crisis, when a quarter of the population was unemployed, thousands of small businesses filling for bankruptcy, people lining up to withdraw their money and hoarding under their mattresses, banks running out of cash, people’s confidence in the stock markets and recovery at all time low, millions on dollars of hard earned savings evaporating with thousands of failing banks, with people losing their ancestral homes and all that they had, soup kitchens were running out of food with tens of thousands of Americans starving, American economy at rock bottom, rampant fear, Roosevelt’s election came at the perfect time.</p><p>Roosevelt would always break precedent. Right when he was taking his presidential oath, he asked the chief justice if he could articulate the oath instead of the plain “I do” at the end. Next he had his team take their oaths at the same place with the chief justice and congratulating them with an exuberant smile and shaking their hands. Things like would set him apart and were instrumental in setting up a very strong between Roosevelt and his team. Another instance, where he chose Frances Perkins as a cabinet member, the first female to on the cabinet.</p><p>Roosevelt clearly understood and articulated where things had gone wrong. People put their money in to the banks. Banks don’t keep that in their vaults, instead invest it to propel business activity by giving out loans powering the economic flywheel. In the absence of regulation, these unscrupulous money changers made bunch of risky bets that went sour.</p><p>Roosevelt planned to address this with a three pronged approach. The first thing was to reverse the feeling of helplessness, impotence, dread — “the only thing we have fear is fear itself”. He said the American people hadn’t failed, but it was the inaction, absence of leadership to take necessary remedial action. He promised to put people back in to work, provide a stable currency, prevent foreclosures, put an end to speculation with other people’s money. He articulated to the people — where we are and where are we headed, what needs to be done and a clear plan to get there. Second was to prevent a financial collapse and third to put the economy on a long term sustainable path through economic and social reform targeting the underlying gaps in the economic systems due to which the crisis came to be.</p><p>Roosevelt assembled a diverse cabinet — easterns, westerns, Republicans, Democrats all focussed on singular agenda to bring the economy back on track. He even sought help from bankers for their technical expertise and deep understanding of the economy, Hooverites who were disgruntled due to the lack of action by the administration. His team looked for a constitutional way to exercise presidential power over the entire banking system, much like how Lincoln exercise his rights as commander-in-chief working through Emancipation Proclamation. Roosevelt and team worked tirelessly towards aggressive deadlines(set by Roosevelt) to put together a proposal to stop the bleeding of cash from the banks, developing consensus with all the involved stakeholders and also the Congress. Under the proposal, the banks would go on a week long holiday and would be opened based on the degree on solvency. The weaker banks would get federal aid. This would restore public confidence in the banks encouraging deposits instead of withdrawal, which is what exactly happened. Next started the long term restoration process which marks the beginning of a new relationship between the banks and people. The conservatives stood for prosperity trickling down the people once the firms were bailed out but Roosevelt persisted in the favor of transformative reform. He didn’t want coercive government control by wanted to usher a new era where government partnered with the industry, transport, agriculture.</p><p>He stressed the importance of experimentation, breaking the status quo, encourage fresh ideas, pushing for creating new agencies, set aggressive timelines for the teams, letting them be creative and work out the details. Roosevelt enacted more than 15 legislations creating more than 20 agencies(e.g — SEC, FDIC, etc) to spur job growth for millions of unemployed throughout the country and spur long term economic reform. <em>Establish clear purpose, challenge the team to work out the details, traverse conventional departmental boundaries, set large short and long term goal, create tangible success to generate accelerated growth and momentum. </em>He invoked the power of the America people who were disgruntled by the absence of regulation during the Great Depression.</p><p>Roosevelt believed a little bit of rivalry and competition encouraged the best in people. He would give the same job to several people, keep the organizational lines a little blurry even amidst the chaos to get the best out of the people. He had immense confidence to rein in the disagreement, retained the authority to make decisions and refrained from consolidating too much power in the hands of a singular person. <em>What I seek is the highest possible batting average, not only for myself, but for the whole team</em></p><p>How was a disabled man execute such a transformative change in so many disparate layers of the government? At the center of all this stood a very collaborative bond between the president and rank and file members of his team, an open door policy with the people and the press, his hunger for stories of ordinary people, readiness to adapt, enormous appetite for learning, ability to envision a bright future and connect it back to the people and tremendously cheerful and positive demeanor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff5fd538d260" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leadership: In Turbulent Times]]></title>
            <link>https://medium.com/@hiteshjain118/leadership-in-turbulent-times-ef1053156516?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef1053156516</guid>
            <category><![CDATA[theodore-roosevelt]]></category>
            <category><![CDATA[abraham-lincoln]]></category>
            <category><![CDATA[goodwin]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Tue, 12 May 2020 07:41:43 GMT</pubDate>
            <atom:updated>2020-05-16T01:01:03.456Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leadership: In Turbulent Times — I</h3><p>I got interested in learning about the acclaimed presidents of the US and read Leadership:In Turbulent Times by Doris Kears Goodwin. Goodwin has studied and written a number of texts about Abraham Lincoln, Theodore Roosevelt, Franklin Roosevelt, Lyndon Johnson. The book approaches their lives from leadership perspective, documenting experiences from their childhood, career progression, achievements at different stages of their lives, hardships that they went through, which re-defined their leadership styles. Below I put some of the interesting take aways from reading about Abraham Lincoln and Theodore Roosevelt.</p><p>While reading, I realized if I knew a little more about the lives of these men, I’d have enjoyed it further. I did a bunch of wiki search while I read the book. I won’t recommend it as a starter book, who is just starting to learn about them. This book has definitely encouraged me to learn more about the lives of Abraham Lincoln and the Roosevelts.</p><p><strong>Abraham Lincoln</strong></p><p>Abraham Lincoln grew up on a farm in Kentucky with a life full of struggle starting from the very beginning. Mother died when he was 9, father left him on the farm, re-married and came back after 7 months. Father expected him to work at the farm, but young Abraham would prefer to spend his time reading. He told stories to his father’s associates at the farm, seeing this infuriated his father. Father also disliked the idea of him going to school since it took time away from working at the farm.</p><p>From a very young age, Lincoln was a great orator and a story teller. He sneaked on this father’s conversations with his friends, go around processing the conversations in his mind, when he won’t understand them. The next day, he’d share those stories with his friends at school. Lincoln was an avid reader, he walked miles to get a book, loved reading Aesop’s Fables. He loved reading to his friends. He believed when he reads out loud, it’s not only his eyes but also the ears that are engaged, which would help to remember better. The stories he told would always have a moral at the very end.</p><p>Lincoln was very ambitious starting from the very young age who wanted to leave his mark on the world. The destiny he sought was no simple craving for personal fame and distinction, but was always linked with his people.</p><p>Lincoln moved to New Salem, Illinois which is where his journey in to politics starts. Lincoln served in the militia during the Black Hawk War. Lincoln was great at connecting with people, he was great at stepping in to a person’s shoes and telling his stories in a way they could easily connect with. When Lincoln got in to the state legislature, he stood for building national banks, roads, canals and other infrastructure projects which would empower the poor people to lead a better life. Lincoln persisted on his agenda, kept on pushing even when there was an economic downturn. This eventually led to lots of government and eventually Lincoln getting very unpopular in the legislature. “When you make a bad bargain, hug it tighter”</p><p>This event marked a turning point in Lincoln’s life when he got immensely melancholic at not being able to deliver the promises he made to his people. He even canceled his wedding with Mary Todd, thinking he was not worthy of marrying her. His ambition however helped him survive this tough time of his life and eventually he got married to Mary a year later.</p><p>Lincoln got in to law as he came out of his depression. This when he read aggressively. He became an outstanding lawyer, further honed his story telling abilities. His story telling completely mesmerized the jury who pretty much walk the path he laid out for them.</p><p>Eventually Lincoln came back to politics, got elected to the House of Representatives. During that era, slavery was permitted under the constitution, but Lincoln stood against slavery. Missouri act prohibited slavery north of Missouri. During the debates whether Missouri Act should be rescinded, one of his public addresses blew me away where he likened the Missouri Act to a fence separating two farms. One day one of the farms goes barren and the owner removes the fence. Now his cows go to the other side. The second farm owner questions why are his cows on his property, to which the first farm owner says —I just removed the fence. It was the cows how went to the other side.</p><p>Lincoln became president in 1861 from the Republican party. His presidency saw the American Civil War, during which the southern states seceded the Union to form Confederate States of America. Lincoln believed in the Union and built one of the most diverse team representing all factions — republicans, democrats, abolitionists, conciliators, etc. He picked the best people for a particular job, who believed in the Union, keeping aside his personal differences or any other reasons. In fact he put the competing presidential candidates in the most significant positions in his administration. He got such a diverse, ambitious, prejudiced group to collaborate is a big feat, which really enabled Lincoln to eventually win the war. He’d deal with everything until they would walk the direction that he’d laid out for them.</p><p>Lincoln proposed the Emancipation Proclamation during September 22, 1862 which would come in to effect on January 1, 1863. Lincoln was very careful with his proposal spending endless time mental processing the war and solutions from multiple different perspectives. His proposal was grounded in careful understanding of the lay of the land, by visiting soldier camps, interviews, etc. He meant to take out all the slave labor from the south who dug trenches, cook food, etc for the souther army. While slavery(where it existed) was protected by the constitution, he didn’t want to go against the constitution. Using his powers as the commander-in-chief of the Army and the Navy, the proposal would legalize the 3.5 million black slaves in the south(or the war zone) while abiding by the constitution and not impacting the slaves in the civil zone. The rest of America prohibited slavery thru the 13th Amendment to the constitution later on. This would change the goal of the war, the soldiers who were fighting for the Union, would now also fight for the abolishing slavery for the “N”. Lincoln risked his second term but stood for this proposal, against all odds, convincing everyone, the soldiers painting the picture of free America and liberty for their children.</p><p>Lincoln was a great example of transactional leadership, where a leader promises and delivers immediate demands of the population and the factions but also of transformational leadership, where he got all of the diverse people to unite behind cause which was larger than any of them. This was clear when he got 7/10 soldier votes in his second term, which would mean they’d be risking their lives for longer. As a result Lincoln got 212 vs 21 electoral votes and was re-elected for this second term.</p><p><strong>Theodore Roosevelt</strong></p><p>Roosevelt family was a well known family in New York during that time and Theodore Roosevelt father was a very active philanthropist. Roosevelt had asthma due to which he suffered from incessant coughing, wheezing. He was home schooled, grew up on a big estate with his siblings and cousins. He went go for estate tours, fishing, foreign trips with his father, was an avid reader and deeply inspired by Abraham Lincoln. Father hired a personal trainer to help him get stronger which would allow him to deal with the asthma. Stating at a young age, he maintained a strict exercise routine pretty much all his life.</p><p>TR went to Harvard University. Young Roosevelt lacked the empathy and social skills, his irrepressible energy and lack of self consciousness captivated his class mates. He explored a broad range of interests while at Harvard — tennis, shooting, dancing, interests in birds, lizards, etc. While he was at Harvard, his father passed away at 46 years old. For TR, his father was his mentor and a friend, who he had looked upon all his life.</p><p>TR fell in love with Alice Hathaway Lee and pursued her with the same zeal taking her everywhere with him. He brought her to see his mother and siblings and eventually proposed to her 6 months in to the relationship, to which she denied. However, he was persistent to win her and eventually 8 months later they decided to get married.</p><p>Theodore’s understanding that he wasn’t suited for science revealed his growing self awareness, a deep understanding of his temperamental strengths and weakness and this becomes an essential tool in his leadership. He went to Columbia Law, since he thought was a way to get in to public life. He wanted to win arguments because he believe they were right, not because he had marshaled an array of one sided facts. He detested the idea of debating for something which he didn’t believe in very strongly. He began spending more time at Morton Hall immersing in to politics. Week-over-week his visits to Morton Hall would make him a very familiar face who fought for what he truly believed but accepted defeat with good humor.</p><p>Joe Murray started taking a paternal interest in TR and offered to support him for an assembly seat. While campaigning when they went to a liquor store, he said the taxes on liquor are not high enough, which would go against his campaign. He declared despite his friendship with Joe Murray, “no one owned him” and gained support running as an independent, eventually winning the assembly seat.</p><p>The young assemblyman was super zealous, won’t sit in his seat even early throwing questions. He’d question what is this what is that? Within a few months he’d know more about state politics that anyone else. He’d divided the assemblymen in to three groups — good men, very bad men, and a group that could be swayed either way depending upon public opinion. His behaviors stemmed from his(and his father’s) belief that politics is rife with corruption and he was the white knight on a crusade to uncover corruption at the highest levels. His brash behavior, over yelling, pounding would eventually turn off the people who idolized him. Losing support was a blow to his ego and self righteous aspect of this nature which prevented him from working with others. Eventually he realized even if he can’t get everything he wants, he should take what he can get. He started to help others who gave him a hand in return. He eventually came to realize — the real things in life are more nuanced and large part of the social and political strife springs from the fact that different classes of people are so cut off and removed that they don’t realize each other’s passions, prejudices and perspectives. He was a successful politician and happy married man at the age of 25.</p><p>The following year misery befell him when his wife died of a kidney problem after giving birth to their daughter. To make matters worse, his mother also passed away after a few hours. This brought a lot of sorrow to Roosevelt who closed off completely and didn’t want anybody to talk to him about it. He completely immersed himself in to work proposing one bill after the other, ignoring the legislative process. He lost sympathy of the assemblymen and the political machinery he greased so long started to turn against him. He eventually turned against the Republican party bosses who were supporting Blaine for president, who he thought was corrupt, supporting independent reformist groups. He went to an extent to support a “hearty Democrat”, but then went back on his word. Doing this turn the independents also against him, sunsetting his political career for a good long time.</p><p>Realizing this TR assembled a team of four and traveled West to the Dakotas to live with Nature and purchased a large cattle range with hundreds of cows. He lived like a cowboy, galloping his horse over the hills, riding for 16 hours, controlling the most dangerous horses, go on long hunting trips, amidst the forests with large grizzly bears. His two year crucible experience made him physically very strong, gaining 30 pounds, strengthened his mind going through all kinds of risky cowboy experiences.</p><p>After his hiatus he returned to New York where he met his childhood friend Edith, which re-kindled their old feelings and eventually they decided to get married. TR campaigned for mayor, but loses. TR campaigned vigorously for Republican Benjamin Harrison and hoped to be appointed assistant secretary of State. However, he got offered a position in Civil Service Commission. Despite being advised the position was beneath him, by his friends, he still went for it. From his crucible experience, TR learnt life was too unpredictable to be a sequence of carefully ordered steps in an upward trajectory. He would despise long term career calculations and focus on the job to be done. TR had come to see political life as a succession of crucibles — good or bad — able to crush or elevate.</p><p>TR further accepted a position to be police commissioner of New York. He was immensely successful in both the positions leading with similar principles — <em>hit the ground running, consolidate control, ask questions of everyone, manage by wandering around, determine the most basic problems and hit them head on, when attacked counter attack, stick to your guns, spend your capital to reach your goals, when your job is done or stymied, find a way out. He believed power should be concentrated with one man, so long the man can be fully held responsible by the power of the people. </em>His crusades against corruption put him against the incumbents, party bosses. He was immensely successful in removing corruption, bringing in a merit based system in both position despite party politics, higher level corruption. Stories of his valor and raids published throughout the country, making him very popular. Through his experience he learnt public sentiment was equally important as he was running the police department.</p><p>Next, he joined as assistant secretary of the Navy, where he was subordinate to the Secretary. This was the first time he’d have to serve as a subordinate and develop a different kind of humility. Throughout his term he developed a bond of trust and respect with the Secretary, by clearly communicating even if they disagreed. He anticipated Cuban war, gave the orders to the Navy to prepare while the Secretary was away. When Secretary discovered this, he defended him, such strong was their bond. TR never confused responsibility with being a subordinate. He felt the need and took the step.</p><p>When war broke out in Cuba, he left the Navy and decided to join the Army. He believed his job at the Navy was to prepare the tools and now it was up to other officers, the Secretary to use them and that his job was done. He wanted to be where he could use those tools. When he arrived at the army base, he was offered to lead the regiment to which he politely declined and accepted the lieutenant position under Wood, considering he didn’t have the requisite experience to organize the regiment, even though he had mastered all the other skills that he acquired during his days at the Badlands. While Wood ran the regiment, TR worked on the public perception. Within a few months, they had over 20000 applications from all over the country — easterns, Indians, etc. The regiment called the Rough Riders was a melting pot of kinds of people, where TR provided the perfect to meld them together. He’d live, breathe, sleep and eat with this fellow soldiers. Eventually TR would lead his soldiers to win over the San Juan and Kettle hills, bringing victory for his troops and lots of fame for himself.</p><p>After the war, TR came back to New York, joined the Republican party under boss Platt and became Mayor. His fierce battle for corruptions commenced again with establishing the franchise tax and restricting renewing the term of the insurer in New York. He believed a leader needs to be soft but hold a big stick. Someone who quarrels, lacks civility may not go very far. Nor would they succeed by being soft, if strength and power don’t back that softness. As always, if negotiation doesn’t work out, leader should be free to walk away as the last resort.</p><p>The party bosses where getting sick of the reformer Republican and offered him “Vice Presidency” as a way to restrict his power and control and use his image to support president candidate McKinley. TR accepted and with McKinley success became the vice president. TR craved action and became miserable due to long idleness. On September 6, 1901, with the assassination of McKinley, TR became president. All one can do is to prepare oneself, to wait in readiness for what might come.</p><p>The book talks about how TR managed the great Coal Strike of 1902 — which is emblematic of the widespread rebellious mood among the laboring class against the consolidation of power in the wake of the Industrial Revolution. The Coal Strike waged by the labor union led by John Michell against the coal mine operators, asking for reduced working hours(from 10h/day) and minimum wage, lasted several months, during which coal prices rose &gt; 60%, cities, hospitals, factories ran out of coal throughout the country.</p><p>This was regarded as a private matter between employer and employee since there was no precedence and government interference was unconstitutional in private matters. TR realized the impact the strike could have on the entire country, but was meticulous about managing his(and the government) involvement in the matter through several months. He planted the seeds by publicly calling for government investigation into the strike, but refrained for making the report public immediately, traveled around New England, gathering public opinion scrupulously avoiding public speeches but lending a sympathetic ear, assembled a very diverse group of people to be his core team who’d advice him on this.</p><p>Eventually, several months in to the strike, both parties were invited to meet the president. TR was very clear he wasn’t on either sides, but represented the people appealing to their spirit for the great good of the people. Mitchell jumped up and proposed to go with the committee set up by the president and get the 20k workers back into the mines. The mine operators vehemently shot down the proposal and the ridiculed the president for a contemptible failure by not sending federal troops to end the strike. TRs stenographers recorded each and every bit of the meeting which was later released publicly. TRs strong demeanor, operators insult, the messaging that a third party had rights and interests in the strikes gained a powerful grasp on the public, further pitting public opinion against the operators.</p><p>As the temperatures were plummeting, TR developed multiple plans, starting with validating if the operators’ assumption- that most workers were not coming to work because of the fear of the union, which he validated by sending state troops to protect the few workers who showed up. TR gathered bipartisan support by appointing former Democratic president as head of the Blue Ribbon Commission. TR’s last resort plan was secret military invasion of the the coal mines with the government acting as the receiver of the coal. TR realized J.P. Morgan, the original architect of the coal trust was the only person who could push the operators to negotiate, who agreed to abide by the decision by the commission(composed of certain categories of people) appointed by the president. Later when the president read the memo, he noticed no mention of any category representing labor. Realizing, the operators preferred to die rather than accept Mitchell’s plan or perceived to bend to labor men, this idea was sold as that of operators’ and the president retrofitted a labor man as “eminent sociologist”. The commission was promptly accepted and strike was concluded after 163 days with a 10% wage increase, reduction in daily work schedule from 10h or 9h and a board of conciliation to resolve future matters.</p><p>TR’s leadership during this era would prove to be dawn of a new era with progressive reform sweeping the country under the banner of his Square Deal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef1053156516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thinking fast and slow — short takeway]]></title>
            <link>https://medium.com/@hiteshjain118/thinking-fast-and-slow-short-takeway-e9a482cb15f2?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9a482cb15f2</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[behavioral-science]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Mon, 25 Feb 2019 01:58:42 GMT</pubDate>
            <atom:updated>2019-02-25T03:34:18.405Z</atom:updated>
            <content:encoded><![CDATA[<h3>Thinking fast and slow — short takeway</h3><p>I read this really amazing book titled — Thinking fast and slow by Daniel Kahneman and captured a few thoughts.</p><p>The book personifies the brain as-</p><ul><li>System 1: super quick, intuitive, relies on associative memory. When presented with different situations, it quickly constructs a coherent story based on past experiences.</li><li>System 2: logical but lazy. It reasons with complex variables and conflicting scenarios. Being lazy, if not kicked, it just stamps the coherent stories by system 1.</li></ul><p>The two systems come together and work seamlessly, without us knowing. The book focuses on shortcomings of intuitive thinking that affects all kinds of people — policy makers, bureaucrats, politicians etc.</p><p>System 1 can substitute an easier question for a harder one sometimes. For instance, when asked “how was your day yesterday?”. There’s high likelihood that the answers are based on some key moment when a person was super happy or sad. The system 1 essentially substituted the question to — “Was there anything noteworthy that happened yesterday?”</p><p>“How much would you donate to campaign to save 100 vs 10000 dolphins?” — It turns out the average answers are not very different, since they are based not based on 100 or 1000, but — how much compassion one has towards dolphins and how easy it was for system 1 to pull up dolphin images from the memory.</p><p>The book talks about expected utility theory and prospect theory which are very important in the study of decision making. The expected utility theory assumes a rational actor, making decisions, accepting gambles based on probabilities of different choices. While the prospect theory says choices are based on gain/loss from a reference point in addition to probabilities.</p><p>Consider an example below and chose an option in both cases before reading further.</p><ol><li>95% chance to win $100 OR get $90 for sure.</li><li>95% chance to lose $100 OR lose $90 for sure.</li></ol><p>Most people in 1. will get risk averse and take $90, even though probabilistically they are leaving $5 on the table. Think about a stock picker who is making such decisions, multiple times a day. While in 2. most people will get risk seeking and take the gamble. Why this asymmetry?</p><p>The book enlists multiple examples where human judgements are plagued with recency bias, halo effect, non regressive reasoning, easy availability, cognitive ease, insensitivity to real world statistics, narrow framing, what you see is all there is, priming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9a482cb15f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testable and modular code]]></title>
            <link>https://medium.com/@hiteshjain118/testable-and-modular-code-7a27e188e3a7?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a27e188e3a7</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[mock]]></category>
            <category><![CDATA[easymock]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[modular]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Mon, 26 Mar 2018 20:49:47 GMT</pubDate>
            <atom:updated>2018-03-26T20:56:05.714Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve worked on multiple projects, small and large, personal and professional with teams of different sizes over the past few years and realized the importance of writing testable and modular code. Everybody wants tests, but people shirk away from writing tests, because they take time, are harder to write than the production code itself. During personal projects or when starting to work on a new idea, people(including me) tend to get too focussed on just putting something together, *that works*, which is great for a proof of concept or getting something out of the door asap. Even during those times, if one has testability and modularity in the back of their mind, it can lead to design decisions, that ultimately lead to modular and better maintainable code. One can add tests later on. It greatly reduces the developer time during the lifespan of the project, making everybody more productive.</p><p>I get really scared to check in my changes when there are no unit tests. How do I make sure my small innocent, one-line change doesn’t break stuff 10 steps down the stack(heard of the butterfly effect)? How do I make sure, another person who’s working on a change in parallel works well with mine? How can I be confident future development will be backward compatible? I think these questions become more and more important as the size of the project increases, as the number of dependencies increase. You can either be smart and write tests proactively or spend endless time later to debug, when shit hits the fan and people are unhappy. I have been fortunate to have such experiences and learn from my peers over the years.</p><p>When I start to implement a new functionality, I like to break it down in to modules or building blocks or interfaces and define contracts among them those building blocks. It’s almost like a puzzle then, arrange those building blocks in a way that solves my problem.</p><p>Let me use an example. Consider an over simplified grocery management system, that finds out the number of items sold on a day, does replacement orders and writes the open orders in another table. DB and OrderPlacer are externally available modules/interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oNbVYOtmdWpsKehgONtt1g.png" /><figcaption>Simple grocery management system</figcaption></figure><p>The above code will only work in an ideal world. In a real production scenario, you’d want to handle db connection issues, db read issues, db write issues, failures in replacement ordering apis, etc. All that error handling is going to make this complicated. Assume, we have another function run_with_retry(), that runs a function with given number of retries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jYJHi3-ML-SgiLYyNne8DQ.png" /><figcaption>Grocery management with retries</figcaption></figure><p>Now imagine adding a few more configs like timeouts for connect(), read(), write(). All this complexity is going hurt the readability and testability of this simple code really hard.</p><ul><li>How to test db connection/read/write failures?</li><li>How to test the behavior after replacement ordering api fails?</li><li>There’s no way to test writes and reads, ordering apis the failure flows individually. Testing each of them has become quite hard.</li><li>What if, some one comes and changes the number of connect retries to really large or just zero. How to guard against such changes?</li></ul><p>To reign that complexity, this logic should be split in to multiple modules, so each can be tested individually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oG50uQeLhIGDRMUZweRPQA.png" /><figcaption>Config</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aEx8g49stmBZFpVTo_-HGg.png" /><figcaption>Modules to run queries and processing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxDPdJNvJq9JygckQ2xUUQ.png" /><figcaption>More readable, close to the first code sample</figcaption></figure><ul><li>The code above looks so much similar to the simpler first code sample, is much more readable and handles all the failures with DB and OrderPlacer api.</li><li>It also improves the DB api that had only two methods of run() and connect() and has 3 methods now connect(), run(), write(), with each one having its own error handling.</li><li>The OrderPlacer api’s special error handling of sending out emails is encapsulated in a separate module. The main function process() is so much simpler to follow.</li><li>The difference is now we inject the dependencies in to the process() method instead of process() instantiating its dependencies. This is a very powerful construct, sometimes referred to as <strong>dependency injection(DI).</strong></li></ul><p>You can easily add tests for each of the modules separately, test process() by injecting mocks of DB and OrderPlacer. I’ve some pseudo code examples here, in the interest of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsqM0s3xPO7Z6VCoSpgPZQ.png" /><figcaption>Test connect failure</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-LAUWhyMNZaZbx8pKCeUDA.png" /><figcaption>Test order placing failure</figcaption></figure><p>There are a large number of mocking/testing libraries available in different languages, example EasyMock(java), Mockito(java), gtest(C++), MagicMock(python) etc. Some examples of dependency injection frameworks are Guice(java), Boost.DI(C++), Fruit(C++).</p><p>I’ve highly used factory pattern, which is a very useful design pattern with DI, which I’ll talk about in another post. Please leave a comment, if you’d like me to write about other topics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a27e188e3a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can you “see” music?]]></title>
            <link>https://medium.com/@hiteshjain118/can-you-see-music-ca5c28a1b23f?source=rss-6f1364df5c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca5c28a1b23f</guid>
            <category><![CDATA[audacity]]></category>
            <category><![CDATA[fourier]]></category>
            <category><![CDATA[spectrogram]]></category>
            <category><![CDATA[fft]]></category>
            <category><![CDATA[music]]></category>
            <dc:creator><![CDATA[Hitesh Jain]]></dc:creator>
            <pubDate>Thu, 15 Mar 2018 00:51:30 GMT</pubDate>
            <atom:updated>2018-03-15T00:56:49.472Z</atom:updated>
            <content:encoded><![CDATA[<p>Fourier transform(FT) is one of the most basic tools in digital signal processing. The underlying concept of FT is it breaks a signal down in to a bunch of sinusoids(sines and cosines) with different magnitudes and phases. There’s a Fourier representation for discrete time and continuous time signals. More about Fourier transform on <a href="https://en.wikipedia.org/wiki/Fourier_transform">wikipedia</a>.</p><p>Modern music is a digital signal and <a href="https://en.wikipedia.org/wiki/Short-time_Fourier_transform">Short-term Fourier Transform(STFT)</a> can be used for Fourier analysis, which is nothing but <a href="https://en.wikipedia.org/wiki/Discrete_Fourier_transform">discrete Fourier Transform(DFT)</a> over a small time frame. Here’s how to compute STFT at a particular time for a signal x[n].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*wIAvwre6mgIygBYiQvEW5w.png" /></figure><p>w[n] : <a href="https://en.wikipedia.org/wiki/Window_function">window function</a>. Hanning window is the most commonly used window function. One can play around with different windows(Gauss, Blackmann, Blackmann-Harris, Welch, etc.) and window length.</p><p>m : offset in x[n] where STFT is computed</p><p>ω : frequency</p><p>When a large number of consecutive STFT are stacked together, it forms a <a href="https://en.wikipedia.org/wiki/Spectrogram">spectrogram</a> which exposes a large amount of information about music signal, which is where you can “see music”.</p><p>There are a bunch of software packages and libraries that compute the spectrogram doing <a href="https://en.wikipedia.org/wiki/Fast_Fourier_transform">Fast Fourier Transform(FFT)</a> for every window. Audacity is an open source and free library/software, which is quite popular and I use it too.</p><p>Here’s a sample spectrogram for Ed Sheeran’s Perfect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N8dbXp5v_yTC7Ok5qV20dQ.png" /><figcaption>15s spectrogram of Ed Sheeran’s perfect. X-axis = time, Y-axis = frequency on mel scale</figcaption></figure><p>The spectrogram was computed on a 44.1KHz signal for a single channel. X-axis is time and Y-axis is frequency on mel scale. <a href="https://en.wikipedia.org/wiki/Mel_scale">Mel scale</a> is more interesting compared to linear as it is closer to how humans perceive sound. It has its roots in octaves and fundamental frequency concepts.</p><p>The color represents the intensity or power of each intensity — white being the max and gray being the least. As evident, most of the power or information is in the low frequency components. So let’s zoom in on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6-rfWjf8cM2zvzdujERew.png" /><figcaption>15s spectrogram of Ed Sheeran’s perfect. X-axis = time, Y-axis = frequency. Shows only 4000 frequencies</figcaption></figure><p>Here I show only the first 4000 frequencies. You can easily see when the lyrics are sung, the music playing in the background, the waves in the voice I used Audacity for this. Spectrogram tuning is really important to make sense of a spectrogram, otherwise it can look pretty ugly and be totally useless. Audacity has several settings for tuning spectrograms, which I’ll save for another post.</p><p>Spectrograms are used very widely in audio analysis, speech analysis, dominant speaker detection, feature extraction for machine learning etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca5c28a1b23f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>