• Breaking News

    Friday, July 24, 2020

    Websites with interactive problems are great for learning learn programming

    Websites with interactive problems are great for learning learn programming


    Websites with interactive problems are great for learning

    Posted: 23 Jul 2020 08:38 AM PDT

    I self study programming, and one of my favorite ways to learn are websites with interactive exercises. Here are some examples.

    These types of websites have three great properties.

    • They dice the lessons and problems into very small, bite sized pieces.
    • They give you exercises. Exercises are like doing your math homework. They're essential.
    • The exercises are interactive and are easily done in the browser. No pen and paper needed. Quick, efficient, less boring.

    Anyway, just wanted to share this tip with you guys. I'm not connected to the above websites in any way. I just think that websites with interactive problems are great, and I wish there were more of them.

    If you know of other websites like these, please post them in the comments below. I'll probably end up doing them cover to cover :)

    edit: Here's my notes on websites mentioned below.

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

    Going from Scripting to Software Engineer-ing

    Posted: 23 Jul 2020 11:12 PM PDT

    I am wondering how I would upgrade myself from "scripting" to "software engineering".

    My history:

    I have a degree in New Media Design and taught myself how to make static websites (ie - restaurants or photographer's portfolio). My first job of 5 years involved maintaining an ecommerce website using HTML, CSS, and jQuery. 3 years ago I quit to work for my current employer. For the first 2.5 years I have been working in Angular which was straight-forward for me to learn. My team recently shifted projects where we are writing drivers for smart devices in Java and I am struggling a lot!

    My problem:

    I feel like I am missing a lot of education and formal training from a Computer Science degree. As a result, I am struggling to understand the complex web of classes and patterns I see in my Java driver project. I have labelled myself as being a good scripter, but now I want to be a software engineer. I am wondering if there are any courses or things I should learn to reach my goal as a software engineer?

    Note:

    I feel like I have a decent understanding of Java as I have watched a number of courses in Udemy and PluralSights. When I open a Java class, I understand the syntax. I just get confused when a class refers to another class, and then refers to another class and so forth. I didn't find this sort of "web tangling" objects in my web projects.

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

    [Code Review] I finally made my first ever submission to Github. It is an ArrayList implementation in C.

    Posted: 23 Jul 2020 07:06 PM PDT

    https://github.com/parvinderandroid/ArrayList-in-C

    Thank you so much, you guys. I poured my heart out on this one and all of you helped me get here. I am the happiest man alive.

    Also: I would love for you guys to review it.

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

    How in the hell can people write code from scratch?

    Posted: 23 Jul 2020 01:48 PM PDT

    This is just mind boggling to me at my current stage of my web development studies. How the hell do you get to that point?

    Is it more of a practice thing that you pick up along the way or is it something you should be doing from the start?

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

    How do I get from simple coding (i.e. math, compound interest, and true/false questions) to making something big like a mod or game?

    Posted: 23 Jul 2020 04:47 PM PDT

    I have spent a slight amount of time coding and I don't know how on earth I'm able to get to that level

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

    Want to learn javascript and backend stuff like server/databases. (For web apps and such.)

    Posted: 23 Jul 2020 05:03 AM PDT

    Any course recommendations for this? I want to create a few web apps like zillow/airbnb such and learn about databases and server stuff. I have not done javascript, just mostly html/css. This is one course I brought; https://www.udemy.com/course/learn-javascript-full-stack-from-scratch/

    Is this enough? Are there better ones with other technologies involved?

    I was looking at this as well ;https://www.udemy.com/course/the-complete-web-developer-zero-to-mastery/

    Any advice? I know some knowledge about coding with c# and done my degree but superbly we never touched on javascript.

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

    What is the proper way to plan out a project? I always underestimate the difficulty of building out my app ideas.

    Posted: 23 Jul 2020 09:05 AM PDT

    I do plan things out. I try to list out what I want to do on a word document, list my MVP features, write what data I would need, and design the project on Adobe before even coding it.

    But still I get blind sided by a HUGE amount of difficulty and complexity I did not anticipate. How do I then become a better project planner?

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

    Should I get a degree in Software Development or Computer Science?

    Posted: 23 Jul 2020 05:21 PM PDT

    Software Development:

    -Faster degree to finish / save money -Already have a graduate degree in science so maybe faster and cheaper is better -Less math courses -Programming centric -More likely to develop coding skills / job ready upon graduation
    -Doesn't look as good as CS on resume

    Computer Science:

    -Longer degree program / more expensive -More math classes -Computer foundations centric -Less likely to develop pure coding skills / not job ready upon graduation -Looks best on resume

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

    Why react native dont allow normal css file?

    Posted: 23 Jul 2020 11:16 PM PDT

    If i understod correctly i can only style via the stylesheet component from react native. I was wondering why?

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

    Programming Books

    Posted: 23 Jul 2020 03:43 PM PDT

    Hey all, I am currently in between semesters and am looking for some good books to read and study while I am off school. Does anyone have any truly awesome programming recommendations?

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

    Why all integration testing tutorials use embedded databases like H2? Is that a best practice?

    Posted: 23 Jul 2020 11:10 PM PDT

    I am using a disk DB (MySQL) in my Spring Boot app. I want to write integration tests, yet all the tutorials use H2, and even the errors I get assume I am using an embedded DB, for ex:

    Failed to replace DataSource with an embedded database for tests

    Is it wrong to use a disk DB on integration testing?

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

    Practice app recommendations?

    Posted: 23 Jul 2020 10:49 PM PDT

    I've got plenty of resources for practicing when I'm home at my desk, but I'd like to be able to practice and learn when I'm not at home. Any apps you've found useful? (Currently learning c++ and python)

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

    I feel like I completely lost my passion for programming.

    Posted: 23 Jul 2020 10:36 PM PDT

    A bit of background: I am an incoming university freshman and I have been programming for three years.

    Sorry for the inconvenience if my post is too long but I seriously need help to regain my passion for programming and computer science in general.

    I remember the time when I first started learning Java from my grade ten coding class. It was an incredible experience. I enjoyed the indescribable satisfaction of solving problems with code and build something out of the code. Programming unlocked the creative side of my brain, it made me believe that I can build many cool things. I did many side projects ever since I started learning programming. I built GUIs, games and a programming language interpreter. Few months ago, I completed YouTube video downloader and GameBoy emulator.

    It was after completing my recent side projects, I realized that programming is not for me. It was too boring. I don't enjoy the time-consuming task of building something from scratch. It seemed to me that I don't like the process of building projects but I only care about the end result. How can I change this terrible mindset? Let me give you an example when I don't enjoy the process: When I started building a programming language interpreter, I hated to code lexer and parser entirely from scratch. I know there are third-party tools that can generate code for lexer and parser but I prefer not to use them because I want my code to be "pure" (ie. I want to have authorship of every piece of code in the project).

    My mindset raised another problem, I now no longer have motivation to start programming projects I have slight interest in. I have no interest in doing small and trivial projects but prefer doing large and complex ones. Each time I want to start large and complex projects like programming language compiler, I often give up because there is some particular piece of software I don't want to implement myself.

    Since I only care about the end results of projects I do, I think killed my passion for programming because I no longer enjoy starting projects. Does anyone feel this way before? Is it a sign of burnout considering how long I've been programming? I'm in the state of burnout since last month and I never recovered from it ever since. Is it normal to feel this way?

    I'm struggling to figure out my true passion. Aside from programming, I like to read books with intent to learn something new and interesting. Maybe I like to learn random things. I'm lost, any good advice on what should I do?

    TL;DR: I lost passion in programming due to my weird mindset and I need help to regain my lost passion.

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

    [FLASK] Login redirect loop

    Posted: 23 Jul 2020 10:16 PM PDT

    When I try to visit my webpage I get an error saying this page has been redirected too many times.

    @app.route('/') @login_required def index(): userID = session['id'] return render_template('index.html', sports=sports) @app.route('/login', methods=['GET', 'POST']) def login(): session.clear() if request.method == 'POST': # Store user ID in session session['id'] = rows[0]['id'] return redirect('/') else: return render_template('login.html') @app.route('/logout') def logout(): session.clear() return redirect('/') @app.route('/signup', methods=['GET', 'POST']) def signup(): if request.method == 'POST': # Get user ID and store in session tmp = cursor.execute('SELECT * FROM users WHERE username = :username', username=newUser) session['id'] = tmp[0]['id'] return redirect('/') else: return render_template('signup.html') 

    Not sure what I am doing wrong? I can't use console and find the exact line. This is the login_required function:

    def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if session.get("id") is None: return redirect("/") return f(*args, **kwargs) return decorated_function 
    submitted by /u/bigbobber123
    [link] [comments]

    Recommendations for learning Kotlin for Android Studio?

    Posted: 23 Jul 2020 10:13 PM PDT

    Hey guys. So I just started to follow a tutorial for Android Studio and the coding is done in Kotlin. Now, creating buttons and adding text and all that seems fairly easy, but when it gets to the coding part I get really really confused, so I was wondering if someone knew a series of tutorials that explain the code really really good.

    I have experience in languages like C++, Java and C# and this one seems fairly different. Any help is welcome, thanks :)

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

    How to rotate a sprite based off an auxiliary sprite?

    Posted: 23 Jul 2020 06:07 PM PDT

    I have a ship sprite in my game and want to have a secondary "fire" exhaust animation playing at its rear, as shown in the GIF. However, when I rotate the sprite, I want the fire to remain in its correct position. I'm using SDL2 and C. I've tried rotating it about the ship's position, but that won't work because SDL_RenderCopyEx's parameter for the point of rotation only considers coordinates local to the sprite.

    Can anyone help me with this math? Regarding the two entities, here's the data I'm given: x and y position, velocities, dimensions, and the angle. I feel like this is all I need but I'm not entirely sure.

    Thanks. https://imgur.com/a/hesuipX

    Edit: I solved it! The main idea was to rotate the sprite around the ship's center coordinate.

    float s_center_x = player->x + player->w / 2; float s_center_y = player->y + player->h / 2; SDL_FPoint p = {s_center_x - fire->x, s_center_y - fire->x};

    So, first, we grab the center coordinates for the sprite. Then, we want to find the distance from this point to the point where we initially position the fire which would be, in my instance:

    float x = player->x; float y = player->y + player->h / 2; fire->pos_x = x - fire->sprite_width + 20; fire->pos_y = y - fire->sprite_height / 2 + 5;

    Just simple offset coordinates. The rotation is applied via a call to SDL_RenderCopyExF, and passing in the rotation of the animation (which is set to be the same as the rotation of the ship).

    https://imgur.com/a/lXDgtKS

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

    What can I do to make each circle move? (P5.js)

    Posted: 23 Jul 2020 09:44 PM PDT

    I have been working on this for few hours but nothing I tried worked. I know how to make one circle and drag it around when the cursor is inside the circle, but basically I want to make a whole bunch of circles using an array and make each circle move around as I drag each of them. My initial thought was writing

    cir = ellipse(mouseX,mouseY,this.r) 

    within clicked() but it didn't work. So instead, I wrote

    this.x = mouseX; this.y = mouseY; 

    but this doesn't work either. Below is the whole codes I wrote. Any help will be appreciated, thanks!

    let circles = []; function setup() { createCanvas(600, 600); for (let i = 0; i < 3; i++) { let x = 100 + 200 * i; let y = 100 let r = 50; circles[i] = new Circle(x, y, r); } } //----------------------------------------------------------- function mousePressed(){ for (let i = 0; i <circles.length; i++) { circles[i].clicked(mouseX, mouseY); } } //----------------------------------------------------------- function draw() { background(121, 203, 212); for (cir of circles) { cir.show(); } } //------------------------------------------------------------ class Circle { constructor (x, y, r){ this.x = x; this.y = y; this.r = r; //this.brightness = 0; } clicked(px, py){ let d = dist(px, py, this.x, this.y); if (d <this.r) { this.x = mouseX; this.y = mouseY; // this.brightness = 255; } } show(){ stroke(255); fill(208,172,230); //fill(this.brightness, 125); ellipse(this.x, this.y, this.r); } } 
    submitted by /u/spicyramyunn
    [link] [comments]

    Css button code from button creator not working

    Posted: 23 Jul 2020 09:34 PM PDT

    Hey guys,I hope everyone of you is doing well, currently I'm taking the web dev bootcamp of Angela yu , so there is this part where we have to copy paste code from button creator.com to stylize a button, I've followed the steps exactly but the css is not being applied , I've checked for errors in mismatch of classes but they are not a mismatch , I've tried with another browser( mozilla) but the problems remains . Can anyone of you tell me what might be the problem.

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

    Learning about methods and classes // Why won't my program give me the batteryLevel?

    Posted: 23 Jul 2020 09:28 PM PDT

    I am learning all on my own, and feel like I am starting to get the hang of methods and classes but was curious as to why it won't let me print out the batteryLevel? Once the line is removed it will run without the battery. Im super new so if this is a mess I apologize.

     public class Droid { String name; int batteryLevel; public Droid(String droidName){ name = droidName; } public int battery(int battery){ battery = batteryLevel; return battery = 100; } public String getbatteryLevel(int battery){ return ("My battery level is: " + battery); } public String toString(){ return ("Hi, my name is: " + name); } public void performTask(String task){ System.out.println(name + " is performing task: " + task); batteryLevel = batteryLevel - 10; } public static void main(String[] args){ Droid codey = new Droid("Codey"); System.out.println(codey); codey.performTask("running"); codey.performTask("Gunning"); codey.getbatteryLevel(); } } 
    submitted by /u/kylejoesph11
    [link] [comments]

    Is it a bad practice to deeply nest ternary operators?

    Posted: 23 Jul 2020 09:13 PM PDT

    I find myself using ternary operators a lot since they reduce a lot of code you have to write with if/else statements. The bad thing is that is not really that readable. Is this for example a bad practice?

    return data['is_self'] ? PostType.text : ( data['is_video'] ? PostType.video : ( ['jpg, png'].map((element) { return (data['url'] as String).contains(element); }).contains(true) ? PostType.image : PostType.link ) ); 
    submitted by /u/aquierick
    [link] [comments]

    iPad Apps for Programming for kids?

    Posted: 23 Jul 2020 09:13 PM PDT

    Any good recommendations? Asking for a friend with children between 5-10 years old.

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

    Do you takes notes while learning? How do you take notes?

    Posted: 23 Jul 2020 05:09 PM PDT

    Right now I use a word document to jot down new concepts and ideas, along with example code. I'd love to know if/how you take notes. Any tips are appreciated. Thank you.

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

    Perform Calculations before or after saving data to database

    Posted: 23 Jul 2020 08:39 PM PDT

    I have a statistical analysis web app that performs various computations on user input and saves certain parameters to the database. From a statistics view in the app, the user can see the analyzed data based on a query from the database.

    Currently, I store the data only partially formatted and then perform additional calculations after the data has been requested. Would it be better practice to perform all calculations before saving to the database? Doing so would significantly increase the amount of fields in my database but would this scale better or provide any performance benefits? is one way or the other "better practice"? Thanks for any input.

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

    Is there a class like Tim Buckakas Masterclass for Java but for C# ASP.NET

    Posted: 23 Jul 2020 08:38 PM PDT

    Hey everyone, I'm starting to learn OOP and the beginning of programming. A coworker told me about Tim Buchakas course on Udemy called the Master class of Java which goes through very extensive lessons on OOP and Java, it's also around 80 hours long . My question is , is there anything similar to it where the instructor goes through the C# fundamentals then goes into building projects for ASP.NET ? Thank you PS. Please dont mention mosh's tutorials. I've tried them and they're ( from what I've seen) very outdated

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

    No comments:

    Post a Comment