• Breaking News

    Sunday, August 30, 2020

    What have you been working on recently? [August 29, 2020] learn programming

    What have you been working on recently? [August 29, 2020] learn programming


    What have you been working on recently? [August 29, 2020]

    Posted: 29 Aug 2020 09:04 AM PDT

    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]

    Learn CSS by playing a Tower Defence game.

    Posted: 29 Aug 2020 07:45 PM PDT

    You can use this game to learn CSS, you basically fill in CSS to position the turrets for each wave.

    http://www.flexboxdefense.com/

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

    Thank you all for recommending codewars and udemy, I completed my first 3kyu on codewars today after 4 months of learning!

    Posted: 29 Aug 2020 01:54 PM PDT

    As someone who just recently graduated with a degree in Education, I wanted to learn more about data science and coding to further my skills and bridge the experience!

    Looked to this subreddit for ideas as to where to start, especially as someone with no coding backgrounds. Bought a python course for ten bucks on udemy, and just started casually doing it on the side at the end of April.

    It's amazing how much things you can do with python and how many different creative ways there are to different problems. After grinding two nights at this 3kyu problem, I finally solved it! Granted, even looking at my own solution compared to others' solutions, mine still looks very messy. I wanted to thank everybody on this subreddit for the resources that are available.

    If you are interested, this was the 3kyu I tackled:

    https://www.codewars.com/kata/52bb6539a4cf1b12d90005b7/train/python

    Battleship field validator Description:

    Write a method that takes a field for well-known board game "Battleship" as an argument and returns true if it has a valid disposition of ships, false otherwise. Argument is guaranteed to be 10*10 two-dimension array. Elements in the array are numbers, 0 if the cell is free and 1 if occupied by ship. Battleship (also Battleships or Sea Battle) is a guessing game for two players. Each player has a 10x10 grid containing several "ships" and objective is to destroy enemy's forces by targetting individual cells on his field. The ship occupies one or more cells in the grid. Size and number of ships may differ from version to version. In this kata we will use Soviet/Russian version of the game. Before the game begins, players set up the board and place the ships accordingly to the following rules: There must be single battleship (size of 4 cells), 2 cruisers (size 3), 3 destroyers (size 2) and 4 submarines (size 1). Any additional ships are not allowed, as well as missing ships. Each ship must be a straight line, except for submarines, which are just single cell. The ship cannot overlap or be in contact with any other ship, neither by edge nor by corner. 
    submitted by /u/CIarkness
    [link] [comments]

    The resources that helping me understand DS + Algorithms and land top jobs

    Posted: 29 Aug 2020 07:48 AM PDT

    I thought that my education in college would prepare me for interviewing as a software engineer. I was wrong. It helped don't get me wrong, but it wasn't what companies tested me on in interviews. I got tested on my understanding of data structures and algorithms and showcasing the extent to which I could use them. Below are the resources that helped me truly understand the subject and, helped me land my jobs.

    Data Structures + Algorithms

    A big part of programming is organizing your data so that you can store and retrieve it effectively. This is what data structures allow us to do. They're the lifeblood of programming. Almost every program written has given thought to how do I store this? How do I retrieve this? This is why at most universities there are whole classes dedicated to data structures, this is why when programmers go to job interviews they ask them about data structures. So much of what a programmer does depends on how they organize their data.

    It's hard to talk about data structures without mentioning algorithms, because they're so intertwined. Algorithms In general are instructions on how to do something. Algorithms say things like "this is how you sort data" and "this is how you find the shortest path". Interestingly enough there are many ways to do something, and the way you do it can effect your program dramatically.

    Note: going forward I'll refer to Data Structures as DS, and I'll refer to data structures and algorithms as DS+A

    Free Resources

    Free Code Camp - This video (course? Its 8 hours) is great introductory material if you've not been exposed much to analysis and DS+A. It provides some motivating thoughts to get you thinking, and then goes to the heart of the topic. No non-sense and straight to the point.

    MIT - Intro To Algorithms - This is MIT's course for an introduction to algorithms, and it's high quality as you would expect. Unsurprisingly like many university courses online it focuses a lot of time on mathematical aspects that aren't often used in real life. There is still a lot of value in these videos, but if you don't understand the math it'll be hard to grasp all the concepts.

    Paid Resources

    The Algorithm Design Manual - Steven Skiena is the author of this book and a CS professor known for his algorithmic work. This book is all about DS+A and their analysis, and it's one many students use to study algorithms. Again like most university resources there isn't a shortage of math, but that being said it still has great insights, descriptions, and implementations of DS+A. Oh also Skiena has a free course on YouTube

    Leetcode - Leetcode is a website that is filled with DS+A questions (programming challenges). Most of them are for interviews, but the most effective way to understand both DS+A is to use them in the context of problems. They provide solutions and sometimes articles on how to solve the problems. After a while they just feel like puzzles with a dependency on DS+A knowledge and can be quite enjoyable.

    Interview Cake - Interview Cake is similar to Leetcode, except that it is more structured. It provides guidance through readings, and then problems to test your knowledge of concepts.

    Cracking the coding interview - This book may come across as a book for interviewing (and it is), but it's also a great resource on practical DS+A. Programming interviews are notoriously based in DS+A knowledge and analysis. This book makes approaching big O and DS+A simple. It's on its 6th edition, and they've been able to clearly and succinctly communicated these ideas into digestible chapters. Also, It's filled with exercises and answers to the exercises so you can test yourself. This book helped me get a job, and I'm sure many other developers.

    Final Thought

    If you want to get a good understanding of DS+A in a way that abstracts most of the rigorous mathematical techniques then stick to these resources

    • Leetcode
    • Cracking the coding interview
    • Interview Cake
    • Free Code Camp

    If you want a more traditional and mathematical understanding of DS+A then check these out

    • Skiena book
    • MIT - intro to algorithms

    That's it! If you enjoy learning about the vast world of programming and CS you might be tempted by my newsletter where I cover topic like this every week.

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

    Best open source projects to learn C/C++?

    Posted: 29 Aug 2020 01:36 PM PDT

    What projects do you suggest checking out to learn C/C++ best frameworks, standards and best practi es?

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

    Best way to learn Spring/Spring Boot?

    Posted: 29 Aug 2020 04:26 PM PDT

    Hello!

    I'm currently trying to build a project portfolio to switch careers while taking some fundamental CS classes. Trying to build some sort of REST service with Spring Boot, but every Udemy course I've tried comes across as pure documentation -- few examples, and no sample problems. Hard to stay engaged.

    What is the best way to learn the Spring framework? Any resources available with ample opportunities to practice?

    Thanks in advance.

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

    Sources to learn C/C++ on Linux

    Posted: 29 Aug 2020 06:41 PM PDT

    I was looking for some update recommendations to learn C/C++ in the linux environment and at the same time teaches about linux too (using vim, making files via bash, etc...)

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

    Youtube channels similar to the Coding train?

    Posted: 29 Aug 2020 04:30 PM PDT

    His style is not for me. I feel that sometimes he gets too much off track, and I just want something that gets more to the point, straight and simple. However I love his creativity, his ideas have inspired me a lot, specially the Coding Challenge series. Any ideas?

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

    Automata Theory

    Posted: 29 Aug 2020 08:00 PM PDT

    Does anyone know what the best website for learning automata is? It is one of my universities hardest CS courses and I am currently taking it. I want to make sure my skills stay sharp.

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

    English in the world of technology

    Posted: 29 Aug 2020 01:18 PM PDT

    Hello, my name is Guilherme, I'm 17 years old and I really like technology, I intend to pursue a career as a programmer. I am Brazilian and as of today I decided that I will learn English in the race, since I don't have money for courses and exchange. So I'm going to start consuming content entirely in English, be it books, series, social networks, games. I believe that the more I expose myself to the language the better I will be. What do you think of my initiative?

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

    Trying to understand this code on stackoverflow

    Posted: 29 Aug 2020 08:46 PM PDT

    Hi friends, self taught learner here, trying to figure out how to make a range in JavaScript. In Ruby, we can use `(num1..num2).to_a` or `Array (num1..num2)` to make an array of numbers from num1 to num2. Haven't found anything similar in MDN JS, so I went searching on stackoverflow for a way, and got caught up trying to understand what is happening with this response:

    function range(start, end) { return Array(end - start + 1).fill().map((_, idx) => start + idx) }

    var result = range(9, 18); // [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]

    console.log(result);

    So the range function takes in two args, the start and end of your range. The return value will be a new Array, size of (end - start + 1), all filled with the return of the map function. Now, the map is where I get confused and the MDN Array.prortype.map docs don't help. What exactly is that callback function doing? And what is the underscore mean? I understand that the return value is start + (what I'm assuming to be) index? I think...? Any help or clarification how this part of the code works would be awesome! Still trying to figure this all out :)

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

    unexpected output in Node.js

    Posted: 29 Aug 2020 08:45 PM PDT

    I have a function that I am programming in Node.js to generate a table of contents (toc) from a directory full of folders and html files and output it in the format that I want, generally speaking I have that, but it does one little bit weird, and I ant figure out why. The function is recursive in the circumstance it finds another folder inside a folder. but instead of executing the function right away, it seems to add it to a "queue" and executes it later. This may be a feature of Node.js that I am unaware of, as I am new to it. Does anyone know how I can fix my logic for this problem?

    function name(path) { fs.readdir(path,function(err, files) { if (err) { return console.error(err); } files.forEach( function (file) { fs.stat(path + "/" + file, function(err, stat) { if(stat.isFile()) { console.log('<li class="toc-leaf"><a href="' + path.slice(9) + '">' + file.slice(0, (file.length - 5)) + '</a></li>'); } if(stat.isDirectory()) { console.log('<li class="toc-book">' + file + '<ul style="display: none;">'); name(path + "/" + file); console.log("</ul></li>"); } }); }); }); } 

    this is the output (with some formatting for ease of reading),

    <li class = "toc-book" >Classes<ul style = "display: none;"> </ul></li> <li class = "toc-leaf" ><a href = "Table of Contents">New Text Document</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Barbarian</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Bard</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Cleric</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Druid</a></li> 

    and this is what I had expected

    <li class = "toc-book" >Classes<ul style = "display: none;"> <li class = "toc-leaf" ><a href = "Table of Contents">New Text Document</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Barbarian</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Bard</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Cleric</a></li> <li class = "toc-leaf" ><a href = "Table of Contents/Classes">Druid</a></li> </ul></li> 
    submitted by /u/Glaedr304
    [link] [comments]

    Starting a React JS Crash Course?

    Posted: 29 Aug 2020 10:41 PM PDT

    Hello, everyone

    I'm a Software Developer and for the past months I have been working with React js, so I have some experience using Javascript and React. Also, I want to start a free crash course because I feel that this can be a good experience for me, and also I can help other people who want to learn about this library. I came out with this outline of some of the topics that I would like to cover, but I would like to know what you think would be some of the most difficult or interesting topics to learn about this library. Also, I would like to provide some examples and host the codebase on Github, so more people can have access to this course.

    Let me know what you think about this. And also, where do you think would be the best places or subreddits to post about this project.

    These are some of the topics that I would like to cover:

    - A brief introduction to React Js.

    - Setting Up the Development Environment for a React app.

    - Create a User Interface with React's createElement API.

    - Create a User Interface with React's JSX syntax.

    - Create a Simple Reusable React Component.

    - Validate Custom React Component Props with PropTypes.

    - Style React Components with className and inline Styles

    - Manage state in a React Component with the useState hook

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

    How to represent a really small number in C?

    Posted: 29 Aug 2020 06:52 PM PDT

    Practice problem from my textbook: The mass of a single molecule of water is about 3.0×10 -23 grams. A quart of water is about 950 grams. Write a program that requests an amount of water, in quarts, and displays the number of water molecules in that amount.

    How do I do this? A double has up to 15 points of precision. But this requires 23.

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

    Problem with opening a window for a game in Pycharm.

    Posted: 29 Aug 2020 07:54 PM PDT

    I'm currently having trouble opening a game window in Pycharm, it just says:

    C:\Users\bla bla bla\AppData\Local\Programs\Python\Python38-32\python.exe "C:/Users/bla bla bla/Downloads/python_work - Copy/Projects/Alien Invasion!.py" pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Process finished with exit code 0 

    This is the code I'm using to try and open a window:

    import sys import pygame class AlienInvasion: """Overall class to manage game assets and behavior.""" def __init__(self): """Initialize the game, and create resources.""" pygame.init() # Set the background color. self.bg_color = (230, 230, 230) self.screen = pygame.display.set_mode((12000, 800)) pygame.display.set_caption("Alien Invasion!") def run_game(self): """Start the main loop for the game.""" while True: # Watch for keyboard and mouse events. for event in pygame.event.get(): if event.type == pygame.Quit: sys.exit() # Redraw the screen during each pass through the loop. self.screen.fill(self.bg_color) # Make the most recently drawn screen visible. pygame.display.flip() if __name__ == 'main': # Make a game instance, and run the game. ai = AlienInvasion() ai.run_game() 

    Can you see anything wrong with the code? Could it be a setting on Pycharm?

    All advice is welcome! If there is any information that I left out that I should probably include, please let me know.

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

    Need advice on where to start. Javascript into React or C# / ASP.NET into Blazor

    Posted: 29 Aug 2020 07:48 PM PDT

    Hey guys, I'm a junior dev whos currently working at a consulting company where we work on our SaaS product which was built in C# / ASP.NET Framework. I just started learning about C# and it's really cool but obv. I have a long way to go in terms of skills and learning.
    I'm torn on whether I should dedicate most of my free time learning modern front end technologies like Javascript, React, Typescript etc or to focus more on being a full stack so C# / ASP.NET CORE, ,LINQ, Blazor etc.
    I'm worried about not liking being full stack due to me being more of a visual person and plus I feel like React devs get paid BANK. Money aside, I think being a front end developer might fit me more but I could be wrong honestly.
    Any advice?
    Thanks

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

    Could I use theta or small O to represent worst case time complexity?

    Posted: 29 Aug 2020 04:54 PM PDT

    When talked about worst case time complexities can I not use other notations like little o or theta or omega to represent the worst case time complexity or would only Big O make sense mathematically? Sorry, I am not the best at math and I just got into time complexities. I understand why Big O is used for worst case though.

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

    Does this sound like a good first class on the topic of web development?

    Posted: 29 Aug 2020 09:48 PM PDT

    So I've been treading water at my community college for a while now, mostly because I didn't really have anything I was working towards. I started taking a course on Python this semester, though, and am really enjoying it and taking well to it so far. So now I'm thinking about some kind of career in programming. I know a degree is by no means necessary nowadays, but I've got a good chunk of an associate's degree finished already, so I figure I might as well finish it and maybe be a little more marketable in the industry.

    So I'm looking for what to take next, and from what I can tell HTML is a pretty fundamental skill. Does this course sound like it'd be worthwhile for someone pursuing a career in the industry?

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

    Is there a reason why my css on VSCode won't show up on any browser?

    Posted: 29 Aug 2020 07:27 PM PDT

    I'm using VSCode and I created a style.css and linked it into my index file and the link is good. But none of my code goes through to my browsers.

    <link rel="stylesheet" href="/style.css"/>

    Everything else inside my file works but nothing is coming through my style.css.

    I've been following along this video https://youtu.be/vQWlgd7hV4A Learning HTML5 and CSS3 for beginners.

    Any help will be appreciated. Thank you.

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

    Harvard CS50 certification

    Posted: 29 Aug 2020 07:03 PM PDT

    Is it worth it to pay $118 for the certificate? Would it be difficult to achieve 70% considering I have no experience?

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

    A resource that gets into the “behind the scenes of programming”

    Posted: 29 Aug 2020 06:58 PM PDT

    I don't know if this is the right place to go, but it was the only place I could think of

    I want to find something that talks about the very CORE principles of coding. Like, the machine language computers understand, the interpreters ability to make sense of that code

    What does a function REALLY look like in the computer? What's happening when I put an if/else statement

    Idk if all that makes sense, wasn't sure exactly what to say what I am looking for

    Essentially I want to find something about programming outside of "In python this is how you declare a variable", more like "this is how computers store variables"

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

    I've been looking for another language to complement Python since I've been wanting to build out some more interactive visuals at work. I just stumbled on both D3 JS and Electron so now I feel like a kid with a new toy.

    Posted: 29 Aug 2020 03:01 PM PDT

    I like the visualizations that Python offers in Bokeh and Seaborn, but I've been wanting to do more with them and make them interactive and really go further with them. I had looked at ipywidgets within jupyter notebooks and I still might explore that road, but I've also wanted to learn the web side of things too. I think Electron and D3 JS (which I can even use inside of Electron) just gave me a long term project to really learn how to use and maybe build out something really cool for work.

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

    Is coding mods for game worth mentioning in your portfolio?

    Posted: 29 Aug 2020 02:58 PM PDT

    As the title. Do you think is it worth to mention it as a total newcomer to the IT? Does it mean anything? It's working with code, so it some kind of experience, but does it matter to recruiters?

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

    Boolean Algebra Question

    Posted: 29 Aug 2020 11:26 PM PDT

    The coding boot camp didn't explain how to solve these problems at all, so I'm not very confident I'm going about it the right way. Hopefully y'all can help restore my confidence in myself or teach me something if you have the time. The question is:

    If w is FALSE, x is TRUE, and y is FALSE, what is

    ( ( w OR y' ) AND ( x' AND y' ) ' ) OR ( ( w OR y' ) ' AND ( x OR y ) ' ) '

    I think that means

    ( ( w + y' ) ( x'y' ) ' ) + ( ( w + y')' ( x + y ) ' ) '

    then I assume I break it down using all of the laws or identities I found online and maybe run the numbers through a logic gate. Now I'm pretty new to this so I'm not 100% sure if I'm simplifying it the correct way, and I don't wanna make a mistake based off an assumption and potentially hurt myself in the long run by doing it the wrong way.

    If y'all can spare a couple minutes I would greatly appreciate the help, and I'll be able to breeze through the rest of the problems.

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

    trying to verify ssh key. get this, what do i do now ?

    Posted: 29 Aug 2020 07:30 PM PDT

    git@github.com: Permission denied (publickey). 
    submitted by /u/itWillGetFresher
    [link] [comments]

    No comments:

    Post a Comment