amontalenti / elements-of-python-style

Goes beyond PEP8 to discuss what makes Python code feel great. A Strunk & White for Python.
3.45k stars 258 forks source link

Explained declarative vs. imperative a bit #21

Closed TheNeuralBit closed 8 years ago

TheNeuralBit commented 8 years ago

When I read through this I didn't know what declarative vs. imperative programming meant. I probably should've been able to figure it out without googling... but just in case anyone else is unaware of the terminology I thought a concise explanation would be nice.

amontalenti commented 8 years ago

@TheNeuralBit thank you for this suggestion -- I agreed and had even opened #10 to remind myself to change this section. I have made some changes in #23, incorporating your feedback. I found the Python Functional Programming HOWTO to be a better reference than the one you provided, mainly because your reference uses Javascript as an example, and this is a Python style guide, after all, so we should keep it within the language whenever possible.

Let me know what you think.

TheNeuralBit commented 8 years ago

Ah I didnt notice you were already planning on addressing this in #10 Your changes in #23 look good to me, Ill close this and provide any other feedback there