Been coding for a long time now.. not much surprises me anymore.. But when I wrote this logic as part of a function last night to send multiple HE NFTs in a single transaction it donned on me that I've either lost my mind or finally started producing code that almost looks professional.
The amount of nesting and whatnot on that is pretty damn neat. I'm sure there is ways to optimize that shit, and that someone classically trained in software engineering likely is appalled at how the thing is laid out, but hell, for a guy that literally has no education and learned to code from endless googling and brute forcing the logic / syntax until it goes.. Pretty neat.
If you see a way to optimize this horse shit, please post it below.. If not, that is cool too. Figured I'd share the snippet to gloat about how fucking insane some of my creations can get on the code end of things. Feel free to steal the code if it's of use to you, granted not many folks are actively coding on Hive-Engine NFT stuff.. but if you are, feel free to use the logic.
looks so intense! as a noob coder i wouldn't know the first place to copy and paste that code in my hand lol
heh, It's taken me years to get to the point I can nest logic like that.
Better to write the stuff out to follow the logic / understand it.
It's 3 layers of iteration basically. First take the typeArray, use that to stuff the different symbols and id #'s into nftTypes, then when you're done iterating that, go to nftTypes array and use that to stuff the data into the madeNfts array, which is finally pushed to the actual JSON that Hive-Engine / Hive custom_json uses as transfers. :D
Wow! You are special! Those lines do not happen often lål
lol. Something like that.. It takes a fair amount of abstraction and logic to write shit like that.
Abstraction and logic, what a combination!
View more
idsNshit.push()
lol
Sometimes you gotta push out some shit, bro.
The more frustrated I get in coding the more vulgar my variable names get.. XD
I 100% do the exact same thing.
View more