ID:274527
 
lol I'm not sure if this should be in newbie central or general...
But I was curious if you could bookmark your spot like where you were just coding so when you scroll down you can just hit like alt-L or something to go back there?
There's no way to do this currently, and I don't think there ever will be. If your project is so big that you can't find where you were last, you should probably look into splitting it into more files (I find subdirectories useful as well). With code seperated properly, it becomes pretty easy to find anything quickly.

-Abyssdragon
In response to AbyssDragon
AbyssDragon wrote:
There's no way to do this currently, and I don't think there ever will be. If your project is so big that you can't find where you were last, you should probably look into splitting it into more files (I find subdirectories useful as well). With code seperated properly, it becomes pretty easy to find anything quickly.

-Abyssdragon

MLAAS has 30+ code files. I can't even imagine doing it all in one file!
In response to Skysaw
Exactly. My RPG project has 54 code files at present (if I can trust Explorer).

-AbyssDragon
In response to AbyssDragon
AbyssDragon wrote:
Exactly. My RPG project has 54 code files at present (if I can trust Explorer).

-AbyssDragon

My largest file was the first to be worked on, and really needs to be broken down. Not sure I can rival your 54, but it would be close :-)
In response to Skysaw
Skysaw wrote:
MLAAS has 30+ code files. I can't even imagine doing it all in one file!

Incursion currently has over a dozen, I believe. One is todo.dm, which is just my to-do list. Another is interface.dm, an ancient /image-based system I was working on before I switched to the current toolbar setup. Many of the files are too big and need further splitting--particularly Incursion.dm and player.dm.

For icon files it's even worse; I've probably got 25 or so.

Lummox JR
In response to Skysaw
I have about that many which is why I don't care for the having to click on different code files and search through them even after that. I think it wouldbe easier to place a bunch of bookmarks then beable to goto each one (even if in different code files) through like alt+1, and alt+2, ctrl+1 or something...
In response to Lummox JR
Lummox JR wrote:
Skysaw wrote:
MLAAS has 30+ code files. I can't even imagine doing it all in one file!

Incursion currently has over a dozen, I believe. One is todo.dm, which is just my to-do list. Another is interface.dm, an ancient /image-based system I was working on before I switched to the current toolbar setup. Many of the files are too big and need further splitting--particularly Incursion.dm and player.dm.

For icon files it's even worse; I've probably got 25 or so.

Lummox JR

25 icons isn't bad at all. I think I'm up to about 45.
I think it's a fine idea. I split my code as the others suggested, but it would be handy to have the particular section I'm working on be just 2 keystrokes away instead of having to navigate the file tree. I'm a big fan of keyboard shortcuts for everything anyway. ;)

It's obviously not a high priority, but it couldn't hurt to add it to the List. You should post feature requests in General.
In response to Shadowdarke
Shadowdarke wrote:
I think it's a fine idea. I split my code as the others suggested, but it would be handy to have the particular section I'm working on be just 2 keystrokes away instead of having to navigate the file tree. I'm a big fan of keyboard shortcuts for everything anyway. ;)

It's obviously not a high priority, but it couldn't hurt to add it to the List. You should post feature requests in General.

Actually, it would be VERY nice to have all procs listed as a clickable TOC for your code.
In response to Shadowdarke
maybe one of the administrators could move this to general?
In response to Skysaw
Skysaw wrote:
Actually, it would be VERY nice to have all procs listed as a clickable TOC for your code.


Doesn't the "Show all nodes" option allow this?
In response to Skysaw
Hmmm... A quick estimate/count of my icons puts them at just over 300 for DBTC...lol

And most of those have multiple icon states...

I suppose a lot of the bulk comes from early on when I was just making a new icon for everything instead of condensing them into single dmi's with multiple states (my world map coastline is all separate dmi's...about 40 of them altogether...lol)

But a lot of the bulk also comes from my overlay clothing selections... Each separate piece is its own dmi with multiple states for the directional views...

But as for my code files, I've got 12 total so far...
In response to AbyssDragon
Why so very many? I generally get everything into 6 or 7 code files at the most... tens of them seems strange.
In response to Lord of Water
Lord of Water wrote:
Why so very many? I generally get everything into 6 or 7 code files at the most... tens of them seems strange.

MLAAS probably has 10-20k lines of code. After a point, having many files stops seeming so strange.
In response to Lord of Water
Lord of Water wrote:
Why so very many? I generally get everything into 6 or 7 code files at the most... tens of them seems strange.


1) It makes it easier to find things, if you have the code files properly named ("vars","verbs", etc..)

2) It just plain makes your code look better and less pressed together.

3) I can't think of a three right now, if I do. I'll be sure to tell you.
In response to Lord of Water
Its help in a lot of ways:
A)As Skysaw pointed out, when you have more than ten thousand lines of code, it gets to the point where finding things takes a significant amount of time.

2)It helps with modularity. All code that does X is in this file, all code that does Y is in another.
Also, with most of my files, I could remove them and my project would still compile. This helps in debugging, because I can scale anything out of my game.

-AbyssDragon
But I was curious if you could bookmark your spot like where you were just coding so when you scroll down you can just hit like alt-L or something to go back there?

Don't know if this'll help you or not, but often when I'm working on something and need a bookmark, I'll just put a little comment I can search for. Here are some examples:

//dbg
...marks a line that is only there to provide debugging information, and should be removed or commented out before the program is finished.

//fixme: make sure Slugworth can't fall into the pit
..."fixme" is what I use to make notes of things I have to add or change before I can consider the program to be finished.

//guymark
...I am Guy's bookmark.

Then I can just use ctrl-H to search all the included files at once.