• Breaking News

    Saturday, August 29, 2020

    [Showoff Saturday] I made an Extension to Visualize Data Structures web developers

    [Showoff Saturday] I made an Extension to Visualize Data Structures web developers


    [Showoff Saturday] I made an Extension to Visualize Data Structures

    Posted: 29 Aug 2020 03:42 AM PDT

    Remember (notetaking application)

    Posted: 28 Aug 2020 06:24 PM PDT

    I made a website that creates free social images for your blog or landing page

    Posted: 29 Aug 2020 09:23 AM PDT

    [Showoff Saturday] I made a site using the National Park Service API

    Posted: 29 Aug 2020 01:36 PM PDT

    Melancholy Corner: an online radio station that broadcasts vaporwave and lo-fi music and mimics the Windows 95/98 look and feel, CSS written from scratch

    Posted: 28 Aug 2020 09:09 PM PDT

    I made a simple RPG game with React.js & Redux

    Posted: 29 Aug 2020 04:06 PM PDT

    [Showoff Saturday]Noticed there were not many good "What plant should I get" quizzes. So I made one! || Link in comments

    Posted: 29 Aug 2020 06:15 AM PDT

    The resources that helped me understand DS + Algorithms and get top jobs

    Posted: 29 Aug 2020 07:52 AM PDT

    I thought that my education in college would fully prepare me for interviewing as a software engineer. I was wrong. It helped don't get me wrong, but it wasn't what companies where testing 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. The resources below helped me solidify my understand of DS and algorithms and the interviewing process. I'd recommend them to anyone who wants to do either of these things.

    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 your interested in the vast world of programming and CS you might be tempted to stay up to date with my newsletter where I cover topic like this every week.

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

    [Show off saturday] I made an Angular + Laravel website, any thoughts?

    Posted: 29 Aug 2020 09:45 AM PDT

    Hi there!

    So almost 2 months ago I started building a website with Angular frontend and Laravel backend (communication through APIs), and I thought I could share it here. As you will see, the design is kind of bad, I'm still trying to improve it.

    I would call this an MVP, because only the basic features are there: signing up, basic search, pagination, creating posts/comments, upvote system, filtering (and for admins there are banning, deleting comments etc).

    I think I will add push notification and chat functions to the site, but right now I wasn't confident enough to include it (I've never really used Pusher or something like that).

    This is the website: https://productivera.com

    Btw the authentication is implemented with JWT.

    Have a nice day!

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

    My recent bout with React/Redux boilerplate [OC]

    Posted: 29 Aug 2020 08:56 AM PDT

    [Showoff Saturday] tsParticles - Easily add particles animations to your website (supporting also Angular, ReactJS, Vue.js, Svelte, and others) - You can also use particles.js configurations

    Posted: 29 Aug 2020 08:45 AM PDT

    Do I need to sanitize user input if it doesnt go to a database?

    Posted: 29 Aug 2020 12:20 PM PDT

    I am currently going to use AJAX to call a python script which will then return an input on the screen for what was calculated, the user will be inputting certain pieces of info and then returns the calculated value. is there any need to sanitize input with something as simple as that? since it doesnt go to a database?

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

    Interest check: An alternative to lmgtfy.com

    Posted: 29 Aug 2020 03:20 PM PDT

    Hello! I have seen 'LMGTFY' being used a lot, and wanted to create an alternative, which:

    - Has no unnecessary cookies (Eg. Facebook, Google Adsense)

    - Doesn't automatically search using the LMGTFY search engine

    - Is open source

    Would this be something you, or people in general, would think they're interested in?

    Thank you!

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

    Should I learn react classes as well as hooks?

    Posted: 29 Aug 2020 11:28 AM PDT

    I have been learning react and have been leaning react hooks, I keep seeing tutorials about classes in react, but have steered away from them. Should I learn classes if I'm getting the concept of hooks?

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

    How to implement socketio with my context API in react and without using queryString?

    Posted: 29 Aug 2020 03:10 PM PDT

    Okay hello, so I have a web app I'm making in react. The welcome page has the user pick a room and enter a username and that data is stored in my context API.

    I'm trying to implement socketio but the tutorials/stack exchange pages I've found either use querystring or create an entirely new context for the socket.

    Is there a way I can implement it with my current context?

    the component where i'm trying to add socket io

    https://github.com/spiritewolf/helppppp/blob/master/src/components/GetUserInfo.js

    my context api

    https://github.com/spiritewolf/helppppp/blob/master/src/components/GlobalState.js

    Edit: Sorry if I'm not being clear. So I guess I am wondering is what would be the best way to use socketio with my application. It seems as though I should be able to add it either onto the component above and onSubmit it would send the username and room? But how would I get the data so it can be sent...? haha. Or I could use it in my context but again, I'm not really sure what that would look like...

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

    Question for y'all regarding API keys and secrets

    Posted: 29 Aug 2020 01:49 PM PDT

    I'm building a web app with a node.js backend. I've built the backend API using JWT authentication and it's all working. The question isn't about how to store the bearer token on the FE (there's plenty documentation).

    The question I have is how do I store user's API keys for other services on my backend?

    The users will be allowed to upload an API key, the secret, and password for an alternate service to my backend API. At first I was thinking in storing them all as ENV, but then I don't think that'll be a reliable solution because I'm also going to be using Docker to spin up new instances of the app when necessary. Then I thought about maybe storing them in MongoDB as hashed strings, but I also don't think that's a good solution because I'm storing user's API keys on a DB.

    Can anyone please point me in the proper direction so I can do this the right way?

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

    A json list of hobbies

    Posted: 29 Aug 2020 09:57 AM PDT

    I was working on a side-project and needed a list of hobbies to present to the user for them to choose from and couldn't find anything online, so I created a script that generates the data from this wiki page. I thought maybe someone else needed the data for a project so here it is!

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

    I've been struggling with this my whole life. How do you properly format your code snippets?

    Posted: 29 Aug 2020 04:43 AM PDT

    Resources for maintaining back end with private information

    Posted: 29 Aug 2020 01:18 PM PDT

    Hello,

    I program mostly front end stuff and some simple back end with APIs containing no sensitive information. Now I started learning (as a hobby) how to work with authentication and how to store private information, so that I don't rely solely on other services for that. I want to have full control over everything that I deliver, without using things like "login with X". There are some good frameworks and middleware that handle it so that I don't have to reinvent the wheel, but I also don't want to trust them blindly or just leave the server without maintenance and susceptible to leaks.

    What resources do you recommend to keep up with the best practices in this area (blogs, forums, magazines, websites etc.)? And what are the best solutions you recommend today for building a safe back end?

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

    Save work locally?

    Posted: 29 Aug 2020 09:30 AM PDT

    Do you normally save your code locally or do you only keep it on github and pull it down while working on it?

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

    Is there a consistent way across browsers to prompt users of a web page to allow the microphone -- rather than just trying to use it and having the browser ask the user? (details in text of post)

    Posted: 29 Aug 2020 12:55 PM PDT

    I'm working on a website that will ask users to say specific words after being prompted for a given word (it is to help ESL speakers listen and speak more consistently to English).

    So for example, the page will say "hello" then prompt the user to repeat "hello" back.

    I have it working, but I think the design is a bit clumsy because the 1st time the user is asked to speak, the browser prompts them to ask for permission to use the microphone.

    I understand the security reasons for this kind of prompting, but is there another way to get that permission from the user that is less clumsy -- that works across all or most mainstream browsers and platforms (laptop or mobile device)?

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

    How do you manage your data Models on your front end?

    Posted: 29 Aug 2020 08:36 AM PDT

    Server side frameworks provide ORMs to manage your data models.

    For example Rails and ActiveRecord allow me to manage a User or an Article model. It also provides ways to manage relationships between models (e.g. i can query for a given User's articles), Validations for fields, etc...

    Is there a similar way to do this client side in Javascript? My server returns responses using the JsonApi standrdized format, but i find that I still have to write a custom model for a User and load it with the json data from the Api response. I also have replicate all the model logic from my backend into my frontend, and i have to manually build and store associations to other records.

    Just wondering how others manage this problem.

    Thanks!

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

    How To Design for the Web in 2019

    Posted: 29 Aug 2020 11:49 AM PDT

    My first real project: A simple, easy to use, ranked-choice polling website

    Posted: 29 Aug 2020 07:56 AM PDT

    No comments:

    Post a Comment