Author Topic: General Programming Megathread - New OP  (Read 29059 times)


PPPPPPPPPPPPPPPPPPPPPPPPP
P                       P
P                       P
P              G        P
G             LP        P
PP                      P
PG                      P
P                       P
PG                      P
P                       P
PG                      P
P                       P
PG                      P
P                       P
PG                      P
P                       P
PG                      P
P                       P
PG                     EP
PPPPPPPPPPPPPPPPPPPPPPPPP

FTFY.

I meant GDI+.
WinForms is a wrapper around GDI+.

Well, boohoo, I don't like using languages that fail completely at what they're supposed to be good at!
being simple, not including a bunch of unnecessary easily implementable bullstuff?

okay


does the left moving platform keep moving left, or does it at some point return to its original position?

does the left moving platform keep moving left, or does it at some point return to its original position?
"vwrrrrt...

haha can't catch me i'm way over here! >:D"

again, I can't use XNA because it's a Windows installer and i'd need the admin pass for this computer
edit: also, I prefer vector graphics, so unless XNA has support for that

being simple, not including a bunch of unnecessary easily implementable bullstuff?

okay
does the left moving platform keep moving left, or does it at some point return to its original position?
it stops when it hits something that isn't a gem and goes the other way
basically
P    L   P
P      L P
P       LP
P      L P
P    L   P
P   L    P
P  L     P
P L      P
PL       P
etc.

"vwrrrrt...

haha can't catch me i'm way over here! >:D"

again, I can't use XNA because it's a Windows installer and i'd need the admin pass for this computer
I cant use XNA because im on a mac :C


again, I can't use XNA because it's a Windows installer and i'd need the admin pass for this computer
edit: also, I prefer vector graphics, so unless XNA has support for that
love 2d has a zip download for development if you can't install anything.

as for vector graphics, you could make some parser that converts .svg files into plans for drawing operations, but that's obviously going way far than needed when you could just size it down and use a PNG.

or you could just use the drawing utilities to draw what you want.

being simple, not including a bunch of unnecessary easily implementable bullstuff?

okay
Once again, I prefer using reusable libraries over reinventing the wheel over and over (either in the standard library or with a something like npm). But I guess it's your choice.

PS. Copy-paste is not a valid substitute.



again, I can't use XNA because it's a Windows installer and i'd need the admin pass for this computer
Ask your parents? Considering that it's an official MS thing I doubt they'd not allow you to install it, while allowing you to install Visual Studio. Otherwise there's always PyGame, which doesn't require admin rights for installing, assuming that Python is already installed, and that Setuptools (run this to install, no admin rights needed) can be installed. Then just run "easy_install DLURL" where DLURL is the applicable download from http://www.pygame.org/download.shtml (note that what matters here is your Python version, not your Windows version).

edit: also, I prefer vector graphics, so unless XNA has support for that
I don't think that's supported natively, but you can hook in a custom transformer into the asset building pipeline that renders your images at compile-time.
« Last Edit: November 09, 2012, 05:29:58 PM by DontCare4Free »

Once again, I prefer using reusable libraries over reinventing the wheel over and over (either in the standard library or with a something like npm). But I guess it's your choice.
as i said before, store your "wheel" in a file, and require() it every time you want to use it.

as i said before, store your "wheel" in a file, and require() it every time you want to use it.
What if I need to use the wheel in another car?
PS. Copy-paste is not a valid substitute.

What if I need to use the wheel in another car?
copy the file over to your other project directory

how is this difficult to understand, it's not even that difficult

i have a math library that has a bunch of helpful math functions in it, and i use it for basically every love2d project i make. i just copy over the file to my new project, no problem at all.
« Last Edit: November 09, 2012, 05:33:39 PM by Kingdaro »

copy over the f-

wait what the forget yes this is a valid substitute what are you even talking about
What if it turns out that the wheel had a slight fault and would break under certain conditions? Then you'd probably want to be able to replace the wheel in the cases where it's used in a neat way. Or at least a good way to track which version of the wheel you're using. Especially if you got the wheel from a third party.

Also, it's pretty likely that what will happen is that you'll have several slightly different versions of the same library, which means that when you want to use a feature that you added to project X's version from project Y you're going to have to migrate that stuff over manually (and find it's dependencies). Oh, and you probably won't be able to remember whether you added something else that only project Y needed, which means that you can't just copy-paste it over again.
« Last Edit: November 09, 2012, 05:39:32 PM by DontCare4Free »

you're overcomplicating a minimalist language that wasn't even meant for big projects that would have those sorts of problems.

you're overcomplicating a minimalist language that wasn't even meant for big projects that would have those sorts of problems.
The treshold for those sorts of problems pretty much starts when you start making libraries that you copy-paste. Well, I suppose you could use something like git submodules for reducing this problem somewhat, but I still think that Lua goes way too far in the "minimalist stdlib and language" mantra. I also find it humourous that it's one of the few languages that has a dedicated operator for the length of arrays/lists.

i never get any of the problems you speak of when i program. i don't usually use libraries, but when i do, all i have to do is download them, drop them into my scripts directory, require the library, and use whatever the forget i need. if i need it for another project, i copy the library over. if part of the library is broken, i see if i'm doing something wrong, then i just look for a fix, either that or just redownload it if a new version is available.

but I still think that Lua goes way too far in the "minimalist stdlib and language" mantra.
at first, i wasn't happy that it was missing a lot of what would be nice to have, then i just kept using it, realizing it's all unnecessary and i don't need it, and if it's that important, i'll grab a library/make an implementation.

usually the systems that embed the language add what's missing that allow you to do everything you need, so it's not that much of a problem anyway.

I also find it humourous that it's one of the few languages that has a dedicated operator for the length of arrays/lists.
how is that funny? how is being able to type "#" instead of having to call a function to get the length funny?

and it's not just arrays/lists (they're called tables, mind you), you can use the same thing to find the length of a string.

but wait, before we clog up the thread even more, what the forget are you doing?

are you seriously just sitting here finding as many things about lua as you can to hate/laugh at? i don't understand the purpose of your constant nitpicking - all i see is "lua sucks because it's not python/whatever language you prefer"
« Last Edit: November 09, 2012, 06:01:58 PM by Kingdaro »

i never get any of the problems you speak of when i program. i don't usually use libraries, but when i do, all i have to do is download them, drop them into my scripts directory, require the library, and use whatever the forget i need. if i need it for another project, i copy the library over. if part of the library is broken, i see if i'm doing something wrong, then i just look for a fix, either that or just redownload it if a new version is available.
Well, have fun, I guess.

usually the systems that embed the language add what's missing that allow you to do everything you need, so it's not that much of a problem anyway.
Yay, have to relearn the standard library for everything it's used by!

how is that funny? how is being able to type "#" instead of having to call a function to get the length funny?
It's a syntax addition for something that is usually implemented on the stdlib level in other languages. I wouldn't call that minimalist.

and it's not just arrays/lists (they're called tables, mind you), you can use the same thing to find the length of a string.
By arrays/lists I meant tables that follow the Lua "list" convention (only int keys above 1 in an "unbroken line").

are you seriously just sitting here finding as many things about lua as you can to hate/laugh at? i don't understand the purpose of your constant nitpicking - all i see is "lua sucks because it's not python/whatever language you prefer"
No, Lua sucks because it seems to completely miss support for using libraries. It claims to have "meta-mechanisms" so that libraries can extend the language features. Well, except for that there doesn't seem to be a good way to actually handle said libraries. :)
While, yes, I'm generally biased towards Python and co., this is such a fundamental thing to get right, especially if your standard library is practically nonexistant (although even if it's comprehensive it should still be there).

text db "whats going on in here",0
invoke printf, text
« Last Edit: November 09, 2012, 06:37:40 PM by Trinick »