RSS

Posts in 2021

  • Most votes on design-patterns questions 2

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 2. #11 What is the difference between Builder Design pattern and Factory Design pattern? #12 Examples of GoF Design Patterns in Java's core libraries #13 Why is init() always called after new()? #14 Commonly accepted best practices around code organization in JavaScript #15 When would you use the Builder Pattern? #16 Dependency Injection vs Factory Pattern #17 MVC pattern on Android #18 What is the basic difference between the Factory and Abstract Factory Design Patterns? #19 Why create "Implicitly Unwrapped Optionals", since that implies you know there's a value? #20 ViewPager and fragments — what's the right way to store fragment's state?

    Read all the top votes questions and answers in a single page. #11: What is the difference between Builder Design pattern and Factory Design pattern? (Score: 728) Created: 2009-04-16 Last updated: 2016-06-03 Tags: design-patterns, factory-pattern, …

    Read more

  • Most votes on design-patterns questions 10

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 10. #91 Is there an elegant way to make every method in a class start with a certain block of code? #92 JavaScript pattern for multiple constructors #93 Is there a use-case for singletons with database access in PHP? #94 Subclassing a Java Builder class #95 Difference between Bridge pattern and Adapter pattern #96 Marker Interfaces in Java? #97 Cross cutting concern example #98 Builder Pattern in Effective Java #99 Modelling an elevator using Object-Oriented Analysis and Design #100 Entity Attribute Value Database vs. strict Relational Model Ecommerce

    Read all the top votes questions and answers in a single page. #91: Is there an elegant way to make every method in a class start with a certain block of code? (Score: 143) Created: 2015-06-29 Tags: java, design-patterns I have a class where every …

    Read more

  • Most votes on design-patterns questions 1

    May 01, 2021 in FAQ

    Most votes on design-patterns questions 1. #1 What is dependency injection? #2 What are MVP and MVC and what is the difference? #3 What is so bad about singletons? #4 What is Inversion of Control? #5 Difference between static class and singleton pattern? #6 What is the difference between MVC and MVVM? #7 Naming Classes - How to avoid calling everything a "<WhatEver>Manager"? #8 Does functional programming replace GoF design patterns? #9 What is an efficient way to implement a singleton pattern in Java? #10 C++ Singleton design pattern

    Read all the top votes questions and answers in a single page. #1: What is dependency injection? (Score: 3227) Created: 2008-09-25 Last updated: 2014-03-19 Tags: design-patterns, language-agnostic, dependency-injection, terminology There have been …

    Read more

  • Most votes on debugging questions 9

    May 01, 2021 in FAQ

    Most votes on debugging questions 9. #81 How can I debug a HTTP POST in Chrome? #82 Visual Studio refuses to forget breakpoints? #83 What is the difference between Step Into and Step Over in a debugger #84 Printing Java Collections Nicely (toString Doesn't Return Pretty Output) #85 How do I print the elements of a C++ vector in GDB? #86 How to detect IE11? #87 Is there a C++ gdb GUI for Linux? #88 Chrome debugging - break on next click event #89 How to pass arguments and redirect stdin from a file to program run in gdb? #90 How do I see a C/C++ source file after preprocessing in Visual Studio?

    Read all the top votes questions and answers in a single page. #81: How can I debug a HTTP POST in Chrome? (Score: 219) Created: 2013-03-24 Last updated: 2020-07-23 Tags: google-chrome, debugging, post I would like to view HTTP POST data that was …

    Read more

  • Most votes on debugging questions 8

    May 01, 2021 in FAQ

    Most votes on debugging questions 8. #71 A valid provisioning profile for this executable was not found for debug mode #72 How to get name of calling function/method in PHP? #73 Starting python debugger automatically on error #74 Spring RestTemplate - how to enable full debugging/logging of requests/responses? #75 Debugging in Clojure? #76 How to terminate script execution when debugging in Google Chrome? #77 In Visual Studio C++, what are the memory allocation representations? #78 How to set breakpoints in inline Javascript in Google Chrome? #79 What makes the Visual Studio debugger stop evaluating a ToString override? #80 PHP - Debugging Curl

    Read all the top votes questions and answers in a single page. #71: A valid provisioning profile for this executable was not found for debug mode (Score: 239) Created: 2010-11-12 Last updated: 2015-03-26 Tags: iphone, debugging, profile, provisioning …

    Read more

  • Most votes on debugging questions 7

    May 01, 2021 in FAQ

    Most votes on debugging questions 7. #61 How to make Google Chrome JavaScript console persistent? #62 Editing in the Chrome debugger #63 JavaScript: Is there a way to get Chrome to break on all errors? #64 View array in Visual Studio debugger? #65 Attach IntelliJ IDEA debugger to a running Java process #66 Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been optimized away #67 How to determine whether code is running in DEBUG / RELEASE build? #68 Can I set a breakpoint on 'memory access' in GDB? #69 Break when exception is thrown #70 Why does this for loop exit on some platforms and not on others?

    Read all the top votes questions and answers in a single page. #61: How to make Google Chrome JavaScript console persistent? (Score: 270) Created: 2011-03-16 Last updated: 2017-11-03 Tags: javascript, google-chrome, console, debugging Since I’m …

    Read more

  • Most votes on debugging questions 6

    May 01, 2021 in FAQ

    Most votes on debugging questions 6. #51 How can I debug javascript on Android? #52 How do you debug React Native? #53 Will #if RELEASE work like #if DEBUG does in C#? #54 Performance differences between debug and release builds #55 Release generating .pdb files, why? #56 How should strace be used? #57 How to debug Lock wait timeout exceeded on MySQL? #58 Firebug-like debugger for Google Chrome #59 Remote debugging a Java application #60 Is it possible to "decompile" a Windows .exe? Or at least view the Assembly?

    Read all the top votes questions and answers in a single page. #51: How can I debug javascript on Android? (Score: 292) Created: 2010-02-22 Tags: android, debugging, webkit I’m working on a project that involves Raphaeljs. Turns out, it …

    Read more

  • Most votes on debugging questions 5

    May 01, 2021 in FAQ

    Most votes on debugging questions 5. #41 The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application #42 What are Java command line options to set to allow JVM to be remotely debugged? #43 Check if object exists in JavaScript #44 How can I inspect the file system of a failed docker build? #45 Print current call stack from a method in Python code #46 Debugging iframes with Chrome developer tools #47 How can I see the entire HTTP request that's being sent by my Python application? #48 Where does VBA Debug.Print log to? #49 Android app crashes when launched in debug mode #50 How to quickly and conveniently disable all console.log statements in my code?

    Read all the top votes questions and answers in a single page. #41: The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application (Score: 337) Created: 2010-02-20 Last updated: 2016-08-24 Tags: …

    Read more

  • Most votes on debugging questions 4

    May 01, 2021 in FAQ

    Most votes on debugging questions 4. #31 How do you debug PHP scripts? #32 JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated…" #33 How do I debug "Error: spawn ENOENT" on node.js? #34 Eclipse - Unable to install breakpoint due to missing line number attributes #35 Stop Visual Studio from launching a new browser window when starting debug? #36 Showing the stack trace from a running Python application #37 How can I write to the console in PHP? #38 How to see which plugins are making Vim slow? #39 Is there "Break on Exception" in IntelliJ? #40 Easier way to debug a Windows service

    Read all the top votes questions and answers in a single page. #31: How do you debug PHP scripts? (Score: 403) Created: 2008-08-03 Last updated: 2015-06-04 Tags: php, eclipse, debugging, phpstorm, xdebug How do you debug PHP scripts? I am aware of …

    Read more

  • Most votes on debugging questions 3

    May 01, 2021 in FAQ

    Most votes on debugging questions 3. #21 Is it possible to disable the network in iOS Simulator? #22 C# if/then directives for debug vs release #23 #if DEBUG vs. Conditional("DEBUG") #24 What is a Python equivalent of PHP's var_dump()? #25 JavaScript: How do I print a message to the error console? #26 Showing all errors and warnings #27 What does status=canceled for a resource mean in Chrome Developer Tools? #28 How do you launch the JavaScript debugger in Google Chrome? #29 How do you get assembler output from C/C++ source in gcc? #30 How do I print the full value of a long string in gdb?

    Read all the top votes questions and answers in a single page. #21: Is it possible to disable the network in iOS Simulator? (Score: 467) Created: 2011-01-26 Last updated: 2019-09-24 Tags: ios, iphone, debugging, networking, ios-simulator I am trying …

    Read more