SHARE BEST PRACTICES

SHARE BEST PRACTICES

version control and programming socks

courtesy reach-around when plowing a cute trap

Push node modules to repo

cumming inside

Tabs over spaces.

Saving often and doing backups

Write tests for everything that can theoretically break. If you don't write them before the implementation or directly afterwards, you'll never write the test.

Having a glass of water and keeping hydrated.

If you need to execute some functions which require lots of RAM, then use this trick: First cause an infinite recursion loop for a stackoverflow error, catch the error and then execute your function in the catch block. Than you can be sure that you always have RAM available.

private void fillRAM() { fillRAM(); }

public void expensiveFunction() {
try {
fillRAM();
}
catch (StackOverflowError e){
expensiveFunctionImpl();
}
}

thx dude, was dealing with that right now

This seems strange and a hack. What is the mechanism for this to actually work

Genius

Securely erase all your porn.

can expensiveFunctionImpl() dump the entire contents of memory to disk then upload to server?

I have a text file in which I note all notable changes I make to my system (eg editing advanced options or the registry on Wangblows or Linux config files).

I respect anyone that comments thoroughly what their code is doing and what they intended for it to do. I don't care if it doubles your file size. I wanna see green.

yes it can. Actually, that's what Chrome does to use so much RAM

fantastic, assuming this only works on windows?

No, you can use this on every OS. Have fun!

thx fammo, i actually use a similar technique for debugging PIC micro firmware
you just declare an array, with 1 byte length, you can then access any part of the memory, byte 2 of memory is array[1] etc, i just write everything to a serial port and I can see everything.. what is overflowing etc. arm is so much better