Aquí no hay mucho que decir, estamos hablando de Python y por lo tanto aplican las reglas de estilo de Código de Python, debes escribir siguiendo la PEP8. Django también tiene sus propias convenciones para escribir código, estas las puedes encontrar aquí , coteja con las de Python, verás que son complementarias.
Si hemos usado Django seguro nos hemos enamorado de su forma de hacer formularios, sobre todo los que están relacionados con un modelo, puesto que son simplísimos. Hay que reconocer lo simple de Django, y gracias a esta simplicidad que no busca satisfacer completamente todas las necesidades podemos encontrarnos con situaciones que pues, no se apegan a lo que queremos hacer.
Programar es divertido, sobre todo si tienes a tus manos el lenguaje de programación y otras herramientas de tu elección, sin embargo, a veces cometemos errores que bien fácil podemos evitar si seguimos estas buenas prácticas.
Microsoft, a company that have their very own tools and programming languages is now making it easier for developers to use their favorite language. This time Python have better support in the Visual Studio Code, more specifically in the IntelliSense autocomplete System.
Visual Studio Code is the source code editor that Microsoft released as Open Source and is available in Linux, Windows and MacOS. and thanks to the Python Language Server now have better support for Python. I mean, Python support has been there for a while, but is greatly improved by the PLS.
This is good, as a developer is a PITA to follow all the dependencies your app have. There are several tools to keep them up to date (updating your requirements.txt file) for future builds/updates of your app. But sometimes we just don’t follow the security flaws.
GitHub’s Security Alerts now also work for Python projects, notifying developers about vulnerabilities in software packages that their projects depend on.
Many projects are now migrating from github to #GitLab, this is not because GitHub is a bad service, it’s just because its being acquired by Microsoft.
Even when the official statement says that GitHub will operate independent and with the same policies used right now, many (me included) don’t trust Microsoft. then.. the need to move away from GitHub.
GNOME already made the transition and GIMP is now in GitLab. Are you moving your projects?. Do you think GitHub will finish like Skype did?.
Quite probably you have a repo in GitHub, and probably the company you work for does too. Aside from the fact that they have to stick with the terms and policies that already govern GitHub, what would you do ?.
For many Linux/OpenSource users this is a dilemma, Microsoft is the “enemy” because for so many years Microsoft tried to kill Linux and now is using it in their cloud offering just because no-one beats Linux in the server (or VPS or whatever the fuck buzz-name you choose), and it seems they like to embrace-extend-extinguish Linux.
The second is… was.. do not repeat yourself
1,773 total views, 3 views today
Useful for quick edits, maybe not a full featured IDE (I don’t know why it is called Web IDE instead of Web CodeEditor or something…) because it lacks of several features of the complete IDE, for instance you cannot do debugging in it, just an editor but still useful.
I like the idea that this “web IDE” is Open Source, is available for everyone and it will be integrated in many other parts of gitlab.
1,200 total views, no views today