• Breaking News

    Tuesday, January 7, 2020

    I got 2000+ upvotes and 400+ comments on my idea so there's no way back: I'll make the live streaming Python course just for you guys! learn programming

    I got 2000+ upvotes and 400+ comments on my idea so there's no way back: I'll make the live streaming Python course just for you guys! learn programming


    I got 2000+ upvotes and 400+ comments on my idea so there's no way back: I'll make the live streaming Python course just for you guys!

    Posted: 06 Jan 2020 11:49 AM PST

    TLDR; please subscribe if you would like to join: https://www.youtube.com/channel/UCuiHDgG-Vzkg4wbaCe9nczQ

    It all started with this post: https://www.reddit.com/r/learnprogramming/comments/ejefqw/im_thinking_about_running_a_python_course_for/

    I have never ever posted a video online, I'm an introvert but now it's almost a moral obligation to make this channel if there's such a high demand.

    My vision is to have a course for absolute beginners that's formed by the community, I want to interact with you. If you watch a course on e.g. Udemy or subscribe for a channel that already uploaded all the lessons -> that's static material, there's no feedback from you. It would be way more powerful to make these sessions with you, answer your questions in real-time and guide you to improve yourselves session by session.

    I'll set up a small website where you can sign in and I'll give you homework/challenges. You will get some input data and a task and you have to produce an output. The site will automatically check your results. Based on how all of you do these challenges I'll know your weaknesses and we can work on them.

    I would like to teach you JavaScript as well. Python is awesome but creating command line applications are not so exciting (it can be!) so it would be better to create interactive web applications with Python Flask back-end. That's powerful!

    Furthermore working 10+ years at large companies in challenging environments I would also give you "I wish I knew it before" career advice. (I worked myself up from a small city in Hungary to the City of London where I work as a data engineer/developer/consultant at one of the largest companies globally.)

    I'll upload a video later with more details on the course but I'm still waiting for the camera tripod and the microphone.

    Below you can find the link for my channel, please subscribe if you would like to join the course:https://www.youtube.com/channel/UCuiHDgG-Vzkg4wbaCe9nczQ

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

    Minimum moves to solve 15 puzzle (with varying sizes)

    Posted: 06 Jan 2020 11:29 PM PST

    The 15 puzzle is given as so:

    You are given a 2d array of size between 2x2 and 5x5, or any combination in between (3x4 is allowed, 2x5 is allowed, etc). The array is filled with all numbers from 0 to MxN - 1, where MxN is the size of the array. These numbers are unsorted.

    Find the minimum number of moves to sort the array, where a move is defined as swapping 0 with any number up, down, right, or left of it, if the array were to be laid out as a grid. (Imagine 0 is the empty tile, if it helps). If it is impossible, return -1.

    If my description still doesn't make sense, here is a link to the 15 puzzle: link

    This question absolutely stumped me in an internship coding challenge. Hardest question I've ever seen in a challenge like this. Got 3/10 of the test cases, and only because I could see them.

    What do you guys think, leetcode hard?

    Please post your solutions.

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

    I analyzed the text of 100 job listings from Apple, Google, Facebook, and Microsoft, to show total newbs what these companies ACTUALLY WANT versus all the hype.

    Posted: 06 Jan 2020 05:22 PM PST

    https://databasic.io/en/wordcounter/results/5e13d700a8de6104dfb273b4

    I am totally new to looking into getting into the software engineering field. I started looking for info in Google searches and on Reddit and YouTube. But it's hard to separate the hype for various trends, and people trying to promote their products, from what's actually significant.

    So I looked at bunch of SWE job listings at big companies, ran the text of all of their "requirements" and "qualifications" sections through a word counter, and deleted all the fluff words (experience, ability, demonstrated, etc).

    Here's what I found:

    1. You don't need a degree at ANY of these places. But it's preferred and is a substitute in many cases for industry experience. Without a degree you must have 2-3+ years of experience as a software engineer employed by a company. Or, least wanted is someone who has significant personal projects (I assume these are complex, profit-generating ventures).
    2. The word cloud shows "C", but it's specifically C++ which is BY FAR the most sought after language. Next are C# and Objective-C. Next is Java. Last, not far behind Java, is Python. To be clear, the majority of these listings said something like "Experience in one or more of C++/C#/Java", and then a lot of them also included Python.
    3. For anything web-dev related it seems like being a full stack developer was below the bare minimum requirement. They also expect a few years of industry experience and you'd probably gain the random other requisite skills during that period.
    4. There were not a lot of web dev positions.
    5. It seemed like they were perfectly content to hire generalists, although they would prefer specialists in the particular position they're hiring for.

    My conclusions, as someone going into this process:

    1. Learn C++. If you end up learning a second language it should be Java, but Python isn't a bad option.
    2. Focus on the fundamentals of data structures, algorithms, and distributed systems (whatever that is).
    3. Work on open source projects for experience until you get your first job. FB in particular mentioned preference for open source experience in most of their listings. IMO these are the types of "personal projects" that would be perceived as tangible and significant (versus some random barebones instagram clone or whatever).
    4. Once you get your entry level non-FANG job, still bust your ass learning all the core stuff in your off-time for about 2-3 years.
    5. At this point you should be qualified to apply at FANG companies. All that matters now is that you're actually competent, smart enough to nail the coding interview, and reasonably sociable.
    submitted by /u/EzekielGoldman
    [link] [comments]

    Bundle for sale

    Posted: 07 Jan 2020 12:24 AM PST

    Hi all not sure if this is the place to ask or post this but I saw this bundle on sale for only $40 and was wondering if it was worth it to pay for.

    Im a newbie looking to get into programming and saw all these courses. I just dont want to waste money

    https://store.nypost.com/sales/the-2020-premium-learn-to-code-certification-bundle?utm_source=nypost.com&utm_medium=referral&utm_campaign=the-premium-learn-to-code-certification-bundle-2020&utm_term=scsf-344816&utm_content=a0x1P000004Mo3t&scsonar=1&_ga=2.125756744.392616607.1578377358-3159603.1578377358

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

    5+ years experience and I feel stupid

    Posted: 06 Jan 2020 12:02 PM PST

    Hey guys

    Like the title says I have 5+ years of development experience and feel stupid when it comes to doing hacker rank and code wars.

    What can I do to better myself?

    The reason I am asking the things that are asked I never encountered those types of situations in my career.

    Anyone else experience this?

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

    [React] Why does my first state not update until after one submit

    Posted: 06 Jan 2020 08:58 PM PST

    Hi, I've been working on FullstackOpen and my code is working but I'm just wondering how to render the useState during the first event handler. After I submit my form to 'add a user to phonebook.' My useState 'setID(persons.id)' will trigger as '0' on my first event handler. I'm guessing that it performs asynchronous (from googling) so I would have to find a way to trigger it so that the state updates at the same time but I'm kind of lost on how to do so.

    It works after the first event handler but I know this is not the right way to use useState. What should I change so that id is changed before my first submit? Thanks

    const [id, setID] = useState(0) const addName = (event) => {

    var exists = falseevent.preventDefault()persons.forEach((persons) => persons.name === newName ? (exists = true,setID(persons.id) ): null)

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

    Just finished my first program in Python. Would really appreciate a code review

    Posted: 06 Jan 2020 04:28 PM PST

    Hello everyone! I've been enthusiastically learning programming/python and I just got done writing my first program that's not just "Hello World!". It's a simple program that tracks the ISS in real time using an API. It then stores the coordinates into a SQLite database along with a timestamp. It also shows who is on board and on the craft. It runs and it does everything that I intended it to do but I just can't help but shake the feeling that I'm not doing something right or that I could be doing something better. Is this a normal feeling after completing a project?

    Anyway, I would love to hear what you all think. Thanks!

    import json import requests import sqlite3 import time # Track the ISS in real time and log the coordinates to the database def track_iss(): iss_location = requests.get("http://api.open-notify.org/iss-now.json") iss_json = iss_location.json() coordinates = iss_json["iss_position"] timestamp = iss_json["timestamp"] print("The ISS is currently at Latitude:", coordinates["latitude"], "and Longitude:", coordinates["longitude"], "Timestamp:", time.ctime(timestamp)) log_to_db() # Save to Database def log_to_db(): iss_location = requests.get("http://api.open-notify.org/iss-now.json") iss_json = iss_location.json() coordinates = iss_json["iss_position"] timestamp = iss_json["timestamp"] dbConnect = sqlite3.connect("ISS.db") c = dbConnect.cursor() c.execute("CREATE TABLE IF NOT EXISTS iss_position (timestamp text, latitude int, longitude int)") values = [(timestamp), (coordinates["latitude"]), (coordinates["longitude"])] c.execute("INSERT INTO iss_position (timestamp, latitude, longitude) VALUES (?, ?, ?)", values) dbConnect.commit() print("Saving to database...") dbConnect.close() print("Done") # Check who and how many are on board and print to screen def astronauts(): astronauts = requests.get("http://api.open-notify.org/astros.json") astronauts_json = astronauts.json() print("There are currently", astronauts_json["number"], "people on board the ISS. They are...") for astronaut in astronauts_json["people"]: print("Astronaut", astronaut["name"], "who is on board the", astronaut["craft"]) # Check if API service is up, don't proceed if it's not. def api_service_check(): open_notify_api = requests.get("http://api.open-notify.org") if open_notify_api.status_code != 200: print("Looks like the API service is down. Please try again later.") exit() else: astronauts() api_service_check() # Start tracking the ISS print("\nStarting tracking, press 'Ctrl + C' to stop...\n") try: while True: track_iss() time.sleep(5) except KeyboardInterrupt: print("Stopping tracking.\nThanks for using!") exit() 

    The API is generously provided by the Open Notify project.

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

    What do i need to learn

    Posted: 07 Jan 2020 01:23 AM PST

    So im bored and i wanna make dumb things. If i theoretically wanted to make a clock that offsets itself by a random ammount of time everyday, what do i need to learn to do so. Dw about why i need it.thanks for the help friens :))

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

    ODIN PROJECT VS FREE CODE CAMP

    Posted: 07 Jan 2020 01:13 AM PST

    which one and should you do CS50 first

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

    question about logical operators

    Posted: 07 Jan 2020 12:42 AM PST

    hello i'm studying k.n.k c programming i have a question about logical operators

    i = 7, j = 8, k = 9;

    printf("%d ", (i = j) || (j = k)); printf("%d %d %d", i, j, k); 

    i thought answer was 0789 because first 0 or 0 is 0 but answer was 1889 where these came from?
    i dont know why first was 1 and why 1 added to second i

    submitted by /u/Connect-Pianist
    [link] [comments]

    hey guys im a complete beginner to C# and im getting the error code CS1513

    Posted: 07 Jan 2020 12:31 AM PST

    hey im getting the error code CS1513

    here is my code if you could help me with it that would be amazing

    using System.Collections;

    using System.Collections.Generic;

    using UnityEngine;

    public class Movement : MonoBehaviour

    {

    public CharacterController2D controller;

    public float runSpeed = 40f;

    float horizontalMove = 0f;

    bool jump = false;

    // Update is called once per frame

    void Update()

    {

    horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;

    if (Input.GetButtonDown("Jump"))

    {

    jump = true;

    }

    void FixedUpdate()

    {

    // Move our character

    controller.Move(horizontalMove * Time.fixedDeltaTime, jump);

    jump = false;

    }

    }

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

    UX UI Bootcamp project

    Posted: 07 Jan 2020 12:22 AM PST

    Hey there,

    as a part of my UX /UI Bootcamp project please help me with my research about conscious consumption. This quick survey just takes about 2mins! 📷https://forms.gle/MiCBvY6m1QUhqUPGA

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

    Beginner's confusion on career.Kindly help me.

    Posted: 06 Jan 2020 11:54 PM PST

    Hello subreddit programmers greetings,

    I am a beginner in C# and have learned it. Now i came through a job which uses fair bunch of trending concepts such as MVC, MVVM, things, etc. They've said work will be on the product which was built and there is a space for lot of bug recovery, maintainence, etc. Type of job seems i'd be doing a fair bunch of maintainence plus developing little.(I appreciate it indeed). I am a newbie. Would be it helpful for me to move on development. Would you prefer this role for me ? Please sprinkle your thoughts and guidance. I appreciate them. Thanks in Advance.

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

    Would you be interested in practicing skills with real-world programming tasks?

    Posted: 06 Jan 2020 05:54 PM PST

    Hi everyone! I was wondering is there a tool/free service that helps developers to practice with the real-world problems in their domain? By real-world problems, I mean the actual tasks that developers deal with on a daily basis.

    As an example, what should be the next step for a person who is on the way to become a backend developer and already learned basic algorithms and specifics of his stack/language but is not confident enough to start contributing to OS projects and is not sure if having enough knowledge to start looking for a job?

    While investigating this topic I discovered one project ( HackerRank Projects ), which as I understood has a similar idea but is paid and interviewer/business oriented (You even can't start a trial there without company's email address).

    The other similar approach is the project based learning, but I am looking for a tool that feels more like on-the-job scenarios. Don't get me wrong, in my opinion, the project-based learning is a really great way to learn to code and to train for future work, but probably you would agree that very often the challenges that you get while working on the inherited codebases are different from the ones that you can get while implementing sieve of Eratosthenes or bootstrapping Todo list clone from scratch.

    Thank you very much for your time! I would greatly appreciate every opinion/idea/advice on this topic!

    P.S Just in case you got interested and was looking for a tool like that, please feel free to sign up to this newsletter, I will keep you posted about interesting links and investigations from this topic.

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

    San Francisco Meetups for Data Science

    Posted: 06 Jan 2020 11:38 PM PST

    Hello everyone!

    In 3 days I am taking a plane from Barcelona to San Francisco where I will be starting a new life with my wife.

    I would like to know if anyone has suggestions on what Meetup (or other platforms) groups would be good for a beginner interested in Data Science like me. I have been doing some Python and Data Science courses during the last months but I am still what you would consider a novice (this is actually my first post on Reddit). Linking with people with experience whom I could run things through, get some support, and slowly start to build a network would be great!

    I have been looking into the r/learnprogramming , r/learnpython, and r/Python subreddits and did not find any similar post except this one but it is 4 years old, so I decided to post this. If there are any other posts similar to this, apologies in advance.

    Hopefully, this is also useful for other people in my situation.

    Anyway, thanks in advance and good luck in this 2020.

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

    Opinions on Code Chrysalis, a coding bootcamp in Tokyo?

    Posted: 06 Jan 2020 11:31 PM PST

    Hi people.

    Long story short, about 1 year or so ago I have previously done a coding bootcamp before with Le Wagon. While it was extremely intense, I feel that they did not touch on the fundamentals at all, which I strongly believe is very important, as I want to be able to pick a new tool(language) and do things with it, not tied to a language. Overall Le Wagon was a crazy experience, and indeed I learned many things, but the number of knowledge gaps were also many.

    I then stumbled upon another coding bootcamp called Code Chrysalis, but this one seems different. Allow me to say why:

    • You need to do a lot of coding quizzes and technical interviews before being accepted. As a result, the acceptance rate is only 20% which is very low and good, meaning they are strict about who they let into the program. Compare this to other bootcamps where they just interview you, ask not-so-technical questions and let you in.
    • On their website they claim to teach the fundamentals of Computer Science, which really interests me. To my knowledge i dont think any(or many) other bootcamps promise to teach you fundamentals - rather, they focus on creating an app as quickly as possible and becoming "entrepreneurs"
    • Again, on their website, they have an astonishing 100% job placement rate within 3 months. I dont know about you but to me this is quite incredible. A number of their graduates are now working for Google Japan.
    • Check out their curriculum (I prefer not to post the links here as I prefer not to be seen as an advertiser - I genuinely am only looking for opinions)

    Ultimately, as good as Code Chrysalis sounds, will it be similar to Le Wagon? Where everything feels rushed, that I don't even know what is happening behind the scenes? Or will it be different in a good way - teaching fundamentals, going at a fast pace BUT making sure the students understand what is happening under the hood, etc.?

    As an example, I learned SQL too with Le Wagon. But man....if you want me to be perfectly honest, I have ZERO idea what was happening under the hood. It was just me like a robot - writing SQL queries without truly understanding anything. Another example, cloning an AirBNB. I "completed" it, but without actually understanding many many things. I had a LOT of questions while creating the AirBNB clone.

    My concern is, will Chrysalis be like this? Are they just another coding bootcamp that markets itself really, really well? OR are they actually as good as they say?

    I welcome any and all constructive ideas/opinions/feedback/criticism especially from those who have done Code Chrysalis.

    Thank you for reading

    submitted by /u/5ecured
    [link] [comments]

    Front End For Projects

    Posted: 06 Jan 2020 11:02 PM PST

    I learned C and C++ as my first languages and only learned back end development. I want to make my programs more user friendly and wanted to explore front end to spice up my projects. Is it efficient to do it with C or C++ or should I learn another language like Java? Also if you do suggest learning another language, how do you get the different languages to communicate with each other?

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

    Is it terrible that I start “new” sample projects to test things out? Only to import that stuff into my project? Its harder to think with all the other code all over the place.

    Posted: 06 Jan 2020 10:58 PM PST

    It happens all the time. Just today I had a simple problem aligning elements. So I created a separate project and got it working there, then did the same thing in my own project and it worked.

    I usually only do it if I get stuck to a point where I'm struggling.

    While it's helpful I feel like I'm wasting quite a bit of time. I admittedly don't use version control and just revert back to a working version very often. I should probably force myself to do this instead, but I don't know. Then I have to commit code and I may not have committed before starting on the next thing and have half-working bits in there. Thoughts?

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

    Combination of Two Lists Python

    Posted: 06 Jan 2020 10:55 PM PST

    I'm trying to combine two lists, first I'll combine same two lists, later with the result I'll combine the list again over again.

    item_list = [("a"), ("b"), ("c"), ("d"), ("e"), ("f")]

    first output is this;

    [['a,b', 'a,c', 'a,d', 'a,e', 'a,f'], ['b,c', 'b,d', 'b,e', 'b,f'], ['c,d', 'c,e', 'c,f'], ['d,e', 'd,f'], ['e,f']] (Until here it works)

    next output should be like this:

    ABC ABD ABE ABF ACD ACE ACF ADE ADF AEF BCD BCE BCF BDE BDF BEF CDE CDF CEF DEF

    on and on, the and the last output will be ('a' 'b' 'c' 'd' 'e' 'f')

    here is my code;

    def create_sets(item_list, frequentItems): returnableItems = [] for i in range(len(frequentItems) - 1): hold = frequentItems.pop(0) chosenElement = [hold]*len(item_list) mappedList = list(map(lambda x,y: x+','+y, chosenElement, item_list)) returnableItems.append(mappedList) return returnableItems 

    So what it's doing is, it pops and holds the first index of the one list and creates a list full of what its holding. Later concatenates it with item_list.

    Problem is at the first combination ['a,b', 'a,c', 'a,d', 'a,e', 'a,f'] is being popped instead of 'a,b' only.

    Is there a way to map them seperately so whole list won't be popped? Or any other efficient way to combinate them using the map function?

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

    101+ Coding Interview Problems with Detailed Solutions, Test Cases, and Program Analysis

    Posted: 06 Jan 2020 04:56 PM PST

    Hi friends,

    4 months ago, I made a reddit post on creating a newsletter that sends out 3-6 coding interview problems with details solutions every week. To my surprise, the post received a lot of attention and positive feedbacks from the community.

    Since the total number of problems and solutions has just passed 101, I would like to say another big thank you all again for all the support. It really helps me keep going.

    Moving on, I am hoping to add more questions and then finally condense them into a list of most frequently appeared coding interview problems that I think are the most valuable and productive to spend time on. Again, my goal has always been to help you get good at algorithms and data structures so that you can prepare better for your next coding interviews.

    For those who don't know, here is the link to all 101+ questions and solutions, sorted by resources →

    If you're interested in getting updates for this, feel free to check out my blog and join my mail list here.

    Best,

    Hoanh

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

    Using the turtle build the pattern below using nested For loops

    Posted: 06 Jan 2020 10:47 PM PST

    IMG:https://docs.google.com/document/d/e/2PACX-1vTgq74CLPW11Jx81YHmSsTinvhy1oUcaHjbgUU7N9A07nPLwm6jIYzq77eCpkyN8yaESm0tjioKzePt/pubWrite the code so that it draws as many layers as a user asks for, bubbles in your sparrow, colour of spiral and colour of the background.Please take a look at the img I am struggling to connect the spiral to the questions I ask can someone help me figure out this whole thing. Small basic

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

    Python Help

    Posted: 06 Jan 2020 06:56 PM PST

    I have been learning python for a few weeks and am wanting to start working with spreadsheets. I am following a tutorial for using openpyxl. I put " pip install openpyxl " in the terminal to instal it and it said it was a success, but when I tried to use the command " from openpyxl import Workbook " it has an error and says " No module named 'openpyxl' ". How do I solve this? I have been using the guide at https://realpython.com/openpyxl-excel-spreadsheets-python/ for reference.

    submitted by /u/Top-Wolf
    [link] [comments]

    What are the best ways to build an UI for an app written in c++ ?

    Posted: 06 Jan 2020 12:42 PM PST

    So i would like to create an UI for a simple console app that i made in c++. I heard of Qt and WxWidgets but are there any other more customizable methods of building an UI ?

    I would like to make it for Windows.

    Can anyone help me or at least point me in the right direction ?

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

    Closing a different Window in WindowBuilder (Java)

    Posted: 06 Jan 2020 10:15 PM PST

    Hey guys, first time posting

    So I'm currently working on a text based game similar to The Oregon Trail (I know Java is probably not the best game making language out there, but it's all I know). I'm working with opening and closing windows and on each window I'm putting data in. There is one part where I have a shop menu open with adding and subtracting buttons and when the player is finished adding stuff to their cart I want to open a window to double check their cart. This window opens and shows their cart and I want them to be able to revise it and if it's wrong, close the window and add the missing items. This is easy to do because I can code the check out button to open the cart check window and a cancel button to close the cart check button. My problem comes where I want to open the cart check window and if everything is okay the "confirm" button closes both the cart check and shop menu button, but I can't do this because the dispose() method isn't static so I can't call it on Shop Menu. Is there any other ways to close two different windows with a button on one window?

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

    No comments:

    Post a Comment