Skip to content

sugatoray/CodeSnippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2cc4d0 · Sep 16, 2024
Jul 19, 2021
Feb 16, 2021
Apr 7, 2022
Jun 21, 2024
Jul 18, 2020
Aug 27, 2021
Sep 16, 2024
Jan 8, 2021
Jul 18, 2020
Jul 18, 2020

Repository files navigation

CodeSnippets

This project houses small code snippets that I found useful.

How to ask a good question on Stackoverflow?

The golden rule of asking any question is to connect with your audience and explain your question with examples, whenever possible.

The questions you ask, unless your audience grasps your question clearly, they would either wait for more information or they will simply choose to skip answering your question.

I have seen often many new users of stackoverflow asking questions that from the following pitfalls:

  • not properly formatted
    • should learn how to use markdown to write properly formatted questions/answers.
  • properly presented
    • should try to rephrase the question by breaking it down in coherent sections, if necessary.
    • examples are always helpful
    • plots/diagrams could speak volumes (if used where applicable)
  • without adequate information
  • does not mention:
    • what they have now (current state)
    • what they want from the solution (future state)
    • what they have done (current progress)

      this could be an explanation of the strategy/code they have tried so far.

This should help new stackoverflow users on to self-educate themselves:

How to write a good question on Stackoverflow? 🔥 🔥 🔥

Always provide a complete minimal reproducible example with code, data, errors, current output, and expected output, as formatted text. If relevant, only plot images are okay. Please see How to ask a good question


A must read: How do I ask a good question? 🔥

About

This project houses small code snippets that I found useful.

Resources

Citation

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages