Forwarded from ySTACK #Bird Scripter
How to Ask Programming Questions?
Already picked a programming language and started learning how to code? Inevitably, you’ll need to ask for some coding help. Even the best, most experienced developers do. It doesn’t matter if you’re chatting with an instructor, emailing a listserv like NICAR, posting on Stack Overflow, or even just tweeting out a question, there are ways to make sure your question gets answered. This guide is aimed at journalists, but can apply to anyone.
Here are some guidelines:
1. Do some research first
Before you can find a solution, you need to know how to describe the problem you’re having. Read the error message out loud so you understand what’s going on. Even if you don’t understand all the words, make sure you read the whole error at least once.
Many times, someone else has had the same question as you, and asked that question on the Internet. If you have an error message, Google the exact message. Or just describe the problem you’re having and search. There’s a great post from KnightLab on how to get good answers from Google about code.
If you’re having problems with a specific project hosted on Github, checking out their issues page can also be helpful. Developers frequently use Github issues as a way to log known problems, or speak to the people using their project.
If you need help with a specific programming language, there are great journalism-specific google groups that can help you, such as PyJournos and RubyJournos.
Try any of the solutions you find to see if they work for you.
If nobody’s posted an error message like yours, chances are good that you’ve made some type of basic error (we all do it), like forgetting a semicolon, or not installing a program you need. Step through your code one last time, maybe reading everything out loud, just to make sure you’ve got everything right.
If solutions aren’t working, keep track of what you’ve tried, as well as what happened when you tried them. When you post your question, you’ll want to explain what you’ve already done.
2. Be specific
When asking your question, be specific. This means your post should include:
The tools you’re using, including version numbers and your operating system version.
What you’re trying to accomplish – what did you expect to happen if everything had worked?
The code you’re using (or just the relevant parts)
Any error messages you got
What you’ve tried already, and what happened
Let’s look at an example email or post, looking for programming help:
I’m trying to scrape the Boone County inmate roster using Python, and the requests and BeautifulSoup packages. So far, I’m only trying to get requests and BeautifulSoup working.
Here’s my code:
import requests
import csv
from BeautifulSoup import BeautifulSoup
url = 'http://www.showmeboone.com/sheriff/JailResidents/JailResidents.asp'
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html)
print soup
The error I’m getting says:
Traceback (most recent call last): File "test.py", line 3, in from BeautifulSoup import BeautifulSoupImportError: cannot import name BeautifulSoup
pip install BeautifulSoup
Requirement already satisfied (use --upgrade to upgrade): BeautifulSoup in /Users/jacquelinekazil/Projects/envs/scraping-class/lib/python2.7/site-packagesCleaning up..
I can’t figure out why this is happening. Please help!
Note: This is an actual example. Bonus points if you can identify what the issue is.
3. Repeat
When people start responding with solutions, try them. If the proposed solution doesn’t work, do not respond simply with “That didn’t work.” Instead:
Post what your updated code looks like
Post the new error message
Post anything else you were inspired to try since you posted your question
If a proposed solution does work, make sure you respond so others with the same problem will know that the solution worked. Remember to thank the person for helping you!
Already picked a programming language and started learning how to code? Inevitably, you’ll need to ask for some coding help. Even the best, most experienced developers do. It doesn’t matter if you’re chatting with an instructor, emailing a listserv like NICAR, posting on Stack Overflow, or even just tweeting out a question, there are ways to make sure your question gets answered. This guide is aimed at journalists, but can apply to anyone.
Here are some guidelines:
1. Do some research first
Before you can find a solution, you need to know how to describe the problem you’re having. Read the error message out loud so you understand what’s going on. Even if you don’t understand all the words, make sure you read the whole error at least once.
Many times, someone else has had the same question as you, and asked that question on the Internet. If you have an error message, Google the exact message. Or just describe the problem you’re having and search. There’s a great post from KnightLab on how to get good answers from Google about code.
If you’re having problems with a specific project hosted on Github, checking out their issues page can also be helpful. Developers frequently use Github issues as a way to log known problems, or speak to the people using their project.
If you need help with a specific programming language, there are great journalism-specific google groups that can help you, such as PyJournos and RubyJournos.
Try any of the solutions you find to see if they work for you.
If nobody’s posted an error message like yours, chances are good that you’ve made some type of basic error (we all do it), like forgetting a semicolon, or not installing a program you need. Step through your code one last time, maybe reading everything out loud, just to make sure you’ve got everything right.
If solutions aren’t working, keep track of what you’ve tried, as well as what happened when you tried them. When you post your question, you’ll want to explain what you’ve already done.
2. Be specific
When asking your question, be specific. This means your post should include:
The tools you’re using, including version numbers and your operating system version.
What you’re trying to accomplish – what did you expect to happen if everything had worked?
The code you’re using (or just the relevant parts)
Any error messages you got
What you’ve tried already, and what happened
Let’s look at an example email or post, looking for programming help:
I’m trying to scrape the Boone County inmate roster using Python, and the requests and BeautifulSoup packages. So far, I’m only trying to get requests and BeautifulSoup working.
Here’s my code:
import requests
import csv
from BeautifulSoup import BeautifulSoup
url = 'http://www.showmeboone.com/sheriff/JailResidents/JailResidents.asp'
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html)
print soup
The error I’m getting says:
Traceback (most recent call last): File "test.py", line 3, in from BeautifulSoup import BeautifulSoupImportError: cannot import name BeautifulSoup
pip install BeautifulSoup
Requirement already satisfied (use --upgrade to upgrade): BeautifulSoup in /Users/jacquelinekazil/Projects/envs/scraping-class/lib/python2.7/site-packagesCleaning up..
I can’t figure out why this is happening. Please help!
Note: This is an actual example. Bonus points if you can identify what the issue is.
3. Repeat
When people start responding with solutions, try them. If the proposed solution doesn’t work, do not respond simply with “That didn’t work.” Instead:
Post what your updated code looks like
Post the new error message
Post anything else you were inspired to try since you posted your question
If a proposed solution does work, make sure you respond so others with the same problem will know that the solution worked. Remember to thank the person for helping you!
🤯5👍2❤1🤔1
السلام عليكم
يوجد شخص يريد شراء حساب مطور عراقي
وسائل الدفع اسياسيل و كورك و زين فقط
المعرف :
@Ayham_Zrik
يوجد شخص يريد شراء حساب مطور عراقي
وسائل الدفع اسياسيل و كورك و زين فقط
المعرف :
@Ayham_Zrik
👍1
ArabWare
Lib Countdown timer _d.swb
This Project is an Github Implementation of Countdown timer view in sketchware.
Useful for
- Quiz app
- Clock app
- Movie app
- Custom ads
- Selling App
Download Blocks
https://swbstore.page.link/SkBk
Download Library, Imports, Other codes
https://swbstore.page.link/147M
Read Tutorial (How to use/make)
http://swrevo.blogspot.com/2022/03/countdown-timer-in-sketchware-new.html
Best of luck for your new project
Useful for
- Quiz app
- Clock app
- Movie app
- Custom ads
- Selling App
Download Blocks
https://swbstore.page.link/SkBk
Download Library, Imports, Other codes
https://swbstore.page.link/147M
Read Tutorial (How to use/make)
http://swrevo.blogspot.com/2022/03/countdown-timer-in-sketchware-new.html
Best of luck for your new project
👍2
Forwarded from Dark Ghost
Temporary version!
This app is supposed to be paid, but I published it for free for a short period and I will close it
And his idea is that he downloads the icons of flaticon.com via the link at once
Try it, it will definitely help you and you can buy the project if you want to contact @ali0780003rb
#apk
link : https://www.mediafire.com/file/foci7pjcfrgtpoh/FlatIconPro_release.apk/file
نسخة مؤقتة!
هذا التطبيق المفروض ان يكون مدفوع ولكنني نشرته مجانا لمدة بسيطة وسأغلقه
وفكرته انه يحمل icons موقع flaticon.com عن طريق الرابط دفعة واحدة
جربه سيفيدك بالتأكيد ويمكنك شراء المشروع إذا اردت للتواصل مع @ali0780003rb
how to use FlaticonPro : https://youtu.be/oViImsG3-To
This app is supposed to be paid, but I published it for free for a short period and I will close it
And his idea is that he downloads the icons of flaticon.com via the link at once
Try it, it will definitely help you and you can buy the project if you want to contact @ali0780003rb
#apk
link : https://www.mediafire.com/file/foci7pjcfrgtpoh/FlatIconPro_release.apk/file
نسخة مؤقتة!
هذا التطبيق المفروض ان يكون مدفوع ولكنني نشرته مجانا لمدة بسيطة وسأغلقه
وفكرته انه يحمل icons موقع flaticon.com عن طريق الرابط دفعة واحدة
جربه سيفيدك بالتأكيد ويمكنك شراء المشروع إذا اردت للتواصل مع @ali0780003rb
how to use FlaticonPro : https://youtu.be/oViImsG3-To
❤3