RSS

Posts in 2021

  • Most votes on django questions 2

    May 01, 2021 in FAQ

    Most votes on django questions 2. #11 How to revert the last migration? #12 Set up a scheduled job? #13 Separation of business logic and data access in django #14 Capturing URL parameters in request.GET #15 How to reset Django admin password? #16 How to filter empty or NULL names in a QuerySet? #17 How can I upgrade specific packages using pip and a requirements file? #18 What is related_name used for in Django? #19 What does on_delete do on Django models? #20 Creating a JSON response using Django and Python

    Read all the top votes questions and answers in a single page. #11: How to revert the last migration? (Score: 551) Created: 2015-08-20 Last updated: 2020-01-05 Tags: django, django-migrations I’ve made a migration that added a new table and …

    Read more

  • Most votes on django questions 10

    May 01, 2021 in FAQ

    Most votes on django questions 10. #91 Fastest way to get the first object from a queryset in django? #92 How do I make many-to-many field optional in Django? #93 How to put comments in Django templates #94 Proper way to handle multiple forms on one page in Django #95 Django rest framework, use different serializers in the same ModelViewSet #96 Django Model - Case-insensitive Query / Filtering #97 Django Admin - change header 'Django administration' text #98 Correct way to use get_or_create? #99 Django Server Error: port is already in use #100 How do I create a slug in Django?

    Read all the top votes questions and answers in a single page. #91: Fastest way to get the first object from a queryset in django? (Score: 240) Created: 2011-02-25 Tags: python, django, performance, django-models Often I find myself wanting to get …

    Read more

  • Most votes on django questions 1

    May 01, 2021 in FAQ

    Most votes on django questions 1. #1 Does Django scale? #2 What is the difference between null=True and blank=True in Django? #3 Is there a list of Pytz Timezones? #4 How do I do a not equal in Django queryset filtering? #5 How to combine two or more querysets in a Django view? #6 How to upload a file in Django? #7 How can I temporarily disable a foreign key constraint in MySQL? #8 What is a "slug" in Django? #9 How to debug in Django, the good way? #10 How to check Django version

    Read all the top votes questions and answers in a single page. #1: Does Django scale? (Score: 1173) Created: 2009-05-20 Last updated: 2019-03-21 Tags: python, django, web-applications, scalability I’m building a web application with Django. The …

    Read more

  • Most votes on design-patterns questions 9

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 9. #81 Best way to build a Plugin system with Java #82 Is ServiceLocator an anti-pattern? #83 Observer Design Pattern vs "Listeners" #84 What is copy-on-write? #85 What does "program to interfaces, not implementations" mean? #86 Conceptually, how does replay work in a game? #87 Difference between the Facade, Proxy, Adapter and Decorator design patterns? #88 How to implement the activity stream in a social network #89 Design Patterns: Abstract Factory vs Factory Method #90 Is it possible to create static classes in PHP (like in C#)?

    Read all the top votes questions and answers in a single page. #81: Best way to build a Plugin system with Java (Score: 148) Created: 2009-01-21 Last updated: 2009-10-23 Tags: java, design-patterns, plugins, frameworks, plugin-architecture How would …

    Read more

  • Most votes on design-patterns questions 8

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 8. #71 Implementing Comments and Likes in database #72 How to implement Builder pattern in Kotlin? #73 What is the difference between Factory and Strategy patterns? #74 UI Design Pattern for Windows Forms (like MVVM for WPF) #75 When do you use the Bridge Pattern? How is it different from Adapter pattern? #76 Differences between Proxy and Decorator Pattern #77 What is the "Execute Around" idiom? #78 MVC (Laravel) where to add logic #79 Is Meyers' implementation of the Singleton pattern thread safe? #80 AngularJS: Understanding design pattern

    Read all the top votes questions and answers in a single page. #71: Implementing Comments and Likes in database (Score: 166) Created: 2011-11-13 Last updated: 2016-06-28 Tags: mysql, database, design-patterns, database-design I’m a software …

    Read more

  • Most votes on design-patterns questions 7

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 7. #61 Ways to eliminate switch in code #62 Spring AOP vs AspectJ #63 Design patterns or best practices for shell scripts #64 Facebook Architecture #65 What is the difference between the template method and the strategy patterns? #66 Understand the "Decorator Pattern" with a real world example #67 C# Object Pooling Pattern implementation #68 Difference between Observer, Pub/Sub, and Data Binding #69 Why and How to avoid Event Handler memory leaks? #70 python design patterns

    Read all the top votes questions and answers in a single page. #61: Ways to eliminate switch in code (Score: 183) Created: 2008-09-24 Last updated: 2008-09-24 Tags: design-patterns What are the ways to eliminate the use of switch in code? #61 Best …

    Read more

  • Most votes on design-patterns questions 6

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 6. #51 Why does C# not provide the C++ style 'friend' keyword? #52 How to explain dependency injection to a 5-year-old? #53 Creating the Singleton design pattern in PHP5 #54 When should we use Observer and Observable? #55 Design Patterns: Factory vs Factory method vs Abstract Factory #56 How will I know when to create an interface? #57 What is the facade design pattern? #58 Business logic in MVC #59 Implementing Singleton with an Enum (in Java) #60 REST API Login Pattern

    Read all the top votes questions and answers in a single page. #51: Why does C# not provide the C++ style 'friend' keyword? (Score: 212) Created: 2008-10-15 Last updated: 2017-05-23 Tags: c#, c++, design-patterns, oop, friend The C++ friend keyword …

    Read more

  • Most votes on design-patterns questions 5

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 5. #41 Which Architecture patterns are used on Android? #42 Is there a Java equivalent or methodology for the typedef keyword in C++? #43 Is it bad practice to make a setter return "this"? #44 Handling Dialogs in WPF with MVVM #45 What is the difference between Strategy design pattern and State design pattern? #46 What is a wrapper class? #47 What is difference between MVC, MVP & MVVM design pattern in terms of coding c# #48 What is an anti-pattern? #49 Where to place AutoMapper.CreateMaps? #50 Singleton by Jon Skeet clarification

    Read all the top votes questions and answers in a single page. #41: Which Architecture patterns are used on Android? (Score: 276) Created: 2011-02-06 Last updated: 2020-01-13 Tags: android, design-patterns I’m doing a small research of mobile …

    Read more

  • Most votes on design-patterns questions 4

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 4. #31 What are the downsides to using Dependency Injection? #32 Simplest/cleanest way to implement a singleton in JavaScript #33 What should my Objective-C singleton look like? #34 When should I use the Visitor Design Pattern? #35 What's the difference between the Dependency Injection and Service Locator patterns? #36 Singleton: How should it be used #37 Factory Pattern. When to use factory methods? #38 Relational Database Design Patterns? #39 Repository Pattern Step by Step Explanation #40 What are static factory methods?

    Read all the top votes questions and answers in a single page. #31: What are the downsides to using Dependency Injection? (Score: 342) Created: 2010-03-09 Last updated: 2011-02-11 Tags: design-patterns, dependency-injection I’m trying to …

    Read more

  • Most votes on design-patterns questions 3

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 3. #21 What are the differences between Abstract Factory and Factory design patterns? #22 On design patterns: When should I use the singleton? #23 What's an Aggregate Root? #24 Is there a simple, elegant way to define singletons? #25 How do the Proxy, Decorator, Adapter, and Bridge Patterns differ? #26 Singletons vs. Application Context in Android? #27 Design Patterns web based applications #28 How to study design patterns? #29 Why is IoC / DI not common in Python? #30 How to implement the factory method pattern in C++ correctly

    Read all the top votes questions and answers in a single page. #21: What are the differences between Abstract Factory and Factory design patterns? (Score: 497) Created: 2011-04-21 Last updated: 2019-03-27 Tags: factory-pattern, factory-method, …

    Read more