That actually brings up a good point. I find myself best as a nocturnal programmer. I do all my best coding at night and prefer to good at night. But this stinks because I find myself goofing off during the day so it becomes night, and then I have to do all my work at night so it is like I am putting in double shifts :( HomeNuke
HomeNuke
Posts
-
How do you get in the "ZONE" -
How do you get in the "ZONE"I would listen to rap but I find myself getting distracted, so it defeats the purpose of getting in the "zone" for me :) HomeNuke
-
How do you get in the "ZONE"When coding how do you guys get into the zone? I was thinking about this last night when I was zoning on a piece of shareware I was about to release. Basically, in my computer room with the lights off, and one desk lamp on my monitor(s) with classical music playing on my computer with my Logitech speakers it was just thumping. I just had code coming to me that usually I would have to look up but I was able to just code through things. The entire code base came to me in an epiphany *Insert inspirational hymn here* Just curious if other programmers do something that gets them in the zone or if they just stare at the screen till inspiration hits, even then that is a method of "zoning" :) HomeNuke
-
Heineken and CPCP and a PEPSI!!! yeah :) HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Lazy developer tools?They do have documentation tools out there. I personally use DOxygen, but you have to put in special comments. But by the time you write something out doesn't that defeat the purpose of a design doc? HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Speaking of .NET and install size...This brings up another point. I'm not so muched worried people will look at the source code thats fine. But can they get the source from a decompiler and the rebuild themselves turning it into their own code which they can distro? If so, couldn't they profit from your work? Since your comments don't go into the IL you can't really say code is copyright...Or am I not making sense? HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
.NET file size? *RANT***Begin RANT** Man, I was in for a shock my friend just gave me an app, his first in C#, and the setup file was like 20-30Megs in size? This thing only had a couple of forms. Is this true? This is my one reason I write code that I distro off my website in straight C Win32API the file size is way smaller. This can't be true can it? Someone please tell me he messed something up while creating the distro... This would totally defeat the purpose of distro files over the NET if the setup files total 20-30 megs for a couple of forms???? Sheesh... **END RANT** HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
VC++ .NET GripeI don't know if this topic has been explored or touched on greatly but one of my biggest gripe in VC++ .NET is the lack of a Window Form Designer. I mean WTF? Why don't they have a Window Form designer? Granted I still am using MFC 7 and the dialog editor, but it would have been great to have a Window Form editor. I mean it just shows that they concentrated all their resources on C# and VB and ignored a Win Form editor in VC++. I just think this bites, and the offical word is that one may be released but maybe not in this release of VS .NET?!?! I mean why couldn't they release a WinForm Designer in VC++? :( If there is a valid reason for this let me know. But now I feel like I have to go buy C# just for the WinForm designer?!?! Uuughhh... Well that's my gripe. Thanks for listening. HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Unix V's NT JobsMaybe I came across wrong. But what I mean is that Windows programmers are a dime a dozen since it is readily available and comes installed on almost all HOME PCs. Most people start learning to code the Windows way (bad move especially if you use MFC hides so much of using standard C++ libs and code). Now with *Nix jobs on the rise it is hard to find a competent *nix programmer, since most coders do it the Win way. Most everyone that wants to code jumps on the Windows platform because you can write code that you can sell to 90% of desktop users (a large install base). Thus making the pool of competent and professinal C++ coders for the *nix environement small. Just because you can good windows does not mean you know how to code in the *nix environement and do it well enough to get a job. HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Array of objects?So the error you are getting is from the client side? Oh OK I'm thinking from a straight C++ side application :) Let me review this some more...sorry for not understanding the question in the first place. HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Array of objects?Like Joaquin said it looks good except for the initialazation part of 'i'. However, if that does not resolve your problem what is the specific error message you are getting? That would help diagnose the problem. PLUS are you sure that is where the error is generated? Your example class BAR is defined such as:
class Bar
{
Bar(int strName, int strAddress);
};The problem with this is that Bar is now a private Constructor by default. You would have problems initializing this in your main function when it calls FOO create unless this is declared as a friend of the class, but that wasn't appearent in your example. Plus you may want to add to the end of your constructor { } so it would be an inline function or define it somewhere else or you may get a linker error. Hope this helps out...I don't even know what I'm talking about right now...need more coffee :| HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Unix V's NT JobsProbably the law of supply and demand in effect. There are a ton of Windows platform programmers. Most used operating system, and a lot of people are jumping ship to windows. With Unix, not LINUX, you don't have such a high number of programmers to pick from, unlike the WinX world. Just my take on the matter...I've been using MFC for so long don't ask me to code a C++ standard compliant program (console). :( HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Help me decide on web hosting?I'll give you a thumbs up, they are now #1 on my list of hosting sites :) I was looking at h2hosting.com but JagPC gives a much better offer, thanks for mentioning them :D HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Got my .NET today.First Congrats! I too picked up VC++ .NET Standard. Just wanted to know also if anyone has any idea on the licensing terms are you allowed to distro EXEs and DLLs in a commercial environment? As, of just recently, I only code in C++ :) and have no use for C# or VB.NET, but since I couldn't find a PRO version of VC .NET standalone went with STANDARD. And since the price is the same as the learning edition previously I was wondering if they have the same limitation, concerning distribution and use of compiled EXEs or DLLs... I HOPE NOT :( But once more congrats! And welcome to the .NET world. For the life of me I'm still using MFC 7.0 though :) haven't touched the CLR... HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
XP & ActivationIn theory no. But I don't know about practice :( MS said that you can change 1-2 devices in your computer without incurring reactivation penalty. But let us know how it goes... HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Token and parsingJust wanted to let you know your method works! :) Thanks it is much cleaner than my previous code attempt. Now I just need to convert my fixed size array to a vector and it would be that much more perfect :-D Thanks again! HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Token and parsingMan, when you finally see the answer you hit yourself on the head! Thanks alot now let me see if I can implement this method ;) Thanks again, I'll let you know if it works, or should I say, if I can get it to work :) HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Token and parsingI have a current project going at work and since I'm the only developer here would like to use you guys as a sounding board, hope no one minds. Here's my current project I have a text file that extracts total counts by different codes into a main text file. Here is an example of a couple lines from the text file:
3AAA, 789
4EFJ,R321 90
5BBB,3AAA 6
etc...Now what I'm doing is reading in the file with CStdioFile and tokenizing each line and inserting relevant information into a structure like:
struct Data{
char* Code;
long Amount;
};by using the strtok() function I have to keep a counter during the tokenizing portion of the program in order to back track from an array of struct Data I created in order to fill in the Amount field with the right amount. Because let's say for example I tokenize the 3rd string I get these tokens:
5BBB
3AAA
6I do not get the amount value until the very end so I have to go back on 5BBB and 3AAA to add in amount 6. Now this file gets pretty big, and with just going through the array and looking up each string literal to see if it is there or not and then adding the amount I might be using more resources than I need to. Question to anyone is there a more efficent way to do this? I'm not asking for code examples just methodology. If I got code examples then I couldn't figure out how to write it and then programming becomes no fun :) But if there is a more efficient method to do what I'm proposing please let me know, and for further clarification just from the 3 lines at top the final output file looks like:
3AAA 765
4EFG 90
R321 90
5BBB 6It works now, but I'm thinking there is a more efficent way of doing this... TIA HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
Standard worth it?Just curious. I only want the C++ version of .NET since I'm buying it for my personal use I can't afford one of the MSDN subscription versions. However, I would like to know if the Standard version I see in my local office store is worth it? Or, should I bite the bullet and at least get the Professional version which from my understanding comes with VB, VC, and C#? I see the only problem with the standard version is the fact that it does not come with the optimizing compiler, is this a big performance hit? Also is intellisense more up to date? I hated the old version it would sometimes work and it would sometimes not and sometimes I'm deleting NCB files :( Also does intellisense only support native VC headers? Can it support 3rd party libs? Just some thoughts and would appreciated anyone's take so I can make an informed decision and either go with PRO or STANDARD. Oh just thought of something does Standard have the same limitation that the old learning edition have? Where you were unable to distribute the executable for either work or commercially? That would definetly move me to the PRO version...but money is hard to come by when your in the states these days :( and yes i'm still paying off credit cards so i would have to save up :( TIA HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com
-
good win32 networking book?I agree with this! This is the current book I'm using to write a web server application. HomeNuke ---- "Nuke'd Your Home, Yet?" Run your own PostNuke based web server from home http://www.homenuke.com