423 reputation
29
bio website gaprogman.com
location Hull, United Kingdom
age 28
visits member for 2 years
seen Apr 7 at 7:58

Jan
7
comment C# dynamically linking different libraries and/or external classes
Excellent, thank you. If we had gone down the runtime route, we'd have to include the licensed library with our build right? Otherwise we'd get exceptions thrown at runtime if we tried to Invoke something that cannot be found, right?
Jan
7
comment C# dynamically linking different libraries and/or external classes
We're going with compile time assembly references. Please ignore the "at run time" in the title, as it was a working title that I forgot to alter after I had written the question.
Dec
5
comment Sorting an array of numbers with decimal places
@mouviciel Unfortunately, we're compiling for Windows and are looking to include as few external resources as possible. Nice to know that we can do this, though.
Dec
5
comment Sorting an array of numbers with decimal places
@RossPatterson - that's the one ;). In this case it's more related to section headings, though.
Dec
4
comment Sorting an array of numbers with decimal places
This is precisely what I was looking for, thanks.
Sep
24
comment How common is string manipulation, really?
I've used a lot of string manipulation in projects where I've read from an old database into a newly designed database (having to strip out several parts of a specific field before adding each separate part to a different field in a new record in the new database), and when dealing with streams of text read from COM and HTTP ports. Not a typical set of scenarios, but those are some of the tasks I've used them in
Sep
24
comment Writing my problem solving approach on paper?
I can vouch for thinking and designing the solution taking less time in the long run. Too often, at university, I would see people (myself included) launch into 2 hours of clacking away, only to find that their solution was broken. Taking the time to design and work through the problem will help to find a simple solution. We have whiteboards, notebooks and "consults" where I work for this very reason.
Sep
24
comment Writing my problem solving approach on paper?
@Deco One of the reasons I have a Kermit the frog plush and a knitted space invader is for the rubber duck method. It's so useful when my developer colleagues are not around.
Sep
24
comment Writing my problem solving approach on paper?
I have 3 A4 sized notebooks that are full of hand written pseudo code and notes from the past 18 months of my current job. There's nothing wrong with writing out an idea in pseudo code first. I suppose that if you're hand writing the entire solution on paper before heading off to a computer to type it up, then you might need to look at your methods. I wouldn't say that someone who does this shouldn't be a programmer, though. That sounds like elitist talk to me.
Sep
24
comment Will a binary include methods that are not called in the source code?
@ratchetfreak thanks for the tip-off
Sep
24
comment Will a binary include methods that are not called in the source code?
@m.edmondson I agree. I was just wondering whether incremental builds for testing the newer functionality would include methods that are not public and no longer called anywhere.
Sep
23
comment Will a binary include methods that are not called in the source code?
@MichaelT Wow! I did not know that you could call private methods like that. I'd better go put some extra security in some of my old code. Thanks for pointing that out.
Sep
23
comment Will a binary include methods that are not called in the source code?
That makes sense. I mean, say you include the std but only call cout, you don't want all of the other code from std included in your binary. Right?
Sep
23
comment Will a binary include methods that are not called in the source code?
@MichaelT but a private method can only be called by methods within the class itself, right? So if a private method is included in the compiled library that is not pointed to by anything...
Sep
23
comment Will a binary include methods that are not called in the source code?
So in my example oldFoo is dead code and, as such, the compiler and linker would be able to flag it as dead code, if the tool chain I'm using supports dead code detection?
Sep
23
comment Will a binary include methods that are not called in the source code?
@thorstenmüller Ah, yes. Sorry, I was using the term 'compiler' to refer to the entire compilation tool chain.
Sep
23
comment Is it appropriate for interviewers to ask candidates for their Stack Exchange user name?
I've no problem with giving my SO account username. I, too, link it on my CV. If a potential employer knows what SO is, that's a bonus. I like to think that by openly saying "I ask questions and look for better solutions with the help of my peers (users on SO sites)," it's showing that I'm open to new ideas, techniques and such. Just use the first rule of The Internet: don't post something, that you don't want folks to see.
Sep
19
comment Would copyrights drop if I re-write open source project into another language?
@stonemetal thanks for the pointer. I'll make a point of sticking to clean room techniques where I can.
Sep
18
comment Would copyrights drop if I re-write open source project into another language?
How does this stand with white-box (I think that's the term) program development? Say I develop a piece of software by looking at other, precomiled, software (without reverse engineering back to the source code). My new software is based on how I believe other solutions handle the problem, but it isn't derived from the original source code. Is it still a derivative work?
Sep
18
comment In what situations does it make sense to use an enumeration when writing object-oriented code?
I tend to use enums for properties in objects that can take one of many different values. For instance, if I'm writing a packet parser, I'd want to know whether the packet was RX'd or TX'd, so I'll have a direction enum rather than (as @Dunk pointed out) magic numbers of error prone strings.