• Breaking News

    Sunday, April 7, 2019

    I was 41 years old when I learned how to code...I started with learned how to type, and these 2 languages... learn programming

    I was 41 years old when I learned how to code...I started with learned how to type, and these 2 languages... learn programming


    I was 41 years old when I learned how to code...I started with learned how to type, and these 2 languages...

    Posted: 07 Apr 2019 01:27 PM PDT

    I was 41 years old when I learned how to code...I started with learned how to type...

    2 years ago I learned how to code. It was difficult since I was behind in the lab due to my typing speed (12wpm). It was too slow, but that was the best I could reach at that moment.

    The other exiting thing. English is not my first language. So at the same time I need to learn two languages at the same time: English and Python.

    Now this is my last term. I am a better programmer now. If you are in the same age with me. Don't give up!

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

    Live coding: building tic tac toe from scratch in Python

    Posted: 07 Apr 2019 10:53 AM PDT

    I recorded a live coding session for anyone who wants to follow along building stuff from scratch. Hopefully it'll be helpful for people since I don't see that many "built from scratch" tutorials (as opposed to stitching together tools that may seem too much like magic to beginners).

    For background, I'm an engineer at Google. Since it's unfiltered live-coding with no prep, I don't promise the most efficient/concise anything, just demonstrating how an industry software engineer approaches and solves problems in real time.

    If it's useful, feel free to let me know if there's something specific you'd want to see built from scratch.

    https://www.youtube.com/watch?v=J1oWNkdO47U

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

    A quick tip I just found out, helpful for people using YouTube to learn.

    Posted: 07 Apr 2019 09:20 PM PDT

    While I knew YouTube had a miniplayer, I didn't realize until now how it functioned. If you right click on the video, then right click again, you can select picture in picture mode, which will allow you to minimize your browser and still have the video open, and it's re-sizable. I can have my IDE open with the video in the corner. I hope someone is helped by this :D

    Edit: This seems to be a chrome feature only, I'll upload some screenshots to show how its done if my explanation is hard to understand.

    Here's a little tutorial on how it works: https://imgur.com/a/Xpipw5c

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

    Does recursion twist your mind?

    Posted: 07 Apr 2019 06:45 PM PDT

    Omg, I've been learning recursion for some time but I can quite wrap my head around it!! How long did it take you to get comfortable with recursion?

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

    When did programming start getting really fun for you?

    Posted: 07 Apr 2019 01:41 PM PDT

    I'm new to programming and I've been enjoying it. But I'm not skilled enough to really make anything cool. I get glimpses here and there of the possibilities but can't execute those possibilities. I have a feeling that my enjoyment of programming will skyrocket when I'm finally able to.

    So my question(s) is/are, how long did it take you to reach that moment of real enjoyment where you felt like you could create anything you wanted, and didn't constantly hit road blocks because of your lack of knowledge.

    What was the first project you were really proud of?

    What are some things that you still struggle with?

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

    Git set local branch to be the same as remote HEAD, is "reset --hard" the correct way to go?

    Posted: 07 Apr 2019 08:10 PM PDT

    i have local branch a and b. i made a commit on b, and am working on something else and created a new branch, a

    now i want to push the changes from a up to remote, but the commit from b is also here on a. is there a way to get rid of b's changes on branch a?

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

    Why doesn't my scripts-within-a-script execute completely?

    Posted: 07 Apr 2019 11:35 PM PDT

    I made multiple scripts which need to work one-by-one. The 2nd one is connected to the 1st one by inserting os.system inside a block of code that is an "if" statement.

    My problem is that I've made practically my entire script #1 under an if name == __main__ , I suspect it's because of that.

    script1.py

    import stuff, define functions ... if name == __main__: do stuff if frame == 3: os.system("script2.py") # EVERYTHING ELSE UNDER THIS LINE DOES NOT WORK 

    script2.py

    do stuff if frame == 3: os.system("script3.py") 

    script3.py

    do stuff if frame == 3: done 

    I expected it to go back to the first script since by then, all of the os.system's would've been satisfied already. But I wonder how I would get it to work that way. There are still some important information below the line I indicated, that's why I need the entire thing to work.

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

    Web scraping help - is this possible?

    Posted: 07 Apr 2019 11:33 PM PDT

    Hi guys. I'm a beginner programming that wants to know if the following is possible or not:

    I have over 80 bookmarks on a torrent site with various searches.

    What I normally do is open them all under 'Other bookmarks' at the same time with 1 click, and then I use a chrome plugin to highlight if the top few results are new or not (marking visited links to red for example). Most of the time there are no new results, so I ctrl + W to close each one, but I want to automate it.

    Now my questions is basically this - is it easily enough to write a script to close the tabs if there's no new links? Surely the links will all be under 1 form or table.

    I hope that makes sense. Apologies if it doesn't :(

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

    Starting a Programming Blog

    Posted: 07 Apr 2019 11:23 PM PDT

    So I am finally going to buckle down and start my journey of learning programming through freecodecamp and a few other websites. I have heard its a good idea to start a programming blog documenting what Ive learned, issues come across and just general stuff through the daily learning. I am having a hard time thinking of a good catchy name for my blog and domain that will fit. I am not that creative so its pretty hard for me come up with something that is short and sweet but also catchy and brandable.

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

    Looking for android apps to practice HTML with.

    Posted: 07 Apr 2019 11:17 PM PDT

    I'm starting school this September, we will primarily learn how to use HTML and PHP but i want to learn a bunch before starting my education. I've bought the book Head First HTML to read while going to/from work, but i would love to be able to practice what i learn from there on the fly. Would love to get some recommendations for apps that allow me to practice writing HTML on my phone. :)

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

    C++11 (C Plus Plus 11) or higher version, open source project to contribute.

    Posted: 07 Apr 2019 11:01 PM PDT

    I'm good c++ programmer with working knowledge of various domains like avionics, mobile app(Qt based on QNX), camera. Now, I would like to explore more c++11,14,17 knowledge to contribute useful and best open source project. Please guide to get good projects.

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

    Want to learn with my 15yr old son.

    Posted: 07 Apr 2019 11:31 AM PDT

    *Deleted.

    Read the FAQ and will approach this differently.

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

    What program would be the best to use when trying to automate form filling/account creation on third party websites?

    Posted: 07 Apr 2019 10:46 PM PDT

    I barely know anything about coding, but I have this really cool concept for a website that would need to create accounts on third party sites using information previously entered by the user on the main site.

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

    Is it normal for a beginner to struggle with even easy problems on /r/dailyprogrammer

    Posted: 07 Apr 2019 01:59 PM PDT

    Ive tried to look around and every time i attempt one of the easy challenges im completely stumped by how you would solve an issue like that

    I knows the basics of C#, and can make objects, loops, classes, etc etc

    But im not really sure where to progress from here.

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

    Determine algorithm to maximize weight of a rooted tree by removing minimum no. of subtrees.

    Posted: 07 Apr 2019 10:40 PM PDT

    I have a tree rooted at 1.I can remove the whole subtree of any node and this operation can be performed any no. of times.

    Let's say we performed the above operation k no. of times.We need to maximze Total_weight - C*k,where C is a positive constant.

    The weight of nodes can be postitive as well as negative.

    For eg-(1,1) (2,-5) (3,-5) are the nodes and 1-2 and 2-3 i.e 1,2 and 2,3 are connected.Let c be 1,so in this case we can remove subtree of 2 to maximize weight which would be 1-1*1=0.

    I can try to find out weight of every subtree and delete all those that have weight less than weight of tree rooted at 1 but this wouldn't be the optimal strategy.I need an O(V) algorithm.

    Would appreciate any help to determine an optimal algorithm.THANKYOU !

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

    What does !linestarted mean here? [C]

    Posted: 07 Apr 2019 10:31 PM PDT

    So I'm working on C, and the solution to a problem I was working on is:

    #include <stdio.h> int main(void) { int c, linestarted; linestarted = 0; printf("Input some characters, then press Ctrl+D.\n"); while ((c = getchar()) != EOF) if (c == ' ' || c == '\t' || c == '\n') { if (!linestarted) { putchar('\n'); linestarted = 1; } } else { putchar(c); linestarted = 0; } return 0; } 

    I don't get what !linestarted does here. I tried replacing it with "linestarted != 1" and it works the same. Could someone please help explain? Thank you.

    Edit: Basically, what does "!" do in general? I only know of "!="

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

    How do I turn this into a if else?

    Posted: 07 Apr 2019 06:01 PM PDT

    I would like to turn this code into if and else so that it only activates the "printf("%X (Base-16) is %d (Base-10)", base_16, base_16);" if a user types in a HEX and if they type a non hex like G it will say incorrect input. I understand how to do it if there is only one number just not two or more. All help is appreciated. Code is below.

    #include <stdio.h> int main(void) { int base_16 = 0; printf("Inupt a two-digit hexadecimal number: "); scanf("%x", &base_16); printf("%X (Base-16) is %d (Base-10)", base_16, base_16); return 0; } 

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

    My delete node throws exception when I grow to reprint the list.

    Posted: 07 Apr 2019 09:34 PM PDT

    My error occurs after I use 3 to remove a specific customer from the list. The exception error doesn't appear until I reprint the linked list, then it throws an error and stops printing the linked list. I'd appreciate any hints or suggestions as to why this is. All of my other commands appear to work well.

    Code: https://pastebin.com/axFrTHgx

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

    How to learn gui software development?

    Posted: 07 Apr 2019 02:00 PM PDT

    I can code. I can write scripts in python. I can code in c++. I have learned about OOP. I have solved many problems on websites such as Hackerrank. I can work with Python libraries. But I cannot code a simple gui calculator in cpp. I want to write gui softwares (I'm working on digital signal processing). I have coded routines in c++. I cannot find anything on the internet that allows me to learn gui programming. So where should I start? Any kind of help(book, tutorials, etc.) would be appreciated. Thank you.

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

    Ways to prepare/learn more JavaScript

    Posted: 07 Apr 2019 09:03 PM PDT

    Hi I'm about to graduate college and have an internship lined up for front end development. I currently know html, css, and JavaScript by following the Odin Project and doing some of their projects. I still consider myself an amateur programmer but I want to better prepare myself for this internship. What are some recommendations for how I can improve my JavaScript and prepare myself for this position? Thanks!!

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

    Tips for learning while workin 50 hrs/wk, gym everyday, administrative tasks/errands, some relax movie time, so is 1 hour a day enough?

    Posted: 07 Apr 2019 02:23 PM PDT

    I average just under 2 hours of learning/practice per day, and Im not sure its enough. Im at hour 400 now and several redditors said they got their first job after 1000 hours, my expert programmer friend said itll take me at least 1500 hours (then said, ofc, its not about the time) bc what matters is learning and writing good code

    I can tell Im learning a lot and progressing but I also know Im moving at a snails pace, perhaps too slowly

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

    I Want to add RTX (Ray tracing) to Minecraft How

    Posted: 07 Apr 2019 08:16 PM PDT

    So recently i looked at a Mine craft shader packs demo that featured Path Tracing and i Thought that was pretty cool so now i want to try and add RTX to mine craft. Is this even possible if so where do i start, i think this would be u fun way of getting into coding even if it doesn't work so i figured id give it a shot.

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

    Is there a list of free programming related cloud services?

    Posted: 07 Apr 2019 02:01 PM PDT

    Im not thinking educational sites or free / open source APIs & libraries , im thinking more in lines of:

    • onlinegdb which is a free online compiler
    • github pages for free hosting
    • google collab offering free gpu & tpu for training your python machine learning model
    • mongodb's free tier (200mb mongodb database)
    • AWS lambda free tier
    • google drive, dropbox, and other free storage

    and other similar cloud services which you usually need to pay for (hostings, storage, processing intensive tasks.. ).

    Ive found this: https://dev.to/sahilrajput/useful-websites-for-programmers-36k but its mostly APIs and libraries, but I'm looking more for cloud services.

    Bonus points if there are APIs to use this services programatically, and the service is reliable (eg no shifty 'FREE HOSTING' which then terminates your site because you get like above 5 visitors a day).

    Main desire for this is that I'm fascinated by making it possible for anyone with just an internet connection (meaning possible with mobile too) to do great things for free (eg make a website and host it for free or program in python and use the colab's free GPU and Drive as storage).

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

    No comments:

    Post a Comment