<?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 ron naber on Medium]]></title>
        <description><![CDATA[Stories by ron naber on Medium]]></description>
        <link>https://medium.com/@ron_naber?source=rss-822f8dd6248c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_VowNp4U7rIZyC9w.jpeg</url>
            <title>Stories by ron naber on Medium</title>
            <link>https://medium.com/@ron_naber?source=rss-822f8dd6248c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:20:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ron_naber/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[Delegates , Events , Publishing , subscribing]]></title>
            <link>https://medium.com/net-voyage/delegates-events-publishing-subscribing-6fb441d5c92d?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb441d5c92d</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Mon, 03 Nov 2014 04:30:35 GMT</pubDate>
            <atom:updated>2014-11-03T04:30:35.975Z</atom:updated>
            <content:encoded><![CDATA[<p>this is something new I have tried here , all explanations are in comments. As they say in OOP , have smart coupling…</p><p>Just copy the below code in your visual studio :</p><p>using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Threading.Tasks;</p><p>using System.IO;</p><p>namespace _2112014</p><p>{</p><p>class Program</p><p>{</p><p>static void Main(string[] args)</p><p>{</p><p>#region Delegate,action</p><p>//multicast delegate example go to UseDelegate class to see implemenation</p><p>//UseDelegate UD = new UseDelegate(4, 5);</p><p>//calling action delegate , action delegate is kept outside function</p><p>//UseDelegate UD = new UseDelegate();</p><p>//UD.MyAction(5, 5);</p><p>#endregion</p><p>#region eventhandler example on filesystem</p><p>// event handler is delegate which sits between suscriber and publisher</p><p>// just mouse over the event -&gt; watcher.created above and see what kind of event handler it excepts</p><p>// check out the parameter</p><p>// and create same signature method in same class or other class and pass the method</p><p>//var watcher = new FileSystemWatcher(“C:\\Users\\rohan\\Desktop\\Event”);</p><p>//watcher.EnableRaisingEvents = true;</p><p>//watcher.Created += new FileSystemEventHandler(OnCreated);</p><p>//watcher.Deleted += OnDeleted;</p><p>//watcher.Changed += OnChanged;</p><p>#endregion</p><p>#region Event suscribing Car class event</p><p>//Car C = new Car(); //creating instance of that publisher class — Car</p><p>//C.change += ReturnWarningSign;//suscribing to event , telling if this event occurs then run this function</p><p>//C.pspeed = 89; //making the event fire</p><p>#endregion</p><p>// Console.ReadLine(); //so program doesnot close console screen</p><p>}</p><p>//public static void ReturnWarningSign() //fire this event when event occurs in publisher class</p><p>//{</p><p>// Console.WriteLine(“reduce speed”);</p><p>// Console.ReadLine();</p><p>//}</p><p>#region EventFunctions</p><p>private static void OnChanged(object sender, FileSystemEventArgs e)</p><p>{</p><p>Console.WriteLine(“{0} : {1} “, e.ChangeType, e.Name);</p><p>}</p><p>static void OnDeleted(object sender, FileSystemEventArgs e)</p><p>{</p><p>Console.WriteLine(“{0} : {1} “, e.ChangeType, e.Name);</p><p>}</p><p>static void OnCreated(object obj, FileSystemEventArgs e)</p><p>{</p><p>Console.WriteLine(“{0} : {1} “, e.ChangeType, e.Name);</p><p>}</p><p>#endregion</p><p>}</p><p>}</p><p><strong>same namespace</strong></p><p>using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Threading.Tasks;</p><p>namespace _2112014</p><p>{</p><p>public class UseDelegate</p><p>{</p><p>// TODO: Complete member initialization</p><p>//action and lamda expression</p><p>//action and func are types of delegates , action is used when you dont know exact signature</p><p>//action accepts 16 input parameters and no return types , while func can have return type</p><p>//lamda expression =&gt; is used to make functions on fly like below example , please study the syntax</p><p>public Action&lt;int, int&gt; MyAction = (int a, int b) =&gt; { Console.WriteLine(a + b); };</p><p>public UseDelegate()</p><p>{</p><p>}</p><p>public UseDelegate(int x , int y)</p><p>{</p><p>//creating multicast deligate — a deligate which contains more than one function</p><p>//# region mathematical function</p><p>Calculate MulticastCalculateDelegateObject = Add;</p><p>MulticastCalculateDelegateObject += Subtract;</p><p>MulticastCalculateDelegateObject += Divide;</p><p>MulticastCalculateDelegateObject += Multiply;</p><p>MulticastCalculateDelegateObject(x, y);</p><p>}</p><p>public delegate string Calculate(int x , int y);</p><p>#region MathematicalFunction</p><p>public string Add(int x, int y)</p><p>{</p><p>return ((x + y).ToString());</p><p>}</p><p>public string Multiply(int x, int y)</p><p>{</p><p>return ((x * y).ToString());</p><p>}</p><p>public string Divide(int x, int y)</p><p>{</p><p>return ((x / y).ToString());</p><p>}</p><p>public string Subtract(int x, int y)</p><p>{</p><p>return ((x — y).ToString());</p><p>}</p><p>#endregion</p><p>}</p><p>}</p><p>public class UseDelegate</p><p>{</p><p>// TODO: Complete member initialization</p><p>//action and lamda expression</p><p>//action and func are types of delegates , action is used when you dont know exact signature</p><p>//action accepts 16 input parameters and no return types , while func can have return type</p><p>//lamda expression =&gt; is used to make functions on fly like below example , please study the syntax</p><p>public Action&lt;int, int&gt; MyAction = (int a, int b) =&gt; { Console.WriteLine(a + b); };</p><p>public UseDelegate()</p><p>{</p><p>}</p><p>public UseDelegate(int x , int y)</p><p>{</p><p>//creating multicast deligate — a deligate which contains more than one function</p><p>//# region mathematical function</p><p>Calculate MulticastCalculateDelegateObject = Add;</p><p>MulticastCalculateDelegateObject += Subtract;</p><p>MulticastCalculateDelegateObject += Divide;</p><p>MulticastCalculateDelegateObject += Multiply;</p><p>MulticastCalculateDelegateObject(x, y);</p><p>}</p><p>public delegate string Calculate(int x , int y);</p><p>#region MathematicalFunction</p><p>public string Add(int x, int y)</p><p>{</p><p>return ((x + y).ToString());</p><p>}</p><p>public string Multiply(int x, int y)</p><p>{</p><p>return ((x * y).ToString());</p><p>}</p><p>public string Divide(int x, int y)</p><p>{</p><p>return ((x / y).ToString());</p><p>}</p><p>public string Subtract(int x, int y)</p><p>{</p><p>return ((x — y).ToString());</p><p>}</p><p>#endregion</p><p>}</p><p><strong>same namespace</strong></p><p>public class Car</p><p>{</p><p>public Car()</p><p>{</p><p>}</p><p>//created to learn about creating event , firing event , suscribing event to other class</p><p>//logic if speed greater than 50 then fire event</p><p>//declare an event</p><p>public event Action change;</p><p>private double speed;</p><p>public double pspeed</p><p>{</p><p>get {</p><p>return speed;</p><p>}</p><p>set { speed = value;</p><p>if (speed&gt;50)</p><p>{</p><p>if (change != null)</p><p>{</p><p>change(); //fire the event if the condition satisfies</p><p>}</p><p>}</p><p>}</p><p>}</p><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb441d5c92d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/net-voyage/delegates-events-publishing-subscribing-6fb441d5c92d">Delegates , Events , Publishing , subscribing</a> was originally published in <a href="https://medium.com/net-voyage">.NET voyage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Head scratching object oriented stuff]]></title>
            <link>https://medium.com/net-voyage/head-scratching-object-oriented-stuff-e17e11b2bce7?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e17e11b2bce7</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Tue, 28 Oct 2014 21:46:12 GMT</pubDate>
            <atom:updated>2014-10-28T22:10:50.215Z</atom:updated>
            <content:encoded><![CDATA[<p>some concepts which makes us nervous</p><h4>Last minute brush on classic object oriented questions</h4><h4>Abstract class :</h4><p>cannot be instantiated and acts as a base class for other classes.</p><p>common functionality that multiple derived classes can share and overrid</p><p>An abstract class contain abstract members as well as non-abstract members.</p><p>An abstract class can have concrete methods which is not possible in Interface.</p><p>An abstract class cannot be a sealed class because the sealed modifier<br>prevents a class from being inherited and the abstract modifier requires<br>a class to be inherited.</p><p>A non-abstract class which is derived from an abstract class must include<br>actual implementations of all the abstract members of parent abstract class.</p><p>An Abstract class can has access modifiers like private, protected,<br>internal with class members.But abstract members cannot have private<br>access modifier</p><p>An abstract class can have constructors and destructor.</p><p>Abstract class does not support multiple inheritance.</p><h4>little more about Abstract class :</h4><p>Abstract class cannot be instantiated and job of constructor is to get<br>called when child classes ‘s objects are created. So keeping the<br>constructor of abstract class as public gives idea to developer that<br>this class is instantiable , hence it should be protected or internal.<br>Again keeping constructor as private also doesnot make sense</p><h4>Lets see difference between const and readonly</h4><p>Yes thats not object oriented concept , but in implementation of this<br>two keywords object oriented concept plays important role.</p><p>Now const is compile time read.That means you dont need object to create<br>constant. So const value is initialised at compile time.</p><p>Const value is declared in compile time.</p><p>Read only is like const but IT IS INITIALISED AT RUN TIME.So at compile time<br>value of readonly variable is not known.</p><p>const are static while readonly is not. One way to put this is<br>that we dont have to create object of const to acess const but not the same<br>for readonly.</p><h4>What is singleton pattern ? and difference with static class</h4><p>Singleton pattern makes sure that you have only single instance of<br>that class available while static class can never be instantiated at all.</p><p>—single pattern has public class with private constructor<br>which means that no other class than that class can create object of that<br>class.<br>—then it has private instance class object declared in it as property.<br>—similarly you have public instance class object declared in it as property<br>— in the get method of public instance class object , we return the private instance after instantiating it.</p><p>using System;</p><p>public class Singleton<br>{ private static Singleton instance;</p><p>private Singleton() {}</p><p>public static Singleton Instance { get { if (instance == null) { instance = new Singleton(); } return instance; } }<br>}</p><p>also here you can declare a static method inside which we<br>can put constructor</p><p>and this static method can be called from any where.</p><h4>What if class implementing two interface have same methods</h4><p>we can do explicit implimentation then</p><p>public interface IFoo1<br>{ void DoStuff();<br>}</p><p>public interface IFoo2<br>{ void DoStuff();<br>}<br>You can implement both like this:</p><p>public class Foo : IFoo1, IFoo2<br>{ public void IFoo1.DoStuff() { }</p><p>public void IFoo2.DoStuff() { }<br>}</p><h4>Have a look at this perfect running code , this will tell us few more interesting things</h4><pre>class program<br>{<br> interface IA<br> {<br> void getName(string s);<br> }</pre><pre> interface IB<br> {<br> void getName(string s);<br> }</pre><pre> interface IC<br> {<br> void getName(string s);<br> }</pre><pre> public abstract class AC<br> {<br> public abstract void getName(string s);<br> }</pre><pre> public class CA : AC , IA, IB, IC<br> {<br> public override void getName(string s)<br> {<br> Console.WriteLine(s);<br> }<br> }</pre><pre> static void Main()<br> {<br> CA ca = new CA();</pre><pre> Console.ReadLine();<br> }</pre><pre>}</pre><p>so what is happening here is that 3 interface and one abstract method has same method getname . I used to think in such scenario we should implement method thrice (like implicit implementation in the above topic we discussed but voila , we dont need to and this is perfectly fine.</p><p>However lets keep in mind this thing</p><p>—to make interface happy just implement it</p><p>—to make abstract happy YOU HAVE TO OVERRIDE IT. At the end of the day dont forget that it is a class too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e17e11b2bce7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/net-voyage/head-scratching-object-oriented-stuff-e17e11b2bce7">Head scratching object oriented stuff</a> was originally published in <a href="https://medium.com/net-voyage">.NET voyage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Await +Async) and (task vs thread) :P]]></title>
            <link>https://medium.com/net-voyage/await-async-and-task-vs-thread-p-3b3d7adb4620?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b3d7adb4620</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Mon, 27 Oct 2014 11:37:55 GMT</pubDate>
            <atom:updated>2014-10-27T11:37:55.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JjWAJykgkUt8NvBF-S8XtA.jpeg" /><figcaption>when it gets difficult to understand just look at this relaxing picture and read again.Hope i can be of any help to you guys.</figcaption></figure><p>lets see so fun stuff</p><p><strong>Use of Async and Await in a real world problem</strong></p><p>while going through behind classes of ASP.NET mvc i found that async and await are used a lot.<br>i was not aware what is async and await.So i googled a bit and found out what kind of real world problems<br>this async and await solve.</p><p>Now there is an application in .NET which helps you to fetch information from three different database.<br>So when you click on “get info” button , there will be a blinker which will show busy sign till the time<br>information is received from all three sources.Once the information is received , the blinker will turn into<br>non busy sign.</p><p>Now before we go ahead we need to understand that when we create new task or thread function from our main thread,<br>the main thread will continue to do its work regardless what the new task is doing , so even if below code seems<br>to do job which we have coded it for — to run task 1 and then task 2 and then once both completed then print completed,<br>it will never reach completed status.At such time we use async and await</p><p><strong>without async and await</strong></p><p>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text;<br>using System.Threading.Tasks;<br>using System.Diagnostics;<br>using System.Threading;</p><p>namespace _26102014tasklibrary<br>{ class Program { static void Main(string[] args) {</p><p>Boolean IsBusy = true; Task task1 = new Task(new Action(SaySomething)); Task task2 = new Task(new Action(RunMillionIterations)); task1.Start(); if(task1.IsCompleted == true) { task2.Start(); } if(task1.IsCompleted==true &amp;&amp; task2.IsCompleted== true) { IsBusy = false; Console.WriteLine(“finished”); Console.ReadLine(); } else { Console.WriteLine(“finished”); Console.ReadLine(); } } public static void SaySomething() { for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(“this is how we roll”); } } public static void RunMillionIterations() { Stopwatch stp = new Stopwatch(); stp.Start(); for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(i); } stp.Stop(); TimeSpan ts = stp.Elapsed;</p><p>string elapsedTime = String.Format(“{0:00}:{1:00}:{2:00}.{3:00}”, ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(“RunTime “ + elapsedTime); }</p><p>}<br>}</p><p><strong>Now lets see how to add async and await to our code</strong></p><p>//remember async and await are like husband and wife.</p><p>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text;<br>using System.Threading.Tasks;<br>using System.Diagnostics;<br>using System.Threading;</p><p>namespace _26102014tasklibrary<br>{ class Program { Boolean Isbusy; static void Main(string[] args) { Newasyncmethod(); Console.ReadLine(); //Boolean IsBusy = true;</p><p>//Task task1 = new Task(new Action(SaySomething)); //Task task2 = new Task(new Action(RunMillionIterations));</p><p>//task1.Start(); //if(task1.IsCompleted == true) //{ // task2.Start(); //} //if(task1.IsCompleted==true &amp;&amp; task2.IsCompleted== true) //{ // IsBusy = false; // Console.WriteLine(“finished”); // Console.ReadLine(); //} //else //{ // Console.WriteLine(“finished”); // Console.ReadLine(); //} //Parallel.Invoke(() =&gt; SaySomething(), () =&gt; RunMillionIterations()); ////Thread O1 = new Thread(RunMillionIterations); ////O1.Start(); ////Parallel.For(0, 1, x =&gt; RunMillionIterations()); //Console.ReadLine(); }</p><p>public static async void Newasyncmethod() { await Task.Run(new Action(SaySomething)); await Task.Run(new Action(RunMillionIterations)); }</p><p>public static void SaySomething() { for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(“this is how we roll”); } } public static void RunMillionIterations() { Stopwatch stp = new Stopwatch(); stp.Start(); for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(i); } stp.Stop(); TimeSpan ts = stp.Elapsed;</p><p>string elapsedTime = String.Format(“{0:00}:{1:00}:{2:00}.{3:00}”, ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(“RunTime “ + elapsedTime); }</p><p>}<br>}</p><p>so what is happening here is , we are stopping main thread to go ahead till child thread has performed its function.<br>This is very useful when you face problems mentioned above.</p><p>or we can use the Task.WhenAll() function , which waits for both the tasks to finish to move ahead</p><p>spinner.IsBusy = true;<br>try<br>{ Task t1 = Task.Run(() =&gt; dataX = loadX()); Task t2 = Task.Run(() =&gt; dataY = loadY()); Task t3 = Task.Run(() =&gt; dataZ = loadZ());</p><p>await Task.WhenAll(t1, t2, t3);<br>}<br>finally<br>{ spinner.IsBusy = false;<br>}</p><p><strong>Tasks are upgrade from threads in c#</strong><br>They are features of 4.5 Net framework and benefits of using tasks ahead of thread are as follows</p><p>You can consider a Task as a more sophisticated version of a Thread. They are very easy to use and have a lot of advantages over Threads as follows:</p><p>You can <strong>create return types to Tasks</strong> as if they are functions.</p><p>You can the <strong>“ContinueWith” method</strong>, which will wait for the previous task and then start the execution. (Abstracting wait)</p><p>You can use Task.<strong>WaitAll</strong> and pass an array of tasks so you can wait till all tasks are complete.</p><p>You can attach task to the parent task, thus you can decide whether the parent or the child will exist first.</p><p>You can achieve data parallelism with LINQ queries.</p><p>You can create parallel for and foreach loops</p><p>Very easy to handle exceptions with tasks.</p><p>*Most important thing is if the same code is run on single core machine it will just act as a single process without any overhead of threads.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b3d7adb4620" width="1" height="1" alt=""><hr><p><a href="https://medium.com/net-voyage/await-async-and-task-vs-thread-p-3b3d7adb4620">(Await +Async) and (task vs thread) :P</a> was originally published in <a href="https://medium.com/net-voyage">.NET voyage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Task parallel library]]></title>
            <link>https://medium.com/net-voyage/task-parallel-library-4d4ce9fe6b57?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d4ce9fe6b57</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Sun, 26 Oct 2014 14:13:24 GMT</pubDate>
            <atom:updated>2014-10-27T09:47:13.950Z</atom:updated>
            <content:encoded><![CDATA[<p>tutorial and small demo with code</p><p><strong>Why to use task parallel library</strong> — To improve performance of application by dividing the work between processors<br>equally.As hardware is improving ie more number of processor in servers , use of task will be very beneficial.</p><p>without task parallel library ( a feature of 4.5 Net framework ) , multiple threads are time sliced (context switched)</p><p><strong>example </strong>: suppose there are two threads running parallely , then thread 1 will run for lets say 20 seconds and then it<br>will give chance for thread 2 to run for 20 seconds . This is cycle but it can cut down performance of the application.</p><p>To check the performance of your application and analyse the distribution of processor when application is running ,<br>we will use tool called perfmon (performance monitor).It is very useful tool and easy to find too.Even if<br>you do not have this app , we could use stopwatch class of c# to find the timings.</p><p><strong>Without Task parallel library</strong></p><p>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text;<br>using System.Threading.Tasks;<br>using System.Diagnostics;<br>using System.Threading;</p><p>namespace _26102014tasklibrary<br>{ class Program { static void Main(string[] args) { Thread O1 = new Thread(RunMillionIterations); O1.Start(); Console.ReadLine(); }</p><p>public static void RunMillionIterations() { Stopwatch stp = new Stopwatch(); stp.Start(); for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(i); } stp.Stop(); TimeSpan ts = stp.Elapsed;</p><p>string elapsedTime = String.Format(“{0:00}:{1:00}:{2:00}.{3:00}”, ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(“RunTime “ + elapsedTime); }</p><p>}<br>}</p><p><strong>With Task parallel library</strong></p><p>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text;<br>using System.Threading.Tasks;<br>using System.Diagnostics;<br>using System.Threading;</p><p>namespace _26102014tasklibrary<br>{ class Program { static void Main(string[] args) { Parallel.For(0, 1, x =&gt; RunMillionIterations()); //we use parallel class to say that run this function in multiple processors Console.ReadLine(); }</p><p>public static void RunMillionIterations() { Stopwatch stp = new Stopwatch(); stp.Start(); for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(i); } stp.Stop(); TimeSpan ts = stp.Elapsed;</p><p>string elapsedTime = String.Format(“{0:00}:{1:00}:{2:00}.{3:00}”, ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(“RunTime “ + elapsedTime); }</p><p>}<br>}</p><p><strong>Time taken without Task parallel library</strong></p><p><strong>8 sec 36 milliseconds</strong></p><p><strong>Time take with Task parllel library</strong></p><p><strong>8 sec 29 milliseconds</strong></p><p>There are many more things to explore in task parallel library and its fun.</p><h4><strong>Now lets talk about Parallel method called Parallel.Invoke()</strong></h4><p>In simple words , Parallel.Invoke() methods accepts two types of parameters<br>They are 1) array of functions 2) two functions.</p><p>so what happens when you pass lets say two methods in Parallel.Invoke() method<br>The answer is the both the functions work simultaneosly in different cores saving time.<br>If you have two methods in your program which can run in parallel ,<br>lets say console.writeline() and a user created serialisetoxml() which can run parallel to each other<br>because neither affects each other , then why keep them in tetris mode (run console.writeline() first and then<br>go for serialisetoxml()) and waste time. Just run them in parallel.<br>Here in my example i have two methods which are not related to each other, hence i can introduce asynchronous<br>programming.Just try this program and see the output,<br>What you will find is that the time taken for both of them to complete<br>if they run individually one after the other is much more than if they run with parallelly.<br>Use can use the timer in the program to find time difference.<br>In my system it takes 12 seconds parallely and 28 seconds if in tetris mode.</p><p>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text;<br>using System.Threading.Tasks;<br>using System.Diagnostics;<br>using System.Threading;</p><p>namespace _26102014tasklibrary<br>{ class Program { static void Main(string[] args) { Parallel.Invoke(() =&gt; SaySomething(), () =&gt; RunMillionIterations()); //Thread O1 = new Thread(RunMillionIterations); //O1.Start(); //Parallel.For(0, 1, x =&gt; RunMillionIterations()); Console.ReadLine(); } public static void SaySomething() { for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(“this is how we roll”); } } public static void RunMillionIterations() { Stopwatch stp = new Stopwatch(); stp.Start(); for (int i = 0; i &lt;= 100000; i++) { Console.WriteLine(i); } stp.Stop(); TimeSpan ts = stp.Elapsed;</p><p>string elapsedTime = String.Format(“{0:00}:{1:00}:{2:00}.{3:00}”, ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(“RunTime “ + elapsedTime); }</p><p>}<br>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d4ce9fe6b57" width="1" height="1" alt=""><hr><p><a href="https://medium.com/net-voyage/task-parallel-library-4d4ce9fe6b57">Task parallel library</a> was originally published in <a href="https://medium.com/net-voyage">.NET voyage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET Application Voyage pt 1]]></title>
            <link>https://medium.com/net-voyage/net-application-voyage-pt-1-abcc49cc3e28?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/abcc49cc3e28</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Sat, 25 Oct 2014 14:17:14 GMT</pubDate>
            <atom:updated>2014-10-25T14:17:14.418Z</atom:updated>
            <content:encoded><![CDATA[<p>corners,struggles,knowledge and fun</p><p><strong>Journey in the sea of .NET</strong></p><p><strong>Entity framework</strong></p><p><strong>Definition in 1 word :</strong></p><p>Entity Framework is an Object Relational Mapper (ORM).</p><p><strong>Little more definition :</strong></p><p>It basically generates business objects and entities according to the database tables and provides the mechanism for:<br>Performing basic CRUD (Create, Read, Update, Delete) operations.<br>Easily managing “1 to 1&quot;, “1 to many”, and “many to many” relationships.<br>Ability to have inheritance relationships between entities.</p><p><strong>Benefits :</strong></p><p>so major benefit is that we can code database in our c# code itself instead of having t-sql code.<br>another major benefit is type safety of code and fast execution.</p><p><strong>Why to use it again :</strong></p><p>Entity framework sits between your database and application , but does that mean that ado.net has become obsolete ?<br>No Entity framework uses ado.net but think of Entity framework as a tool which helps you use ado.net better.<br>Lets be honest who wants to use data reader and data set classes , i love entity framework.</p><p><strong>So what if you already have database of your application ? or you dont have database ?</strong></p><p>There are two ways you can work on Entity framework — Database first and Code first</p><p>If you already have database , you just have to create Entity model of that database (.Edmx file).</p><p>It copies all the mappings and tables and constraints to that model and viola within minutes you start working on your database.</p><p>I<strong>f you do not have database , then just code first and let entity framework create underlying classes for you.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abcc49cc3e28" width="1" height="1" alt=""><hr><p><a href="https://medium.com/net-voyage/net-application-voyage-pt-1-abcc49cc3e28">.NET Application Voyage pt 1</a> was originally published in <a href="https://medium.com/net-voyage">.NET voyage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How political debates sounds in IT company]]></title>
            <link>https://medium.com/the-perks-of-being-right-kind-of-wrong/how-political-debates-sounds-in-it-company-f546726a1c10?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f546726a1c10</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Mon, 18 Aug 2014 10:45:07 GMT</pubDate>
            <atom:updated>2014-08-18T10:45:07.530Z</atom:updated>
            <content:encoded><![CDATA[<p>How Modi vs anti Modi debate sounds in IT world</p><p>Lead : As per your estimate while joining last month , only 19 days are left to finish code<br>Developer : Arre , the last developer spoiled the whole system , give me more time , i ll take 4 years to fullfill the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*9j5zM0hKnUQStr_3jB8S_A.jpeg" /></figure><p><strong>7000 CRORE RS to Make 100 cities …70 Crore per city</strong></p><p>HR :we will hire 30 developers to finish all the modules.</p><p>Lead : You know right , the budget of only 7 lakh has been approved and average tester cost 8 lakhs per annum and coder 9 lakh .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*y33eQIZ-kpPW66VY8LwZ5w.jpeg" /></figure><p><strong>Hindu Hindu Hindu</strong></p><p>Delivery manager : Before taking charge you said we will take everybody developer,tester,admin,BA together in this project.</p><p>Manager : Yes i am working towards sabka sath sabka vikaas concept..the motto of the company.</p><p>Delivery manager : Then why is your junior coder feeding admin with front end codes ? Why in call , your team lead said that all IT workers are primarily coders , we are coder company from 2000 years ??</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*6mteWbw35aLJxdI_xOCB-w.jpeg" /></figure><p><strong>Education minister’s Yale education</strong></p><p>Manager : I thought you went to IIT , your CV also says that then why you are not able to understand the basic OOPS concept.</p><p>Junior Developer : No sir, i used to eat panipuri in front of it , my cv has been misconstrued.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*RkEnc8QLa0zvPnAQEX0sTQ.jpeg" /></figure><p><strong>Manmohan Singh</strong></p><p>Manager : Why are there pending deliverables ?</p><p>Lead : At least i am better than last lead who used to be quiet on call. I dont play politics by giving testers more importance than coders. These testers were dividing our company. They belong to only client side , they will run from company if client calls them , i bet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*zpZVaAyLNAUoVmJUD1dHmQ.jpeg" /></figure><p><strong>CAG report of 13,700 crore debt of Gujurat</strong></p><p>Delivery manager : Our budget for this year was 2 lakh , you have already spent 12 lakhs ,why ?</p><p>Manager : This is testing manager’s evil scheme. See look at new coffee machine near developer station . See how good these color printers work.One sec sir…i ll take your photo color printout , you will be impressed sir!!!</p><p>Delivery manager : Aaaaataaa majhi satakli !!!!!!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*VB2_s40XzwaQwpveKut26w.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f546726a1c10" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-perks-of-being-right-kind-of-wrong/how-political-debates-sounds-in-it-company-f546726a1c10">How political debates sounds in IT company</a> was originally published in <a href="https://medium.com/the-perks-of-being-right-kind-of-wrong">The perks of being right kind of wrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This RakshaBandhan be careful while being tied rakhi]]></title>
            <link>https://medium.com/the-perks-of-being-right-kind-of-wrong/this-rakshabandhan-be-careful-while-being-tied-rakhi-5f12d94552a3?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f12d94552a3</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Sun, 03 Aug 2014 10:07:57 GMT</pubDate>
            <atom:updated>2014-08-03T11:38:41.006Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*TZjCnvzPyRLCb87pONXYTQ.jpeg" /></figure><p>“<strong><em>Boyfriend banne se darr nahi lagtha hai , bhai banne se lagtha hai”</em></strong></p><p>Being a good guy in India is a difficult task.You have absolutely no idea when and how people will use you.<br>Its just not enough to be useful to people but one has to be smart enough on how you are helping them.</p><p>This fad has taken over new 20s something girls in India…you see them in colleges,offices,malls,restaurants etc.<br>So basically when you help such creatures you generally get response “ohhh thank you so much”, “you are such a lifesaver”but what is actually being said in their mind is “yes yes yes !!!i got one more bakra.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*cO230aVTo77G9JcoZlodxg.jpeg" /><figcaption>SOUL LESS CREATURES</figcaption></figure><p>Whether it is to develop some code or create presentation or paying restaurant bill or even dropping them at their home ,<br>such creatures use these guys till their maximum potential utility and generally it is very late till the guy realises that he was<br>being used so badly.</p><p>Remember being called brother by any girl other than your actual or cousin sister ?<br>Just analyse rationally , what help were you providing her at that moment…whether listening to her “how my bf treats me bad” stories or helping her with some topics in school or just being her taxi driver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*dNDD6tu_oLlyGFG_q35TrQ.jpeg" /></figure><p>Some girls of these era have pro actively exploited the word brother as “someone who can be used again and again by keeping him away from relationship zone.”</p><p>So next time any girl who decides to call you brother , take a piece of paper and draw a big<br>line in middle of that and write down who is providing what in this so called brother-sister relationship. Even if its 70-30 percent in your favour , you can still think of going ahead but please stop being used by this selfish creatures.sometimes you also need to be selfish.</p><p>I have been asked pick up at 1 am , anarakali dress,mobile phones,some expensive stuff with a dialogue “you can’t do this much for your sister” with puppy eyes. My general response is “if i spend so much now on sister then what will i spend on my spouse in future”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*-M32HzJGjnnBg82WzkFYcQ.png" /><figcaption>Learn to identify people on their intentions</figcaption></figure><p>Let me tell you how it really ends , these girls marry someone other than their bf for several years(whose stories you have heard zillion of times while consoling her).They call their new found husband adjectives like “chivalrous, kind hearted, dedicated” and tell us to be more like them as if you have been doing monkey business till now.</p><p>I wish that I had known these things before but any ways every day there are so many guys touching their 20s and I bet they ll be put in “bhai zone” and ll be used for code,taxi driving,paying bills and what not purposes.So just be careful.</p><p>There is more respect in having one girl in life and being useful to her than having bunch full of so called sisters who suck life<br>out of you every living moment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f12d94552a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-perks-of-being-right-kind-of-wrong/this-rakshabandhan-be-careful-while-being-tied-rakhi-5f12d94552a3">This RakshaBandhan be careful while being tied rakhi</a> was originally published in <a href="https://medium.com/the-perks-of-being-right-kind-of-wrong">The perks of being right kind of wrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[India’s tryst with common sense]]></title>
            <link>https://medium.com/the-perks-of-being-right-kind-of-wrong/indias-tryst-with-common-sense-ec6899e799d5?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec6899e799d5</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Tue, 29 Apr 2014 19:06:35 GMT</pubDate>
            <atom:updated>2014-05-01T15:29:05.857Z</atom:updated>
            <content:encoded><![CDATA[<p>Being a computer masters and management student of operations ,<br>my passion for life comes from common sense.</p><p>yes it does not answer all the questions in the world and I love the absurdity of that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67Vj-1vWTn13RgmuBAlCHw.jpeg" /></figure><p>I live in country of of problems , India.<br>we have opinions on everything , cricket , weather , politics you name it even though we dont have basic amenities.<br>we are billion of people and outsiders say we are brilliant in maths and science.<br>We even have brilliant MBA s who are leading top companies in the world.</p><p>So what do we lack to become the greatest nation in the world and it is not like that we were never that,till 1700 , we were everything , we started the civilization in BCs with drainage pipes.We invented number zero.<br>We discovered ayurveda and yoga.We introduced world to meditation.We developed most arithmetic correct language in world Sanskrit . Our upanishads are so intruging that each chapter questions the previous chapter.This proves nothing is permanent , not even logic.<br>So what happened to us ? why did we become coolies to Europeans ?<br>Simple we lost sense of logic . We killed common sense with Sati , untouchability and thousands of rituals which does not make any sense at all .When science in west was making strides with electricity , telephone , planes , space exploration ,we were fighting on basis of religion and caste. Nothing in world helps you grow than common sense.</p><p>Today if I ask you if you have to open a factory which sells say pencil or clothes and options to open that factory are China or Europe ,</p><p>What will be your answer ?<br>China obviously for cheap labour.</p><p>Companies like Faber Castle and Marks n Spencer , Zara are thriving even after producing in the costliest region of world ie Germany and England . How Japan and Germany built itself again from devastating world war 2 in matter of 1-2 decades ?</p><p>By implementing common sense through lean methodology , eliminating muda,mura,muri — read Toyota way.By streamlining their distribution , by reducing their cycle time and this was not one day effort , years of questioning themselves “how to improve ourself tody?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*kSwZt39vjkbyH845RqZGIA.jpeg" /></figure><p>So back to us , India has big time attitude of “Chalta hai , kaam ban raha hai na” or “we ll face it when we face it”</p><p>Leave manufacturing there is no thought process in our life as well.We dont reproduce smartly — rickshawallah having 4 kids and then crying to send his kids college inspite of poverty might touch your heart , i feel its plain stupid.We just love being stupid — don’t we ?</p><p>Today most Indian uncles (also the ones having girl child) come to me and say Modi and BJP should come to power , i ask them how<br>BJP has proved themselves different from the existing Congress, they also have corruption scams , scandals , watch rape porn in<br>parliament , play divisive politics by splitting healthy relationship between different communities of India.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*28VZEW6mf-Ws8ggjSEoZuw.jpeg" /></figure><p>What will you say to red neck party in USA if they say to you only white people should stay here and if anybody<br>oppose , they might as well go to Canada. Dont you agree we need to ask few questions and get some reality check here?</p><p>This new party waiting to come in power molest girls in Mangalore saying they are prostitutes ,break showrooms of Archies on Valentine day.The reason being cards and roses and valentine day is not part of our culture.</p><p>I want to ask what is our culture then ? Is Kamasutra not our culture ? or it was a misdeed of<br>bunch of horny guys back then ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*XWwFCH90OZXOKahyC7H6xw.jpeg" /></figure><p>I also don&#39;t understand why they gave me this booklet called”Love Jihad” which suggests that Muslim boys are taught to make<br>Hindu girls fall in love with them to get back at Hindu community.</p><p>Muslims are part of us since centuries , Indian Muslims are second largest ethnic population in the world.<br>Its their home as much as it is ours.I have loads of Muslim friends whose dads have served in army and they are as patriotic as any of us.How to suddenly hate them ? and why ? so that you guys get to power ? Nope not happening.</p><p>Modi has promised everything and anything possible under the sky to the voters this time and people have started believing it.How come a nation of 1 billion does not ask the question — how ? baffles me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*_W5qhyKJXJke3Ya2wox1qA.jpeg" /></figure><p>Day we start asking why , how , where , who , what to everything in our life..we will start moving ahead. Had Einstein had contented<br>himself with the laws of Newton , he would not have discovered Theory of Relativity.</p><p>India is perhaps not ready for the generation who asks questions but it will sure in future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*SgPpBWUkpd6J9yeh73xxIg.jpeg" /></figure><p><em>The day</em> when the Indian youth emerge victorious against<br>the hypocrite aunties who tell them “chup , elders se aise questions nahi puchte(dont be smart by asking questions to elders)”<br>the uncles who say “tumhe abe samaj nahi hai (you dont have the wisdome)”<br>the elder brother “whats wrong , i married your sister in law so that we could buy house for 50 lakhs rs”<br>and many more crusaders like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*G7pUVnFo7zLqSjoJqG2ttA.jpeg" /></figure><p><em>is the day</em> when India will truly emerge from the dark ages and common sense is the passage to get to the light.<br>Logic earned through questioning ourselves will show us light to better the things which we are doing wrong right now.<br>ie agriculture,manufacturing etc. and the story of new India will start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBAvRglBFeer-zhhQhdtLQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec6899e799d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-perks-of-being-right-kind-of-wrong/indias-tryst-with-common-sense-ec6899e799d5">India’s tryst with common sense</a> was originally published in <a href="https://medium.com/the-perks-of-being-right-kind-of-wrong">The perks of being right kind of wrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ted Mosby inside me says this ]]></title>
            <link>https://medium.com/the-t-v-age/ted-mosby-inside-me-says-this-4c1e32073982?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c1e32073982</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Tue, 01 Apr 2014 15:27:26 GMT</pubDate>
            <atom:updated>2014-04-01T15:29:28.048Z</atom:updated>
            <content:encoded><![CDATA[<h4>small tribute to “How i met your mother” </h4><blockquote>Hi …….. (settling for pet name for you is a big step and obviously don&#39;t want to do it without you)</blockquote><p>Ya , i saw that jerk from whose car you got down , hurt you bad right?i know love sucks big time.<br>Yes i know you really hoped that jerk and you lasted forever,you spent your nights crying ,<br>i also felt the same with my ex’s but what to do..we don&#39;t write our destiny , do we ?<br>But i am happy your heart was broken like mine , we are entering a relationship without any false expectation.<br>I am happy that we both are realistic , logical people who just love to dream.</p><p>whatever your girlfriends say,don&#39;t listen to them , i really think you have amazing sense of humour and<br>i just cannot wait for eternity of being silly with you.I promise that no matter what’s going in around us,<br>we will be just one silly gesture from hysterical laughter and goofing off.<br>I ll be always amazed about how quickly you can get me laughing and would be grateful for such wonderful times.</p><p>I understand you dont have anybody to listen to you right now but i am really happy you have Gappu , soft toy your dad gifted on your 19th birthday , he has been doing my job well.Yes dear i promise to hold you and listen to you even when you are being difficult , stubborn and complicated.</p><p>I loved the way you rolled your eyes when one of your crazy girlfriend said “i am looking for a guy from down-town Bandra” and then i fell in love with you bazillions times more when you whispered to yourself<br>“fat piece of ass , just wants to shop and eat crap at pretentious restaurants,produce babies and die off…why don&#39;t they just sell themselves on OLX”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*m7LLR2OAqH2sOipDckWpDA.jpeg" /><figcaption>so be happy</figcaption></figure><p>There are many things i wish to say , but lets keep that for later when we meet , right now enjoy your life ,<br>keep smiling and stop being a girl now and come fast…we have a life to live now. Chao !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*qrPzqtfwBjC_fBRbCff8Cg.jpeg" /><figcaption>just to give you a heads up , i am definitely buying this sort of things</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1e32073982" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-t-v-age/ted-mosby-inside-me-says-this-4c1e32073982">Ted Mosby inside me says this </a> was originally published in <a href="https://medium.com/the-t-v-age">The T.V. Age</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chatting with an Indian girl]]></title>
            <link>https://medium.com/@ron_naber/chatting-with-an-indian-girl-1632c4447245?source=rss-822f8dd6248c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1632c4447245</guid>
            <dc:creator><![CDATA[ron naber]]></dc:creator>
            <pubDate>Tue, 25 Mar 2014 14:26:27 GMT</pubDate>
            <atom:updated>2014-03-25T15:29:24.407Z</atom:updated>
            <content:encoded><![CDATA[<h4>Goa , ARAMBOL Beach </h4><p>somewhere between saying yes and getting on the train, i realized how horribly my vacation can go wrong.</p><p>the companion for the small vacation was (in her own words)<br>sassy,classy,cultured yet modern thinking Indian woman<br>who was also childhood friend of mine.<br>and we stationed ourselves at the double dutch restaurant,<br>enjoying the view of beautiful bohemian beach<br>my legs nicely tucked in blanket of sand<br>with our drinks<br>she finally probed me in conversation,<br>“why do you think of extremes all the time”<br>“what did i say”<br>“you said south Indians dont have culture”<br>“dabba , i never said that “<br>“you said na when i was showing you pics of my farewell in college , i commented on clothes northie girls were wearing”<br>“ohh that one , i said south indians dont understand the meaning of culture”<br>“huh as if you northies know culture”<br>“hahahaha , ok tell me is being selfish part of culture?”<br>“no”<br>“thats what i am saying , culture is filled with so much selfishness , i dont understand<br>your excruciating need to attach yourself with it”<br>“leave it “</p><p>and we went back to looking at the sunset.</p><p>“you enjoy your work ?” i asked<br>“no rohan , i am a electrical engineer and now in marketing”<br>“why did you go there then?”<br>“Rohan , my dad owns evergreen media house , you know that “<br>“so when you were called for interview in job profile you like why did you say no”<br>“you know Rohan my dad will say no”<br>“cool , you love travelling ? “<br>“yes i do” “so where else other than this state “<br>“been to tamil nadu and wayanad before”<br>“in 24 years , just two trips outside city ?”<br>“this is the third one”<br>“why”<br>“rohan , when you will have daughter you will understand”<br>“i am trying to make you understand that your dad loves you so much that he never let you did<br>what you loved for freaking 25 years of your life”<br>“i am 24&quot;</p><p>next day i was driving on busy calangaute road with her and we needed to turn left but<br>we were on right side of road,<br>“rohan go go , i ll show hand “<br>“no daa its ok “ and i took left from left block<br>“you spoilt brat , why burning extra petrol”<br>“thats the selfishness i was talking about”<br>“we are so selfish people that everybody wants to do their first best thing,<br>no one will even think let alone do to do second best thing even if it trouble others , right now here<br>i knew i fucked up i was on right , i could have gone left , people would have been honking and i would be like “ohh but i have to take left , what else can i do” what else i can do is go around another block and not trouble others”</p><p>“thats true, Rohan people are very selfish these days”<br>“in Bangalore itself we see so many people not even bothered to put direction sign while driving, thats how the<br>culture is , people are like “i go to temple or do Pooja ,listen to mom dad , dont do anything to even slightly upset them like the northie friend who wore backless at farewell party and while i am doing all of that , i become cultured.”<br>“culture exist in small thing like following “let people alight first” sign , what the use of praying like<br>100 times and acting like assholes outside and max people live like that “</p><p>she didnt talk much that day , the next day we were at anjuna , some 4 hours before we would catch bus to go back.<br>“why cant you add reasonable as adjective ? “<br>“in all the things add say sweet , devil , cute , modern , independent why not add a small reasonable or logical while describing yourself”<br>“i am reasonable”<br>“if yes , why not put there in describtion proudly”<br>“who puts that rohan”<br>“why not , see the way you are moving, life is not gonna be much different from the older generation , only way you can out<br>of the cycle is sometimes being fair to yourself , making own decisions , does that make sense ?”<br>“its not that easy , you will understand once you get married and have kids”</p><p>and the trip got over , hope “does that add up,does it make sense” questions comes in her mind more often.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1632c4447245" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>