• Breaking News

    Wednesday, July 22, 2020

    Laid off or affected by the pandemic? I'm running a free 5 week live Web Development Bootcamp to help folks discover if a career in tech could be their next move. I would love to have you join! learn programming

    Laid off or affected by the pandemic? I'm running a free 5 week live Web Development Bootcamp to help folks discover if a career in tech could be their next move. I would love to have you join! learn programming


    Laid off or affected by the pandemic? I'm running a free 5 week live Web Development Bootcamp to help folks discover if a career in tech could be their next move. I would love to have you join!

    Posted: 21 Jul 2020 11:47 AM PDT

    Hey, folks!

    Starting Aug. 4th, I will be running a live 5 week intensive web development bootcamp covering the basics of HTML, CSS, and Javascript. We'll meet every Tuesday and Thursday from 6:30pm EST to 9:30pm EST with office hours on Saturdays from 12pm EST to 3pm EST. The goal is to give folks who have been laid off or affected by the pandemic the chance to see if web development (coding, programming, software engineering, ect...) is fit for them. I'm looking for a group of 20 to 30 individuals and will give priority to those affected by the pandemic and/or under represented in tech. If you would like to join, please fill out this form: https://forms.gle/9XPpU1F8bbvFomBx9

    A little about me:

    I'm Managing Director of Engineering for Resilient Coders. My job is to get black and brown folks into high paying careers as software engineers. We're pretty damn good at it too. 85% of our graduates, most of whom do not have degrees or prior experience, go on to get full time offers at an average starting salary of $98,000. All free and stipended. No bullshit or funny business. I'm also a Distinguished Faculty Member at General Assembly were I've been helping folks learn to code for the past 8 years. You can see a sampling of my classes taught at Harvard, MIT, and elsewhere here and reviews from my past students here.

    What to expect:

    We'll have class two nights a week with the expectation that you come prepared and have done the assigned reading ahead of time. I like to use lecture as a means of exploration and not dictation, but that only works if you come prepared. The first half of class will be exploring new topics and the second half will be lab. During lab, you will tackle what we just covered by building. You'll never just listen to me and then sign off. Myself and TA's will be available throughout the lab. You'll have real time guidance / feedback and a chance to have all your questions answered.

    This course will not help you get a job! It will be a great introduction to web development (HTML, CSS, and a little JS), but if you are looking to make a career change this won't be the golden ticket. For anyone who completes the course, I'll build them a custom learning plan and help them figure out the best next steps. For a lot of folks, that may mean joining a bootcamp like the ones General Assembly offers.

    Why am I doing this:

    My activism is teaching. I want to help folks affected by the pandemic and those under represented in tech. The bootcamps I run are either very selective or expensive, so I am hoping to help in the best way I know how by offering an introductory course for free.

    Disclaimer:

    I like to joke, curse, and have fun. I do the same thing in my classroom. I value learning over nit picky correctness. If any of these things bother you, this course might not be the best fit. If you would like to learn more, please visit my blog post about the class here. I'll include a sample from one of my recent classes and you can find more links to my past work. Happy to answer any questions here on reddit.

    Peace!

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

    My first program!! It is a card-guessing game, I know I could have created something useful but decided to recreate my childhood memory. Warning: I am a really amateur programmer so the code is gonna be brutal to read, I am sorry. Also, any constructive criticism will be highly appreciated.

    Posted: 21 Jul 2020 06:22 AM PDT

    https://github.com/smcommits/cardGame

    This is a card game which displays random cards on the screen and asks the user the choose one card and keep it in mind and then displays the chosen card.

    Apart from the graphics module (which was provided with the book I am learning from), each and every single line of code is designed and written by me. Please have a look at it if you can and provide some feedback.

    Once again, I am really sorry for the badly written code but please bear with me, I am still learning and hope to reach there one day.

    Thanks, enjoy!

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

    Well now im concerned, and learning one of the downsides to self education. And markets like Udemy. You never quite know what you will get with the courses. Some instructors will be good, Others not so much.

    Posted: 21 Jul 2020 10:31 PM PDT

    So I went all in on Udemy. And bought discounted courses on python, unity, c#, Blender, and Finances. I'm working towards completing the Python videos. But I feel like both of my videos have pros and cons. For example, one instructor has a lectured planned out with structure and examples. While the others I see him thinking what examples of code to bring up. One instructor teaches basic python (at least to the level I am in) but does not seem to use OOP and classes. He sacrificed teaching about that I hope to keep things simple and beginner friendly. While the other relies heavily on objects/classes. One teaches about multiple python libraries. The other just selected a few. I think you get the point.

    I am able to complement the short comings of one course with the elements of the other. But these courses bill themselves as "complete python course", "MEGA BOOTCAMP", "From beginner to advanced" and such. So I am annoyed that i spent twenty dollars for both courses and they are not complete. The instructors sacrifice content for convenience. And I feel like a person buying a course on full price would be discouraged if they were to buy for example the OOP lacking course and then realize that a key element of coding. Classes/re-usability was not taught to them.

    Or if they were to buy my other bought course they would be discouraged when the person teaching by doing but not having a set lecture or already written out programs. Gets lost in his train of thought and creates a convuluted segment of content that is brainstorm and testing and correcting the idea when it turns out that the idea had a bug. That the student does not see the logic in his thinking. Idk. I just wish the 'Rona would be over so I can take classes in a brick and mortar school.

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

    Open-Source Computer Science Degree

    Posted: 21 Jul 2020 10:41 PM PDT

    Is this a good source to learn computer science. I have zero experience in computer science.

    https://github.com/eeeear/Online-Computer-Science-Degree

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

    What are some resources (videos, books, courses, etc) I should totally AVOID?

    Posted: 21 Jul 2020 07:59 AM PDT

    I see a lot of posts asking for learning reaources but I never see posts about warning about x resource because it's not reliable, not trusty info, etc.

    What are some resources you have used and advise us not to do so and why?

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

    Is JS all you need to learn OOP Fundamentals?

    Posted: 21 Jul 2020 08:01 PM PDT

    I am looking to get a Junior Web Developer job in the next year. I know some of the things interviewers look for are soft skills: good communication and willingness to learn, as well as hard skills: Problem solving, data structures / algorithm knowledge, Object Oriented Programming fundamentals.

    I've seen it repeated a lot that "language doesn't matter," all you need to learn is good programming fundamentals. And I understand that. However, can you learn good OOP fundamentals with a non object oriented language like Javascript? I know the classes in JS are just syntactic sugar over prototypal inheritance and not true classes. I've also read that compared to java/c#, people learning back end programming with node.js end up writing spaghetti code, more often than not, and I don't want to fall into that trap of having poor fundamentals.

    So should I just start with node.js because it's recommend more due to ease of use, or go with Java/C# to truly learn good backend fundamentals? For full context I will also be learning React to be a well rounded "full stack" applicant. And I'm just worried people recommend JS to do full stack and not because it's actually the better choice for a first backend language.

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

    How much copy and pasting is too much?

    Posted: 21 Jul 2020 09:09 PM PDT

    I was researching how to connect to my db and just found a small function that connected for me when I used my own variables/information. This kind of feels like cheating.

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

    I have a problem with "pow" in c++, if I do 10^variable it will sometimes give 9999 .

    Posted: 21 Jul 2020 11:10 PM PDT

    I found this problem in a part of my program, I copied only that part in a different file to test it.

    This part is supposed to raise the variable c for every digit the number you input has. Then raise another variable with pow(10,c).

    If I input the number 12345 I will get 100000 which is correct, if I input 1234 I will get 9999.

    123 will give 1000 and 12 will give 99.

    I tried to do pow(9,c) and it works completely fine, but if I go over 1 digit numbers it will start giving the correct answer -1 sometimes.

    Here is the code:

    https://gist.github.com/FlamyMind/a57c02c600bdd6be6ff68568d06248ae

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

    Dumb question: how do I get into "real" programming?

    Posted: 21 Jul 2020 10:57 PM PDT

    This shouldn't get removed because it's not "I'm new to programming where do I start" I'm not new to programming. pls mods spare me

    I will explain what I mean but first here's some background: I'm 16 and going to be a senior in high school and I'm not a total beginner to programming. I've been at least interested and practicing for about 3 years now, including taking AP Computer Science A (I got a 5) and my school's "4th year"(quotes bc I took it in my 3rd year) comp sci class which expands on the AP CSA cirriculum with Java Swing graphics and data structures & algorithms.

    As good as I think I am with just straight up writing code, I can tell I have way more to learn about programming in general (and the industry I guess?). Like I have no idea what Github really is beyond a place to host code (what are repos, forks, pushing, commits, etc.??). I feel like I need to be able to use a command line or a terminal (is there a difference??) but that almost feels like a whole other language to learn. What's a good IDE and how would I use it effectively? I've heard of website API. I think that's where you can connect directly to the backend of a website? Does that mean I could have made this post on a command line or something? That leads me to Reddit/Discord bots and now we're getting into server/networking territory and I don't even want to go there right now.

    TBH I'm getting anxious just typing this out because I keep thinking of more things I don't know I don't even know where to start. Any help would be appreciated, thanks!

    Here's an edit since I thought of more questions: what's up with the JavaScript on big websites? it's literally unreadable and I can't even imagine what most of it could possibly do. and also what is Node.js? it seems to me like another language? I mean not literally but you know

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

    I told my parents I want to learn programming to write apps and they laughed at me

    Posted: 21 Jul 2020 07:07 AM PDT

    I said since wanted to do this for fun and to see if I could earn any money from it. They laughed at me, saying the chances are I will probably earn zero money from my apps as the app market is saturated. Am I being naive for even coming up with this idea?

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

    Do I need to worry about efficiency as a beginner?

    Posted: 21 Jul 2020 02:24 PM PDT

    I have been learning to program for a month by now and I've been practicing challenges on Code Wars. Whenever I submit my 20 line answer there are ALWAYS one line answers! Do I need to worry about being able to get the most concise answer possible?

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

    Python and Javascript Mentor

    Posted: 21 Jul 2020 05:02 PM PDT

    Hi,

    I'm pretty decent with python and javascript but I'm looking to take my knowledge base to the next level and become a more complete developer. I'm looking for an experienced engineer to help me build my skill set through advanced projects/difficult problem sets and be someone I can turn to if and when I get stuck. I'd be looking to meet bi-weekly to discuss projects, problem sets, career paths and industry trends. I'd be looking to pay around 10-15 an hour for these meetings and any time spent outside of the meetings answering questions can be accumulated and factored in. If you're interested in helping a recent uni grad level up his skill set, please bid on this and I'll pm you to learn more about your background and get acquainted. Must be in US time zone. Thanks.

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

    Why is my Prime Number generator only partially working?

    Posted: 21 Jul 2020 08:31 PM PDT

    I'm trying to make a method in Java that generates prime numbers up until a limit, and then prints all those prime numbers in a string.

    It seems to be..............making progress. But it is also printing some composite numbers.

    My logic for the method: Since a prime is a number that is only divisible by 1 and itself, an inner loop has to run between 2 and the number in question to see if any of them creates a remainder of 0. If they do, then it means that it is not a prime, so the loop breaks and goes to the next value. If it doesn't get that remainder of 0, its a prime number and it gets added to the main string.

    Why is it printing composite numbers like 15, which should be divisible by 5 and producing a remainder of 0?

    public static String primeNumGenerator(int startVal){ String primeNumbers = " "; for(int x = startVal; x<=1000; x=x+1){ for(int j = 2; j<x; j=j+1){ if(x%j==0){break;} else{primeNumbers = primeNumbers + " / " + x; break;} } } return primeNumbers; } 

    output of above program: / 3 / 5 / 7 / 9 / 11 / 13 / 15 / 17 / 19 / 21 / 23 / 25 / 27 / 29 / 31 / 33 / 35 / 37 / 39 / 41 / 43 / 45 / 47 / 49 / 51 / 53 / 55 / 57 / 59 / 61 / 63 /

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

    Any advice to become a data engineer?

    Posted: 21 Jul 2020 03:09 PM PDT

    Hi everyone. I am a bio grad (1 yr now) which is totally unrelated to data engineering. I have learnt some python, not too much, but I am very eager. I was wondering has anyone here made it into or have any advice on how I could break in to data engineering? I am not talking about being a data scientist but an engineer which are programmers.

    What courses I could take/bootcamps? What sort time frame it will require? Costs? What sort of things I would need to achieve to prove to employers such as in a portfolio?

    What I know is that in summary it would require proficiency in python, SQL, maybe R, knowledge of cloud services such as AWS, knowledge of data storage solutions such as Snowflake.

    Any advice? Thanks. edit: I'd like to add that I am interested as there is high demand for juniors and it's future proof.

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

    [JS] Can't figure out how to use array one digit at a time

    Posted: 21 Jul 2020 10:25 PM PDT

    So I'm very new to javascript and I only use it occasionally for simple stuff like randomizers for my website, which has lead me to where I'm at. I've been using a basic math.random two line script for a bit and noticed I kept getting repeat outputs. But then found out about Fisher-Yates shuffle, which looks fantastic. The shuffle itself works just fine but when it outputs it gives the entire array which doesn't help me much as I need it one number at a time.

    So this is what I've got so far:

    function getIdea() { var arr = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73]; var i = arr.length, k , temp; // k is to generate random index and temp is to swap the values while(--i > 0){ k = Math.floor(Math.random() * (i+1)); temp = arr[k]; arr[k] = arr[i]; arr[i] = temp; } } 

    And the reason I need it to give one digit at a time is so I can feed it into this

    document.getElementById('idea').innerHTML = ideas[DIGIT HERE];

    ideas is an array of sentences I need to display one at a time when a button is clicked

    Is there some really simple thing I can't seem to figure out going on here? I've tried about two dozen ways of phrasing it into google and haven't been able to find anything useful

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

    Learn R Free — Our Interactive R Courses Are ALL Free This Week!

    Posted: 21 Jul 2020 06:25 PM PDT

    Exciting news: for the next week, all of R programming courses are free. In fact, every single course in Data Analyst in R career path is free from July 20-27.

    You can find more details in this [link](https://www.dataquest.io/blog/learn-r-free/ )

    Edit: I am not affiliated to DataQuest at all. I just want to recommend this platform to everyone

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

    How do I reset a JavaScript function?

    Posted: 21 Jul 2020 10:07 PM PDT

    I am creating a loop for a game that I coded in Javascript.

    The loop is currently like this:

    for(var gameruns = 0 ; gameruns < 10; gameruns++){

    for(var correctWords = 0; correctWords < 1; correctWords++){

    //display user's score

    topics.checkScore()

    //run GAME programme

    answeredWords.push(topics.check())

    //sanity check

    console.log(answeredWords)

    }

    }

    Currently all it does is continuously print the same output of the topics.check() function instead of asking new inputs for the topics.check() from the user every loop.

    topics.check() is a function which accepts user inputs

    How do I make it such that the function topics.check() resets every loop so that the user can enter new inputs into the function?

    Or am I just stupid and this is not possible. Sorry JavaScript noob here.

    topics.check() function: https://zerobin.net/?9ab3c65dd224448d#8EJsDyUbjWfhfeEOjY3+JjCr9c3+TbpLcO3UTAZh7Pk=

    Edit: paste bin code

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

    Draw pixels to window using c

    Posted: 21 Jul 2020 04:00 PM PDT

    Hello, I wanted to draw some images to a window. Previously I used processing, however, because it is based on Java, it is very slow, so I thought maybe I should use c. I tried drawing to a window using gtk and it works pretty ok:

    First I generate a pixel array, then I create a image from that and finally I draw that image to my window.

    However gtk is event based, so after drawing the first image the program waits for user interaction. This is not what I want, I want it just spit out images until it is stopped.

    Any ideas would be very appreciated :)

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

    Programming & Software Engineer Questions

    Posted: 21 Jul 2020 09:51 PM PDT

    Hey guys, I have an interest in becoming a software engineer or a system analyst however, I am more leaning towards a software engineer. I've read that when it comes to computer programming, I should learn one PC language at a time rather than trying to learn multiple at a time. In the future I might move to a more rural province like New Brunswick. I have quite a bit of experience in a variety of software, modding consoles, phones, routers & ETC. Currently I am learning Linux and Hackintosh OS. However, I'd like to learn a computer language afterwards.

    I have several questions concerning this matter such as: Are there remote software engineer and or system analyst positions available? What computer language should I start learning and in what order? (Java/Python/ETC) I assume there are a ton of good online guides or websites designed to help people learn programming can anyone share some website links and or advice/experience? Are there certain online certificates I should focus on getting in Canada? Where do most people start applying for work on freelance sites or?

    Any information regarding these matters would greatly be appreciated, thanks.

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

    As a software engineer, if you were the professor of an "Introduction to Programming" course at a college, what programming language would you choose to introduce newbies into the world of programming? Why?

    Posted: 21 Jul 2020 11:58 AM PDT

    If the first answer: Java or JavaScript. Only because there's an enormous amount of both of them all over the place. I tend to lean towards Java, because you can now build basic mobile applications with just bit of Java knowledge, and people "feel" like they've learned something because they can produce something. But it's really a balancing issue here. I don't think this is necessarily a good goal of such a class, and accordingly I've given you two different choices—in particularly, languages I'm not even fond of but which are ubiquitous.

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

    Need help with getting rid of overlapping axis labels in seaborn time series plot

    Posted: 21 Jul 2020 02:04 PM PDT

    At first I had the correct time series plot I created with the python seaborn library but just had the overlapping of my axis labels then I found out some lines of code to use to help fix the issue. I fixed the overlapping axis labels issue but now I don't have the proper plot for my time series data, it looks more like a basic line plot.

    I would like someone to help me or guide me on how can I have my time series plot as before but without the overlapping axis and gray background as shown in the picture (the image are within the link below).

    Code

    # Data Date Crime Data 0 2018-01-01 149 train 1 2018-01-02 88 train 2 2018-01-03 86 train 3 2018-01-04 100 train 4 2018-01-05 123 train ... ... ... ... 251 2020-07-08 63 test 252 2020-07-09 65 test 253 2020-07-10 49 test 254 2020-07-11 45 test 255 2020-07-12 31 test 924 rows × 3 columns # Code for plot import seaborn as sns import matplotlib.pyplot as plt sns.set(style="whitegrid") sns.set_context(context=None,font_scale=1) x = sns.relplot(x="Date", y="Crime", kind="line", palette="tab10", hue="Data", data=s, aspect=2, color='slateblue') plt.xticks(plt.xticks()[0], rotation=70) x.set(xlim = (0,20)) ---> Starting here plt.xticks(range(-1,20)) ---> and here is where I used both lines of code to change the black block. plt.title("Seattle") 

    Images: https://docs.google.com/document/d/1bImsg2JMD1ad-OMthaBO7ygyH69VcNLWUBEFlByD6x0/edit?usp=sharing

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

    [Python] Can someone tell me why I'm still failing 2/54 test cases for the following Kata on Codewars:

    Posted: 21 Jul 2020 01:53 PM PDT

    Given two arrays 'a' and b write a function comp(a, b) that checks whether the two arrays have the "same" elements, with the same multiplicities. "Same" means, here, that the elements in b
    are the elements in a squared, regardless of the order.

    Examples

    Valid arrays

    a = [121, 144, 19, 161, 19, 144, 19, 11] b = [121, 14641, 20736, 361, 25921, 361, 20736, 361] 

    comp(a, b)
    returns true because in b
    121 is the square of 11, 14641 is the square of 121, 20736 the square of 144, 361 the square of 19, 25921 the square of 161, and so on. It gets obvious if we write b's elements in terms of squares:

    a = [121, 144, 19, 161, 19, 144, 19, 11] b = [11*11, 121*121, 144*144, 19*19, 161*161, 19*19, 144*144, 19*19] 

    Invalid arrays

    If we change the first number to something else, comp
    may not return true anymore:

    a = [121, 144, 19, 161, 19, 144, 19, 11] b = [132, 14641, 20736, 361, 25921, 361, 20736, 361] 

    comp(a,b)
    returns false because in b
    132 is not the square of any number of a

    a = [121, 144, 19, 161, 19, 144, 19, 11] b = [121, 14641, 20736, 36100, 25921, 361, 20736, 361] 

    comp(a,b)
    returns false because in b
    36100 is not the square of any number of a

    Remarks

    • a or b
      might be []
    • a or b might be None

    If a or b are None return False , the problem doesn't make sense so return false.

    My solution:

    def comp(array1, array2):

    if not array1 or not array2:

    return False

    if len(array1) != len(array2):

    return False

    array1 = [num*num for num in array1]

    for num in array2:

    if num not in array1:

    return False

    return True

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

    What is wrong with me?

    Posted: 21 Jul 2020 09:23 PM PDT

    so i've been learning JS (+HTML & CSS) for the last few months and made some beginner projects too.

    so far i'm impressed with myself... until today. I watched a video about how problem solving skill is far more important than learning syntax and doing project. Basically the video said that I should not even write code until i figure out what the problem is and I agree. For a simple form submission Project, i understand what is required and what should be done and i can do that. so far so good. Then i went to leetcode.com and try to solve some beginner problem (easy) and the first problem i came across was like this Input = [1, 2, 3, 4] Expected output = [1, 3, 6, 10]. I understand the problem. It is expecting me to sum the previous items + current item and put it in the place of current item. The thing is I don't know how to do that. I was stuck at this problem, trying all i could think of for almost two hours before looking at someone else's solution. As soon as i looked at the solution I understood what am i doing wrong. It looks like an absolute easy problem but i cant even solve this. Have I picked the wrong field? is programming not for me? I googled how to improve problem solving skills and they told me to 'Practice Practice Practice'. How do i practice something if i don't know it. I mean i know how array works, the synatx, the for loops, etc. yet still i couldn't even come close to the solution. The best i came up with was like this [1, 3, 5, 7]. I am not thinking like a programmer i know that. But how do I think like one. or Am I wasting time? you know how some people are not good at math, maybe i'm not good at this programming & should be trying something else?

    TL;DR:

    cant solve the ABCD's of programming problems. How to think to solve a problem or should i give up and take up another field?

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

    No comments:

    Post a Comment