How to remember many langs/syntax/concepts?

Learn Programming - Thu, 09/20/2018 - 21:17

Hello all. Was wanting to know what techniques you all use to remember multiple language syntax and concepts. I've been coding in multiple langs across: web, desktop & mobile. Some that I understand better than rest: vb, c#, c, python, html, css, php, js, windows batch, linux bash. Have been doing netsec & webapp sec for long time too and remember most stuff because honestly they're easier to get into once we become good. Just have to be updated on latest exploits/tools/techniques going on.

Problem: Problem comes when switching the languages or trying to learn new things. Have notices that there is a point to which I can keep things in my brain. After certain limit, I remember the logic properly, but regaining complete syntax memory becomes harder as more and more concepts & designs are learned.

Example: After working with c, python, vb, c# for certain time, it's becoming harder to regain memory of complete oop syntax of php. Even after viewing and making the same things again as practice, not everything remains in mind. The memory in previous lang fades away as other things in different langs are learned.

My solution: 1) Idk if you all do this, but I've started depending heavily on internet for making bigger projects for faster coding. I do know the logic, so I don't see a problem, but morally feel the guilt of not knowing everything. 2) Internet helps most times, but with a bit of coffee, it becomes easier to recall stuff faster. Too much coffee makes jittery thoughts and mood/motivation crash, so I stick with 1 cup in morning. 3) Usually take 6-7hrs sleep to recover body & mind.

If any of you have a better method or trick to recall everything, it's much appreciated.

submitted by /u/andrewVladmirov
[link] [comments]

Its been a while since I programmed and I can't figure out whats wrong with this small program

Learn Programming - Thu, 09/20/2018 - 21:06

I haven't programmed for about 2-3 years, and I never really got too far, could somebody help clear up what's wrong with this snippet?

submitted by /u/Squidard
[link] [comments]

[C++]How can I some space between the answer and menu driven program?

Learn Programming - Thu, 09/20/2018 - 21:04

The program works fine but when one of the statements finishes the menu driven program pops up again with the answer to the statement right above it. Is there any way to get some separation between the answer and the menu?

submitted by /u/CaptainLeviA
[link] [comments]

Project Euler #7 (Not Posting Solution)

Learn Programming - Thu, 09/20/2018 - 20:48

Hello people, I've been trying to figure out the #7 project euler problem, I know that it's not allowed to post solutions outside because it kind of ruins the fun of it for some people.

I've been trying to figure it out for 3 days, on and off, between classes just sitting down and figuring out how to make it work and I came to the conclusion that I'm just missing a method or a concept to make it work (I'm a beginner at java)

Here is the code (pastebin) - I've written some comments - and uh, it's quite clear where I struggle.

If this is against the rules please tell me, I've read them and as far as I know, It's not.

submitted by /u/PsychozPath
[link] [comments]

[Python] Pytesseract refuses to recognize text

Learn Programming - Thu, 09/20/2018 - 20:44

Background: I'm trying to parse data with pytesseract 3.4.2. In order for me to consider the returned string, it needs to have a confidence score of over 75. I am running the 4.0.0beta of tesseract.
Problem: No matter what I try, I cannot bring the following image over 50: . I've tried multiple psm settings and oem settings.


img_path = "test.png" demoPage = cv2.imread(img_path) result = pytesseract.image_to_data(demoPage) submitted by /u/TheKidWhoUsesABow
[link] [comments]

Confused on git / GitHub?

Learn Programming - Thu, 09/20/2018 - 20:35

Im fairly new to programming, and I've seen lots of people talking about git and GitHub so I decided to do some research on them, but I found most explanations and tutorials to be very confusing and I'm still largely unsure about what exactly they are and how they work. I have uploaded things to GitHub before, but I never realized it was anything more than a place to share your projects.

From my understanding, git is some sort of version management that's somehow associated with GitHub, but I don't really understand how to access / use git. And what are people talking about when they mention git commands? Where would you enter those commands? Is there more to it than the GitHub website?

submitted by /u/throwaway-27272727
[link] [comments]

How to decide what language(s)/framework(s) are right for the project I'm working on?

Learn Programming - Thu, 09/20/2018 - 19:59

I've been away from programming for almost two years now. I don't really want to say that I ever knew what I was doing in the first place, but one thing I'll say is that I was confident in my ability to work with C# at a beginner/early-intermediate level. At this point, I want to say that I'm learning from scratch again. I'm hoping that this will allow me to also break free from my awful tendencies of the past as well as help me through things I never quite understood when I was programming for school.

I'm looking to make an application (pretty much for my use only, at this point) for another hobby of mine, which is speed solving cubes. I want to make a timer that holds all my timed solves within different session, as well as utilize an already existing system for generating scrambles (it's on Git, called TNoodle... I have no freaking idea how to implement this into my own project but I will figure that out while I'm learning).

I won't bore anyone with the minutia of this project, but I want to know... Is there really anything that would suggest a language like Python WOULDN'T be as good as, say, Javascript? Or maybe there is a way to determine which languages and what not are best for my project I want to work on. I'm seriously not opposed to learning anything, and I will dive 100% into whatever it is that I decide to use in the end. I just want to get back into developing because it was something that brought me a lot of fulfillment in school, and I haven't really had to do it since.

Sorry if this is a dumb question... everything I've ever done with programming has been in an educational environment where they really don't let you go out from their strict curriculum. I've been around programming for around 6 years now and I still consider myself to be way too new to this field to say I know anything.

submitted by /u/dmstepha
[link] [comments]

“Git” Going with Extensions

Programming - Thu, 09/20/2018 - 19:55
Categories: Programming

Proper struct definition in ANSI C.

Learn Programming - Thu, 09/20/2018 - 19:26

So I learned C using a C++ compiler, which are way more lenient with struct declarations ( Methods and the like). When working on older platforms (macOS 9, Amiga, etc.) how should I declare structs?
example [code] typedef struct method_table { void* _methods; void* get_method(method_table* self); };

typedef struct actor { method_table public_methods; actor* parent; actor* children; void* call_method(actor* self, char* selector); };


submitted by /u/msklabo
[link] [comments]

Do yourself a favor and go learn Git by using Git Kraken. Git is an insanely powerful tool, but it's hard to grasp the concepts without a intuitive GUI.

Learn Programming - Thu, 09/20/2018 - 19:25

As it turns out, committing to Master every time isn't the right thing to do. Since I've learned about branching and versioning the right way, Git has become an immensely more powerful tool to me. I wasn't able to grasp everything that it could do by just reading documentation. Their youtube videos are really good for beginners, and the UI is very intuitive as well.

I use two different computers to code, one being a powerful PC at home and the other being a macbook while I go to school. I'm a commuter so I spend a lot of time at school on my laptop - this led to many pointless commits just so I could continue coding once I got to school. Now that I understand branching better, I'm able to create a remote branch specifically for dirty commits when I'm going between computers. My repository stays way cleaner now.

I'm far from an expert, but since a friend recommended GitKraken I've learned more in 30 minutes than I had by reading documentation for hours.

submitted by /u/baddad25
[link] [comments]

[Question] Extracting data from secondary page and putting into database

Learn Programming - Thu, 09/20/2018 - 19:23

Basically, I just want to analyze the room availability on my campus using the data provided by the university.

How would I go about having a HTML/JS/PHP Website crawl this website for specific rooms and their availability times?

The end product must be able to run on a hosting service.

See example below:


submitted by /u/vargaset
[link] [comments]

After C++ at my college, which would be better to take first: Data Structures, or Assembly Language/Computer Organization?

Learn Programming - Thu, 09/20/2018 - 19:21

Right now I'm running through the basics of CPP, how to do functions, arrays, etc. By the end of the semester, we will cover memory allocation, polymorphism, OOP (basics), etc.

By next semester, I will have all the basics covered to learn either data structures (which will use CPP), or machine language and computer organization (which I assume will be using assembly).

Is there one that would be better to take before the other? Or would does it really matter?

submitted by /u/BohemianJack
[link] [comments]

Good sources to learn python

Learn Programming - Thu, 09/20/2018 - 19:19

Hello guys, I don’t know if these sort of questions are allowed here or not(my first time here), but what I want to know is, what are some good sources for a beginner to learn python from? Like,for a complete noob to programming, what’s the best place to learn python from?

submitted by /u/KVShady
[link] [comments]

Software disenchantment

Programming - Thu, 09/20/2018 - 19:10
Categories: Programming