• Breaking News

    Friday, September 25, 2020

    How do you study programming for more than 4-5 hours a day? learn programming

    How do you study programming for more than 4-5 hours a day? learn programming


    How do you study programming for more than 4-5 hours a day?

    Posted: 25 Sep 2020 09:29 AM PDT

    So I'm currently a full-time online computer science student which fortunately affords me lots of time to study programming.

    That said, I'm currently working through my first Java course for school and I'm finding it incredibly difficult to study Java for more than 4-5 hours a day. For whatever reason I just end up really struggling to focus and find myself with the inability to watch video after video even when following along with my own files in IntelliJ.

    The course I'm taking in school requires a 15+ file JavaFX (Inventory) application that I'm implementing via Scenebuilder. It honestly feels a bit on the advanced side for me as I was only able to print 'hello world' in Java just a few weeks ago. Due to this, I've decided to take a break on the relatively complicated project so that I can really solidify my understanding of OOP with Java.

    Today I went through some Bucky vids (theNewBoston) on youtube at 1.25x for a refresher and that was pretty helpful. I plan on finishing all of his 170+ vids including his Intermediate-level series before I even look at my school project again. I've tried the Tim Bulchalka course on udemy but can't seem to make it more than 20% through his course. I'm not sure if it's his cadence, teaching style, or if I'm just dense - but his course feels a bit too fast-paced for me. In all fairness, it's probably perfect for those who are already proficient+ in one or more programming languages.

    Anyone else struggle with maintaining discipline and focus when studying programming? How did you overcome it?

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

    Cs50 Web Programming Course

    Posted: 25 Sep 2020 06:01 PM PDT

    I'm currently about a month and a half into this course, and am currently putting the finishing touches on my third project, and let me just say, this course is transformative.

    I came into it with some programming experience. I've spent a few months in Java, took a previous course on Python, and have many years of very mediocre experience with (poorly structured) HTML and CSS. In spite of that, I took on this course with the intention of learning Django and becoming a web developer, even though not all concepts will be new to me.

    First off, it's intense. Even with my previous experience, this course has pushed me far beyond previous limits to create functional websites. The lectures are phenomenal, but only have enough time to teach you the basics on a topic. After that, you have a project. This project will be beyond what you learned in the lectures, and you will have to spend hours fumbling your way through experimentation and endless Google searches, for days in some cases, to reach the finish line. And by the time you come out the other side, you'll be comfortable with concepts that both stumped you before, and which you've never even heard of.

    Even with some experience, this course is hard, and it would be very hard for absolute beginners, but if you're like me and have some experience that you want to shape into something that can create actual end products, I cannot recommend this course enough. It's immensely rewarding, and so far has been the most successful learning method I've experienced to date. Jumping headfirst into the fire is absolutely the hard way, but the hard way works.

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

    What (in your opinion) is better - front end or back end?

    Posted: 25 Sep 2020 05:07 PM PDT

    I'm currently in a bootcamp that teaches both. I've been told that many people start out wanting to do front end but then realize they really like the back end.

    I'm not sure where I fall. I'm only about 30% complete with the course, so I have time, but I honestly have no idea.

    I learned JS/HTML/CSS, and though I'm not a very good artist/good with CSS, I loved it. I loved making small projects (like a memory card game, a timer/clock, etc).

    Then I learned python (which is usually used for back end), and that's pretty fun, too. Mostly. For a side project, I'm in the middle of making a side scroller with pygame. But python isn't the only part of back end. There's databases and SQL, and I mean they're okay, but kind of boring in my opinion.

    What do you guys like? And going off of what I've written, what do you think would be better for me? I know that only I can really decide, but I'd definitely would like some opinions.

    P.S. How do you deal with the dread of being a failure? I have confidence I can pass the bootcamp, and there's a job guarantee and everything (if I don't find one within 6 months of passing, I don't have to pay the tuition), but sometimes my anxiety takes over and I just can do nothing but think "what if I do all this work and don't find a job?"

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

    Do you use templates/design recipes for your functions

    Posted: 25 Sep 2020 06:15 PM PDT

    I'm currently working through the OSSU course - how to code - simple data. I'm finding the systematic design process particularly useful, that is using a structured 'recipe' to build your program. See link:

    https://htdp.org/2018-01-06/Book/part_preface.html#%28counter._%28figure._fig~3athe-design-recipe%29%29

    "Our observations suggest that the design process from figure 1 carries over to almost any programming language, and it works for 10-line programs as well as for 10,000-line programs. It takes some reflection to adopt the design process across the spectrum of languages and scale of programming problems; but once the process becomes second nature, its use pays off in many ways."

    Do you use a structured approach to your programs with templates/ recipes etc? Is it similar or completely different to the htdp approach?

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

    [JavaFX] Can't set a variable to desired value

    Posted: 25 Sep 2020 10:20 PM PDT

    EDIT: Solved. Should declare noOfPlayers as private static int instead.

    Hello! I'm quite new to javafx (around 5 days in) and I'm having trouble in something that seems so simple, which is why I cannot seem to debug. Here is a portion of the code from my controller class:

    private int noOfPlayers; public int getNoOfPlayers() { return noOfPlayers; } @FXML public void setToTwoPlayers(MouseEvent event) { System.out.println(getNoOfPlayers()); //0 this.noOfPlayers = 2; System.out.println("settotwo2 " + getNoOfPlayers()); //2 ((Stage)(((Button)event.getSource()).getScene().getWindow())).close(); System.out.println("settotwo3 " + getNoOfPlayers()); //2 } @FXML public void startGame(MouseEvent event) { noOfPlayers = 0; System.out.println(getNoOfPlayers()); //0 popup.popupWindow(tl.getPopupMenu()); /*popup with button calling setToTwoPlayers()*/ System.out.println(getNoOfPlayers()); //0 if(getNoOfPlayers() == 2 || getNoOfPlayers() == 3) { tl.getStage().setScene(tl.getGameScene()); tl.getStage().show(); } } 

    The problem is that noOfPlayers somehow still remains 0 even after supposedly setting it to 2. If I reinitialize noOfPlayers = 2 under startGame(), the if block is then only executed. But if I call getNoOfPlayers() once more in a different method, it is once again 0.

    I tried making a constructor (which I heard was frowned upon in a controller class), and the value of getNoOfPlayers() regardless of reinitializing it elsewhere will be whatever is the value I had it initialized in the constructor.

    Is there something in javafx that I am unaware of?

    Just in case, here is the popup method called from another class:

    public void popupWindow(Scene s) { popup.initModality(Modality.APPLICATION_MODAL); popup.setResizable(false); popup.setScene(s); popup.showAndWait(); } 
    submitted by /u/GeeRough
    [link] [comments]

    How do multiple coding languages work within the Same web app?

    Posted: 25 Sep 2020 07:07 PM PDT

    I apologize if this is a nonsense question.. I am beginner to web dev and I'm trying to wrap my head around how everything fits together.

    Let's say I have a Django backend and am now thinking about using my data to build a data warehouse. Say I want to use something like Scala/Spark instead of Python. In the real world, how would a team integrate this into the existing framework?

    More generally, do teams have to stick to language of their chosen framework for additions to their applications?

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

    Stick to your Design, and You Will be Fine

    Posted: 25 Sep 2020 08:47 PM PDT

    It is no secret that computer programming takes a fair amount of thought and contemplation. In this video I show that, despite this, it is still possible to OVERTHINK on certain things, allowing us to get stuck on simple problems, or being detrimental to our own work. We must find balance.

    https://odysee.com/@figTreePro:c/Its-a-Funny-Thing:9?r=Gsg4YVaeLhFVFLTBabGmpPdu6b8oWsA7

    I use my minesweeper game in one example (free, source download):

    https://odysee.com/@figTreePro:c/Its-a-Funny-Thing:9?r=Gsg4YVaeLhFVFLTBabGmpPdu6b8oWsA7

    This video uses my RefLabel widget. An open-source custom label widget for the kivy gui framework:

    https://www.reddit.com/r/Python/comments/ir3uz9/the_reflabel_widget/?utm_source=share&utm_medium=web2x&context=3

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

    How should I incorporate icons that are not supported by fontawesome?

    Posted: 25 Sep 2020 11:29 PM PDT

    I am trying to build a portfolio website that shows my current programming skills. However, I am having trouble putting some icons that does not exist on Fontawesome. I need to change the color of the icon so I downloaded some svg files from other sites for it. How should I incorporate this into my website? Is this ok to do so? I always used icon fonts from font awesome and I am lost since there weren't icons that I would like to use on Fontawesome.

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

    I work a full time job, is 30 minutes a day enough to make good progress?

    Posted: 25 Sep 2020 05:28 PM PDT

    I'm 21 working at amazon, planning on finishing school/learning to code, to do as a meaningful career long term, thank you for ur time

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

    Books and courses for DSA?

    Posted: 25 Sep 2020 11:16 PM PDT

    Bought a book for DSA in C/C++ (for college) and noticed that it has quite a bit of faults in a lot of its code, any suggestions for DSA?

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

    Codepad

    Posted: 25 Sep 2020 06:29 AM PDT

    This service

    https://codepad.th-luebeck.dev

    could be of interest to anyone who wants to share small code snippets. We developed this service during the COVID-19 pandemic for our programming beginners in computer science courses in order to promote the online exchange among students and with supervisors using specific code snippets.

    The service is (intentionally) anonymous and primarily developed for our teaching needs at the Lübeck University of Applied Science (programming courses, beginner level). Codepad is intentionally not a full-featured IDE.

    But maybe it is of interest to others? That is, why we share it (several of our students asked to do so).

    So, here we go. Especially, Java, Python, Go, or C programmers might want to have look.

    What you need to know:

    • A codepad is stored only for 180 days (the duration of a semester).
    • The runtime of a codepad is limited to 10 seconds (so it is not useful for interactive programs or for GUI-programs).
    • A compiled and executed codepad is served from cache.
    • You can share links of codepads in whatever messages or social networks you want.
    • You do not even have to register to use codepad.
    • Each codepad is completely anonymous (except, you provide contact data in your source code).

    So, code strong and keep healthy, wherever you are!

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

    Python's Performance regarding question

    Posted: 25 Sep 2020 09:59 PM PDT

    I know I can just check in the Task Manager, but I want to hear what you guys have to say.

    Ok, so I want to make a file explorer with Python, which will run on the command line (I believe it's called a CLI). I want it to be practical enough that I completely transfer to this file explorer and stop using the built-in Win10 file explorer. For this, I'll add functions for rename, cut, copy, delete and lots of other things.

    My question is, will this run faster than the built-in file explorer? I think it should, because it'll be CLI, whereas the built-in file explorer is a GUI. I know it depends on which data structures I use, I'll mostly be using Python List and Dictionary. The program will be heavily dependent on the os module (any better alternatives to the os module?)

    Since I want it to be practical, I want to know if it will run faster than the built-in file explorer, and also how much less RAM will it take. Because if it's not faster than the built-in file explorer and takes more RAM, then there's no point in making the file explorer.

    Also, Python is a very high level language. A lower level language like C should be much faster than Python. I plan on learning C in the future, so, will a similar file explorer made in C be faster than the one made in Python?

    I might also use something like, os.system(#cmd command)

    where the cmd command could be something like cd. How will this affect the performance of my program?

    submitted by /u/Perseus-TheGreekHero
    [link] [comments]

    What resources should someone read to learn to make something like their own print function or IO library? What about for graphics?

    Posted: 25 Sep 2020 09:27 PM PDT

    One of the things I really struggle with is understanding where the libraries for C++ or Python come from, esp. at the interface of hardware and software. It stymies me how someone would make a GUI framework, or like, when I tell C++ to open a file, what does that code look like, what is it actually doing?! Or what about when I write a hardware driver for Windows? How is it translating whatever electrical signal the OS is generating to bus to the new hardware?

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

    Extract some parts of the image that are not within the ROI

    Posted: 25 Sep 2020 09:15 PM PDT

    Hello dear senior programmers. I am having some images and the corresponding masks (ROI). I would like to extract only a part of the image that does not include any content of the mask. Please, how can this be achieved? Any demo or suggestions would be highly appreciated.

    Thank you for your time.

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

    Hey again r/learnprogramming, got a bit of problem I'm trying to debug

    Posted: 25 Sep 2020 08:41 PM PDT

    Sorry if this post breaks the rules. I've been trying to get to the bottom of this for a few hours now. Could anybody tell me what part of this C code would cause a segmentation fault. Thanks in advance for any ideas.

     \#include <stdio.h> \#include <stdlib.h> &#x200B; int makearg(char str\[\], char \*\*args\[\]); int main(void) { //char uInput\[256\]; char \*\*args, str\[\] = "ls -l file"; int argc = 0; argc = makearg(str, &args); return 0; } int makearg(char str\[\], char \*\*args\[\]) { printf("Entering makearg\\n"); int i,j,k,strLen,whSp,argc = 0; char\* newStr = 0; while(str\[strLen\] != '\\0') { printf("1st while loop\\n"); if(str\[strLen\] == ' ') { printf("1st if\\n"); whSp++; } strLen++; } argc = whSp + 1; args = malloc(strLen \* sizeof(char\*)); newStr = str; char strArr\[30\]; //printf("There are %d tokens in that string. Here they are:\\n", argc); while(\*newStr != '\\0') { printf("2nd while loop\\n"); strArr\[j\] = str\[k\]; j++; k++; if(str\[k\] == ' ' || str\[k\] == '\\0') { printf("1st if stmt\\n"); if(i >= argc) { printf("2nd if stmt\\n"); break; } args\[i\] = malloc(j \* sizeof(char\*)); strArr\[j+1\] = '\\0'; \*args\[i\] = strArr; printf("%s\\n", \*args\[i\]); j = 0; i++; k++; } newStr++; } //free(newStr); //free(args); //free(str); return argc; } 
    submitted by /u/fairskinnedmexican
    [link] [comments]

    random number simulation in C program

    Posted: 25 Sep 2020 08:04 PM PDT

    I am using rand()%10 to generate 10 different number. When this function is called say 100 times, how can I force the program to generate #4 more than any other numbers?

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

    Lost on what to do next, could use some help!!

    Posted: 25 Sep 2020 07:11 PM PDT

    Hi Everyone,

    I recently finished some courses at a local community college. I learned Java, C++ and SQL. I really want to start applying to jobs in the next couple months. I know I need some projects for my resume and that I need to study for technical interviews as well. I have completed some projects from school, but they aren't that special I feel.

    I guess I am torn on what to focus on and the direction to go from here. I bought the book cracking the coding interview. Should I first be focusing on creating projects? What kind of projects can be done quickly (a couple weeks) and are also impressive with the languages I know?

    I have another friend telling me that algorithms and datastructures are the most important things to learn.

    Should I also be studying interview questions as well? My friend did a bootcamp and was telling me to upload to github daily. I just feel like I have to do so many things at once.

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

    Practice apps for counting in Binary/Hex/Octal?

    Posted: 25 Sep 2020 12:56 PM PDT

    Looking for an android app to like drill counting in bases. Like they give you a X digit number and you calculate the values for that.

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

    How to create an music streaming client?

    Posted: 25 Sep 2020 10:56 AM PDT

    I want to create amazon prime music streaming client for linux as it doesn't have one yet.I tried using libcurl but it returned me the html code. Am i going in the right direction or do I need an api like Spotify has? Also there is an app called freeyourmusic which can play amazon prime songs..Any suggestions?

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

    Is The Pragmatic Programmer worth buying?

    Posted: 25 Sep 2020 02:41 PM PDT

    Hey guys, I'm trying to teach myself code ( C# ) and I had a co worker tell me The Pragmatic Programmer def. helped him overall as a developer as well as teaching him about the DRY principle etc. I know there's a 20th edition out, is it worth getting on paperback and just reading it? Not sure if there is a free online version or maybe other resources that cover the same principles.

    Any resources or advice would be greatly appreciated, Thank you

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

    O(n) vs. O(n^2) vs. O(1)

    Posted: 25 Sep 2020 02:40 PM PDT

    To my understanding, O(n) is the upper bound (worst case) time requirement for when the program needs to access all of the data in order to execute the desired algorithm. For instance, if you wanted to print out every element of an array, it would have the time complexity of O(n).

    O(n^2) is the upper bound time requirement when you are utilizing the data and plugging it into a specific operation. For example, if you wanted to create a two dimensional array or compute whether or not an array element is smaller or larger than a constant number, the time complexity would be O(n^2) because you not only need the time determined by the amount of data, but the time to do something with that data as well.

    Finally, O(1) occurs when the time to execute an algorithm is not dependent on the amount of data, like what happens in return statements.

    Is my understanding of Big Oh notation correct?

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

    Coding boot camps

    Posted: 25 Sep 2020 10:51 AM PDT

    The Veteran's Affair has a program that will put me through a coding boot camp. Has anyone done this before? If so, was it beneficial? Did you find a job immediately after?

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

    where to start?

    Posted: 25 Sep 2020 06:20 PM PDT

    i'm a 18 year old and i'm thinking of studying computer science major so i want to learn programming, i don't know anything about it, where should i start?

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

    Best Java course that is reading only?

    Posted: 25 Sep 2020 08:24 AM PDT

    I.e. no videos (or no audio) I definitely prefer reading, all through uni I've thrived by using textbooks

    I know the rudiments of programming, learned C/C++ up until some really basic OO and learning about memory allocation (I still don't get how the heck a pointer works) -- - - - but I assume I will just be looking for a beginner course for Java, that goes through the rudiments For/While/etc but quickly moves on and focusses on the meat and potatoes of it if that makes sense

    Let me know if you have any recommendations, again ideally I want something that's well structured like Udemy where you can have milestones and stuff (not just a long PDF of lessons) but I'd prefer if it wasn't a video of someone explaining it but more reading. Maybe Udemy has videos but you can also skip and just read the lessons? Not sure how it works. Sorry this sounds super picky but thought this would be a good spot to ask Thanks!

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

    No comments:

    Post a Comment