• Breaking News

    Friday, September 25, 2020

    List of YouTubers that teach coding you may find useful learn programming

    List of YouTubers that teach coding you may find useful learn programming


    List of YouTubers that teach coding you may find useful

    Posted: 24 Sep 2020 09:12 AM PDT

    The list: https://github.com/JoseDeFreitas/awesome-youtubers.

    It contains YouTubers that teach you about programming (and other tech-related topics). I'm sharing this because I often find videos much more useful than documentation. They have good playlists to learn from, apart from new videos they upload every week. The list is being updated every day so you can expect many more YouTubers to be added.

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

    My Salary Tripled In Just Two Weeks (Self-Thought)

    Posted: 24 Sep 2020 12:02 PM PDT

    Hi everyone,

    I have been trying to learn programming for 2 years. For the last six months, I have been working on a project. While working on it, my friend sent me a company that looking for a full stack developer. I thought why not and sent a cv.

    They liked my project and gave me my first real programming job with an entry level salary. After the first week, I published my project to public. One startup sent me a message saying that they want to have an interview with me. I said why not. I liked their startup idea and people in it. I asked the double of my current salary. They said they can handle it.

    I talked to my current employer about leaving the company. He said we can readjust my salary. He offered 2.5 times of my original salary. I could accept the salary but I wanted to work with the startup. After I talked with them and explained the situation, they offered 3 times of my original salary and I accepted it!

    The sudden increase in my salary probably results from my imposter syndrome and undervaluing my own work. I understood that you should talk more about your skillset in interviews.

    I have never posted anything on Reddit before but I felt that I have to tell this. I am feeling a little bit stressed right now as I have to prove myself to this startup.

    To people who tries to learn programming by themselves, best advice I can give is that you should build something big as this worked for me.

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

    Is coding for about 5-6 hours once a week substantial practice?

    Posted: 24 Sep 2020 09:05 PM PDT

    Hello reddit. A few months ago, I started learning basic Python, and have been trying to create several programs for personal use ever since, as I've found I quite enjoy programming. However, as school started for me recently, I've run into a problem. I've found myself wanting to code, but after both school and my workout each weekday, I am mentally exhausted, and just cannot find the motivation to write code. This makes me quite sad, as I keep feeling the intense want to code, but I'm just so tired after each weekday I just can't. Because of this, I've recently decided that every Saturday I'll make sure to be focused code for about 5-6 hours

    Any feedback is appreciated,

    B0bby.

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

    Should I put everything I make on Github?

    Posted: 24 Sep 2020 05:18 AM PDT

    I'm a college student taking a break from school this semester. So far all I have in my github are school projects. I slacked a lot while in college with personal projects due to depression and undiagnosed ADHD and now that I'm taking a break I'm trying to catch up.

    It's not much but I've started a personal portfolio website and was wondering if I should push that onto my github or if it's too insignificant?

    Thank you!

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

    Need advice/direction/guide!

    Posted: 24 Sep 2020 10:45 PM PDT

    I have been learning python for a few weeks now, if i wanted to create a simulator for forward kinematic is python the right way to do it? i haven't really decide to do it on either 2d or 3d yet but i guess starting from 2d will be the right choice.
    Some people suggesting pyglet of pygame but because there are no references i can refer to, i just feel lost learning it. i know i am suppose to learn and explore on my own, but a guide or advice might motivate me to the right way.

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

    Moving past the basics

    Posted: 24 Sep 2020 10:19 PM PDT

    How do I move past the basics of the programming language / technology after learning them? For example, I just finished Vue.js crash course, got some basic concepts down, built a todo app and now I feel like I don't have anything out of doing more of these small example projects, but some big project, like a Reddit clone, seems out of reach. I have a decent vanilla JS , a basic Nodejs/express with MongoDB knowledge and now a really basic Vue knowledge, so on paper I do have familiarity with technologies needed to build something like that, but there are probably a bunch of missing pieces to do so.

    What was your approach to this kind of situation where you have some knowledge on the technologies required to build what you want but it's not really enough for you to be confident enough to do it. Do you go with the swim or drown approach and just jump into it and learn more advanced nuances as you go, right after the simple app where you get the basics down? What do you think?

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

    How do I safely store JWT with a React frontend?

    Posted: 24 Sep 2020 09:53 PM PDT

    I've finally gotten some web development clients, and have actually been making moves to turn my web development outside of work into a proper business. I'm using a headless CMS and a React frontend, but i cannot, for the life of me, figure out how I'm supposed to safely save JWT. The headless CMS I'm working with has its own authentication built in, but I can't stand their dashboard, so I'm using React-Admin on the frontend to make my own. I can send a POST request with my username and password to the headless CMS and get a JWT returned, but I can't figure out how to save it safely.

    I know that LocalStorage and Cookies are NOT recommended as a means of saving JWT, but I can't find any solutions that really seem secure. My first MVC framework was Rails, so I'm used to just installing Devise in 10 minutes and feeling confident that my app is secure. Now, I'm trying to be extra careful because the sites I'm making will be used by real people. What's the best solution here? The only alternative I can think of is to use something like OAuth or one of the other external authorization providers, but I really do want to use an email / password system.

    EDIT: For those that are curious, the headless CMS is Strapi.

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

    Language and framework to learn alongside with PHP & Javascript

    Posted: 25 Sep 2020 12:50 AM PDT

    Currently I'm doing most of the stuff with PHP and Javascript. In PHP I use Laravel. In Javascript I use Jquery & Vue. I like to try another framework alongside with these two. What are some good alternatives to someone who's coming from these frameworks. What I think of was .NET, Node, Spring Boot.

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

    Is there a good programming typing speed teste?

    Posted: 25 Sep 2020 12:47 AM PDT

    All the ones I've found and tried are really not what I was looking for.

    In those you need to write closing brackets and spaces and all the other things, you wouldn't if you were coding in an IDE.

    Does anyone know a website/program which better 'simulates' what you would actually write?

    e.g. there would be (part of) a program and you would need to basically copy it, but you have the same tools as you would in your run of the mill IDE. Automatic Bracket closing, auto Insets, no need for space to make it pretty. It would just need to do the same thing that the example does and in a similar way.

    PS: I hope all that was understandable, I'm not a native English speaker so some things might be a little off. If there is no such thing out there right now, I've planned to start to make it myself in the next month or so (open-source of course).

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

    i cant import a background pygame

    Posted: 25 Sep 2020 12:34 AM PDT

    hi i am trying to import a background in pygame but it comes back with the same error message, i am following a kids can code tutorial could you please help here's my code:

    import pygame

    import random

    from os import path

    img_dir = path.join(path.dirname(__file__), "img")

    width = 480

    height = 600

    FPS = 60

    #define colors

    white = (255, 255, 255)

    black = (0, 0, 0)

    red = (255, 0, 0)

    green = (0, 255, 0)

    blue = (0, 0, 255)

    yellow = (255, 255, 0)

    # initialize pygame and create window

    pygame.init()

    pygame.mixer.init()

    screen = pygame.display.set_mode((width, height))

    pygame.display.set_caption("shmup")

    clock = pygame.time.Clock()

    class player(pygame.sprite.Sprite):

    def __init__(self):

    pygame.sprite.Sprite.__init__(self)

    self.image = pygame.Surface((50, 40))

    self.image.fill(green)

    self.rect = self.image.get_rect()

    self.rect.centerx = width/2

    self.rect.bottom = height - 10

    self.speedx = 0

    def update(self):

    self.speedx = 0

    keystate = pygame.key.get_pressed()

    if keystate[pygame.K_LEFT]:

    self.speedx = -5

    if keystate[pygame.K_RIGHT]:

    self.speedx = 5

    self.rect.x += self.speedx

    if self.rect.right > width:

    self.rect.right = width

    if self.rect.left < 0:

    self.rect.left = 0

    def shoot(self):

    bullet = Bullet(self.rect.centerx, self.rect.top)

    all_sprites.add(bullet)

    bullets.add(bullet)

    class Mob(pygame.sprite.Sprite):

    def __init__(self):

    pygame.sprite.Sprite.__init__(self)

    self.image = pygame.Surface((30, 40))

    self.image.fill(red)

    self.rect = self.image.get_rect()

    self.rect.x = random.randrange(width - self.rect.width)

    self.rect.y = random.randrange(-100, -40)

    self.speedy = random.randrange(1, 8)

    self.speedx = random.randrange(-3, 3)

    def update(self):

    self.rect.x += self.speedx

    self.rect.y += self.speedy

    if self.rect.top > height + 10 or self.rect.left < -25 or self.rect.right > width + 20:

    self.rect.x = random.randrange(width - self.rect.width)

    self.rect.y = random.randrange(-100, -40)

    self.speedy = random.randrange(1, 8)

    class Bullet(pygame.sprite.Sprite):

    def __init__(self, x, y):

    pygame.sprite.Sprite.__init__(self)

    self.image = pygame.Surface((10, 20))

    self.image.fill(yellow)

    self.rect = self.image.get_rect()

    self.rect.bottom = y

    self.rect.centerx = x

    self.speedy = -10

    def update(self):

    self.rect.y += self.speedy

    # kill if it moves off the top of the screen

    if self.rect.bottom < 0:

    self.kill()

    #load all game graphics

    background = pygame.image.load(path.join(img_dir, "starfield.png")).convert()

    background_rect = background.get_rect

    all_sprites = pygame.sprite.Group()

    mobs = pygame.sprite.Group()

    bullets = pygame.sprite.Group()

    player = player()

    all_sprites.add(player)

    for i in range(8):

    m = Mob()

    all_sprites.add(m)

    mobs.add(m)

    #game loop

    running = True

    while running:

    #kepp loop running at the right speed

    clock.tick(FPS)

    #process input(events)

    for event in pygame.event.get():

    #check for closing window

    if event.type == pygame.QUIT:

    running = False

    elif event.type == pygame.KEYDOWN:

    if event.key == pygame.K_SPACE:

    player.shoot()

    #update

    all_sprites.update()

    # check if a bullet hit a mob

    hits = pygame.sprite.groupcollide(mobs, bullets, True, True)

    for hit in hits:

    m = Mob()

    all_sprites.add(m)

    mobs.add(m)

    # check to see if a mob hit the player

    hits = pygame.sprite.spritecollide(player, mobs, False)

    if hits:

    running = False

    #draw / render

    screen.fill(black)

    screen.blit(background, background_rect)

    all_sprites.draw(screen)

    #afrer drawing everything, flip the display

    pygame.display.flip()

    pygame.quit()

    and heres the error:

    Traceback (most recent call last):

    File "C:\pygame shmup\game.py", line 97, in <module>

    background = pygame.image.load(path.join(img_dir, "starfield.png")).convert()

    pygame.error: Couldn't open C:\pygame shmup\img\starfield.png

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

    Need help looking for Java Project website

    Posted: 24 Sep 2020 08:46 PM PDT

    Is there a site that gives you java projects to do with tutorials? And by tutorials i dont mean telling you what to do step by step. Sorta of like something that pushes you in the right direction if that makes sense.

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

    C function to swap n columns in a 2d array by the first listed column

    Posted: 25 Sep 2020 12:29 AM PDT

    I am working on the question from this previous post: https://www.reddit.com/r/learnprogramming/comments/ize7pr/c_having_trouble_understanding_question_about/

    I need to use insertion sort to sort n columns in a csv table array using the first column as key (swap an entire row of values every time i need to swap values on the first column)

    /* D = the 2d array, dr = number of rows, ccols[] = columns that need to be sorted, int nccols = no. of columns that need to be sorted */ void ins_sort(csv_t D, int dr, int ccols[], int nccols) { int i, j, c; c = ccols[0]; for (i=1; i<dr; i++) { for (j=i-1; j>=0 && D[j+1][c]<D[j][c]; j--) { row_swap(D, ccols, nccols, i); } } } void row_swap (csv_t D, int ccols[], int nccols, int row) { int i, c; for (i=0; i<nccols; i++){ c = ccols[i]; double temp=D[row-1][c]; D[row-1][c] = D[row][c]; D[row][c] = temp; } } 

    https://i.stack.imgur.com/hkO7H.png

    My code works correctly up until that red line and Im not sure what went wrong

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

    Time Counter Custom Widget in Odoo using JavaScript

    Posted: 25 Sep 2020 12:22 AM PDT

    I have created count down widget in odoo by using java script.

    submitted by /u/ali-nawaz14
    [link] [comments]

    Need Help with Validation using Regex in JavaScript

    Posted: 25 Sep 2020 12:19 AM PDT

    Hello All,

    I want to allow only business email addresses in the address field of my app's registration form/login form and avoid email addresses that contain gmail.com,outlook.com,hotmail.com,aol.com,yahoo.com etc sort of emails, So how should the regex be for this purpose??

    Thanks.

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

    Audio is causing error...

    Posted: 25 Sep 2020 12:15 AM PDT

    Hello I'm trying to send this to my friend and have a song play but its giving me this error....

    'BOOL PlaySoundW(LPCWSTR,HMODULE,DWORD)': cannot convert argument 1 from 'const char [21]' to 'LPCWSTR'

    This is my code and I do have the audio in the correct file:

    https://gyazo.com/9bf9f5107f9e84f22c8ce413417329e6
    https://gyazo.com/ad00e86fb78049fdf06cfab408f1a00a

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

    Programming Capabilities with Echo/Alexa?

    Posted: 24 Sep 2020 08:25 PM PDT

    Is it possible to program your Echo/Alexa to make a noise alert whenever you get a specific email or say someone you follow tweets? Any recommended resources/tutorials to get started with? Thank you

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

    What Data Science course to choose?

    Posted: 25 Sep 2020 12:10 AM PDT

    Hello,

    I've been trying to get into Data Science for a while, I have a Degree in Psychology and an MSc in Neuropsychology and I'm interested in pursuing a neuroinformatics or computational neuroscience PhD and I would like to find a course to prepare and gain further knowledge on the subject.

    I have previously tried the Andrew Ng Machine Learning course but it seem too advanced for me.

    After some research i found the IBM and John Hopkins Data Science courses in Coursera and the Python A-Z in Udemy but I don't know which one would be the right fit for me.

    What is your opinion guys?

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

    Need some advice/guiding

    Posted: 25 Sep 2020 12:07 AM PDT

    Hello! I have to make an application for university and I have decided to make an app for learning a foreign language. I have just talked with a teacher, and she asked me what kind of algorithm and programming technique do I want to use. I didn't know what to respond, so I want to ask this here: what should I use for this type of app? She said an option could be natural language processing. In the end, I have to look it up online and find more options and see which is better.

    Could anyone with more experience tell me what other options would be? Or maybe tell me where I can read more about this?

    Thank you in advance!

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

    Second UG Degree (Programming and Data Science, Online) Simultaneously with a regular Mechanical Engineering UG Degree OR self learn CS!

    Posted: 24 Sep 2020 11:27 PM PDT

    Hi r/learnprogramming!

    So I am a 2nd year undergrad pursuing Mechanical Engineering from a very good university (in India). I wanted to get in CS but couldn't.

    Recently the best university in the country launched an online BSc in Programming and Data Science, which can be pursued along with a regular degree.

    This gives me 2 options:

    1. I do the BSc with my Mechanical degree and get little to no time for personal projects and even extra curriculars. Both degrees together would demad 100+ hours per week. And the online degree may restrict internships as it has a continuous trimester system without any breaks. If I do an internship, I may be pushing my graduation by 3 to 6 months.

    2. I self learn CS with my Mechanical degree and do a lot of personal projects, CS internships and extra curriculars. And try to get a Masters in CS from a top CS university. Here I can do internships in summer and manage remote work during college.

    I would really appreciate all kinds of tips and advices.

    Thank you!

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

    I want to get into this programming/coding field mostly as a hobby i know a bit of c++ and that's it, which language is widely used and which do you recommend.

    Posted: 24 Sep 2020 11:18 PM PDT

    I had a good time with c++ when I was in school, I don't have an end goal yet all what I want to have fun at the moment. I see people on YouTube making games and AI and cool stuff, I want a piece of that.

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

    What's the easiest way to create a GUI, with no programming experience?

    Posted: 24 Sep 2020 11:04 PM PDT

    I'm trying to make a GUI for my media player application, basically a media center, or XBMC-clone. Just needs to be a floating selector, controllable by keyboard/mouse, similar to XBMC. When I interact with the GUI, I want it to execute the different functions of my application, which is a series of basic python scripts and API calls for the moment.

    The rest of the application is already working for the most part, just needs a proper GUI frontend.

    I've looked at Electron, React, and WPF forms, and it seems way too complicated for me. I can barely figure out how to install the stuff, really.

    • In the old days, I used to drag & drop stuff in Visual Basic Studio. That was good.
    • I can a build web-page in HTML by hand, that's no problem.
    submitted by /u/thro_a_wey
    [link] [comments]

    (C) Having trouble understanding question about sorting 2d arrays

    Posted: 24 Sep 2020 11:02 PM PDT

    Has anyone ever come across a question like this?

    I was asked to: "sort a 2d array (csv table format) by column using the first column as the primary key (?). And if you get ties in the first column, those rows that are tied need to be sorted by the second listed column.

    sample input/ output:

     20.0 1.0 2.0 10.0 18.0 2.0 4.0 9.0 16.0 3.0 6.0 8.0 14.0 4.0 8.0 7.0 12.0 5.0 10.0 6.0 10.0 6.0 12.0 5.0 8.0 7.0 14.0 4.0 6.0 8.0 16.0 3.0 4.0 9.0 18.0 2.0 2.0 10.0 20.0 1.0 

    I have managed sort each column using insertion sort but the output looks different as I haven't managed to implement the sort using the first column as the primary key. What does this mean exactly? Should I swap values on the second column every time I do so on the first column? I am also not sure how to handle ties.

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

    What is randomness?

    Posted: 24 Sep 2020 04:50 PM PDT

    I was just wondering, since randomness is random : how do you program randomness; if it is indeed? Now, my interest here is purely philosophical, I'm not looking for an in-depth technical answer, but rather to understand the general idea, if not the lexical scheme (or "scam"??) behind it.

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

    How difficult would it be to learn SQL/Python/Excel?

    Posted: 24 Sep 2020 09:23 AM PDT

    I'm a first semester Computer Science student who's currently enrolled in a Java course I'm doing very well in. I need a job to help pay for my expenses, and there's a student position for a data specialist who uses Python and SQL as well as spreadsheets to enter and retrieve data. If I have minimal experience with all three categories, could I learn them pretty quickly? The pay is amazing.

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

    No comments:

    Post a Comment