• Breaking News

    Monday, May 27, 2019

    New Programmer Pitfalls learn programming

    New Programmer Pitfalls learn programming


    New Programmer Pitfalls

    Posted: 26 May 2019 07:59 AM PDT

    Among those learning to code, I've observed two dangerous trends.

    The first is something I call the "infinite tutorial loop." The aspiring programmer goes from tutorial to tutorial, never breaking out and building something independently. I've seen cases where someone has been coding for less than a year and they are, frankly, more skilled and more knowledgeable than someone who has been doing it for five. This isn't because they're more intelligent or putting in more time -- it's because they've been pushing themselves out of their comfort zone, stretching themselves, and building applications and picking up necessary skills along the way. Meanwhile, the other person has been spending their time going through 75 introductory react courses on Udemy. One has an upward trajectory; the other is stuck in a loop.

    The second is simple: the individual does everything related to coding that doesn't involve writing code. They attend every meetup. They share relevant content on LI daily. They're subscribed to every subreddit. But they're never actually creating anything. Zero green squares on GitHub.

    If you want to become a programmer, start coding. Think of something you'd like to build and get to work!

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

    "Automate the Boring Stuff" author is live streaming Python programming on Monday evening 5/27, 6pm Pacific

    Posted: 26 May 2019 06:04 PM PDT

    Hi Reddit! I'll be live streaming myself working on a few different text-based games in Python on Monday, 5/27 at 6pm Pacific:

    https://www.twitch.tv/alsweigart/

    I'm creating a collection of short, complete, text-based Python games. The idea is to create several examples for beginner/intermediate programmers to look at to see how programming concepts come together into a complete program (while still being small enough to understand). The current collection is on GitHub at: https://github.com/asweigart/PythonStdioGames/tree/master/src/

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

    Where can i learn to make a simple text editor?

    Posted: 26 May 2019 08:52 PM PDT

    Hey! I was just wondering if there were any resources that can help/lead me into the direction of making just a plain simple text editor,. I am starting with very minimal to no programming knowledge but from what I've seen the best way to learn is to make challenges and beat them, so are there any courses i can follow ?

    Edit: I would prefer if it was with python

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

    What is the biggest problem currently facing developers and those learning to program?

    Posted: 26 May 2019 08:29 PM PDT

    What current problems are you as a developer facing in your career, life, hobby?
    Are there any pain points or frustrations you think need to be addressed in the industry?

    For all you trying to further your learning what would you like to see happen from learning platforms trying to help us all grow as developers?

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

    How would one go about writing a wrapper around the Discord API?

    Posted: 26 May 2019 07:55 PM PDT

    So there are a lot of popular unofficial wrappers for the Discord API such as DiscordJS and Discordpy, I've lots of experience with both libraries but never understood what's happening behind the scenes. What are some things I need to understand in order to make my own wrapper?

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

    Algorithm to find the number segments of fixed width that will fit on a line while avoiding obstacles at set points on the line.

    Posted: 26 May 2019 10:51 PM PDT

    I'm trying to help my friend out with a program she's writing to help her with a personal project and I've got a good grasp on how her code doesn't solve the problem but I'm having trouble coming up with a working solution of my own. The problem boils down to this (measurements in inches):

    We have a line of length L that has obstacles at points x1, x2, x3, ... from the start. Find the number of segments with a length of Y (Y=9 for purposes of testing) that can fit on the line if the segments are placed Z inches apart from one another and the segments are not allowed to overlap the obstacles.

    In the real world this is in 3 dimensions but I think width and depth can be effectively ignored since they are fixed for the segments, obstacles, and "line". Anyone have any ideas?

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

    Couchbase and CouchDB vs Mongo

    Posted: 26 May 2019 10:47 PM PDT

    So I've been tangling with mongo, lot of people been telling me not to use mongo. To go to an RDBMS.

    I would like to learn at least one NoSQL database. It has do far been a hassle with mongo. So I was wondering how couchbase and CouchDB compare to it given that they're document stores as well.

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

    Python Automation Beginner Project: Make a YouTube Rank Checker bot with Selenium

    Posted: 26 May 2019 09:47 AM PDT

    A lot of beginner programmers seem to struggle figuring out what kind of projects to work on. In my opinion the best projects are ones that solve your own problems. In this case I was tired of manually checking how my videos were ranking on youtube so I decided to automate the process using Selenium and document the process. Hopefully this can help spark some ideas for others on here

    https://youtu.be/aXT4DIgCDxA

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

    CS50x or MIT's Introduction to Computer Science and Programming using Python? Help a newbie get started.

    Posted: 26 May 2019 06:01 PM PDT

    Basically what the question says, i would like to get started in computer science but i have no idea where. CS50 is critically acclaimed but so is MIT's course.

    Which one should i start with and which one will serve me the most in the long term especially if i want to work as an AI programmer in the future.

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

    Is insertion/deletion of linkedlist O(1) or O(n)

    Posted: 26 May 2019 07:27 PM PDT

    Since big O is about worst case shouldn't it be O(n) if you have to traverse to the last node to insert/delete? why does http://bigocheatsheet.com/ say it is O(1)?????

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

    Best website for programing challenges/Problems

    Posted: 26 May 2019 02:04 PM PDT

    I am a Computer Engineering Major, and I just completed my first course of C++ coding. Where can I find challenges/problems to do for fun and keep my skills sharp!

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

    is it normal to forget, say, 80% of the codes?

    Posted: 26 May 2019 09:17 PM PDT

    Here's an example: I've already learned SQL, but when I try to remember some code, I completely forget, the only thing I can remember is "select * from tabble" and "create database owner myuser ...", most other things like joins and views, I can not remember almost anything at the moment but, if I go through google and see how it works, and I will know how to use it correctly.

    This is normal? I feel a bit insecure because I have things like anxiety, lack of concentration and a lot of insomnia, and I think it makes memory difficult, but I do not know an experienced developer spends half the time researching codes that he forgot how it works.

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

    Help /Autofocus attribute - HTML5

    Posted: 26 May 2019 08:49 PM PDT

    I ve been learning HTML5 in a self-taught way for a few months; could somebody please help and tell me what I'm doing wrong? I'm struggling with the "autofocus" boolean attribute; for some strange reason it doesn't seem to work on Firefox and IE; but it does on Chrome and Safari!

    Line of code:

    <form action="/action_page.php">

    First name: <input type="text" name="fname" autofocus><br>

    Last name: <input type="text" name="lname"><br>

    <input type="submit">

    </form>

    Am i missing out something?

    Thanks in advance!

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

    Beginner C++ programing looking for small ways to make money

    Posted: 26 May 2019 06:00 PM PDT

    I am a beginning Computer Engineering Major, I finished my first course of C++ coding, I learn all the way up to structures. Is there anything I can do or any website I can join to do small programing jobs for money?

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

    Is there any way to map out operation flows within code?

    Posted: 26 May 2019 07:57 PM PDT

    I use Excel spreadsheets for the extra dimension of space it gives me. I will use that to horizontally map out the flows of various operations. ( countRows > aggregateOnSales > displaySalesByMonth ).

    Just curious if there's any good way of doing that in the code itself?

    I have no knowledge in that area so my current thought is to start putting this information in a readme file. That way I can stay in my IDE instead of switching to Excel. A downside is I lose that 2nd dimension Excel has that text editors don't.

    PS: I program in javascript and php.

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

    [not homework] [python] figuring out how to find repeats in a dna sequence?

    Posted: 26 May 2019 11:25 PM PDT

    hey everyone. so here's my notebook, should be simple enough:

    https://github.com/nadzhou/BioinformaticsII/blob/master/pssm2.ipynb

    but I can't seem to get at this. I should at least get one hit, right? also if you know a better way to approach this, please give me a link here.

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

    Duration between two dates

    Posted: 26 May 2019 11:11 PM PDT

    Hi, everyone. I want to check whether duration is greater than equal to 3 years.

    User enters date as

    date:

    month:

    year

    We fetch current date as:

    date:

    month:

    year:

    Now if duration is greater than equal to 3, print yes else print no.

    My logic:

    if(curr.year-date.year >3){

    print yes;

    }

    if(curr.year-date.year==3){

    if(curr.month - date.month >0){

    print yes;

    }else{

    if(curr.month-date.month==0 && curr.date-date.date >0){

    print yes;

    }else{

    print no;

    }

    }

    }

    This is not working. Any ideas?

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

    RUBY: Array of hashes, I need to group by an ID and then sum one of the hash values.

    Posted: 26 May 2019 07:10 PM PDT

    I'm trying to learn Ruby. I've been stuck on this forever, and I don't know what to do. I've been reading up on Enumerable, and I know the key to this is in there somewhere, I just can't seem to get it. Here is my data structure (my normal data structure has manyyy more fields than this. I've just shrinked it down to make it easier to look at: [ { "id": 1, "amount": 4, "name": "Test Picture 1", "cx_id": 1 }, { "id": 2, "amount": 3, "name": "Test Picture 1", "cx_id": 1 }, { "id": 5, "amount": 2, "name": "Test Picture 2", "cx_id": 2 }, { "id": 6, "amount": 1, "name": "Test Picture 2", "cx_id": 2} ] 

    The goal here is to ADD up the AMOUNTS based on the cx_id. So essentially, I should return an array of hashes, except the hashes are grouped by the cx_id.

    So in this case, I should return an array of hashes (2 hashes) where the amounts are added up based on the cx_id. This is what I want:

    [ { "amount": 7, "name": "Test Picture 1", "cx_id": 1}, { "amount": 3, "name": "Test Picture 2", "cx_id": 2} ] 

    This seems like such a simple exercise. But I can't seem to get it. I've tried to "group by" the cx_id, and then inject to sum the values. But overall things get messy for me way too fast. I know there has to be a better way. Thanks.

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

    Any Holberton School alumni, what was the level 3 interview like?

    Posted: 26 May 2019 10:49 PM PDT

    I applied to Holberton School of Software Engineering a couple months ago. Surprisingly, I reached the level 3 part of the application process, which is the interview and tech challenge. I have my interview this week and I'm nervous. I was just wondering what was it like? How did you prepare for it? Thanks!!

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

    Linkedin API - How to Use?

    Posted: 26 May 2019 10:38 PM PDT

    So I am currently working on a project in integrating Linkedin's sign-in API and their marketing API into a dashboard for people to view their metrics and analytics in regards to their profile. However, I am relatively new to the concept of APIs, they remind me of like plugins you can run on Wordpress.

    So I have a few questions and if you could please provide examples for question 2 and 3 it would be very appreciated, I will let you know how the project goes by eventually posting a link to it below.

    1. What are the callback URLs? Is it just a whitelist for specific pages?

    2. How could two APIs interact with each other? Like based off of someone using the sign in API to gather data of their profile using the marketing API

    3. How could I integrate these APIS into the UI of the dashboard? Like let's say I retrieve the data about how many followers someone has on Linkedin, how can I program into the dashboard so that it shows up on a graph to show a trend?

    I already have authorizations to these APIs just the support docs are really confusing to me and I haven't found many examples of people implementing these APIs after they upgraded to OAuth 2.0

    Thank you for your time

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

    Hailstone Sequence

    Posted: 26 May 2019 10:37 PM PDT

    def hailstone(n): counter=1 print(n) while n!=1: if n%2==0: n=n//2 else: n=n*3+1 counter=counter+1 print(n) return counter a=hailstone(10) Output: 10 5 16 8 4 2 1 

    I am wondering why this function is called when I set a variable "a" equal to the function with parameter 10, as oppose to explicitly calling the function?

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

    I have a domain name, TomCat server, a Spring MVC web app, and a relational mySQL database.

    Posted: 26 May 2019 10:04 PM PDT

    I think the last step is the one from localhost to the web, but I'm not sure how to go about it. ELI5?

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

    Hashmap and problem returning value when given key.

    Posted: 26 May 2019 09:29 PM PDT

    public String animalGroupName(String animalName) { Map<String, String> animalGroupName = new HashMap<String, String>(); animalGroupName.put("Rhino", "Crash"); animalGroupName.put("Giraffe", "Tower"); animalGroupName.put("Elephant","Herd"); animalGroupName.put("Lion", "Pride"); animalGroupName.put("Crow", "Murder"); animalGroupName.put("Pigeon", "Kit"); animalGroupName.put("Flamingo", "Pat"); animalGroupName.put("Deer", "Herd"); animalGroupName.put("Dog", "Pack"); animalGroupName.put("Crocodile", "Float"); String name = "unknown"; for(String key : animalGroupName.keySet()) { if (key.equalsIgnoreCase(animalName)) { } } return name; } 

    So I'm trying to return the value when I get the key from my method parameter and return "unknown" if it's empty, null, or not in the map at all. I'm getting an error that says Hashmap cannot be resolve to type. Can you see if I messed something up?

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

    method calling without main method in java

    Posted: 26 May 2019 09:10 PM PDT

    I am fairly new 2 programming and wanted 2 know that can method calling be done without main method in java?

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

    No comments:

    Post a Comment