473,409 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Wanted: C# code review

Hello all,

I've been writing C# applications and web sites for some time, but I'm now
planning to share my latest code with the world at www.codeproject.com. The
code works fine, but I'd like someone with a bit more experience and some
spare time to take a look at how it's organised. Being self-taught, I don't
have much experience of coding standards, and I'd like a code review to see
if I'm making the best use of the language, the framework etc.

The application sets up a low-level keyboard hook using the Windows API from
C# in order to prevent unforeseen effects when a baby or other animal is
having a go at the keyboard. So if you have some spare time and opinions to
offer, let me know!

Thanks,

Emma
(remove nospam and asterisk in email address)
Jun 14 '06 #1
7 2047
Ho,

What the code does?

My advise is to check MSDN for example of how they write the code. also MS
has a document where they state theirs recommended practices for writing
code, I had the link but cannot fnd it now :(

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Emma Burrows" <ariana*@*NOSPAM*ntlworld.*com> wrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
Hello all,

I've been writing C# applications and web sites for some time, but I'm now
planning to share my latest code with the world at www.codeproject.com.
The
code works fine, but I'd like someone with a bit more experience and some
spare time to take a look at how it's organised. Being self-taught, I
don't
have much experience of coding standards, and I'd like a code review to
see
if I'm making the best use of the language, the framework etc.

The application sets up a low-level keyboard hook using the Windows API
from
C# in order to prevent unforeseen effects when a baby or other animal is
having a go at the keyboard. So if you have some spare time and opinions
to
offer, let me know!

Thanks,

Emma
(remove nospam and asterisk in email address)

Jun 14 '06 #2
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote...
What the code does?
Specifically, it sets up a low-level keyboard hook so that no other
applications get keyboard messages, and then displays various shapes when
keys are pressed. (I got tired of my baby son deleting files, opening web
pages and moving things around every time he got hold of my keyboard...)
My advise is to check MSDN for example of how they write the code. also MS
has a document where they state theirs recommended practices for writing
code, I had the link but cannot fnd it now :(


Thanks for the tip. I remember reading their guidelines and hopefully I have
followed them. But that's all theory; I just want to check I've actually put
some of it into practice. :)

Cheers,

Emma
Jun 14 '06 #3
Here's some good advice: Use Visual Studio to Refactor your code. The VB
weenies currently have more choices when refactoring because a bunch of VB
sissies cried when Refactoring was provided for C# but not for VB at that
current point in time. So Microsoft over-compensated and bought an
application add-in from an ISV for VB cry babies because listening to a baby
cry gets on everybody's nerves.

Meanwhile, C# developers will have to wait to catch up with additional
refactoring support which is nothing new and would almost have certainly
been provided for the VB sissies too if they hadn't started crying and
sh!tting in their diapers.

Refactoring is the first thing you want to consider though...

Then you also want to run your code through FxCop which Microsoft uses to
test applications submitted by those in the partner program who are writing
applications to obtain points required for advanced certified partner
status. No need to go over-board with what FxCop find(it will mark code with
flags you've never heard of before) so do pay attention to what it finds and
apply the critical responses. No need to go over-board. Finally, use
contemporary naming and style conventions you can learn by reading
Microsoft's documents combined with documents published by C# MVPs who have
been certified. If English is not your native language have somebody
proof-read your work before submitting to public scrutiny.

So tell me (us) what topic are you planning to publish?

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Emma Burrows" <ariana*@*NOSPAM*ntlworld.*com> wrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
Hello all,

I've been writing C# applications and web sites for some time, but I'm now
planning to share my latest code with the world at www.codeproject.com.
The
code works fine, but I'd like someone with a bit more experience and some
spare time to take a look at how it's organised. Being self-taught, I
don't
have much experience of coding standards, and I'd like a code review to
see
if I'm making the best use of the language, the framework etc.

The application sets up a low-level keyboard hook using the Windows API
from
C# in order to prevent unforeseen effects when a baby or other animal is
having a go at the keyboard. So if you have some spare time and opinions
to
offer, let me know!

Thanks,

Emma
(remove nospam and asterisk in email address)

Jun 14 '06 #4
Hello Emma,

Comments have been sent

BTW, I recomend to scrutinize these resources
a) http://www.idesign.net/idesign/downl...20Standard.zip
b) http://msdn.microsoft.com/library/de...techniques.asp

EB> Hello all,
EB>
EB> I've been writing C# applications and web sites for some time, but
EB> I'm now planning to share my latest code with the world at
EB> www.codeproject.com. The code works fine, but I'd like someone with
EB> a bit more experience and some spare time to take a look at how it's
EB> organised. Being self-taught, I don't have much experience of coding
EB> standards, and I'd like a code review to see if I'm making the best
EB> use of the language, the framework etc.
EB>
EB> The application sets up a low-level keyboard hook using the Windows
EB> API from C# in order to prevent unforeseen effects when a baby or
EB> other animal is having a go at the keyboard. So if you have some
EB> spare time and opinions to offer, let me know!
EB>
EB> Thanks,
EB>
EB> Emma
EB> (remove nospam and asterisk in email address)
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 14 '06 #5
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote...
Here's some good advice: Use Visual Studio to Refactor your code. The VB
weenies...
Having been a VB weenie in my time, I can't say I agree with that aspect of
your post, but thank you very much for the suggestions. Refactoring is a bit
thin in VS 2005 Express Edition, but what there is is already useful; I can
see how the features in the full product would help. I've also downloaded
FxCop, which came up with a couple of things I will change.
So tell me (us) what topic are you planning to publish?


The article will just be about the low-level keyboard hook I've implemented
to stop keyboard events going any further than the application. Nothing that
isn't documented elsewhere, but it might be useful to someone.

Thanks!
Jun 15 '06 #6
I started "developing" using the VB syntax and grammar myself but after a
couple of years I woke up after having a common sense attack.

<%= Clinton

"Emma Burrows" <ariana*@*NOSPAM*ntlworld.*com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote...
Here's some good advice: Use Visual Studio to Refactor your code. The VB
weenies...


Having been a VB weenie in my time, I can't say I agree with that aspect
of
your post, but thank you very much for the suggestions. Refactoring is a
bit
thin in VS 2005 Express Edition, but what there is is already useful; I
can
see how the features in the full product would help. I've also downloaded
FxCop, which came up with a couple of things I will change.
So tell me (us) what topic are you planning to publish?


The article will just be about the low-level keyboard hook I've
implemented
to stop keyboard events going any further than the application. Nothing
that
isn't documented elsewhere, but it might be useful to someone.

Thanks!

Jun 16 '06 #7
"Emma Burrows" wrote
I've been writing C# applications and web sites for some time, but I'm now
planning to share my latest code with the world at www.codeproject.com....


Just in case anyone is interested, the article is now online here:

http://www.codeproject.com/useritems/CSLLKeyboard.asp

Thank you to everyone who made suggestions!

Emma
Jun 22 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Al. C | last post by:
Yeah I know this has been done before, but it usually gets into a spitting contest. I run Slackware Linux 9.1 with KDE 3.14. I recently finished about 200,000 lines of code...
1
by: Robin Powers | last post by:
PROCESS CONTROLS/VISUAL BASIC PROGRAMMERS SALARY: TO $100,000 LOCATION: LOS ANGELES AREA Our Client has recently acquired process automation systems used to monitor and control their...
3
by: Arvie | last post by:
I need some advice guys.. I am proposing that we get someone to do a complete audit/review of our Java application codebase, about 1000 JSPs/Servlets and 100 EJBs. If I get firms to submit...
18
by: Ben Hanson | last post by:
I have created an open source Notepad program for Windows in C++ that allows search and replace using regular expressions (and a few other extras). It is located at...
19
by: Swaregirl | last post by:
Hello, I would like to build a website using ASP.NET. I would like website visitors to be able to download code that I would like to make available to them and that would be residing on my...
1
by: Jesse Liberty | last post by:
jliberty@LibertyAssociates.com] I'm looking for a few additional volunteers to help with preliminary review of a new book I'm writing on Visual Basic 2005. You will be asked to read about 25...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
3
by: JeanDean | last post by:
I am looking for freeware tool which can review the c++ code(compiled on g++). Please share your experiences and details obout the usage of the tool.
4
maxx233
by: maxx233 | last post by:
Hello all, I'm new to OO design and have a question regarding where I should place some code. Here's a simplified situation: I'm making an app to do create, submit, and track employee reviews...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.