• Breaking News

    Saturday, November 23, 2019

    What have you been working on recently? [November 23, 2019] learn programming

    learn programming

    What have you been working on recently? [November 23, 2019] learn programming


    What have you been working on recently? [November 23, 2019]

    Posted: 23 Nov 2019 08:04 AM PST

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Just found out a very usefull way to learn code.

    Posted: 23 Nov 2019 11:46 AM PST

    I wanted to make a simple google home page but dont know css and only know the basics of html. I went to codepen and found a Google homepage made in html and css. I removed individual bits of code and compared the difference.

    This helped me realise how each piece of code works. Before i even watch a tutorial this gives me a basic idea of how some css works. It makes learning so much easier when you try figuring it out first.

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

    How did you learn Algorithm and Data Structure? any suggestions where to start?

    Posted: 23 Nov 2019 02:31 PM PST

    I am working with web development using Spring Boot (Java) and I see how essential it is to learn Algorithm and Data Structure, but I am looking for good resources to learn them.

    How did you learn Alogirhtm and Data Structure? Courses? Tutorials? Is it free or paid? Resources How to learn and how to get started?

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

    Stuck in Middle: Give up Python and Jump into JavaScript (Web Development) for Quickest Job Prospect?

    Posted: 23 Nov 2019 05:15 AM PST

    edit2: Thank you everyone for your time and input! My biggest takeaway is really start looking for what's most available in my area. Thanks again!

    edit: format

    Hope everyone is doing well!

    Long story short:

    - About to graduate with a non-CS degree in 6 months. Desperate to get into IT-related field.

    -Been learning Python for 8 months (pseudo-beginner before)

    - Python level examples: Simple GUI that connects to local DB and web DB through API and some OS scripts for automation

    - Basic HTML and CSS and JavaScript

    Given my understanding, web development has the most job available, right? I'm familiar with basic JavaScript syntax (after all it's very similar to Python's)

    I've been studying data structures and algorithms (through the book "Data Structures and Algorithms in Python") and I'm progressing very slowly.

    Given my highly-restricted time-frame of 6 months, is it wiser to "abandon Python temporarily" (basically computer science) and fully focus on MEAN stack (after basic vanilla JavaScript+HTML+CSS)?

    I've nothing to "show for" from studying computer science but "I can make websites" is way more employable, right? I've no preference for fields and job prospect is more important. Not necessarily salary-wise but for breaking into IT-field.

    Any input is much appreciated! Thank you and happy programming!

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

    mechanical engineer who wants to start programming

    Posted: 23 Nov 2019 04:26 PM PST

    Hey guys,

    as the title says, I'm an engineer who wants to learn programming, at best a language I can use in my job and/or that's quite universal (I heard that applies for Java or C). Which language would be best for me?

    Additionaly (and that's the "tricky" part), I feel like I'm quite a dunce when it comes to programming (I've seen if's, for's and while's, and only got the rudimentary knowledge how they work), so I'd need like an eli5 book/webinar/youtube channel. And since I'm german it would be nice if the "manual" was in german (but I've got almost no problems reading english, so that'd be the icing on the cake)

    Thank you

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

    First job offer - Bootcamp grad

    Posted: 23 Nov 2019 01:47 AM PST

    By the numbers: 3 applications, 1 rejection, 1 offer

    Company 1 sent a rejection immediately saying the position was filled. Company 2 was FAANG. I was between rounds 2 and 3 at FAANG and they said this time of year I should expect 3-8 more weeks from that point in the process if I got an offer. I withdrew my application at FAANG and accepted the offer at Company 3, which was solid at about $2,500 above the average starting salary for a software engineer in this market.

    I graduated 11/6. Start date is 12/2. First contact to offer took 22 days. Stack is Java, C++, and Python.

    The interview process was a take home challenge (building a basic API and demonstrating some basic OOP concepts) and then an on-site interview (behavioral and technical, no whiteboarding).

    I had two whiteboard problems with FAANG. Both pretty straightforward solutions. The questions seemed poorly phrased, though maybe that was intentional to see what I would ask for clarification.

    If I could do it over, I'd focus a lot less on whiteboard practice and instead focus on the behavioral interview process and salary negotiation. The offer was the high end of my expected range, so I didn't know how to approach asking for more and ended up not negotiating. In hindsight that was a mistake, probably left $5k/yr on the table, which could have been a car payment.

    I'd say the most important part of the process is just getting someone to contact you for an interview. If your resume sucks, you're going to get a call on <10% of your applications (I saw this a lot with some classmates).

    I used Creddle.io to make my resume with a standard template (the better for parsing) and CV Compiler for feedback on what to add/remove/etc.

    I didn't have any contacts, but I did take care to write a cover letter demonstrating background research on the company missions and interest in what they do (except FAANG--I don't think they accepted a cover letter)

    Anyway, overall summary: leetcode practice was virtually useless. I have an active Github account with >50 repos and lots of recent commits. I made a basic portfolio showing off a couple recent projects that are deployed. I'm not sure if any of these were a factor or even looked at, or if the decision was mainly just based on the take home challenge.

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

    I'm having some issues solving this problem can I have some help?

    Posted: 23 Nov 2019 08:15 PM PST

    Determine the total number of additions performed during the execution of this algorithm in terms of the input n. Use this to give a big-O estimate of its "additive complexity."

    procedure zipp(n: a positive integer)

    a := 0

    b := 0

    c := 0

    while (a < n)

    {

    a := a + 2

    b := 1

    while (b <=a)

    {

    c := a + b + c

    b := b + 1

    }

    }

    return c

    submitted by /u/Jaded-Efficiency
    [link] [comments]

    do you use the Feynman technique aka writing down notes so a 5-year-old can understand?

    Posted: 23 Nov 2019 08:30 AM PST

    i know Feynman technique is one of the greatest technique for learning and i even got advised by some people here to write down notes so a 5-year-old can understand, but i am finding problem with that because the Feynman technique makes you to not use any technical/ambiguous term so does this mean i always have to simplify what is a variable in every topic ? because obviously a 5-year-old won't know what a variable is, or how do you explain sentences that contain so many programming terms like null, interface, map, tables, etc ?

    if you use the Feynman technique then can you please tell me how will you simplify the following so a 5-year-old can understand:

    Hash table based implementation of the Map interface. This implementation provides all of the optional map operations, and permits null values and the null key. (The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.) This class makes no guarantees as to the order of the map; in particular, it does not guarantee that the order will remain constant over time.

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

    Is it better to understand concepts to a 'T' or just to get a basic understanding and then move onto something different.

    Posted: 23 Nov 2019 04:34 PM PST

    I have been reading How To Automate The Boring Stuff with Python for at least a few months, where I will sit with 3-5 pages and work on it for an hour or so. I know I am supposed to fully understand material, but I feel like I've been stuck on this book forever. There is so much more material I am missing out on.

    Should I just be getting a general idea of how a system works and then move on to the next thing, or do I need to understand and know what I am learning to it's core, in and out. In the real world, I am sure I can just Google an answer if I really need to know the fine details.

    I am using a lot of energy, but I don't seem to have come very far.

    submitted by /u/16o1denRatio
    [link] [comments]

    First Python Project: Issues with using Telegram Bot API- Cannot get a second command handler working

    Posted: 23 Nov 2019 07:41 PM PST

    Hi LearnProgramming,

    I am trying to get my first python project done. It is a webscrape script that compares two fields for gas prices and returns with information depending on the values. I'm trying to integrate it into Telegram so entering a command into the app will trigger it. My code repo is here. I am also following the example from the package here
    Problem Description: I have two commands set up in functions called start and gasme. Start is just a general simple function to test how to get the bot to reply. gas me actually has the code comparison to scrape the data, compare and spit out a string reporting on the results. I have confirmed the gasme function works if I try to just run it in the main function.

    Issue: Since I confirmed the function works, I want the function to run when typing /gasme in the telegram app triggering the gasme function. I keep getting the error shown here

    Attempts: I looked up TypeError and see it triggers when unknown function/operation is applied to inappropriate type. Specifically, the error says it is passing two variables, when 0 are accepted. However, I'm not even passing any arguements into the gasme function. I've tried adding the arguments update,context similar to the start function but that doesn't work either, nor does it make sense. So I'm really not sure where it's coming from. It also seems to be calling a line outside of what I typed (maybe from the telegram bot api classes?).

    I hope someone here can help me get through my first project, any help would be greatly appreciated >_<

    Thank you for reading

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

    Is it safe to include sensitive data in the HTML of the response body?

    Posted: 23 Nov 2019 04:20 PM PST

    I'm building a JavaScript-free registration form for learning purposes. When the user clicks the 'Register' button, the form values get POSTed to the server where validation occurs. If the username/password fail validation, the user gets redirected back to the Registration page with the appropriate error messages explaining what to fix. In addition to the error messages, is it safe to pre-fill the username/password fields in the HTML response with the previously entered values that had failed validation?

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

    Creating a plan for learning new languages?

    Posted: 23 Nov 2019 09:33 PM PST

    I have been wanting to get into a lot lately. I am proficient in java, and now I wanted to start learning web development to start an e-commerce business and hopefully make enough money so I don't have to work a 9-5 job. For the past few months I've learned the basics of HTML, and CSS. Now I am still trying to learn more and more, and I don't know when I will hit that point to where I can move on. I also want to learn JS, PHP, Jquery, MySQL, and Python but if I can't move in from HTML and CSS I won't have enough time to learn all these as well. To get to the point, I am wondering what I should do, and what type of plan I should setup to learn full stack web development, and some machine learning. What type of books do you guys recommend and maybe online courses that are budget friendly? I sincerely thank you for your help in advanced.

    submitted by /u/metasploit-able
    [link] [comments]

    complete beginner

    Posted: 23 Nov 2019 11:16 PM PST

    Hi guys,

    I have no idea where to start, what programming language is the best ot start with or what I can do with coding. If anyone can educate me please feel free to give me guidance in the comments.

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

    ELI5: What type of information does a search session ID track/contain?

    Posted: 23 Nov 2019 11:06 PM PST

    I've seen search session IDs on a few different websites and I'm sure it's different from website to website but I'm curious as to what type of information these IDs will sometimes hold.

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

    Can I create an app using Google services?

    Posted: 23 Nov 2019 10:48 PM PST

    I just has an idea and wanted to know if its possible. Being a n00b, I am not sure if my idea is great or idiotic. I am looking for my idea validation, feasibility and outline of how to move forward.

    Problem: Keeping track of my ids and card and tracking its expiry. Printing them when needed to submit copy.

    Current Solution: I take a picture of my card using [MS Office Lens](https://www.microsoft.com/en-us/p/office-lens/9wzdncrfj3t8), upload it to Google Drive. Write down the ID No., expiry date on Google Sheets, which I check periodically to check which are expiring. When I need to print it, I download it via my laptop and paste it in a document (front & back side by side and 3 cards in the same page to save paper.)

    The reason I am not using onenote is because, despite take a good quality picture. Its saves the file in low res and its not very clear & not ideal for printing.

    My Idea: Take picture with office lens. Then the app (webapp for now, later a hybrid mobile app) will take the picture and save it to Google drive. OCR to get the expiry dates & id no. and I can edit if OCR is not accurate. Save that data to the Google sheets and create a reminder in Google Calendar. When needed for printing, I just select the files and it will organise it properly and give me in pdf which I can whatsapp or email for printing. Also haave the option to save all the data (pictures, csv of google sheet data) offline if needed.

    The reason I choose to use existing services is because, I just wanted to automate the part I do. Plus I am hoping that my cost for hosting the app will be less.

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

    How do I format the accessors and mutators in this Hero and Monster problem?

    Posted: 23 Nov 2019 10:45 PM PST

    Pls help me. I'm struggling with how to implement the change in health into the respective Monster and Hero. I'm only supposed to modify character.cpp. get_name is supposed to get the character's name while get_health and set_health are supposed to get the health of the character, but how do I implement the difference between the Hero and Monster and the changes to their health in these variables?

    main.cpp:

    #include "Character.h" using namespace std; int main() { int monster_health = 10; int monster_damage = 3; srand(time(0)); //This is the character you play Character C("Hero"); // This is the monster you try to defeat, the monster has 0 arrow Character M("Monster", monster_health, monster_damage, 0); while (M.get_health() > 0 && C.get_health() > 0) { M.attack(C); cout << "----------------------\n"; if (C.get_health() <= 0) break; C.display(); cout << "What do you do? 1 attack, 2 fire arrow, Q exit: "; int choice; cin >> choice; if (cin.fail()) break; switch (choice) { case 1: C.attack(M); break; case 2: C.rangedAttack(M); break; } } if (M.get_health() <= 0) cout << "Congratulations! You killed the monster!" << endl; if (C.get_health() <= 0) cout << "You have died! GAME OVER! " << endl; cout << "Thanks for playing!" << endl; return 0; } 

    Character.h:

    //Character.h #ifndef Character_h #define Character_h #include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; class Character { public: Character(string newName); Character(string newName, int newHealth, int newDamage, int newArrows); void attack(Character& target); void rangedAttack(Character& target); void set_health(int newHealth); int get_health() const; string get_name() const; void display() const; private: string name; int health; int damage; int arrows; }; 
    

    No comments:

    Post a Comment