• What are you working on? November 2011 Edition
    3,673 replies, posted
[QUOTE=Yogurt;33286295]It's not JSON :v:[/QUOTE] I know, but if you used JSON you would've got a parser and standardized language for free, complete with not having to document what each variable's meant for.
[QUOTE=Jookia;33286328]I know, but if you used JSON you would've got a parser and standardized language for free, complete with not having to document what each variable's meant for.[/QUOTE] I like rolling my own things. I already have enough external libraries.
[QUOTE=Yogurt;33286340]I like rolling my own things.[/QUOTE] Didn't you recently roll your own networking stuff? How'd that go? [QUOTE=Yogurt;33286340]I already have enough external libraries.[/QUOTE] Are external libraries a bad thing now? Let's see what my- [quote][jookia@jookia-arch build]$ ldd ./trainsc linux-vdso.so.1 => (0x00007fff561af000) libboost_program_options.so.1.48.0 => /usr/lib/libboost_program_options.so.1.48.0 (0x00007f4e2dce0000) libboost_system.so.1.48.0 => /usr/lib/libboost_system.so.1.48.0 (0x00007f4e2dadd000) libboost_filesystem.so.1.48.0 => /usr/lib/libboost_filesystem.so.1.48.0 (0x00007f4e2d8be000) libboost_locale.so.1.48.0 => /usr/lib/libboost_locale.so.1.48.0 (0x00007f4e2d5e1000) libsfml-graphics.so.2 => /usr/lib/libsfml-graphics.so.2 (0x00007f4e2d34f000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f4e2d044000) libm.so.6 => /lib/libm.so.6 (0x00007f4e2cdc2000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f4e2cbac000) libc.so.6 => /lib/libc.so.6 (0x00007f4e2c825000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f4e2c608000) libsfml-window.so.2 => /usr/lib/libsfml-window.so.2 (0x00007f4e2c3f2000) librt.so.1 => /lib/librt.so.1 (0x00007f4e2c1ea000) libboost_thread.so.1.48.0 => /usr/lib/libboost_thread.so.1.48.0 (0x00007f4e2bfcf000) libicuuc.so.48 => /usr/lib/libicuuc.so.48 (0x00007f4e2bc66000) libicui18n.so.48 => /usr/lib/libicui18n.so.48 (0x00007f4e2b89f000) libicudata.so.48 => /usr/lib/libicudata.so.48 (0x00007f4e2a530000) libsfml-system.so.2 => /usr/lib/libsfml-system.so.2 (0x00007f4e2a327000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f4e2a08a000) libGLEW.so.1.7 => /usr/lib/libGLEW.so.1.7 (0x00007f4e29e18000) libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f4e29bcc000) libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f4e2996d000) /lib/ld-linux-x86-64.so.2 (0x00007f4e2df46000) libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f4e29631000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f4e29429000) libdl.so.2 => /lib/libdl.so.2 (0x00007f4e29225000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f4e2900c000) libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007f4e28dfc000) libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00007f4e28be3000) libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f4e289d4000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007f4e28767000) libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f4e28555000) libglapi.so.0 => /usr/lib/libglapi.so.0 (0x00007f4e28331000) libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f4e2812f000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f4e27f29000) libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007f4e27d24000) libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007f4e27b23000) libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x00007f4e2790f000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f4e276f4000) libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007f4e274e9000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f4e272df000) libXt.so.6 => /usr/lib/libXt.so.6 (0x00007f4e2707a000) libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f4e26e73000) libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f4e26c58000) libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f4e26a56000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f4e26851000) libuuid.so.1 => /lib/libuuid.so.1 (0x00007f4e2664c000)[/quote] Surely duplicating the functionality of them by myself will take up less megabytes!
[QUOTE=Jookia;33286423] Surely duplicating the functionality of them by myself will take up less megabytes![/QUOTE] Well, if you want to implement your own X server, go ahead. It's quite a different thing to drop, say, libsfml-graphics and libsfml-system than to drop libX11 or libstdc++ from that list.
[QUOTE=Jookia;33286423]Didn't you recently roll your own networking stuff? How'd that go? Are external libraries a bad thing now? Let's see what my- Surely duplicating the functionality of them by myself will take up less megabytes![/QUOTE] When my own things work perfectly, I don't need to use anything else.
[QUOTE=Yogurt;33286548]When my own things work perfectly, I don't need to use anything else.[/QUOTE] I'm just saying that you don't need to make another JSON-like language and alienate modders when you can just use JSON.
Map saving / loading: [img]http://puu.sh/8Iat[/img] I should probably do something other than tiles, but I find them fun to work with.
Clearly you're both wrong and he should implement XML instead.
Coding your own things is fun and you learn a lot about them. I coded my own engine. Om the surface it was a total waste of time because I've done nothing with it. But the things I learned while doing it were things that you'd learn in no other way - and have made me a much, MUCH better coder.
[QUOTE=Jookia;33286618]I'm just saying that you don't need to make another JSON-like language and alienate modders when you can just use JSON.[/QUOTE] It's temping to go into a thesis-long rant about your misguided attempt to help, poor arguing technique, horrible conversation manners, and generally flawed rhetoric... but I'll stay on topic. In short: lay off, would you? If he wants to roll his own language, he will! Yes, there are obvious issues, and obvious solutions, but your short, sharp remarks aren't helping him at all. In fact, he is probably already aware of all the facts, but chooses to implement his own format for a learning experience. Yogurt, what Jookia is attempting to communicate: - Your format is slightly contorted (hard to read, not self-documenting, possible syntax conflicts). - It is very similar to JSON.. why not use that? - JSON is an industry standard, whereas your funky language ain't. - Using your format will alienate modders by requiring them to learn the format. Also, because it looks so similar to JSON.. the may try to use it. - JSON would solve the self-documenting issue ("reagents": { {"itemid": 22, ... }, ... }). I'm sure you were able to interpret this from his crazyness; this is here so Jookia can see how he could've said everything in a logical and friendly manner. [editline]16th November 2011[/editline] Poop... now you've gotten my panties in a twist.
I thought about a way to implement a console in lua: When you enter a command, like "create_box 10 10" it will write this into a lua file called tempconsole.lua: "create_box(10,10)" and require it then, thus it's being executed. Is this a good idea?
[QUOTE=garry;33286932]Coding your own things is fun and you learn a lot about them. I coded my own engine. Om the surface it was a total waste of time because I've done nothing with it. But the things I learned while doing it were things that you'd learn in no other way - and have made me a much, MUCH better coder.[/QUOTE] [QUOTE=Deco Da Man;33286993]In short: lay off, would you? If he wants to roll his own language, he will! Yes, there are obvious issues, and obvious solutions, but your short, sharp remarks aren't helping him at all. In fact, he is probably already aware of all the facts, but chooses to implement his own format for a learning experience.[/QUOTE] As a learning experience doing things like this is great, I agree, roll your own, but they're actually going to use it in production rather than as a toy, when there's mature and tested code out there that could do the job better.
[QUOTE=DrLuke2;33287049]I thought about a way to implement a console in lua: When you enter a command, like "create_box 10 10" it will write this into a lua file called tempconsole.lua: "create_box(10,10)" and require it then, thus it's being executed. Is this a good idea?[/QUOTE] Seems like it would be better to just write create_box( 10, 10 ) and then when you press enter it runs the string? Why would you run it through a file every time?
[QUOTE=Jookia;33287064]As a learning experience doing things like this is great, I agree, roll your own, but they're actually going to use it in production rather than as a toy, when there's mature and tested code out there that could do the job better.[/QUOTE] *applies palm to face* I'm not even going to bother; you missed the point of my post entirely.
[QUOTE=Deco Da Man;33287101]*applies palm to face* I'm not even going to bother; you missed the point of my post entirely.[/QUOTE] Well could you tell me what the point of your post was if I missed it?
[QUOTE=Jookia;33287137]Well could you tell me what the point of your post was if I missed it?[/QUOTE] "Jookia's Speech level increased!" [QUOTE=Deco Da Man;33286993]...your short, sharp remarks aren't helping him at all.[/QUOTE]
[QUOTE=Deco Da Man;33287174]"Jookia's Speech level increased!"[/QUOTE] They're not meaning to help him. It's not up to me how he works his project, and he certainly doesn't need help with it. But I disagree with some of the things he says or does, and I respond with my opinions and suggestions, and consider what he says. For instance, he wrote "enough external libraries", which I noted was ridiculous considering how much we already use, and that reimplementing it all won't do anything that static linking won't.
[QUOTE=Jookia;33287220]They're not meaning to help him. It's not up to me how he works his project, and he certainly doesn't need help with it. But I disagree with some of the things he says or does, and I respond with my opinions and suggestions, and consider what he says. For instance, he wrote "enough external libraries", which I noted was ridiculous considering how much we already use, and that reimplementing it all won't do anything that static linking won't.[/QUOTE] C# can't do static linking, I believe.
[QUOTE=Yogurt;33287232]C# can't do static linking, I believe.[/QUOTE] Well fuck.
[QUOTE=Yogurt;33287232]C# can't do static linking, I believe.[/QUOTE] It can, but don't do that. It's bad. [url]http://stackoverflow.com/questions/312406/static-linking-advantages[/url]
[QUOTE=garry;33286932]Coding your own things is fun and you learn a lot about them. I coded my own engine. Om the surface it was a total waste of time because I've done nothing with it. But the things I learned while doing it were things that you'd learn in no other way - and have made me a much, MUCH better coder.[/QUOTE] I think there's a balance to be had between learning underlying concepts and actually getting something done. If you are trying to make something you think you might sell, or distribute, then I think you should be mostly focusing on the latter. There are always, of course, new things to experience in every project, no matter how experienced you are, but perhaps it's more appropriate to just use reading material to get your bearings in those situations, rather than derail your project by writing your own physics engine, for instance. Also, one shouldn't discount the experience gained from working with a library; knowing the ins an outs of Box2d is probably more useful (with respect to time investment) to a game programmer than knowing the ins and outs of a Physics textbook. Not sure why I keep using physics as a an example...
ILMerge.
[QUOTE=Yogurt;33287232]C# can't do static linking, I believe.[/QUOTE] If you dont want the dll's then just add the code files to your project, it will act the same as if you were using dll's but will all be in one exe
I've resorted to terrible hacks to get my application to allow 'fake' LC_MESSAGE variables. [quote][jookia@jookia-arch build]$ export LC_MESSAGES=ugh && ./trainsc --help -bash: warning: setlocale: LC_MESSAGES: cannot change locale (ugh) Usage: Have you even used command line flags before? -h [ --help ] What do you think? -c [ --config ] arg (=/home/jookia/.config/trainsc/config.json) Sets the configuration file to use. -W [ --width ] arg (=800) Sets the window width. -H [ --height ] arg (=600) Sets the window height. -F [ --fullscreen ] arg (=0) Makes the window fullscreen.[/quote] [cpp] try { std::locale testLoc(""); } catch(std::runtime_error& exception) { setenv("LC_MESSAGES", getenv("LANG"), 1); } std::cout.imbue(realLoc); fs::path::imbue(realLoc); // UTF-8 Paths![/cpp]
[QUOTE=Shrapnel :3;33285072]Programming for iOS really makes you love languages like C# and C++. Everything is just a fucking struggle with objective C. It has some nice things about it, but they're ruined by the fact that it is upsetting to look at and loads of the keywords have been changed for no real reason. This shit ain't logical.[/QUOTE] Which do you prefer, objective C or Java?
[QUOTE=garry;33287095]Seems like it would be better to just write create_box( 10, 10 ) and then when you press enter it runs the string? Why would you run it through a file every time?[/QUOTE] Wait, that's possible? I didn't know... How would I do that? loadstring("create_box(10,10)") ?
[QUOTE=Fatal-Error;33287453]Which do you prefer, objective C or Java?[/QUOTE] I would prefer java [i]much[/i] more than obj-c. Java isn't even a bad language, it's just a bit old
[QUOTE=ief014;33287506]I would prefer java [i]much[/i] more than obj-c. Java isn't even a bad language, it's just a bit old[/QUOTE]# I'm just getting to grips with it. It really isn't that bad.
[QUOTE=Shrapnel :3;33285072]Programming for iOS really makes you love languages like C# and C++. Everything is just a fucking struggle with objective C. It has some nice things about it, but they're ruined by the fact that it is upsetting to look at and loads of the keywords have been changed for no real reason. This shit ain't logical.[/QUOTE] I love Objective-C. I love C# and C++ as well. I love the way it looks, works, and reads. Keywords are changed, but you can use raw C or C++ code mixed in with it. I feel like the only damn person on FP who actually likes Obj-C.
[QUOTE=ief014;33287506]I would prefer java [i]much[/i] more than obj-c. Java isn't even a bad language, it's just a bit old[/QUOTE] I love Java and I'm using it for hobby projects and for work, but from time to time I really wish it would steal a few of C#'s features. Java still has a lot of advantages over C# though. Since it's older there are many, many more tools available for it and they are much more mature. I don't think there is anything for C# that comes even close to Maven and from my brief experiences with Visual Studio it doesn't come close to Eclipse in terms of features either. (it's much faster and more stable though :v:)
Sorry, you need to Log In to post a reply to this thread.