ID:62015
 
Keywords: basic, developer, dm, lib
Out of boredom, I decided to flick through the DM Guide, practically a bible to the average humble BYOND programmer, to find a few basic procs missing.


I was thinking of making a lib full of handy procs that can be used in day to day programming, so far, i have strreplace (always handy), isatom, and the ability of making stacks.

I know I'm missing a few, so some suggestions wouldn't go a miss :P
It would have to be more of a demo then a library then.

Libraries are essentially plug-and-play with usually complex procedures going on that an average would scratch their head or rip out their hair otherwise to achieve that effect (see DMIFonts).
GhostAnime wrote:
It would have to be more of a demo then a library then.

Libraries are essentially plug-and-play with usually complex procedures going on that an average would scratch their head or rip out their hair otherwise to achieve that effect (see DMIFonts).

This is a plug-and-play style library too o-o except rather then focusing on one specific area (Like DMIFonts) it provides procs that can be used in a large applicable area (such as the strreplace proc).

I intended to add a wide range of procs, just so they were available to the programmer just by ticking the box, rather then having to code it themselves xP how many times has strreplace been coded in many different ways just because it wasn't readily available? It's crazy XD
Uhh, BYOND already has a great deal of libs related to this but if you really wanted to do write a lib for personal education the you could check out Deadron's libraries, they're very useful.

Good luck!

Ah I see, I thought you meant to show people how to use procs which is useful in daily ptogramming (such as switch())

My bad.

You may want to check out http://www.byond.com/members/Jtgibson/forum for a few ideas there as well :)
GhostAnime wrote:
Ah I see, I thought you meant to show people how to use procs which is useful in daily ptogramming (such as switch())

My bad.

You may want to check out http://www.byond.com/members/Jtgibson/forum for a few ideas there as well :)

Cheers mate, very helpful xP
Haywire wrote:
Uhh, BYOND already has a great deal of libs related to this but if you really wanted to do write a lib for personal education the you could check out Deadron's libraries, they're very useful.

Good luck!

As I said to GhostAnime, this isn't to do with personal education XD This is just to fill in the gaps that DM left with handy procs a programmer can use.

I've coded for a few different games and found I've needed to code strreplace and time procs several times, having them in a lib seems a good idea o-o.
Vetunkollo wrote:
Haywire wrote:
Uhh, BYOND already has a great deal of libs related to this but if you really wanted to do write a lib for personal education the you could check out Deadron's libraries, they're very useful.

Good luck!

As I said to GhostAnime, this isn't to do with personal education XD This is just to fill in the gaps that DM left with handy procs a programmer can use.

I've coded for a few different games and found I've needed to code strreplace and time procs several times, having them in a lib seems a good idea o-o.

One could example would be string reversing and list replacing, not very hard with a for() loop ;)

string replace: This can easily be programmed yourself

isatom: This would be nice.

Stacks: There are libraries to create stacks already (I think Popisfizzy has one).
Jeff8500 wrote:
string replace: This can easily be programmed yourself

isatom: This would be nice.

Stacks: There are libraries to create stacks already (I think Popisfizzy has one).

Well, I'm considering doing Stacks, Queues, Linked Lists and Binary Trees. Although they are used often in complex programming, doubt they are needed for BYOND XDXD