Posts by Rafael Beckel • 941 points
5 posts
-
1
votes1
answer742
viewsA: Difficulty performing data CRUD with Fullcalendar and Django/Python
Your problem is with Javascript, not Python. You need to return your HTML only once (for example, at endpoint /home or /), from there you manage the business logic in frontend, and to create CRUD…
-
5
votes2
answers204
viewsA: get_called_class or new Static?
The function get_called_class() returns the name class, while static returns the class itself. From PHP 5.5, you can also use static::class to return the class name. I believe it’s more a matter of…
-
9
votes2
answers678
viewsA: Mixing Javascript libraries in a project
Angular is a framework, jQuery is a bilioteca. The two can live in the same project quietly. The problem is if you want to use two frameworks or two libraries that fulfill the same goal. For…
-
39
votes2
answers4104
viewsA: When should I use Inheritance, Abstract Class, Interface, or a Trait?
Traits can be viewed almost as an automation of Ctrl+C and Ctrl+V. This definition may seem coarse, but actually traits can be quite useful if used carefully in specific situations (more about this…
-
9
votes1
answer1179
viewsA: Auto Deploy after Git Push
Assuming you have root access to your server, this is quite easy to do: Basically, you have to create a Hook of the type post-receive that will copy all the contents of your push to a directory that…