Archive for the 'Software development' Category

Highlighted line in visual studio


The Visual studio editor still doesn’t give the opportunity to highlight the row where the cursor is.

There is no gratis addin solution I am aware of either.

Please make this happen.

An editor where the paper moves up/down instead of the cursor


In my editor I spend too much time looking for the cursor; up, down, left, right.

Why not have the cursor in the same line, like 30% from the top, and instead move the text behind it?

This will make it possible to always write the code/text at the most comfortable place.

Sometimes one wants to write at the top (see code below) or vice verse and one could move the cursor to a new base position then.

(Finding the cursor is easier with a highlighted line where the cursor is.)

Visual studio List visualiser


There is a good dataset visualiser in Visual studio.

But if one uses lists one is out of luck. I have tried creating one, but failed either of lack of competence or lack of time.

There might be a way to export a list to a datatable and work from there but strange enough I haven’t tried.

Create a debug visualiser for generic lists in Visual studio.

SQL debugger


SQL queries easily get hard to read; and then even harder to debug.

With a “debugger” I don’t mean a step-by-step debugger like when debugging a normal imperative program but something that can handle and visualise sets.
What such a debugger would look like I don’t know. Yet. Please tell.

A reference that cannot be null


In most (all?) object oriented programming languages it is possible to have a reference to an object and have this reference be null/nothing/nil.  There are many cases this isn’t a good idea; like for instance method signatures.

AddCustomer( Customer customer )

and customer is null.  Not very common…

It would be nice to have a reference type that cannot be null.  Ever.  The compiler should also know about this and break if the code flow allows the reference being null.

Shortcut aid duplicate in Visual studio


When developing Winforms (and Webforms and Aspnet) in Microsoft Visual Studio there is no aid to stop me from entering overlapping shortcuts.

For example I have a menu with 5 items which have shortcuts alt-F, alt-E, alt-V, alt-T and alt-H.  It is then important that my buttons don’t have the same shortcuts.  There is nothing in Visual Studio signalling a shortcut used in more than one place.

Technically this could be solved through recursing through the controls of a form.  It can be done in the OnLoad event and only in debug mode.  The controls could then be highlighted and maybe reported since it isn’t possible to statically change shortcut while debugging and at least I forget which two controls should be changed to what.
One could take it further to show up already in the designer, that would be the nicest solution.

It is more complex for MDI interfaces.  There is no static linking between a parent and child forms.  One could have a settings file describing the relations.

Ditto tab controls.

Then we have rules like that alt-S should be Save and alt-E should be used for Seek throughout the application.  Without thinking one could use alt-S for Seek in a form somewhere which could fool the user into believing he has saved when he have not.
The technical solution to this could be to have a common settings file.  Controls using one of the regulated short cuts then flag that they are approved for this by a flag.  A developer might accidentally set a short cut but not a flag at the same time.

Safe Server Side Scripting – SSSS


There is a safe way to write client side script; Javascript in the web browswer.

But there is no way to do it on the server.

There are free hosting sites but no one I am aware of allows upload of server side scripts.
Wouldn’t it be nice to allow for The Kids to do simple interactive sites?

Allow for a (script) language, a database and let the server handle resources and CPU so noone can’t clog the machine.

Update: Google has something like it with Google apps script

A buy/sell site that works


Private sellers and buyers do not think alike.
One sells a Nokin D70. Another wants to buy a system camera.
A buyer is looking for a used designer lamp of brandx. This search can take years depending on preferences and requirements.
A seller is selling an anitque chest. It can be labeled as furniture, antique, or storage. Then the possible buyer has to choose the same label.
No sell/buy site does this today in a good way.