Re: code to refer to a dictionary with and without nested dictionaries

2020-12-18 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries makes sense. URL: https://forum.audiogames.net/post/599833/#p599833 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-18 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries Yes, but your approach is hammer on the keyboard until it works and just generally flail around, as far as I can tell.  Then you get to the end and it's unmaintainable and you have to rebuild it.  Then you get

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-17 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries I like programming, and the skills I learn from it, but I like socializing more. But that's not an option. So I take to coding because it engages me in a way that challenges myself. But again, it is not beyond the hobby

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-17 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries I like programming, and the skills I learn from it, but I like socializing more. But that's not an option. So I take to coding because it engages me in a way that challenges myself. But again, it is not beyond the hobby

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-17 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries You will find that you can intentionally cultivate disciplined thought.  Do things like write design documents for example.  List off the modules you think the thing should have.  If you want to write some sort of

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-17 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries My brain doesn't work like that at the moment. It is hard to wrap my head around concepts like class vs dict, and it's my fault for not reading enough on it lol. Most of my projects are top to bottom, again that's how

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-17 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries My brain doesn't work like that at the moment. It is hard to wrap my head around concepts like class vs dict, and it's my fault for not reading enough on it lol. Most of my projects are top to bottom, again that's how

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-17 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries You're not doing anything particularly wrong.  You don't need to be sorry, it's not like I wasn't there at some point.  But some point was over 10 years ago now for me, so I'm able to speak from a *lot* of experience. 

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries Ok. Honestly I don't think I can learn the right way. I can tell you for a fact I only do this as a slight hobby. Yes I put in time into it, and some research. But definitely not enough to take this seriously. And, I

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries I don't need to deal with it, because I understand how to model my data.  If you've got a case where you've got a thing at multiple levels of the dictionary and you don't know what level it is at, you don't have a

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries you've never dealt with an unknown dictionary key and a multi-layer dictionary before? Sometimes the unknown value I need is in the top layer, sometimes it isn't. I've needed to do this twice now, in just a few months.

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries You don't, end of story.  Any solution to this is going to be hacky, and more work than just refactoring your code.I think there's the question you're asking here, to which the answer is "you can't", and the more

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries no, I am trying to be able to access both normal and a nested scope at the same time.my_server["admins"] my_server["members"]["welcome message"]I would like to be able to refer to both "admins" and "member"["welcome

Re: code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: code to refer to a dictionary with and without nested dictionaries With the caveat that I'm not clear on what you're trying to do, you almost never want to do what you're trying to do.  Taking your naturally nested data and flattening it for convenience is called denormalization, and

code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
code to refer to a dictionary with and without nested dictionaries Hello. Is there a way to refer to a key that contains a nested dictionary? Say we have a dictionary of discord servers. In one of our servers, we have some values, like admins, welcome messages, so on. But then there are

code to refer to a dictionary with and without nested dictionaries

2020-12-16 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
code to refer to a dictionary with and without nested dictionaries Hello. Is there a way to refer to a key that contains a nested dictionary? Say we have a dictionary of discord servers. In one of our servers, we have some values, like admins, welcome messages, so on. But then there are