• Breaking News

    Thursday, June 25, 2020

    After years of Bad grades, mental health issues and lack of motivation, I'm drowning in job offers for the first time in my life. THIS IS AWESOME! learn programming

    After years of Bad grades, mental health issues and lack of motivation, I'm drowning in job offers for the first time in my life. THIS IS AWESOME! learn programming


    After years of Bad grades, mental health issues and lack of motivation, I'm drowning in job offers for the first time in my life. THIS IS AWESOME!

    Posted: 24 Jun 2020 07:37 AM PDT

    Not sure if this is the right place to post this, but I need to share this with someone right now or I'm gonna explode :D

    For the past few years, I had a lot of doubts. My grades in uni sucked and I didn't do anything besides gaming, really. Well time went by and due to Corona my current job as a working job might not be guaranteed for the foreseeable future. I decided to start networking a little bit (writing applications and making use of my uni's carreer service) and before I even realized it I had to start turning down offers because I'm in the process of talking to a better employer every day.

    Everyone who has some sort of doubts (most notably impostor syndrome), look back at what you have learnt. Think about what was the most fun thing you did and write it all down. Force yourself to remember what it was like.

    Maybe my perspective is a little distorted because I'm on meds right now, but the last 2 weeks were some of the greatest in recent years. And that says a lot considering my gf of 2 years and I decided to break up last week.

    Edit: I'm seeing a lot of people that are in a dark spot are replying. Feel free to DM me if you need to talk/vent!

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

    I just wrote my first GUI python script with Tkinter, a sort of hello world app.

    Posted: 24 Jun 2020 08:32 PM PDT

    It's not that great, is not pythonic. This is just the first step towards writing a prototype app for the overarching goal that I am working towards. I need to learn a bit about security protocols. As this app takes two entry inputs and compares to an if statement. Before giving me a hello world type of output. I just want you guys to take a look at it. I still need to work towards making it more object oriented. With classes and what not, as my goal will work with two different type of lists as the meat of the app. But so far, I feel happy that it is functional.

    Well here it is...

    import tkinter as tk def deal_with_clear(): entry.delete(0, tk.END) entry_b.delete(0, tk.END) def deal_with_login(): if (name_entry == "Ris") and (pass_entry == "1234"): window.destroy() new_window() window = tk.Tk() window.title("Tamales LLC") frame_A = tk.Frame(master=window, width=20, height=10) frame_A.pack() frame_b = tk.Frame(master=window, width=20, height=10) frame_b.pack() label_a = tk.Label(master=frame_A, text="Tamales Garcia", width=20, height=1) label_a.pack() label_b = tk.Label(master=frame_A, text="Welcome please sign in:", relief=tk.GROOVE, borderwidth=1) label_b.pack() label_c = tk.Label(master=frame_b, text="name:", width=8, relief=tk.GROOVE, borderwidth=1) label_c.grid(row=0, column=0) entry = tk.Entry(master=frame_b, width=20, bg="pink", relief=tk.RAISED, borderwidth=2) entry.grid(row=0, column=1) name_entry = entry.get() label_d = tk.Label(master=frame_b, text="password:", relief=tk.GROOVE, borderwidth=1) label_d.grid(row=1, column=0) entry_b = tk.Entry(master=frame_b, width=20, bg="pink", relief=tk.RAISED, borderwidth=2) entry_b.grid(row=1, column=1) pass_entry = entry_b.get() button_a = tk.Button(master=frame_b, text="Log in", width=6, relief=tk.GROOVE, borderwidth=1, command=deal_with_login) button_a.grid(row=3, column=1) button_b = tk.Button(master=frame_b, text="Clear", width=6, relief=tk.GROOVE, borderwidth=1, command=deal_with_clear) button_b.grid(row=4, column=1) def new_window(): window_2 = tk.Tk() window_2.title("welcome") frame_x = tk.Frame(master=window_2) frame_x.pack() label_y = tk.Label(master=window_2, text="Hello Ris!", width=10, height=5) label_y.pack() window_2.mainloop() 
    submitted by /u/Lion_TheAssassin
    [link] [comments]

    How does any self taught programmer get their first job?

    Posted: 24 Jun 2020 08:18 PM PDT

    I am 30. I coded for a year in 2016 and then started again in august of 2019, bringing me to like 1.5-2 years total of pursuing programming as a career.

    And uh

    I'm not feeling optimistic about my chances anymore.

    What's it gonna take, another three or five years of teaching myself before I get a position for like $40k a year? Sure 40k is 20k better than what I can get right now but this was sold to me as if tech companies were beating down people's doors to get to talent and it's just not the case. Junior dev positions are 1 in 1,000 or worse in Canada.

    I see success stories posted here from time to time but these outcomes are starting to look less "inevitable" and more "outlandishly lucky"

    Am I looking at wrong sources for job postings? Should I throw money at a bootcamp? I can't really go back to university.

    Thanks all repliers

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

    I made a YouTube Tutorial Series on Coding Discord Bots with NodeJS

    Posted: 24 Jun 2020 11:13 PM PDT

    Hey learnprogramming,

    I wanted to take a moment to share something I released over the course of the previous month. I built a video series (and associated article series complete with GitHub repo examples) on how to build Discord bots with NodeJS. To follow along, you'll need a basic understanding of JavaScript, and that's about it.

    I start by building a simple Hello World bot and proceed to go over how to handle various forms of communication. I even demonstrate how to build a survey bot, store data with AWS DynamoDB, interact with the GitHub API, and deploy to AWS.

    This is the first time I've done this, so feedback is appreciated on how I can improve as well. I have several other video series' planned over the next few months but would love input about what content you'd like to see.

    Here is are the links to the content;

    YouTube Playlist: https://www.youtube.com/playlist?list=PLwpjN-4DtVRbaxSY_dM0Ag0Y5SG6-RLu-

    First Article in the Series: https://brianmorrison.me/blog/building-a-hello-world-discord-bot

    This is my way of giving back to the community. I'm a self-taught developer that has worked up to a senior level position all through research, studying, and practice. If I can do it, so can you.

    Please let me know if I can answer any questions. Looking forward to hanging out more on here.

    Mods: I read the rules and felt this was in line with the self promo section. If not, please let me know and I will make sure to update my post as needed. Thanks.

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

    Discouraged because of saturation

    Posted: 25 Jun 2020 12:24 AM PDT

    When young, I used to enjoy building sites with scripts and forums + add-ons, and fixing the bugs from all that installation and customisation. This made me study CS in uni. I didn't code much in uni as it was general CS. But now that I'm done, I want to fully dive into programming, but I feel discouraged. I don't have that flare anymore. Maybe because it's been years since I last assembled something with scripts, and I'm more recently focused on building from scratch, and it takes longer.

    When young, it was this new, rare thing, but now it seems like everyone is learning to code, and it feels less special. Everything just feels saturated. I've manage to pick the language I want from all the saturated languages and frameworks, but still. The entire field of web and app development seems like I'll be a droplet in an ocean.

    Cybersecurity and data science don't really call out to me like development. I'd only be interested in making my apps secure, and maybe developing security apps. It's pure development I'm interested in.

    I don't know maybe it's all in my head. Anyone else ever feel like the development field is too saturated?

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

    [Python][Java] How come this Python solution is slower than this Java solution? Is it possible to make them the same speed?

    Posted: 24 Jun 2020 08:19 PM PDT

    PYTHON (60ms):

    class Solution: def countBits(self, num): ones = [] ones.append(0) for i in range(1, num+1): ones.append(ones[i//2] + i % 2) return ones 

    JAVA (1ms):

    class Solution { public int[] countBits(int num) { int[] r = new int[num+1]; r[0] = 0; for (int i=1; i<num+1; i++){ r[i] = r[i/2] + i % 2; } return r; } } 

    The problem: https://leetcode.com/problems/counting-bits/

    My guess is that the append function in python is slower than using arr[i] for placing an item at a specific index in java. Is this correct thinking? if yes, then how do I replicate the use of arrays and indexes in Python? If no, then what causes the difference in speed?

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

    best ways to retain what you learn?

    Posted: 25 Jun 2020 12:31 AM PDT

    I'm currently learning Javascript and it is a WEALTH of information and learning. I got through the introduction easily and was able to retain the info and im still on the basic stuff but theres a lot to it. I just did a lesson on conditional statements and i got through it but dont feel like i retained all of it and feel i need to practice it right after the lesson. what are the best ways to practice certain syntax right after? is codewars the best way to do that? are there other sites where you can work on specific syntax?

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

    Harvard Cs50 Course starts today

    Posted: 24 Jun 2020 04:52 PM PDT

    Just wanted to remind yall

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

    Question from a total beginner

    Posted: 24 Jun 2020 11:10 PM PDT

    Hello, I want to ask you pros here about how you learn C from beginning to this day. May I know your courses in order since day 1? I'm new to this and I don't know what I should take first in case if I don't miss anything that I have to go back and learn it.

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

    I keep trying to start freecodecamp but my mind turns to haze and I cant focus

    Posted: 24 Jun 2020 05:29 PM PDT

    I really want to start getting into coding but every time I try and do freecodecamp my mind turns to haze or I watch the videos and cheat to get the answers. I do want to try and get into developing applications and move away from sales and marketing but I just can't seem to focus. Is there anything I can do?

    Currently unemployed at the start of the month and wonder if I would learn better in a classroom setting or a bootcamp. With covid currently ongoing I am not sure thats possible.

    Any suggestion is welcomed. I really do want to learn.

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

    Is software engineering for me?

    Posted: 24 Jun 2020 09:15 PM PDT

    Hey guys i just wanted to ask if software engineering is for me. I have been really torn between picking Physical therapy or software engineering. I know, pretty far from each other, but I like physical therapy because I want an active life, but I also want to be a software engineer. I don't know, but ever since i was 14 I always enjoyed tech related stuff. I know how to use Photoshop, Illustrator. I know how to assemble my own pc, and even tho I'm just starting to learn python I'm actually having fun. I just wanted to know if this career is for me.

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

    How to detect when the user imputs something other than a numeric value? In C

    Posted: 25 Jun 2020 12:37 AM PDT

    Hello everyone still new to programming currently working on my school work, the program i have will return a value for any numeric input of the user, but i cannot tell if the user enters something else. An example if the user enters a letter or special character it just causes the progrom to repeat its prinft statement multiple times. Any ideas on how i can figure this out? Thanks

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

    Why `===` makes tech people mad. The little post about Base64.

    Posted: 25 Jun 2020 12:37 AM PDT

    If you make web or some crypto related software, you should be familiar with Base64 encoding and base-* encodings family. Surely, they are widely used when the input expected to be a string-like or ASCII. Even this page contains an SVG image, embedded into this HTML page, as a Base64 encoded text. SSL certificate on your loved server stored as a PEM, as a DER encoded stream, encoded again with Base64 into a plain text file. You may own Bitcoin. The Bitcoin address is a Base52 encoded public key joined with few bytes of integrity checksum. Sent an e-mail with your grumpy selfie in front of display to grandma? Again. MIME7 multipart attachment in the e-mail is still "Base128" encoded.

    Every time you see some 'QPBN...aS70==' you notice '==' at the end, and you immediately have a clue how this message is encoded, don't you?

    An internal implementation of the Base64 encoding/decoding is very simple: just get 3 bytes of input as 24 bits and send these 24-bits as 4 bytes to the output using the comparison table, called an alphabet, that contains an exact mapping of input bits and output bits. Add "magic" padding symbol '='. Decoding back is like reversing a gear. You got the alphabet, you got the rule.

    While the Base64 is a part of the standard and it is specified in the related RFCs; while it is discussed thousands times on StackOverflow and forums; while it is powers the web for decades; while it is a simple mapping table; it is still rising the discussions.

    No wonder! The NPM (the package manager for NodeJS) contains more than thousand of packages somehow related to Base64 or mentioning it in the title.

    This fact and an enormous count of searches people ask Google every month, made me mad, and I decided to create the website dedicated to Base64 encoding/decoding.

    Dear reader and dear coder, welcome to try my Ultimate Base64 Encode And Decode Online Tool. I created this tool in a free time, while studying and implementing Base64 encoding/decoding myself and playing with web tech like WebWorkers or webpack tool for building assets. You may play with this thing or use it in your workflow, if you frequently encode/decode Base64.

    I regularly write new posts, and now I'm collecting Base64 encoding and decoding snippets. Can you share your code? Let's discuss Base64 beast in comments! When did you meet Base64 first time? What makes you crazy about encodings?

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

    My favourite story

    Posted: 25 Jun 2020 12:28 AM PDT

    Hello guys I am Rahul. Today I will tell u about my favourite story when I was a child. In my childhood I read a lot of story books and I still loving it. In my childhood I read a story about "A Monkey And The Crocodile ". So I am learning basics of programming now so I thought to put a html code about this story with simple html.i think you guys like it.

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width-device-width"> <title>My Favourite Story</title>

     <!--link to the style sheet--> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <!--heading of the story--> <marquee behavior="scroll" direction="right" scrollamount="12"><h1><center>The Monkey And The Crocodile</center></h1></marquee> <!--starting of story--> <div> <p>Once upon a time, a clever monkey lived in a tree that bore sweet Berries. He was very happy. One fine day, a crocodile swam up to that tree and told the monkey that he had traveled a long distance and was in search of food as he was very hungry. The kind monkey offered him some berries. The crocodile enjoyed them very much and asked the monkey whether he could come again for some more berries. The generous monkey happily agreed.The crocodile returned the next day. And the next. And the next one after that. Soon the two became very good friends. They discussed their lives, their friends and family, like all friends do. The crocodile told the monkey that he had a wife and that they lived on the other side of the river. So the kind monkey offered him some extra berries to take home to his wife. The crocodile's wife loved the berries and made her husband promise to get her some every day.Meanwhile, the friendship between the monkey and the crocodile deepened as they spent more and more time together. The crocodile's wife started getting jealous. She wanted to put an end to this friendship. So she pretended that she could not believe that her husband could be friends with a monkey. Her husband tried to convince her that he and the monkey shared a true friendship. The crocodile's wife thought to herself that if the monkey lived on a diet of berries, his flesh would be very sweet. So she asked the crocodile to invite the monkey to their house.The crocodile was not happy about this. He tried to make the excuse that it would be difficult to get the monkey across the river. But his wife was determined to eat the monkey's flesh. So she thought of a plan. One day, she pretended to be very ill and told the crocodile that the doctor said that she would only recover if she ate a monkey's heart. If her husband wanted to save her life, he must bring her his friend's heart.The crocodile was aghast. He was in a dilemma. On the one hand, he loved his friend. On the other, he could not possibly let his wife die. The crocodile's wife threatened him saying that if he did not get her the monkey's heart, she would surely die.</p> <p>So the crocodile went to the berries tree and invited the monkey to come home to meet his wife. He told the monkey that he could ride across the river on the crocodile's back. The monkey happily agreed. As they reached the middle of the river, the crocodile began to sink. The frightened monkey asked him why he was doing that. The crocodile explained that he would have to kill the monkey to save his wife's life. The clever monkey told him that he would gladly give up his heart to save the life of the crocodile's wife, but he had left his heart behind in the berry tree. He asked the crocodile to make haste and turn back so that the monkey could go get his heart from the berry tree.The silly crocodile quickly swam back to the rose apple tree. The monkey scampered up the tree to safety. He told the crocodile to tell his wicked wife that she had married the biggest fool in the world.</p> </div> <!--ending of story--> <!--starting of new div for youtube video using iframe--> <div> <center><iframe width="800" height="538" src="https://www.youtube.com/embed/IyC3cNiIAqQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></center> </div> <!--ending of video div--> <p id="Moral">Moral Of this story: <span>Don't underestimate yourself. There are bigger fools in this world.</span></p> <!--starting of footer--> <footer> <p id="by">:- A story by Rahul</p> </footer> <!--ending of footer--> </body> 

    </html>

    //Css codes body{ background: #161616; } h1{ color:#3DCFD3; }

    p{ color: white; font-size: 24px; font-weight:400; font-family: sans-serif; line-height: 1.46; }

    Moral{

    font-family: verdana; font-weight: 600; color: green; 

    } span{ color: white; font-family: verdana; font-weight: 600; }

    by{

    color:#3DCFD3; 

    }

    Pls tell me about mistakes if any.

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

    (WPF) USING Key . W instead of Key . Enter

    Posted: 25 Jun 2020 12:12 AM PDT

    I am currently using this to click a button when enter key is pressed and it works perfectly. if (e.Key == Key.Enter) { Btn.perfornclick(); }

    However I want to use "W" key instead of Enter

    Changing it to if (e.Key == Key.W) Doesn't work.

    Help please.

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

    How to better understand pointers in c++

    Posted: 24 Jun 2020 06:13 PM PDT

    I'm new to programming in c++ and I'm having trouble being familiar with pointers. Like I know what they are and why they are good.

    But when I look at other people's code they use pointers literally everywhere and it becomes too hard to follow. Is there an online tutorial or a book that shows pointers used in very scenario like in functions in whatnot and how can I get less confused when I see pointers and references.

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

    Actually improve how I think

    Posted: 25 Jun 2020 12:08 AM PDT

    Hi guys, I recently got in computer science school and it's been my dream for quite a long time. I studied web programming at 11 years old and basically stopped 4 years after and haven't done anything since. Anyway, alot of people at uni easily got a 3.96 gpa (with 4.0 being the maximum) and basically most people are above 3.5. I struggled however and barely managed to get 3.0 and I feel terrible and was considering switching majors tbh.

    I struggle mostly with the logic behind the code. I can understand codes when I read them, I know the language, I just can't seem to turn my tasks into codes. I always feel like my brain has been erased everytime I go to write a code and I'm failing my programming classes. Even the one time I asked my professor if he had any tips he told me he "was disappointed in me".

    Please has anyone actually managed to level up how they think? or have any tips? I tried going on hackerrank to solve some challenges but I only did the extremely easy ones and my mind went blank after.

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

    How do somthing.somthing.com sites work? (e.g. play.google.com)

    Posted: 25 Jun 2020 12:06 AM PDT

    I understand that when I'm visiting a website (e.g. google.com), my browser is reading the index.html, displaying it, and any other components the html file references such as images, css, or Javascript. I also understand that when your visiting a subpage of the main site (e.g google.com/maps), what you are looking at is literally a folder on the websites hosting service with its own index.html that has its own references.

    But how do things play.google.com work? I'm posting this in r/learnprogramming so clearly I'm a noob to this, but from my perspective, doesn't this defy how modern computers handle file structures? google.com/maps (for me at least) makes perfect sense when I can replicate it in my own file system (C:\Users\Username\Documents\googe.com\maps). But something like play.google.com, or music.youtube.com, or about.gitlab.com can't be replicated like that. And it makes even less sense to me to do thing like about.gitlab.com/install, which combines the 2 ways of doing it in a very strange way from my perspective. Yet I'm seeing it more (especially from companies like Google).

    Can some explain both the technical side of how somthing.somthing.com works compared to somthing.com/somthing? And why it's becoming more common place to see this? Especially form larger companies like Google?

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

    How can i learn web development from mobile?

    Posted: 25 Jun 2020 12:03 AM PDT

    So my laptop stopped working a few weeks ago and i can barely afford my rent so cannot buy a new one. I dropped out of school because of my mental health and after years when i finally decided to do something for myself this happened. And after thinking for days i just want to work with what i have so here i am. I don't want to be a disappointment to my parents so i want to work with what i have.

    I know basics of css and html. Right now I'm revising everything I studied. I downloaded 2 books of Jon Duckett (html , css and Js) and studying from there. But without practicing code I cannot study properly. I watched YouTube videos but I cannot see what the instructor is doing so it's not really that helpful.

    Are there any free apps or something so i can practically implement what I studied and know till now. Thank you and sorry if my English is hard to understand.

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

    i feel so stupid while learning algorithms

    Posted: 25 Jun 2020 12:03 AM PDT

    i am currently stuck on the first assignment (percolation) of the coursera princeton algorithms course. i've heard that this is the easiest algorithms course on the internet. i can't even solve the first homework. i feel like i am too over my head with this course.

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

    I want to learn more languages so I'll be able to read more code and find a solution more easily. Which languages would you recommend?

    Posted: 24 Jun 2020 11:32 PM PDT

    I've been learning Python for two years and also am teaching myself JavaScript this month. So, I guess Python will still be the main language I use in the future and I will be using JavaScript for web stuff. My interests are math, statistics, web scraping, database and making GUIs.

    I want to learn some more languages to be able to read more code examples. (My main goal is to read and understand code written in more languages but not necessarily to be able to use them.)

    Which languages would you recommend?

    Most pieces of code on StackOverflow are in Java and C++ but is Java falling in popularity? Still worth learning? As for C++, it seems to be too low-level for the tasks I mentioned. I also feel that the learning curve is quite steep... I also heard of C# but I don't really know the difference.

    R is certainly a good language for math and statistics but there seems to be not too many resources, I think.

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

    I posted earlier my first run at designing a GUI app through Tkinter, I kept most of that code, but I added a Classes.py file and went in a more OOP style for the second page. What you guys think?

    Posted: 24 Jun 2020 11:28 PM PDT

    So this is a prototype of a prototype. I will keep working on my page two. Anyway, I want to know if I did an ok job with it. I do have a question or two. I want to have a fully secure user authentication system. Maybe create a way to store an access key, (with a couple user names and passwords stored in the hardware memory) the app I'm working on will not have sensitive details. It's mostly a task tracking app, and maybe a daily income tracker.

    and also I'm not sure how to close one window before opening the next. Anyway Here is a link to my GitHub

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

    I want to make a bit that plays browser games

    Posted: 24 Jun 2020 11:25 PM PDT

    Hi, I want to start to work on a bot that plays a online game I want to use c but other than that I don't know where to start and what I need to know or what I need to still learn can someone point me in the right direction to start this project of mine?

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

    C# Beginner Bootcamp Hell Homework - Need some tips - Emergency

    Posted: 24 Jun 2020 11:25 PM PDT

    Hello. I apologize for the melodrama. I am a student at a coding bootcamp (mistake No.1, LOL) and am trying to complete a "Manager" program assignment. It is very basic with minimal requirements. I managed to get a successful build in VS but the code never actually ran. I made some adjustments and finally got the initial menu prompt but am still having issues. As someone who has never taken a computer science class in there life, I find it very frustrating that I keep getting cryptic comments back from my teacher and teaching assistant to work on "program flow" or to simply try again. With a pass/fail deadline approaching I am running out of options as well as time to keep researching and teaching myself.

    I feel like I have the basic vocabulary to a new language but am missing the grammar lessons to create an eloquent paragraph. If anyone would be willing to glance at my code projects and give me some best practices on style and the "why" behind why you may choose one solution over another, I would be extremely grateful. Honestly, looking to develop a network of people I can connect with in the software development world.

    I linked my Github. Please check all of the Steak Manager files. THANK YOU in advance.

    https://github.com/vkwithluv/ReposSG

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

    No comments:

    Post a Comment