Please take the time to learn how to ask a question Ask Programming |
- Please take the time to learn how to ask a question
- Please take time to learn how to answer a question
- Bit let down aftee job interview questions, looking for courses
- First project - building a basic website for friend. Need tips.
- People who actually work in C, why are your variable names so short?
- Sorting data to make a program?
- Fastest way with knight C++
- How do I record and display the output of an EXE Window into another EXE Window
- Is there a way to make this while loop infinitely loop?
- An odd issue in Visual Studio 2017 while creating a Windows Forms project in C#: drawn lines disappearing while scrolling through the panel they`re in with scrollbars
- What steps should i take to learn programming, specifically for video games?
- How do you know if your hireble?
- How to use ControlSend to input text with a comma - AutoHotKeys
- I am writing an article about reactive programming
- What could I do in assembly, but not portable C?
- Need help with some homework
- I've just started to learn python (on YouTube). I need some tips about anything like where do I start, which software should I use (or anything related to it)etc.
- Please help me with this project. I have it due tonight.
- What the diff between coding and programing?
- How do you remember any code you learn?
- Need Help with OOP/my PyQt5 project, trouble understanding how things "connect" and work together.
- UnitTesting parameters in testing methods
- I started using idle but when I write a code I can't go to the second line. When ever I click enter it just runs the code.
- C# UI Automation API with multiple virtual desktops on Windows 10
Please take the time to learn how to ask a question Posted: 12 Sep 2021 06:06 AM PDT A thing you will have to do a lot in your journey as a developer is asking questions: please understand that it's your responsibility to make it as easy as possible for people to help you. This holds true in general, as well as in this subreddit. The person on the other side of the screen has no idea of the context of what you are trying to do, your goal, your constraints, your specification: you have to be clear about all of those when asking a question I see questions that are borderline like: "why doesn't my code work?" (copypaste of the code) So here's a few things you should ask yourself before you ask for help
As for the rest, just use common sense Thanks for coming to my ted talk [link] [comments] |
Please take time to learn how to answer a question Posted: 12 Sep 2021 09:27 PM PDT In response to this front page post, I felt it important to give the other side. Yes, it is absolutely important to learn how to ask a question. However, no matter how you try, if you're asking that likely means that you need help and aren't really knowledgeable in the area. So, as long as you aren't asking hard/impossible to answer things like "why isn't my code working?!?", we should assume the best of you. So, for those of you answering questions, I wanted to create a convenient guide to help those who really are trying their best, despite many gatekeepers making them feel inadequate with how they ask.
This is not a comprehensive guide, it is up to you to apply empathy and sympathy or just not respond. I distinctly remember how terrible and exclusive the bash scripting communities were back in the 90s and 00s and I only succeeded despite their jabs and demeaning responses, not because of the
Lastly, if you don't like the message in here, look at point 5.
Who am I to say this? Self-taught Silicon Valley programmer from the 80s-now. I taught myself everything from basic to JavaScript, PHP to python, and so much in between. However, I also teach, and I realize that the community puts the blame on the askers instead of getting better at answering. It is actually both sides that need to improve, with you experts among us needing to humbly lead the way.
Edit: hotfix - this post isn't perfectly worded but the recommendations in it apply to it too. If you're confused, please feel free to ask any questions for clarity. If you just want to showboat or be opinionated, gatekeep or be arrogant, please go enjoy another place. This post is meant to help those who want to be better question answerers. If you don't fit into they category, it's ok, but I ask you to not try to answer questions from new people, they need help. [link] [comments] |
Bit let down aftee job interview questions, looking for courses Posted: 12 Sep 2021 04:24 PM PDT TL:DR: econ student let down after a more programming heavy job interview, looking for online courses that explain webscraping, sitemaps, using JSON file to pandas dataframe, and importing/cleaning excel files before getting them to pandas. (All python) Im an econ student, trying to learn programming as best as I can alone, due to my course not providing much. I had some R/vba classes but thats all. I did some sql/python courses provided by morgan stanley, and also automated some excel with vba and pandas during an internship. Recently I applied to a slightly more technical role, where I got a 4hour takeaway exercise as part of the interview.. And thats when I realised how little I know, and got my confidence put in place. I couldve done the exercise if I had a few days for it, but in 4 hours I did terrible. It was mostly about webscraping, using site maps, and creating pandas df from JSON formats, which was new to me. Are there any good courses regarding these topics? Udemy/coursera anything? [link] [comments] |
First project - building a basic website for friend. Need tips. Posted: 12 Sep 2021 04:02 PM PDT How much JavaScript?📷 Hey guys, hope all is well. I am currently in college for software engineering, with aspirations to become a full-stack engineer. I have been itching to build my first real project, and have finally found it: My good friend owns a barbershop and needs a website. I do not plan on charging any money, just want the project for my resume and I wanted to do a cool thing for a friend. My question is this: I am proficient in HTML and CSS, but have very basic Javascript knowledge. I plan on changing that soon, but was wondering how much JavaScript is needed for a simple website, and are those things I can learn individually with a basic understanding of JavaScript? I just want to build something very simple, get him hosted on a hosting provider and send him on his way. Thank you! [link] [comments] |
People who actually work in C, why are your variable names so short? Posted: 12 Sep 2021 01:48 AM PDT It's generally recommended to have variable names that are as expressive as possible, and it's not rare to see But when I look at some C code (mostly remembering from my CS degree), variable names tend to be as short as possible Why is that the case? [link] [comments] |
Sorting data to make a program? Posted: 12 Sep 2021 06:24 PM PDT How do you go from a word problem to a program? I know it sounds simple but often I will have two pages of directions from a class assignment and I feel overwhelmed by the example and all the different parts. I've heard of stepwise refinement and I use it, but I was curious if anyone had any other insight? Thanks [link] [comments] |
Posted: 12 Sep 2021 05:53 PM PDT Hi, could someone please help me with this C++ code? Everything works but I would like it to print also all the steps of the knight not just how many there are. Thank you :) [link] [comments] |
How do I record and display the output of an EXE Window into another EXE Window Posted: 12 Sep 2021 04:23 PM PDT So for example let's say I have a game running, I want to grab the image output of the game and display it onto another window I have, so I would have two identical looking windows, one with the game itself, and one with the output of it. I want this to be done with LUA if possible. [link] [comments] |
Is there a way to make this while loop infinitely loop? Posted: 12 Sep 2021 03:24 PM PDT Say I have a for loop: sorry for the title confusion int records = 10; for (int i = 0; i < records; i++) { //do something } The only thing I am allowed to do is edit the records variable. I am able to make that records variable equal to anything. Is there a way I can make that variable equal to SOMETHING so that the loop will be infinite? I am just asking this out of curiosity. [link] [comments] |
Posted: 12 Sep 2021 01:00 PM PDT I`m creating a program that makes block diagrams in Windows Forms and I`ve run into a bit of an odd issue. Basically, the block diagram consists of RichTextBoxes with text and arrows made out of Graphics lines connecting them, all located within a Panel element with Autoscroll enabled. When I use the scrollbars to scroll through the contents of said panel the arrows that are off screen just disappear and they reappear when I make the window fill the screen or shrink back with the rectangle button in the top right corner. Does anyone have a solution to this problem? Video demonstration in case my explanation wasn`t clear: https://imgur.com/a/IuiRswX Code in the Form1.cs file: [link] [comments] |
What steps should i take to learn programming, specifically for video games? Posted: 12 Sep 2021 04:14 AM PDT I know almost nothing about programming but want to start, what are the things one would need to learn to work for a video game company, and what are the steps i should take? [link] [comments] |
How do you know if your hireble? Posted: 12 Sep 2021 12:47 PM PDT As a self-taught developer how do you know when you're hireble? Like what do you have to know before starting to apply? How good do you have to be to compete with people with a degree etc? [link] [comments] |
How to use ControlSend to input text with a comma - AutoHotKeys Posted: 12 Sep 2021 12:25 PM PDT I'm simply making a script to automatically update my GitHub repo through the command prompt in Windows. The first line of code after the command prompt is open won't send, unfortunately. I believe it is because the string includes commas, but I can't find the right syntax for making "pushd D:\Media Lists\Website, Blog, and Wordpress_thefloodplains\thefloodshark.Github.io" send as a string before inputting {Enter} like in the below code: As it stands, the script runs, but it won't input that first line with my GitHub repo location. The rest of the ControlSend inputs work, though. Any and all ideas would be deeply appreciated. [link] [comments] |
I am writing an article about reactive programming Posted: 12 Sep 2021 08:36 AM PDT So I'm on my final CS year in university and I'm writing a paper on a pretty general topic Reactive programming in web development. I though to ask reddit community for some suggestions or to share your experience, how to narrow this topic down to something specific. I was thinking maybe I could compare reactive programming with other kinds of programming used in web development, as event driven for example? Maybe I could also compare different versions of reactive programming, or different technologies as rxjs? What do you guys think would be a good topic to write a paper on it, so that it would be sufficient and interesting, I'm open to any suggestions :) [link] [comments] |
What could I do in assembly, but not portable C? Posted: 12 Sep 2021 11:55 AM PDT For example, most CPUs allow for some kind of self modifying code, but I don't think there's any way to do that in C, or do that directly in any mainstream programming language. (JIT compilers that generate, then execute code, are slightly different). As another example, in some CPUs you can switch the endianness of the CPU partway through an instruction stream. I know you can drop to assembly in C, which is why I specify "portable"- I'm interested in what kinds of things are usually possible in a CPU, but which I couldn't get a standard C compiler to emit. [link] [comments] |
Posted: 12 Sep 2021 09:24 AM PDT I havent coded in about a year so im completely lost. Its to make a battleship game with encryption. "What we want is a way of communicating where your ships are located that the enemy won't understand. Your task is to create an encryption scheme that allows you to describe where your ships will be placed without the enemy understanding it " I literally have no idea where to start and its due for tomorrow [link] [comments] |
Posted: 12 Sep 2021 09:08 AM PDT |
Please help me with this project. I have it due tonight. Posted: 12 Sep 2021 09:05 AM PDT Please help me with some approaches for this project I need to turn in by tonight. Here are the details: SOFTWARE DEVELOPMENT Let us consider a case where the user sends a text or file from his phone to his friend. The risk of data being accessed by a third party is high when the data enters the cloud platform. Hence a new method to secure the messages/file is to be done either by building a new algorithm or by modifying the existing one which can give more security and consume less time. The identity of the user must also be verified by using the authentication, verification and validation methodologies. Tasks:
[link] [comments] |
What the diff between coding and programing? Posted: 12 Sep 2021 09:01 AM PDT I'm quite new to coding and have been asking such questions on this sub. It would mean a lot if you would help :) [link] [comments] |
How do you remember any code you learn? Posted: 12 Sep 2021 08:21 AM PDT Like i always forget a lot of the code i learn, is there any tips or exercises you could recommend that would help me with remembering? [link] [comments] |
Need Help with OOP/my PyQt5 project, trouble understanding how things "connect" and work together. Posted: 12 Sep 2021 03:15 AM PDT Hey everyone, I'm very new to PyQt5 and not that good at Python either as you will see momentarily. Let me walk you through the idea and then post my code (and this code is just a simple "sketch" so to say.. to get familiar with the different things): You have a Main Menu. One of the buttons you can press there is the "Skill Tree"-button which opens up another window. It should also distinguish between left- and right-click (as left will spend points, right will subtract them) and allow shift+left/right-click to allocate or subtract 5 pts. I can get each of these to work by themselves.. but not together (with the buttons). Not really grasping when to instantiate, what to pass as parameters, if my button (which is of class QPushButton/AbstractButton) can even use the members/functions(?) of other PyQt5 Classes etc. Would be nice if someone could help me out & explain it a little.. and maybe even (if you find the time) edit the code so it does what I just described. Not so I can copy it, but so I have it in front of me and can follow the explanation/understand it better. I really want to grasp this and get better. Thanks [link] [comments] |
UnitTesting parameters in testing methods Posted: 12 Sep 2021 05:46 AM PDT Hello. I am trying to use UnitTesting on these methods : Methods - Pastebin.com I call them in static void main in the same project like this : calling + definition - Pastebin.com Now in the different project with added reference to the first one, I am trying to test the methods like this : testing methods - Pastebin.com In WcTest there is a problem with the tools.Wc (line4). Error - Argument 2 cannot convert from int to UnixConsole.CountWhat I know I can not convert that, any idea how to fix that ? In GrepTest everything looks fine, I tried to check the contents of the both lists and they are same, but it still types NO to the CMD. Why is that so ? Thanks for help ! [link] [comments] |
Posted: 12 Sep 2021 04:23 AM PDT |
C# UI Automation API with multiple virtual desktops on Windows 10 Posted: 12 Sep 2021 03:59 AM PDT Warning, I'm coming into this problem as someone who had never used C# before a couple of days ago... I'm trying to write a "simple" program that scrapes text from a targeted window and displays it on a 2x20 VFD display. I've learned about using the Microsoft UI Automation API, and have had some success in using it to accomplish my goal. However, if the target window is on a different virtual desktop it seems that using TreeWalker on the AutomationElement.RootElement will not find the target. The code I'm using now to get my target window (while it's on the same virtual desktop): I'm passing a: to this method, and this seems to be granular enough to always target the specific window I'm interested in, but it returns nothing if my target window is moved to a different virtual desktop. Is this a limitation of using the UI Automation API to accomplish my task? Is there a way to iterate through each virtual desktop while searching for my target window or should I try a different way of approaching this? Thanks! EDIT: I asked this question on StackOverflow and it seems I have 2 options at getting the desired functionality - a) Use this Github repo to have my program switch virtual desktops if the target application is not found on the current virtual desktop b) Open my program on the same virtual desktop as the target application every time I was hoping there was another way to do this but it seems that the UI Automation API .RootElement method will only return a hierarchy of the current virtual desktop, not all virtual desktops as a hierarchy. [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment