Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

355 Neutral

About ajm113

  • Rank
    Advanced Member
  1.     Sounds like you already covered every inch of what needs to be known making a choice. :wink: Not sure why you started this thread to be honest. Unless I missed the point.
  2.   Interesting, can't say I've ever worked at that level, most people I've worked with is 10. Half of them were UI/UE designers.   To answer your question, I suppose it's simply something I'm most comfortable at of doing and knowing low level of things. i.e I would much rather build the server software that runs the website and dealing with worker threads, logging, and learning the HTTP protocol extensively then actually putting together the PHP and HTML that shows up.   I'm definitely noticing that where I live with all the .NET positions cropping up. Perhaps I'm stubborn, and should just pick up a few books on .NET and deal with the current market to adapt. Not to start any flame wars, or no offense to any die hard fans, I just found .NET a very limited platform, which is why I don't bother with it and I do see why companies use it. Something breaks then there is someone else to yell at. ;)   In all honesty, I'm looking for something rewarding in the long run. (health insurance, retirement, salary). Just something a little more stable, where I work I get no benefits, just pay by the hour. Got a few people telling me they get 40k a year and work 50-60 odd hours a week in the game dev world, seems a lot of stress for nothing.   Hate to say it, but I'm kinda leaning towards the self start up idea of opening a online marketing business that will evolve into other areas. Definitely will need a bit of time and money, before that can get rolling. Of course one thing at a time. ;) You can't be a "astronaut, doctor, and president at the same time".
  3. 1. So you're making a difficult decision between the ideal and the practical, you say. Why do you think you can't have both? Go for it already. It pays well and is reasonably secure. 2. Okay, I admit it - I don't know what the difference is. Care to explain? 3. Why do you think you need a large market? What's wrong with the state where you live? You never mentioned games in your post, so although this is a game forum, I assume you're not looking for a game job. 4. You should put all your work experience on your résumé. 5. You should shoot for a position that you'd be good at and also enjoy. 6. Some people have, but that's irrelevant. How old are you? 7. Why not now? 8. I moved it to the right one.     Good point, why wait, basically. Developer would simply be bug fixing, maintaining code, and integrating new features, as an engineer, you would be using engineering principles for software creation. i.e. wide picture of a big project. One way I see it at least. Where I currently live now in Arizona has a very small cpp software market. It's mainly .NET, CPP is very rare and when one position shows up the requirements are pretty high. I want to do simply software at the moment. I've written small game engines using C++ > Lua, SDL/OpenGL, but nothing more then that. Even smaller projects that simply used C++/C? True, I would need to spend a bit of time researching the market. 24, a lot of HR will shoot down an app with no degree, at least my experience anyway. Too many damn bills and things to take care of at this moment. (Fingers crossed to get back in school next year.) Thanks! :)       I could see that, not sure if a place like Portland vs San Diego would have a large difference for cpp programmers. I was planning on starting a business in online marketing and slowly merging to other areas like A/V, and advertising, when things get rolling, but I'm not 100% sure on that yet.   I can see that, put whatever you have pretty much.   I suppose all that would highly depend on where you live, living in AZ housing would be dramatically different then NY, or NJ. If I got a sr. position I would differently want that 100k salary. haha
  4. I'm almost certain those simply cost 10-20 USD in East Asia to produce. haha       Oh Amazon comments...
  5. I'm going to assume I'm answering my own question and I'm doing wishful thinking, but I would like to hear some opinions. I've been in web development for 3 - 4 years now working with Linux/Unix, Windows almost as a full stack developer. I really enjoy my job and find it secure, however I've always have had my heart set being a C++ developer forever. (Assuming developer is much more achievable then an engineer.)   Can anyone give me some tips or pointers what US states have the largest cpp market, and perhaps giving me some pointers on what to look for and what to use on the resume? Obviously recent C++ projects, but should I include my web development jobs anyway? Should I shoot for a jr. position that pays decently (60k+) or sr. role (less working with code and more working with clients/managers).   Also has anyone had luck landing a job as a cpp developer position with simply programming experience and no college degree? I plan on working to get my CS degree some time in the future.   Sorry if this isn't in the proper area of the forum.   Thanks,   Ajm
  6. ajm113

    Memory File Mapping?

    I'm sorry frob,   it's a nice library, but it's not what I'm looking for exactly. (I should have been more specific) I'm looking to basically store records like a RDBM or like MySQL. Where I'll need to constantly require to be able find data, and or write it from small chunks to large chunks in a file/vector array.
  7. Hello,   I'm on the search for file mapping library. I know Win32 has a file mapping functionality, but this doesn't help me for the Unux/Linux community and I know I maybe able to write one my own. (Why reinvent the wheel?) But is their a MIT license file mapping library out their thats cross platform? My project granted will be fine with 4GB RAM machines for small scale projects (32bit), maybe 90GB RAM servers(64bit) if we are talking big data, but supposed someone wanted to go the inexpensive route and do clustering with my application. It will need to use the HD (slow) as means to store data for the program (which maybe a lot of read and writes) if we are talking 5GB to 10GB of data required to be stored.   If someone can give tips or point me in the right direction, that would be amazing, thank you!   -Ajm
  8. I like to look at it this way...   Is time costing someone else money? 1. Plan (Find the best method) 2. Implement. 3. Test 4.Continue.   Time Costing No One Money 1. Implement. 2. Test. 3. Continue. 5. Finish. 6. Optimize
  9. I'm publishing an update for Awesome INI Loader library. The library now has a new license, WTFPL. So now you may use the library for anything you wish. Why I changed it to this is because I believe code shared to the world, should be able to be modified and used by anyone with or without permission. I know some may differ, but I write code because it's fun, and I want to help the smaller guys out. And for anyone who isn't familiar with this library: This library will load, parse, error check, INI files, while giving the programmer full customization easily, leave small memory footprint, easy to port to any platform, and easy to add to any C++ project. The library has extremely small requirements, and will run on most C++ compilers. Great for small and big projects and gets weekly or monthly updates. The library has a few new functions! Telling from the image, error checking and getting the data you want is 2x much simpler and faster now that the library supports these new functions...[code=:0] bool getKeyInt(int &p, const char* group, const char* key); bool getKeyBool(bool &p, const char* group, const char* key); bool getKeyString(char* dstBuffer, const char* group, const char* key); bool getKeyFloat(float &p, const char* group, const char* key); The code is pretty much self explanatory, but I'll give a small run down... The first arguments are the variables or buffers you wish to pass to store the data. Arguments 2 and 3 are the group and key you wish to retrieve. If everything goes well, the functions will return true, and you dont have to check the error function. Otherwise if it does you may need see whats going on. I've also added a little documentation to the error codes in the source code in "awesome_ini.h".
  10. Hello everyone! I would like to introduce my INI library parser. I wrote from scratch and would like to thank the community for their help, writing this library. So whats so good about this library? Lightweight small memory footprint. Easy to modify BSD License Pure C++ mixed with C. (Easy to port) Multiplatform Easy to use error handling system. One pointer does all. Easy to setup with any project. Easy to customize to your project needs. (Want to use "#" for comments? Change separator? Edit one line of code!) Im really looking for some testers and input to make this project better for everyone for any application big and small! Example code:#include "awesome_ini.h"int _tmain(int argc, _TCHAR* argv[]){ awesome_ini* myIni = new awesome_ini("test.ini"); AWESOME_ERROR_CODES r = myIni->getError(); size_t l = myIni->getErrorLine(); if (r == AWESOME_ERROR_NONE) { printf("Loaded ini!\n"); } else { printf("Failed! %i %i\n", r, l); } char value[AWI_MAX_VALUE_NAME_LENGTH]; AWESOME_INI_KEY_TYPE t = myIni->getKey(value, "test", "hello"); printf("Variable Type: %i - Variable Value: %s\n", t, value); getchar(); return 0;} If anyone has any questions or would like to help port this library to other languages let me know! Thank you! ajm113
  11. Funny enough you said that, I do actually already do something like that.   My process...   1. Get idea.   2. Create console application in MVS.   3. Write base classes that do logic in my "main". (Keeps code clean, and easy to look at, plus I don't cause global pollution.)   4. Test in main. //..Includes, etc... int main(...) { //For debugging.. bool printToScreen = true; myClass *myPtr = new myClass("Do something cool!", printToScreen); myPtr->explode(); return 0; } 5. Import library / code to larger project.   6. Drink more coffee.
  12. Crank up the warning level of your compiler until it complains about that line. Returning a pointer to something in the stack is almost universally an error, and your compiler should be able to tell you about it. If you are going to do without std::string, I suggest you reimplement it, as something like this: struct String { char *data; unsigned size; unsigned reserved; }; Then write functions to perform all the operations you need on them.     Ah, thats a very good post. If it means a better programmer at the end of the day, then all warnings are errors.   `doLogic' should also take an argument that is the length of `dstBuffer', so it can make sure to not write past the end of the buffer. Notice how `sprint_s' already does that.     Yes, that would be better to use as well for my error handling system if something went wrong so the user's application doesnt crash because of a small memory error.   char subbuff is stack allocated memory, you NEVER return pointers to stack memory, this is because exactly what you are seeing is happening, instead you pass in a buffer that the function should write to(and you should pass in the size of that buffer). The reason why you don't see this with objects is because when you return an object, you are copying the value from the function, so if i do:   struct Foo{ int x; }; Foo Func(void){ Foo p; p.x = 10; return p; } int main(int argc, char **argv){ Foo f = Func(); printf("%d\n", f.x); return 0; } what's happening is that when p is returned from func, the values of p are copied into the values of f, so your copying the values off the stack into another part of the stack that is still valid in the program context(note: this is a very simiplied explanation). however if we do: struct Foo{ int x; }; Foo *Func(void){ Foo p[2]; p[0].x = 10; p[1].x = 12; return p; } int main(int argc, char **argv){ Foo *f = Func(); printf("%d\n", f[0].x); return 0; } this is undefined behavior, and is very likely to crash the program, this is because you are returning a pointer into stack allocated memory that became invalid the moment you returned from Func. in many cases using the data immediately after would technically still work, but it is undefined and very bad to rely on such behavior. one of the correct solutions is to do like so: struct Foo{ int x; }; bool Func(Foo *p, int psize){ if(psize<2) return false; //failed p[0].x = 10; p[1].x = 12; return true; //succeded! } int main(int argc, char **argv){ Foo f[2]; Func(f, 2); // we can pass stack allocated memory into functions, we just should never return such memory! printf("%d\n", f[0].x); return 0; } edit: always try to provide the minimalist working example to demonstrate your problem, you'll get more concise answers that way, then us trying to understand what the hell your doing.     Very well explained, makes sense now. I appreciate your help and everyone elses! And next time I'll be more specific so it's not a guest that code game.
  13. Ah, that would make sense. So I need to make the memory heap then so I can use the variable globally. I didn't think I would need a working example since I thought putting comments of the output would be enough. I really need to get back to the basics again, but at lower level.   @Mark   DoLogic is anything that returns char*. I.E   Example of a substr function I made: char* awesome_ini::aw_subStr(const char* line, size_t start, size_t length) { char subbuff[AWI_MAX_KEY_NAME_LENGTH]; memset(subbuff, 0, AWI_MAX_KEY_NAME_LENGTH); size_t p = 0; for (size_t i = start; i < length+1; i++) { subbuff[p] = line[i]; p++; } return (char*)subbuff; } That also causes the pointer in the example code to go away after a few lines of code. And do math is simply a function that does anything really...   I.E void doMath(void) { //Do some long calculation int x = 5 - 2; printf("%i\n", x); }
  14. Hello, I'm writing a library using low level C++ methods so my library can easily be built in C. So I'm staying away from C++ standard templates. So vectors and strings are a bit limit. (Plus I think it's fun to have a bit of a challenge. ;) ). I've mostly been using strings in C++ for ease of use, and I decided to stick with char pointers, but I appear to run into odd problems, of which I cant explain.. I'll give a example. //Issue One char buffer[MAX_LENGTH]; sprintf_s(buffer, MAX_LENGTH, "Hello World!") const char* bufferP = doLogic(buffer); //bufferP = "Goodbye World!" after doLogic //Some random function in my class that has nothing to do with bufferP at all. doMoreMath(); //Wut? Now bufferP equals random garbage data? //bufferP = "/////////tx///" I know this problem can be fixed doing this: const char* bufferP = doLogin(); char buffer_a[MAX_NAME_LENGTH]; memset(buffer_a, 0, MAX_NAME_LENGTH); strncpy(buffer_a, bufferP, strlen(bufferP)); But why does this happen? This issue never seems to happen on any other pointers I've created, like objects. Is it necessary I do everything in char arrays? So I don't lose data randomly?   Thank you, Andrew.
  15. *clears throat*   So if we do the math... (Avg program worth per hour 15.00-50.00) So lets use the min a programmer makes to do the math... 8-15hrs (2 days of about 8 hours a day) = Est. 150-250 dollars just to write something your going to use no more then a week.   If you ask me, you may as well buy one of those game recorders those Chinese manufacturing companies are barfing out. and use your time to make a good game. Basically, "if you need to break rules to get to your goal, then maybe your not doing it right."   Cant afford one a game recorder? Then maybe your should be in a job that utilizes your skills with higher pay.
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!