Time efficient programming


SP4CEBAR 2022-06-22 14:57 (Edited)

I just wanted to ask if you guys have any methods you use yourself to write your code faster

Sometimes when I write a program I'm not quite sure how to implement a certain feature I'm thinking of, and then it may take a while until I know a good way to do it, or I may give up and work on other things, for example the world files of my game engine, I did think out the way that it should work, but not a practical way to implement and test it

Right now I'm making a tree-like RAM DATA structure for a GUI designer tool

was8bit 2022-06-23 13:16

Sometimes coming up with a clever approach to a problem is rather fun :)

nousername010 2022-06-23 13:25

Somewhere in the forums, there's a long thread of tips like that a year ago. Generally basic tips, but it may help: https://lowresnx.inutilis.com/topic.php?id=1969.

The thread also contains nathanielbabiak's Notepad++ UDL, which can really help improve workflow if you're on PC and have Notepad++ installed.

Finally, for me, I try to comprehend complex tasks by breaking them down into smaller projects, each focusing on a different aspect of the task. That way, if I'm currently working on a large project, I don't have to alter the program too much, and I can also learn the what and what nots on implementing the said task. Planning ahead and having a simple roadmap/to-do list can also help organize the project for a smoother workflow.

Hope I could help, and great projects btw!

SP4CEBAR 2022-06-23 15:26 (Edited)

Thank you!!

Fun fact, I didn't like how laggy visual studio 2019 was, and I didn't know visual studio code is a different program, so my PC dev setup consists of notepad++ together with CMD, file explorer and AutoHotKey, I use it to develop react native mobile apps (I haven't released any yet)

nathanielbabiak 2022-06-23 22:40 (Edited)

I've tried a few ideas for a LowRes NX toolchain, but honestly I find it all too overwhelming, not worth what I'd hope to gain. I just use the console on Windows now, with notepad++ on one screen and the console on another. To test code, it's ctrl+s in notepad++, then ctrl+r in the console to reload.

I'm really bad about abandoning projects too. Basically I develop a cool idea to the point it gets hard/complex/annoying, and if I don't give up, it gets uploaded. Otherwise it just gets stuck in a folder, squirreled away!

I updated that UDL too - latest version is here

SP4CEBAR 2022-06-24 12:36

thank you!

how did you manage to run NX with a console, is it with a CMD script that automatically opens the NX file in LowResNX?
"toolchain", do you mean like, an AutoHotKey script for code completion and such?

I still haven't installed the UDLs for AutoHotKey and ReactNative, so I may as well install all three of them

nousername010 2022-06-24 13:02

Thanks, didn't know it was updated :)

On a side note, it was surprisingly simple to make it run from Notepad++ I altered it such that on the program to run (F5), i simply did:

"C:\path\to\LowRes NX.exe" "$(FILE_NAME)"

and assigned it to a shortcut. Works fine for me.

nathanielbabiak 2022-06-24 14:21

SP4CEBAR, when I say console I just mean the LowRes NX fantasy console, not a terminal console. Sorry, my bad.

Also, when I say toolchain, you're correct (I just mean the sequence of programs and steps I take to write and test code, and mine is completely minimal).

nousername010, I keep my code in subfolders, it causes LowRes NX to fail to find the path. I'd need to figure out how to revise that command to address the folder structure I use, or change folder structures. Regardless, I also really dislike the loading animation in LowRes NX, it kills 2 seconds off every test. I use CTRL+R to bring me right into my code instantly.

SP4CEBAR 2022-06-24 16:15

I have a shortcut to my iCloud lowres NX programs in my PC LowRes NX folder

Log in to reply.