• Breaking News

    Sunday, July 5, 2020

    What have you been working on recently? [July 04, 2020] learn programming

    What have you been working on recently? [July 04, 2020] learn programming


    What have you been working on recently? [July 04, 2020]

    Posted: 04 Jul 2020 09:04 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Dyscalculia - I have math dyslexia HELP

    Posted: 04 Jul 2020 10:29 PM PDT

    Hey guys I have a really hard time with math but am looking to get experience in coding (mainly for financial reasons) I guess my question is how much math is required to code? Or if it's not really hard to do for those living with Dyscalculia.

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

    Programming Beginner as a Hobby

    Posted: 04 Jul 2020 12:20 PM PDT

    Hello everyone.

    It has been an interest from past many years that I wanted to learn programming as a hobby as my work field is completely different, but I have been putting it off as it seemed complicated or I wasn't just enthusiastic enough. That was until a few weeks ago when I decided that I will put away the laziness and start learning programming. I am a completely new beginner in programming and do not know much except some basic formatting and automod stuff we do on reddit.

    I have kind of browsed this sub for a few days and even went through the FAQ. It has helped me a lot to understand how I need to start the learning process.

    I have been learning and practicing HTML and CSS from W3Schools and Codecademy for past 2 weeks and I have got a good grasp of it and I might keep practicing it for a week more before jumping into JavaScript. I even created a Github account and I feel proud of it even though I don't exactly know fully how to use it. I did understand a bit about fork, branch, pull requests and merge. More to learn later on.

    I am just glad that I found this sub after being so long on Reddit, and hope I will learn more from the knowledge shared here.

    I actually started writing this post to ask you guys about where do I go next and what do I learn. But that would be for next time. For now I am glad that I took these first steps, and hope to be motivated enough to learn things soon and create some projects of my own. And probably even switch career towards full time programming in next 2-3 years. We never know.

    That's all for now. Cheers :)

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

    A comprehensive list of Android learning resources for android-kotlin app developers.

    Posted: 04 Jul 2020 11:19 PM PDT

    https://github.com/androiddevnotes/awesome-android-learning-resources

    About: Awesome Android Learning Resources aims to be the starting point for Android App Developers to find the finest learning content for Android App Development.

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

    Fast web scraper for website with infinite scroll

    Posted: 04 Jul 2020 07:16 PM PDT

    I want to scrape as many posts as possible from a social media site (think scraping a year's worth of tweets from Twitter) but this website doesn't have an API. I've built a scraper with Python and Selenium that automatically logs in, scrapes all the current data on the page (~ 20 posts), then automates the "scroll" to get previous posts. It's extremely slow since I have to wait a few seconds between each scroll, and data is generated faster than I can scrape. Any ideas? This is the website: https://weverse.io/

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

    Do you think machine learning will ever be considered a "must know" subject within programming?

    Posted: 04 Jul 2020 04:42 PM PDT

    Right now machine learning is still a fairly new concept, and the idea that every programmer should know how to model and implement neural nets in the same way that every programmer should be familiar with concepts like OOP sounds kind of bonkers.

    But after thinking about how widely used and prominent machine learning is becoming, especially if you extrapolate that further down into the future, would it be wrong to say that we might get to a point in time wherein the paradigm in programming will be shifted so deep into the side of machine-learning-based programming such that it would be an incredible disservice for the layman programmer not to be well-versed in it?

    I know it's a pretty far-fetched proposition, and to be fair I don't even know if it makes too much sense, but I am curious about your thoughts on the topic.

    Thanks in advance.

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

    Freecodecamp introduces new Python Certifications

    Posted: 04 Jul 2020 11:28 AM PDT

    Freecodecamp.org has rolled new certifications in Python dealing with Scientific Computing, Data Analysis, Information Security and ML https://www.freecodecamp.org/

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

    Are there any resources to learn where your coding skills stand? Any resources to "get back up to speed"?

    Posted: 04 Jul 2020 09:36 PM PDT

    I'm a former CS minor (School was very competitive). My grades were OK enough.

    After taking a two year mental health gap. I transferred schools and got into a Software Engineering major. I finally got into something I've wanted to for a long time, but there's one catch.

    I don't think I remember anything from programming, but it's expensive to just start over (yay USA). How do I learn where my skills are at, and what resources would you recommend to get up to speed?

    For reference, I did courses on Java, data structures, big data, and basic development tools. I dropped out before I got into a github and ARM assembly class, and largely did not learn anything else.

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

    Turoring a Web Dev Novice, having trouble with JS

    Posted: 04 Jul 2020 09:29 PM PDT

    Hi all, just found this subreddit.

    So I've been working as a tutor for the past 2-3 months. I have about 2 years as a front-end web dev, and have found myself being pretty good and enjoying tutoring it while waiting for the world to stabilize and casually looking for my next position.

    However I have a student that's been having trouble. They are trying to self-learn their way into a career transition, and were doing a lot of online courses before we started meeting. They mentioned they had studied Javascript on-and-off for months and were having trouble with it. I had them revisit CodeAcademy's intro JS course to make sure they had a foundation before we went into more complicated topics.

    They managed to get through the CodeAcademy course without too much trouble (a handful of questions, maybe 1-2 hours of lesson to figure out). But when trying to use JS to accomplish some goal, like a introductory coding challenge, they have difficulty. When it comes time to start creating variables and functions they draw a blank about what to do. We've been kind of stuck in the same spot progress wise for a few weeks, maybe 4-5 hours in sessions.

    I'm not sure how to progress from this point. Did anyone here have difficulty when they first started learning to code? How long did it take before it got easier? Did you do anything to improve on that front?

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

    I wrote a beginner's guide to Abstraction, let me know your thoughts!

    Posted: 04 Jul 2020 06:27 PM PDT

    https://jesseduffield.com/beginners-guide-to-abstraction/

    To some extent this is a response to the fierce debate around under and over-abstraction at my work. Hopefully some people find it insightful :)

    (also this is my first post here so if this is too self-promotiony I humbly accept this post's fate)

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

    Is this codewars Kata bugged? I passed all the tests but can't submit it because it keeps failing the "random" tests that are not part of the rules

    Posted: 04 Jul 2020 08:00 PM PDT

    edit: im a newbie who hasnt learned all the appropriate methods yet. ty

    https://www.codewars.com/kata/56bc28ad5bdaeb48760009b0/train/python

    instructions: It's pretty straightforward. Your goal is to create a function that removes the first and last characters of a string. You're given one parameter, the original string. You don't have to worry with strings with less than two characters.

    def remove_char(s): #your code here

    newString = [] newString[:] = (s) firstPosition = 0 lastPosition = len(newString) - 1 firstValue = newString[firstPosition] lastValue = newString[lastPosition] newString.remove(firstValue) newString.remove(lastValue) x = "".join(newString) return x 

    I've passed all the tests, but the fail notifications when trying to submit say something like:

    It should work for random inputs too: 'cabacaacaccbcaaaa' should equal 'acabacaacaccbcaaa'

    It should work for random inputs too: 'cbcaabbb' should equal 'cbbcaabb'

    It should work for random inputs too: 'cbcbcaa' should equal 'cbcbaca'

    even though those random tests dont make sense with respect to the instructions.

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

    [C++] Usage of header files for function definition

    Posted: 04 Jul 2020 11:42 PM PDT

    I'm creating a small program which reads commands from a text file and moves the cursor according to those commands. I've got different functions that perform file I/O, formatting, and cursor movement, which I hope to place in different files so that my program isn't just one long .cpp file.

    I understand that putting the function definitions in a separate .cpp file and their declarations in a .h file encourages the reusability of the code. However, the each function will only need to be used once in the main() function.

    Therefore, given the above situation, is it ever acceptable to define the function in the header file without using another .cpp file, for the sole purpose of increasing readability?

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

    I need a recommendation for OCR python

    Posted: 04 Jul 2020 07:43 PM PDT

    I use Windows and I'm trying to read a very simple pixelated font (mostly reading numbers). Tesseract does not work because of the pixelation and I can't find any thing else

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

    SDL parallax scrolling with camera help?

    Posted: 04 Jul 2020 07:39 PM PDT

    Hey everyone, I'm trying to write a game that uses a parallax background with a camera. I have my camera focused on the player appropriately, and now want to be able to scroll my background with it. However, I also want to be able to have an infinitely-scrolling background to give a proper illusion. As of now, this is the code that determines the position of the background.

     p->background->x = ( int32_t )( ( 0 - app.camera.x ) * ( p->normal_scroll_speed * p->parallax_scroll_speed ) ); 

    Understandably so, when the background's x coordinate gets beyond a certain point (p->background->w), it is reset to 0. However, with the way the camera works, I can't simply reset it back to 0 because the camera will automatically snap it back into place with the above code. So, my issue rests with figuring out how to force the background to remain independent of the camera, while still scrolling with it, if that makes sense. Any help would be greatly appreciated! For reference, I'm using C with SDL.

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

    Why do lower tier companies expect more of an intern than top tier companies like faang?

    Posted: 04 Jul 2020 05:18 PM PDT

    asking because at my school fair last year a bunch of small companies rejected me because I could not pass their silly coding test but Facebook hired me for the summer. I was a junior who's only background is research project I participated in to automate lab tests using a human-free robot-run wet lab. Didn't seem to impress these smaller companies but I somehow made it into Facebook which is where I should have started applying if I hadn't doubted myself.

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

    (C++)This function won't work

    Posted: 04 Jul 2020 11:07 PM PDT

    The function keeps sending EXC_BAD_ACCESS error whenever I tried to call it.

    Here's the code:

    void createSet() { vector<int> current; vector<int> elements; for (int i = 1; i <= NUM_COLOURS; ++i) { elements.push_back(i); } do { for (int i = 0; i < CODE_LENGTH; ++i) { current[i] = elements[i]; } if(count(combinations.begin(), combinations.end(), current) == 0) { combinations.push_back(current); } }while (next_permutation(elements.begin(), elements.end())); return; } 

    Edit: Indent

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

    [Java] What is the purpose of the "throws" keyword?

    Posted: 04 Jul 2020 03:19 PM PDT

    It looks like throws is syntatic sugar? for example,

    class Main{ // void method1() throws ArithmeticException{ // // } //can be done with void method1(){ throw new ArithmeticException("Calculation error"); } void method3(){ try{ method1(); } catch(ArithmeticException e){ System.out.println("ArithmeticException handled"); } } public static void main(String args[]){ Main obj=new Main(); obj.method3(); System.out.println("End Of Program"); } } 
    submitted by /u/badboyzpwns
    [link] [comments]

    Trying to understand the asymptotic cases involved with O(X+Y)

    Posted: 04 Jul 2020 09:59 PM PDT

    If O(X) is same as O(Y) then O(X+Y) handles that, but if O(X) is greater than O(Y), how does O(X+Y) handle that case to be where it equal to O(X), and vice versa? Also when would there be a situation with two arguments being passed in the code where O(X) is greater than O(Y) or O(Y) is greater than O(X)?

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

    How do they do it? Browser tabbing as separate executables.

    Posted: 04 Jul 2020 02:26 PM PDT

    I get the concept of docking in an application, but how do you make it with different processes, executables? Mainly asking for C++. When you drag a tab from a window to another window they become one window. But are separate executables, like you can start 3 more and attach them to the one window.

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

    I'm doing something wrong.

    Posted: 04 Jul 2020 09:49 PM PDT

    I took a programming course in spring and it taught me python and a few computer science concepts. Recently, due to it being summer and summer classes are too expensive, I decided to teach myself Java. I have the basic syntax down and I've been following the MOOC.fi Java course. However, I've found myself losing focus and not retaining information as well as I did when in my college class and its bothering me. Not only that, but when I go to attempt a problem on any quick problem website (such as the ones in the FAQ - leetcode, hackerrank, ect) I can't do it and I'm only on the beginner problems. I don't know what I have to do to get to the level of being able to solve those. I need some advice and some discipline advice as well. When I was in my college class I had a ton of fun every single day with programming and I still have fun, but I feel like I'm getting no where and I'm starting to heavily doubt myself. Thank you for reading my post and sorry for any formatting issues.

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

    Offline Resources for web development

    Posted: 04 Jul 2020 09:48 AM PDT

    Hey guys! I'm looking to get back into programming but my job currently requires me to go out for 4-8 days at a time with no service or internet at all. I got a local version of FCC but that is all so far. Any recommendations for other good resources to have on hand?

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

    Website with plain front end challenges to practice?

    Posted: 04 Jul 2020 09:24 PM PDT

    I am practising my front end development skills and I'd like some challenges in order to expose myself to new things and solve them on my own. However, I have not been able to find many challenges that look interesting to me.

    I want challenges to be focused on a specific thing more than about building X application that can do A, B, and C. A good example of what I'd like can be found at 100 Days of CSS however, somedays I don't like the daily challenge and some other days I feel like doing more than a single one per day, so that's why I am looking for more of these.

    Also, I'd like to point out that I'll be doing these only using HTML, CSS and JS with no use of external frameworks whatsoever, so if possible I'd like the challenges to be framework agnostic.

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

    Hello World, I am new in Reddit.

    Posted: 04 Jul 2020 09:09 PM PDT

    Which programming language you are learning right now?

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

    What is the difference between HTML and a GUI?

    Posted: 04 Jul 2020 09:01 PM PDT

    They accomplish the same goal in creating a user interface for an application, but what is the difference between the two, outside of HTML being its own independent language? What situation would you use HTML rather than a GUI? If you develop a program in Java or Python, is that code able to be tied to an HTML interface?

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

    No comments:

    Post a Comment