Subj : Re: New Door/Textmode game To : NuSkooler From : echicken Date : Wed Dec 18 2019 14:04:38 Re: Re: New Door/Textmode game By: NuSkooler to echicken on Wed Dec 18 2019 11:16:20 Nu> Yeah, I've done it for other projects professionally and the like, but there is Nu> just so much code to convert that I'll probably just do it targetted and take Nu> my time. Ends up reading a lot nicer though. When there's a *lot* of code, I usually just wait until I need to go in and fix a bug or something, then revise a bunch of stuff while I'm in there. It may look nicer when you're done, but usually isn't hurting anything by just staying as-is. Nu> I really like the async module. I hate raw promises (e.g. Promises prior to Nu> async await sugar) - they were ugly as hell, so I'd generally just keep using Nu> the older style. With the sugar though, it's quite sweet :) I found Promises annoying when they first came around. There was so much hype about making code "more readable" and I didn't see it as much of an improvement. I never found callbacks to be confusing, except maybe when I first started out. Once I got used to Promises I stopped seeing them as clunky and ugly and learned to like the resolve/reject paradigm and catch(). It took me a while to get there, though. async/await was easy to adjust to, and I think they really bring that structure/readability improvement. --- echicken electronic chicken bbs - bbs.electronicchicken.com * Origin: electronic chicken bbs - bbs.electronicchicken.com (21:1/164) .