Hey web developers, this may seem like a dumb question, but when I was a young warthog you would link to a directory (just a simple "a href"), and if that directory had an index.html page it would assume that's what you wanted. Now I'm just getting one of those "Index of" pages (with that index.html page visible!) is it because it's running locally instead of a proper web server? Has this just overall changed and I didn't know? #programming#html#development#webdevelopment#webdevelopers#web
@RomanOnARiver Yeah, that's totally up to the webserver. There is no concept in HTTP (afaik) of "serving a directory". HTTP is text-in, text-out. If you "browse" your filesystem locally with your browser, then it will likely list the directory. If you use a webserver it depends on its configuration. Yes, serving index.html when accessing a /my/directory/ "path" might be a default, but doesn't have to be.
Is it better to have multiple python lists or one giant list with multiple lists embedded? Taking from perspective of speed and ram/CPU usage. #python#programming#code#coding
@meejah@diazona yeah you both made a good point. Thanks for responding. I guess I also don't want to have someone reading that code and going "wow they did it THAT way? terrible."