• Breaking News

    Tuesday, December 1, 2020

    No one knows JACK about testing. That includes stackoverflow. Hardly any test questions are every answered and no one seems to know how to test in ANY language. Tutorials are seriously lacking as well. How do you learn testing on your own if there are no actual tutorials or stackoverflow answers? learn programming

    No one knows JACK about testing. That includes stackoverflow. Hardly any test questions are every answered and no one seems to know how to test in ANY language. Tutorials are seriously lacking as well. How do you learn testing on your own if there are no actual tutorials or stackoverflow answers? learn programming


    No one knows JACK about testing. That includes stackoverflow. Hardly any test questions are every answered and no one seems to know how to test in ANY language. Tutorials are seriously lacking as well. How do you learn testing on your own if there are no actual tutorials or stackoverflow answers?

    Posted: 30 Nov 2020 04:19 PM PST

    Seriously, this is an endless pattern I have noticed. Everyone is all about teaching people how to code all day long. Yet, if you ever look for how to test, there is literally hardly any relative tutorials on how to do it, many times the documentation is minimal and doesn't cover REAL tests you would probably do (mocking is lacking often for example), and even many times stackoverflow doesn't answer questions or gives completely WRONG answers (yes, just saw one where people were telling the person wrong things or telling him the "stuff worked". Turns out, NO it didn't and the OP answered his own question on the rare occasion they actually do that).

    Overall, I'm just very frustrated. How am I supposed to learn testing? Where is a good resource for learning testing?

    Before someone asks, "Well, what language or testing you want to use", I am talking about ALL OF IT. I have tried testing with mockito with javascript before and that was a mess with serious lack of documentation (in b4 someone points me to the documentation that is lacking and says its well documented), I'm talking about other testing too.

    Like, where are these tutorials JUST for testing? I could care less about learning to code, I need to learn to TEST. TESTING is one of the most important aspects of coding and getting a job. Where can I learn this?

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

    Why would you use Docker?

    Posted: 30 Nov 2020 02:11 PM PST

    Every video, tutorial, stack overflow explanation I went through basically said what Docker is and does, and I kinda grasp the concept, if I want to use it, I can by looking at the documentation. But why?

    Why would I use Docker instead of a live server or just never set it up and never use it? They all say Docker is better than virtual environments but why would I use a virtual environment when I can just be organized with whatever npm or pip packages I install in my repository?

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

    Advent of Code: A suggestion for advanced learners

    Posted: 30 Nov 2020 10:03 AM PST

    Hey learners,

    Sometimes I see posts along the lines of "I've gotten pretty good at <language>, I took a data structures and algorithms class, and I've been working through leetcode problems and am getting pretty far, but I'm not sure what to do next."

    If that's you, and you're looking for something to do, may I suggest trying Advent of Code? It's a free contest/event that releases one new problem each night (midnight EST, 9 PM Pacific), starting tonight and running until the 25th. The problems usually involve reading in a text file, processing it in some manner, and then generating a short solution that is submitted to the site. The problems start small but significantly escalate over the course of the advent. The first 100 people to submit an answer each night get points, but those folks are demons and I don't suggest worrying about that aspect of the event at all.

    It's a huge event. Over a quarter million programmers have solved at least one problem. I am in no way associated with it, but I'm an enthusiastic fan.

    Why you should consider this as an advanced student

    Solving these problems are hard and are usually designed to strongly steer you to some specific technique. It might be memoization. It might be a fancy queue structure. Maybe a breadth-first-search with some bizarre caveat. You are almost guaranteed to run into many useful techniques you've never used before. Fortunately, every day there's a huge community of folks over at /r/adventofcode who will be discussing each problem the next day, helping people with through the problem and providing example solutions in a crazy number of languages (one guy solved the problems in Microsoft Excel last year). Reading through those explanations and seeing how these techniques can be used to solve the problem is a great opportunity to learn.

    It's also a useful way to practice dealing with strict problem requirements. The requirements to solve these problems are stated clearly, but they are strict, arbitrary, and legion.

    Finally, if you're like me, and you need motivation to practice in the form of badges, points, structure, or content, a daily event with a bunch of people cheering each other on is a huge help. Plus, there's a (bad) story tying the problems together, and you get "stars" for solving problems. Most importantly, a pretty ASCII drawing is slowly revealed as you work through the calendar. It's all surprisingly helpful for motivation.

    Why you should DEFINITELY NOT do this as a beginner or even intermediate learner

    These problems are, frankly, very hard. By the end of the competition, there are problems that will take extremely competitive speed coders multiple hours, and there are problems that many skilled professionals will simply be unable to solve without help in the community. I consider myself to be fairly strong at solving algorithmic coding problems pretty quickly, and there was at least one problem last year I had no clue how to approach (the solution involved modular multiplicative inverses). Even the first problem of the year is almost certainly too hard for someone who's not very comfortable working with, say, hash tables. If you're not sure whether you're ready, try doing Day 1 of any year (years before 2020 remain available to complete forever), but don't feel bad if you have trouble with it. These problems are absolutely not meant for novices.

    Anyway, if you decide to participate, good luck! Don't feel bad if you get stuck

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

    I am a Software Engineer for 25+ years. I have to learn networking. Where do I start?

    Posted: 30 Nov 2020 01:39 PM PST

    For obvious reasons, throwaway account.

    Like the title says. I'm in software industry for over 25 years. Currently I'm at director level, have five teams working under me. I know all aspects of this business; software lifecycle, databases, methodologies, story mapping... Except one; networking.

    Now that every piece of software runs on the cloud, software developers started getting their hands dirtier with infrastructure and networking. The problem is, I don't understand the discussions around me. Where do I start? Any good courses? Books?

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

    2 years ago I started learning JavaScript so I could automate my Google Sheets docs. 15 months ago I left my sales job and started an internship in front end development, today, I promoted from Junior Frontend Engineer to Frontend Engineer!

    Posted: 01 Dec 2020 01:10 AM PST

    Beginner help

    Posted: 30 Nov 2020 07:04 PM PST

    If I want to get into coding to help me with data research and representation what language do you recommend I start with? I have no coding experience at all. I have seen some people say it's best to start with C to get a really good foundation, but I've also seen some say that C is too difficult to begin with. What do you think?

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

    I started studying computer science 5 weeks ago. I feel overwhelmed and am looking for a direction, advice thoughts, anything. Help.

    Posted: 30 Nov 2020 02:04 PM PST

    Hi guys,

    I started studying computer science 5 weeks ago. There are 4 modules: programming, maths, modeling and digital technology.

    Due to covid university is closed and everything is online. Some stuff is live but most of it is simply being uploaded. I've realized that I am terrible at studying online. I was already doing all school stuff last minute pre covid. It is worse now, for example: I am already 2 weeks behind in maths, which always leads to days, where I would work 10 hours non stop just to do nothing for the next 3 days.

    And I hate me for it, but I can't stop it.

    Problem is that i never got punished for doing so. I finished my A levels this year with a 1.9 , but could have easily scored a 1.2 if I did like 2 hours of work a day. Now I am sitting here feeling my control over things slowly slip through my fingers.

    Computer science at my school wasn't helpfull at all. PC's were off 75% of the time. I took advanced math and English classes (German guy here). I especially loved physics and Aced my orals in physics even though I only started preparing the evening before the exam.

    What I want: regain control. control I didn't have for the last 5 years of my life.

    I spend like 8 hours a day procrastinating watching random and stupid youtube videos and tell myself I can also do the work tomorrow.

    Don't get me wrong, I love studying and I am good at it. I managed to learn everything for my oral history class the day before the exam.

    I don't know what to do. Being in lockdown not allowed to really meet friends doesn't help either.

    I am thankful for every reply, if its motvation advice, similar stories,thoughts, anything.

    If you have questions, ask.

    Why do I tell you all of this? I don't know. Probably 'cause I figured I won't make it on my own.

    How do I get out of this hole? How do I find my place in all of this? Did I choose the right thing to study?

    Questions that I can't answer. Help

    I type this late at night, tears in my eyes listening to Juice WRLD.

    Good night. See you guys tomorrow.

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

    What Is Semantic HTML? The Benefits of Semantic HTML Code

    Posted: 30 Nov 2020 06:56 PM PST

    Hey Guys!

    I wanted to share this post about the benefits of semantic HTML. Thought it would be a great thing to look up now if you are new to HTML and want to learn how to think about it the right way!

    Here's the link to the article: https://thecodebytes.com/benefits-of-semantic-html-code/

    Let me know if you have any questions or agree/disagree with anything :)

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

    Practice Python Problems for Beginners that satisfy the following criteria:

    Posted: 01 Dec 2020 01:27 AM PST

    For someone who's only learned Python for about a week and only knows about if statements, for loops, while loops, functions(creating your own function), operators, randomization, strings, lists and some other things that a one-week-old beginner should know, please recommend me some practice problems. I really need all the practice I can get.

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

    Why Do Large Corporations Use Java Or C# Over Node.js, Python, Ruby E.t.c When Building Enterprise Web Applications?

    Posted: 30 Nov 2020 05:23 AM PST

    I have noticed (Based on research, job posts of large corporations) that enterprise web applications are built with either Java or C#. Why is this the case?

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

    How To Organize My GitHub?

    Posted: 01 Dec 2020 12:44 AM PST

    Recently I started learning Java, and whenever I am faced with an assignment or an exercise I will try to solve it the best way I can.

    I want to share this on my GitHub profile, I know employers don't care about exercises, full project are more important to them. But I just like having all of my code in on my profile whether it is simple or complex.

    However, how should I organize them? Should I just create a single repository that holds all of the exercises?

    What if I solve the exercises in more than a language? Should I create a repo for each language?

    Please give me some ideas!

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

    A Comprehensive Step-by-Step Plan With Resources To Learn Python Quickly!

    Posted: 30 Nov 2020 05:11 PM PST

    OVERVIEW

    This plan is intended to help developers who want to learn Python fast but with quality & fun. The goal of this course is to:

    • Have a fundamental understanding of the Python programming language - focus on Python 3.
    • Understand how to create your own Python programs.
    • Acquire the prerequisite Python skills to move into specific branches - Machine Learning (Data type, Jupyter Notebook...).
    • Make sure the learning path is fun with practices instead of only boring reading.

    Notes:

    • Developers will use Udemy courses for this training section; please register an account with your private email & order courses by yourself.
    • Courses are using Pycharm or IntelliJ IDEA; you can use VSCode or Pycharm Community Edition.
    • Please read the notes for each section carefully to know the focus items and what needs to be skipped.

    TRAINING PLAN

    Learn Python Programming

    Learn Python Programming Masterclass Udemy Course

    • This course helps to build fundamental knowledge about Python programming.
    • Focus on learning Python 3
    • Skip anything related to GUI
    • Learn to use popular IDE like VSCode (free) or Pycharm (paid)

    Practice: Build Real World Applications

    The Python Mega Course: Build 10 Real World Applications Udemy Course

    • SKIP those sections:
      • Basic which you learned in the previous course
      • Application 5
      • Making an APK for Android
      • Python for Image and Video Processing with OpenCV
      • Application 6
    • Create a Github account and push your practice code to Github's repos (1 repo per practice)
      • Refer to this link to understand more about Git & Github if you aren't familiar with it before.

    ADVANCED & REFERENCES

    Advanced documentation will help to dive deeper into Python & relevant technologies. Use those documents as references, so you don't need to read them all.

    Python ebooks

    • Think python 2nd
    • Clean Code Python
      • This book focuses on implementation, so please bypass it if you are not interested in it right now and revisit when you finish some practices and want to improve your code quality.
    • Python Quickstart for Experienced Programmers From Educative
      • This course from Educative, the learning platform, focuses on text courses instead of video like Udemy. I love Educative & learn a lot from this platform; I suggest you open an account / subscribe & pick any path or course you want and learn from it (not just Python, but also about system design, DevOps …)

    Django

    • A Complete Beginner's Guide to Django
      • Django is the best web framework for Python, but it has a long learning path and needs time to learn and master.
      • I suggest not to follow this framework for now, but you can have a fast reading in the link above to have a high-level understanding of it.

    Technology

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

    Business aspects of programming languages toolchains ? (elearning + ecommerce)

    Posted: 30 Nov 2020 08:50 PM PST

    This question is more valid when the programming language in question is a proof assistant, that is it can be used to introduce mathematics & logic to learners at school.

    The first keyword in the last phrase is : "introduce". Therefore asking learners to buy a 32go RAM computer, install linux and emacs, just to see what this fancy new "assistant" is about, would not be considered very "introductory". Things need to happen in the web browser.

    The second keyword is : "school". Therefore there needs some to be some way to engage, quiz and test learners and to certify transcripts. The best way to engage people is : money. When money is involved, people are motivated. So there should be a direct way to traffic knowledge in exchange for money payments, in addition to the indirect way via government funding.

    So what is the solution, you asked?

    How about WorkSchool 365 ? The direct relevance for this sub is COQ365 : Coq math proof assistant add-in inside Excel on the web browser for paid auto-graded quizzes (Preview)

    TL;DR: eLearning & eCommerce => Coq in Excel not Emacs

    This method is applicable to any Programming Language with a javascript back-end, who on this sub wants help with the technical details?

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

    How to capture/scrape data from an app that doesnt have a solid API?

    Posted: 01 Dec 2020 12:35 AM PST

    I started work at a company where we need to convert leads from Wix partner program into sales with regards to building websites for them. The Wix partner dashboard is not convenient - you need to manually scan the UI for the email address of the lead (you can't message them on wix) and we have hundreds of those leads.

    Is there some thing like Selenium where I can write a script that iterates over all of those leads and writes them into a .csv file? How would I run it? I always hear about people automating tasks at their workplace but have no idea what tools are used to do that.

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

    How to add GUI to a commandline based script

    Posted: 01 Dec 2020 12:31 AM PST

    I am making a GUI based application similar to endless SSH(i got inspired from it) the people I work with are not comfortable at all around commandline scripts, and I don't have much experience making GUIs, as I mostly work with and make commandline scripts.

    I am going to either use python or Rust to do so or even clone the project and try to add GUI to existing one and submit a pull request, I just need a little help about how to integrate a GUI to a commandline based app.

    Any ideas and help would be greatly appreciated

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

    In the 3Sum algorithm, why do you subtract 2 from the length of the input array?

    Posted: 01 Dec 2020 12:24 AM PST

    As the title says, why do you only iterate 0..arr.length - 2 times? I imagine it is to account for the fact you are actually iterating over the sub array of i + 1 to n - 1, but I can't quite visualize this for some reason.

    Could anyone ELI5?

    Thanks in advance.

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

    Any actual free Android apps for learning code?

    Posted: 01 Dec 2020 12:02 AM PST

    I found a bunch but they're all advertised as free while having their sections locked after 30 seconds of content ( hey programming hub and sololearn ).

    I'm a front end dev, and these apps obviously don't teach you nearly enough to claim you 'know' a language, but I'm just looking for something to play with and learn the basics of a language I never used before while commuting and stuff.

    Are there any actual free non gimmicky apps for that?

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

    Django why you no like me

    Posted: 30 Nov 2020 05:58 PM PST

    Why tf is Django such a pain in the ass? Is there an easier framework to work with because if so I'll switch! Node js?

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

    Proper object to call `FindName()` on Visual C++

    Posted: 30 Nov 2020 11:38 PM PST

    I'm attempting to make an app in Visual Studio with C++, thus far almost everything has been pretty plain sailing except for making a scaling function. I can't seem to think of which object to call the FindName() function on, and there's no documentation for me to really check out as almost everything is written in C#.

    The namespaces defined in the System::Windows::FrameworkElement and Windows::UI:Xaml::FrameworkElement also aren't really helping. The reason for this issue is because I need to scale the app dynamically, however, for that I need to call a ScaleTransform on a canvas tag in XAML, which I'm trying to get with the name.

    I have tried using App::FindName() and defining both of the above namespaces but I cannot for the life of me figure out which object to call this (or the ScaleTransform) function on. Any help would be greatly appreciated.

    Thanks in advance!

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

    Java - Finding the sum of values in a text file

    Posted: 30 Nov 2020 11:15 PM PST

    Need help with debugging code to add the values in a text file

    Can someone please help me debug my code? I'm getting the following error message- I'm getting the error message on "words = line.split(" ");" line

    Exception in thread "main" java.lang.NullPointerException at analysis.StatAnalysis.sumValues(StatAnalysis.java:39) at main.Analysis.main(Analysis.java:26)

    Here is the code that I'm using in sumValues-

    BufferedReader br = new BufferedReader(new FileReader(filename));
    String line = "ABC";
    String[] words;
    double sum = 0;
    while (line != null).
    {.
    line = br.readLine();
    words = line.split(" ");
    for (int i=0;i<words.length;i++).
    sum+=Double.parseDouble(words[i]);
    }.
    br.close();
    return sum;

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

    How Do I Pass A Button Down A Function In JSX?

    Posted: 30 Nov 2020 06:49 PM PST

    getConversationalHistory = (element) => {

    console.log('this is', document.getElementById(element.contact).value);

    }

    ...In the render function

    for(var contact of this.state.contacts.split(",")){

    contacts.push(<li value={contact.contact} onClick={() => this.getConversationalHistory(contact)}>{contact}</li>)

    }

    So basically, I want to have the list item be clickable so that if you click on it, it will call the getConversationalHistory function and print out that element's id. However, the output is:

    this is null

    Does anyone understand why this is happening? It would really mean the world to me to see where I'm going wrong.

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

    Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause() [React]

    Posted: 30 Nov 2020 10:20 PM PST

     const videoPress =()=>{ if(play ){ videoRef.current.pause() audioRef.current.pause() setPlay(false) playRef.current.style.display='block' }else{ videoRef.current.play() audioRef.current.play() setPlay(true) playRef.current.style.display='none' } } 

    I've been stuck on this for days, I can't seem to find a solution and it's really pissing me off. What do I do? 'Play' is a state and it's = to false.

    Please help me.

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

    Mta 98-361?

    Posted: 30 Nov 2020 10:16 PM PST

    Good study resources from anyone who has taken this? I'm open to whatever resources you have or recommend?

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

    Learning how to hit an API using querystring, but not getting the results I'm expecting from calls

    Posted: 30 Nov 2020 06:25 PM PST

    So I've been trying to learn a bit more about API development, and thought I'd start with a project that interested me.

    I found the below example api call yesterday for the open API PushShift.io, which archives reddit comments and lets you view all of your comments in json format (I believe it's what ceddit and removeddit use). Just replace the "YourUsernameHere" with whatever username you want.

    https://api.pushshift.io/reddit/search/comment/?author=YourUsernameHere&size=1000&before=1451633708&after=1420076193 

    and submissions

    https://api.pushshift.io/reddit/search/submission/?author=YourUsernameHere&size=1000&before=1451633708&after=1420076193 

    Using the epoch coverter, you can see that's searching before 1/1/2016 and after 1/1/2015. But for some reason it doesn't seem to pull back all the results for that time period sometimes.

    Someone had recommended there might be a rate limit and to try doing half a year at a time, or a few months at a time, but some of the tests I tried (just trying with random accounts) pulled back maybe 10-20 results when their /u/ page showed a whole lot more than that. Based on others I asked this question to, it appears that the rate limit is 100 so I'm not sure what the actual problem might be.

    Are any of you familiar with this API and have any suggestions on what I might be doing wrong, or what might be happening to cause some users to just return a few results when they actually have many?

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

    No comments:

    Post a Comment