Bug Vanquisher

13 September 2009

is This Beautiful?

Filed under: Dev inside!, Rant vs Vent — Tanveer Badar @ 10:01 PM

CodeTypeDeclaration tablerow = new CodeTypeDeclaration
{
    IsClass = true ,
    Name = ( row [ "TABLE_NAME" ] + "Row" ) ,
    IsPartial = true ,
    BaseTypes = { datarowref } ,
    Members =
    {
        new CodeMemberField( ( row [ "TABLE_NAME" ].ToString( ) + "DataTable" ) , "table" + row [ "TABLE_NAME" ] ),
        new CodeConstructor
        {
            Attributes = MemberAttributes.Public ,
            Parameters = { parameter } ,
            BaseConstructorArgs = { buildervar } ,
            Statements =
            {
                new CodeAssignStatement( new CodeFieldReferenceExpression( thisref , "table" + row [ "TABLE_NAME" ] ) , new CodeCastExpression( row [ "TABLE_NAME" ].ToString( ) + "DataTable" , tablefield ) )
            }
        }
    }
};

To some, it may be but for me it is nauseating. What happened to all those .Add and .Insert calls?

Advertisements

24 January 2009

Java Loves You

Filed under: Rant vs Vent — Tanveer Badar @ 4:35 PM

People don’t like to read. If you can’t think of anything to say, maybe you should just shut up. This whole damn dialog could read

Java Loves You—Please Wait

No, I don’t think so. And People agree. Why hog my computer with “Java Quick Start” by the way? I never complained to anyone that applet start-up time was slow. Why run yet another program to optimize (questionable!) 1% of the cases? As if reader_sl.exe wasn’t enough! (You won’t find any useful information for this program on Google.)

And I had almost forgotten that the rant wasn’t over yet. Java web start is yet another such program (javaws.exe) which keeps running on and on. And jusched.exe which checks for updates when we are perfectly capable of manually invoking the program ourselves.

As a side note, install Gmail Voice and Video chat to include two more such monstrosities in the mix, GoogleUpdate.exe and GoogleTalkPlugin.exe.

[Placeholder for Windows Live praise.]

When the platform is moving towards minimizing startup costs, cutting back on services, making more and more of them to start as late as possible or never if not needed, crappy companies move to feast in the open land.

18 October 2008

Offenses Of The Highest Order

Filed under: Rant vs Vent — Tanveer Badar @ 5:36 PM
  1. Blocking on the thread processing a request for configurable time period.
  2. Modifying an existing service contract instead of creating a new one and inheriting the old one (/me is guilty).
  3. Not protecting static initializers with try { … } catch { … } blocks.
  4. Using open-source persistence layer.
  5. Being forced to work with twits who: do not know how to boot into safe mode; give a blank stare when presented with virtual; get confused when asked about many-to-one and many-to-many relationships. [Update 25/10/08: He quit last Monday. (party)]
  6. Management which throws n people at a task to get it done in 1/n time (n may be arbitrarily large).
  7. Keep getting interrupted by one person or another every 3 minutes.
  8. And I almost forgot. Expect files to be replaced when you send an email “the files which contain just the functions you will need to add to corresponding classes”.
  9. Having no replace (let alone replace all) in Windows Live Writer.

3 September 2008

The Best Programming Language

Filed under: Dev inside!, Rant vs Vent — Tanveer Badar @ 5:30 AM

The myth doesn’t exist.

There is no single best programming languages. If you are too thick to take one as the best, you may as well open a grocery shop and ditch programming forever.

I really hate this line of chat with totally unknown, or unenlightened fresh graduates (or w/e):

<someone>: hello
<me>: hi
<someone>: what do you do for a living?
<me>: making peoples’ lives a living hell
<someone>: you are joking
<me>: of course
<someone>: your real job
<me>: programming

[Then, the stupid question comes.]

<someone>:im too interested in programming
<someone>:which language you use most
<me>:there is no single language, depends on what you are working on
<someone>: i mean present trend
<me>: there are many, there is no single answer to that question of which is the best

[Then, the same question phrased differently this time and my same reply.]

[Then, the same question phrased differently yet again for the third time and my same reply.]

Finally, I got tired of the recursive non-decision but didn’t have the nerve or brain left to tell them to buzz off.

1 September 2008

News Flash, Not So Much

Filed under: Rant vs Vent — Tanveer Badar @ 11:17 PM

XPath is a W3C validation standard.

Says someone I, most fortunately, don’t have the misfortune of directly working with.

Talk about those home grown, supposed to be, well earning, fat headed, people calling themselves programmers.

28 July 2008

Dear God, Why Brits?

Filed under: Dev inside!, Funnier, Rant vs Vent — Tanveer Badar @ 8:50 PM

Why do they have to talk about something when they don’t know anything? Just the hype. Just the news they get from CNet/ZD Magazine/w-e. Just the little, tiny bits of information their minds retain.

Case in question:

Moore’s Law in relation to manycore

Today, July 28, 2008, 8 hours ago | noreply@blogger.com (The Moth)Go to full article

When most people’s brains first light up on why parallelism is the next BigThing, some jump to the conclusion that Moore’s law is over. Let’s clear that up below.
All of you know Roger Moore’s law which boils down to the prediction of

"the number of transistors on a chip will double about every two years"

clock speed increases and that is what has tricked most of us to associate Moore’s law with CPU speed.
So, now that chip manufacturers cannot make single CPUs any faster (well, they can, but they can’t cool them down enough to make them useful), they are resorting to having chips with multiple cores, which we are terming the manycore shift. The manycore shift has a profound impact on developers (especially those programming for the desktop client) in that their software now has to learn how to take advantage of parallelism.
So if you followed the logical flow so far, you’ll conclude that Moore’s law is still alive: we are still getting more silicon, but it does not translate to increased linear speed, but rather to parallel "engines" that your software must learn to utilise.
I am glad we cleared that up :)

Please read the funny stream of comments. And a bit unleashing of my own wrath.

I am glad you don’t actually do anything in hardware industry.

First off, it is Gordon Moore not Roger Moore. Get your facts right before you post.

Second, holy parallelism has its own nemesis, the Amdhal’s Law. You cannot go faster than 1/[portion of serial work] even with infinite processors.

Third, the problem isn’t even cooling. They can’t make the a transistor’s channel short enough.

[Update: 30/07/08 As expected, my comment wasn’t approved.]

[Update: 15/07/08 I just found out, he is also a PM at Microsoft. Yikes!]

19 July 2008

Firefox Updated, Close First Window

Filed under: Rant vs Vent — Tanveer Badar @ 6:34 PM

Why on earth should I close gmail?

*Writing online, Windows Live Writer is currently screwing up for wordpress.*

17 June 2008

Catch the Mistakes

Filed under: Rant vs Vent — Tanveer Badar @ 1:34 AM

Hot off facebook’s profile home…

What are the reasons that prevent you from reading Urdu Magazine? Pakistan Sponsored Poll

Create a Poll »

I don’t like the magazine

I can’t read Urdu

I prefer reading in English

I live outside Saudi Arabia/I never heard of it

I don’t like to read at all

Now, this is SO horribly wrong.

1- Urdu is/was never spoken in KSA. Even the immigrants don’t make up much.

2- There is no positive option.

3- It is impossible to answer for a blind person.

4- Not wanting to read is no one particular language’s fault, perhaps the individual is real dumb, stupid moron. For all we know.

24 May 2008

Flat Perspective

Filed under: Rant vs Vent, Things in life — Tanveer Badar @ 5:10 PM

Not mine, about some stupid movies.

As a rule of thumb if the thing you are watching (in other words, wasting time) does not have a flat perspective, something like spherical projection or, even more obtusely, oblong, then, its simply not worth the time.

There will be no story, just stupid flash backs (strong analogy to ‘Lost’). And it will end so suddenly, you’ll scratch your head longer than the time it took you to watch it figuring out what just happened.

23 May 2008

Who said Mac was horrible

Filed under: Rant vs Vent — Tanveer Badar @ 11:58 AM

Apparently, you don’t have to walk to a Mac to see those abominations like bitmap graphics, fixed DPIs and no anti-aliasing. You can have these in Windows if you get to work on Eclipse.

image  Yummy vector graphics at 6x zoom.

image Super anti-aliased edges

Older Posts »

Blog at WordPress.com.