• Breaking News

    Friday, June 4, 2021

    "Automate the Boring Stuff with Python" online course is free to sign up for the next few days with code JUN2021FREE learn programming

    "Automate the Boring Stuff with Python" online course is free to sign up for the next few days with code JUN2021FREE learn programming


    "Automate the Boring Stuff with Python" online course is free to sign up for the next few days with code JUN2021FREE

    Posted: 03 Jun 2021 08:37 AM PDT

    https://inventwithpython.com/automateudemy (This link will automatically redirect you to the latest discount code.)

    You can also click this link or manually enter the code: JUN2021FREE

    https://www.udemy.com/course/automate/?couponCode=JUN2021FREE

    This promo code works until the 4th (I can't extend it past that). Sometimes it takes an hour or so for the code to become active just after I create it, so if it doesn't work, go ahead and try again a while later. I'll change it to JUN2021FREE2 in three days.

    Udemy has changed their coupon policies, and I'm now only allowed to make 3 coupon codes each month with several restrictions. Hence why each code only lasts 3 days. I won't be able to make codes after this period, but I will be making free codes next month. Meanwhile, the first 15 of the course's 50 videos are free on YouTube.

    Frequently Asked Questions: (read this before posting questions)

    • This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.
    • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
    • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
    • The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/
    • I do plan on updating the Udemy course for the second edition, but it'll take a while because I have other book projects I'm working on. Expect that update to happen in mid-2021 or late-2021. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
    • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
    • I wrote a blog post to cover what's new in the second edition
    • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
    • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with. Check out /r/ProgrammingBuddies
    submitted by /u/AlSweigart
    [link] [comments]

    Just wanted to say something....

    Posted: 03 Jun 2021 04:18 PM PDT

    I made a post here recently and deleted it because someone had said something and as a very sensitive person I deleted it.

    To that person( they know who they are) I know I'm not good at coding, and I probably wont get there soon but I will keep trying.

    I joined this subreddit to learn with other and yes, a few can be a****** here but I do not want you to discourage anyone who came here to learn.

    You were also once learning, so you can go be an a****** somewhere else

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

    Is Vue easier to learn than React?

    Posted: 03 Jun 2021 04:17 AM PDT

    Hello,

    Is Vue easier to learn than React? I have heard a number of people say this. I know React is more in demand in the job market but I wish to create my own web apps as I currently have a job. I am near the end of Colt Steele's web developer bootcamp and he taught HTML, CSS, JS, Mongo, Express, Mongoose, Boostrap. So I think i need to learn a front end JS framework.

    React does seem to have more project tutorials though on YT.

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

    I am nervous.

    Posted: 03 Jun 2021 11:35 PM PDT

    I am a self taught programmer, currently serving on active duty Army status. Through some interfacing with some individuals, I was offered a job in my battalion that is honestly a dream, and I will be doing a lot of programming. I let them know that I'm really an amateur when it comes to these things, and only do it as a hobby. They didn't care and said it would be fine, that they will train me up. I will start soon, and am afraid I'll be a real detriment to the people I'll be working with, via asking a lot of stupid questions, and being pretty lost.

    Does anyone have any tips on how I can avoid making a total ass of myself, and integrate into these projects which I've been told that are very advanced, as quickly and efficiently as possible, without bogging down my seniors with stupid questions? This is my first time doing any programming or engineering in a professional capacity. Thanks.

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

    What are some echo chambers to watch out for as a programmer? Popular tools or programming strategies that are bad, but stay popular because of network effects or advertising.

    Posted: 03 Jun 2021 02:35 AM PDT

    Please explain why you think it is an echo chamber.

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

    How unique does a project have to be to look good on a resume?

    Posted: 03 Jun 2021 03:22 PM PDT

    So I want to try making a mobile app for a personal project but I'm struggling to decide what to make. I've heard a lot of people say that its best to make something unique, but that seems absurd. Whenever I have an idea for an app project to make, I look for it on the Play Store and without fail there are already at least a handful of apps that do the exact thing I was envisioning. I don't feel like something should have to be unique for it to look good on a resume and for it to be a good learning experience. Does a project really have to be unique to look good on a resume?

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

    Is Fractran an OISC?

    Posted: 03 Jun 2021 10:50 PM PDT

    (Apologies in advance if I'm on the wrong subreddit)
    I was reading about One Instruction set Computers, and I knew about FRACTRAN some time ago when I wrote an interpreter for it, and OISC reminded me of Fractran, so I thought "wait... can Fractran be considered an OISC? Or is it a Dual Instruction set Machine?"

    So if we had "Fractran Assembly Language" would it have 1 OP-code or 2? It seems it's only 1 since all operations are performed on the data (fraction list) itself, the data is, in fact, the program itself, even though Fractran can accept external input to initialize the "n register"

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

    Project ideas for final year uni

    Posted: 03 Jun 2021 10:43 PM PDT

    I am in my final year of university and the uni expects us to work on a project so that they can show off in their resume . So what are the project I can do which will also help me further and I will also be able to put that on my resume . Open to all kinds of suggestions, thanks

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

    Unable to read json file from an installed package

    Posted: 03 Jun 2021 10:02 PM PDT

    So I am an experienced Python programmer, but am new to javascript and node.js which is what I am using to write a discord bot. The bot needs to randomly select a Pokemon, and send a message to the server with the picture of the Pokemon so they can guess it. Apologies in advance, my javascript knowledge is VERY weak as this is my first project.

    I found a library called pokesprite-images which contains a json file with all the Pokemon (data/pokemon.json) and sprites of all the Pokemon. Here's the GitHub link for easy viewing of the directory I will discuss below.

    I attempted to add this library:

    const pokeSprite = require("pokesprite-images") 

    This was successful. I am using repl.it which successfully installed the latest version of the package.

    Following this, I was completely unable to actually use the package. The package is just directories with subdirectories and files. I am particularly interested in the json files and the png's within some directories, but no matter what I try, I can't open those files in javascript no matter what I try.

    I have 2 objectives I am stuck at.

    1) I want to select a random pokemon in the data/pokemon.json file and retrieve it's name in English, which will be converted to a string and sent as a message to discord. I don't know the best way to do this. I tried to do something like this, which was suggested in a stack overflow post:

    pokemonJson = require('./node_modules/pokesprite-images/data/pokemon.json') 

    but this threw errors. I also tried to access pokeSprite.data.pokemon.json in desperation but this also didn't work. I searched stack overflow, but I couldn't find any information about how to load a json file from an installed package.

    Frankly, I don't know if I'm going about this right. Is there a concise and efficient way to return a random item from the Pokemon.json file and getting it's name property?

    2) Once I get the name of the file, I want to get the path to the corresponding pokemon_name.png file in the pokemon-gen7x/regular and pokemon-gen8/regular folders. I will need this to attach the image to the discord bot. The problem is that as I wasn't able to access the files in this package in step 1, I have no example code to share with this.

    In short, I have been able to successfully write the discord portion of this bot which is reading messages and responding correctly, but I am completely stuck at using this package, or accessing files within installed packages in general. Is there a good way to do this?

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

    Dark side of job as a developer

    Posted: 03 Jun 2021 05:56 PM PDT

    What is the dark side of application development that you realised after started working as a developer?

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

    How to move on to the next level

    Posted: 03 Jun 2021 04:32 PM PDT

    I already know most of the basic code for languages like python, Java, and Swift 5. Stuff like variables with data types, tuples, whatever, to for/while loops to methods and classes and functions, all stuff taught at school or those hour-long beginner coding videos that just go through the basic syntax and concepts in coding.

    However, how do I go to the next level and start making programs and things like apps, websites, and other stuff, actually applying my knowledge. Like I know how to create a fibonacci sequence using recursion in Java, okay, but how am I gonna use this knowledge to actually start making applications.

    Sorry if this is a dumb post, it's just that i'm a sophomore in high school, I've got some experience on the basics of different languages, and I'm looking to make an app or program or something over the summer, but don't know how to, so any help that'll lead me in the right direction would be awesome.

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

    Is learning at a 2 days per week pace worth it?

    Posted: 04 Jun 2021 12:03 AM PDT

    I'm a student, currently spending my summer vacations digging CS50x. I'm quite discouraged at the prospect of having to give all my knowledge up once I go back to class. I'll have to study all week and I will only have weekends to dedicate to programming. The other solution is to take a 9 months hiatus from programming and come back to it during my next summer vacations (quite precarious then).

    So the only way I can fit my (unrelated to CS) studies and self-teaching of programming is by allocating the weekend to programming. Do you reckon it would be worth it? I mean, I know I'd be inevitably slower. But apart from that, if my goal is just to keep up programming and prevent my forgetting?

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

    Why is it common practice to squash commits on a deploy?

    Posted: 03 Jun 2021 08:07 PM PDT

    I tought that the reason for atomic commits was that, if anything went wrong, I could go back to the nearest stable state.

    But now with a job and contributing to open source, I see that teams prefer to working with a commit that represents a whole feature. Is there any reason for that?

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

    Get all songs an artist has sang

    Posted: 03 Jun 2021 11:01 PM PDT

    Is there a way I can get all songs an artist has ever sang? I've tried various lyrics site and scraped them but they either don't have all the artists or don't have all the songs of that artist. Tried Spotify too, but same issue. Not all songs available.

    I have a list of 700-800 artists I listen to and want songs of these artists only.

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

    I need some help!

    Posted: 03 Jun 2021 10:45 PM PDT

    Hey There, iam strugeling with a smal problem, i cant put a picter! on my document anny some tips? here is my LOg----

    <HTML>

    <HEAD>

    <TITLE>Mijn eerste html kennis</TITLE>

    </HEAD>

    <BODYBGCOLOR="#aaaaaa">

    <CENTER>

    <FONT SIZE="6"COLOR="Bleu">

    Welkom op mijn eerste website

    </FONT>

    <BR>

    <FONT SIZE="2"COLOR="Green">

    Gemaakt door wASteANDEQ.

    </FONT>

    <BR>

    <BR>

    <IMG SRC="./plaatjes/adelaar.jpg">

    </BODY>

    </HTML>

    (how can i put a picter in here?)

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

    Very niche programming

    Posted: 03 Jun 2021 10:33 PM PDT

    In my off time I trying to learn Visual Basic to automate some of my work software. It might be VB.NET I'm not sure (Autodesk Inventor) I'm pretty sure the only way to customize it is to create Visual Basic programs. Anyways I've got some basic programming rules in inventor already that assigns a titleblock to a sheet. I want the next sheet to have a different titleblock, but by default inventor's triggers are document open, document close, save etc. I need to create a new event trigger for add a sheet that runs my titleblock rule. I'm just very unfamiliar with Visual Basic. Even if I knew how to create the event trigger I want, I'm not sure how to integrate it into inventor. How can I get familiar with Visual Basic? How can I get familiar with the the classes and methods available for Visual Basic to manipulate for the software? How would I trigger something when the add sheet button is pressed and how do I import it into inventor to look like the other event triggers?

    More info: 1. Inventor has an api library but I'm fairly certain it is incomplete. 2. I'm pretty sure it is an if statement watching the user input, but I don't know the name of the input I want to trigger the event. Also I want to be able to assign the rule to the event inside inventor instead of hard coding it into my program. 3. I think there's a way to turn a Visual Basic program into a dll but I dont know how also I m not sure how to set where the event trigger is in my ribbon. Any advice or resources would be really helpful.

    Thanks,

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

    How do I mock a fetch function used within useEffect hook in React?

    Posted: 03 Jun 2021 10:31 PM PDT

    I have an app that when mounted, fetches data from an API, and calls setApiData to store that data. The return function of <App/ >relies on apiData to render information. I'm a beginner with mocking, and I'm confused as to how to implement this.

    I've tried mocking global fetch and returning the data needed, but it seems to never actually update state, hence the page with the API info i need is never rendered.

    I tried mocking in tests via:

    beforeEach(() => {

    jest.spyOn(global, 'fetch').mockResolvedValue({

    json: jest.fn().mockResolvedValue(mock_data)

    })

    });

    afterEach(() => {

    jest.restoreAllMocks();

    });

    Can someone help point me in the right direction?

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

    How To Scrape Instagram with PHP

    Posted: 03 Jun 2021 09:57 PM PDT

    Hey I've struggled doing basic instagram blogger metrics analysis for my job, so when I figured it out I decided to record a short video on the topic.

    https://youtu.be/fHvjJ6IHQmw

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

    Good Practice

    Posted: 03 Jun 2021 09:56 PM PDT

    What is a good typical regimen to put someone under if they are trying to learn a lot more about coding particularly data structures?

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

    Where is the fault in logic?

    Posted: 03 Jun 2021 09:46 PM PDT

    Output should be 0, but I am getting 1. I have ran code on paper and can't seen to figure whener going wrong.

    package dsa;
    public class recursion {

    public static int checksort(int[] input){
    if (input.length == 1 || input.length == 0 ) {
    return 0;
    }

    if (input[0] > input[1]) {
    return 1;
    }

    int small[] = new int[input.length];
    for(int i = 1; i < input.length; i++) {
    small[i - 1] = input[i];
    }

    return checksort(small);
    }

    public static void main(String args[]) {

    int input[] = new int[]{1, 3, 4, 5, 6, 7};
    int check = checksort(input);
    System.out.println(check);
    }
    }

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

    so just out of curiosity how complicated is writing a software rasterizer?

    Posted: 03 Jun 2021 09:44 PM PDT

    I don't usually talk to people about programing so I'm unsure as to how advanced it is considered to write one, or what's a good way to measure my current level of skill?

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

    Is learning a trick to a problem enough or should I dive deep into understanding the logic?

    Posted: 03 Jun 2021 05:46 PM PDT

    So i just started learning dp and came across the longest common subsequence problem. I now know the trick on how to do it using 2d matrix , but I don't understand the logic behind it. So should I just move on knowing the trick or should I try to understand the logic ?

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

    Has anyone tried Skillcrush?

    Posted: 03 Jun 2021 09:31 PM PDT

    I am trying to find something like Udacity, but without the time limit. Skillcrush seems to fit that bill, although a bit expensive. Is it worth the price?

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

    No comments:

    Post a Comment