• Breaking News

    Sunday, August 9, 2020

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

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


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

    Posted: 08 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]

    How to get better at Hackathons or Problem solving in general?

    Posted: 08 Aug 2020 06:57 AM PDT

    I recently participated in a 6 Hr Hackathon and couldn't even solve one of the questions.

    I practice on various coding platfroms like hackerrank and codechef, and solve easier problems quickly. But when it comes to hard problems my mind just shuts down and I tend to give up.

    I was wondering what I should do to strengthen my Problem Solving Skills?

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

    What is a framework ?

    Posted: 08 Aug 2020 10:45 AM PDT

    I tried googling it , tried to do a bit of reasearch on it , but i still can't understand what it is , i know that Angular , Node JS and Django are all frameworks , but i don't understand what they are , if anyone can explain i'll be more than grateful.

    Everytime i try to understand what it is it essentialy narrows it down to it being a set of programming lanbguages that were used for the project you were working on like :

    "The framework i used for this website was Python and HTML"

    I know it's a dumb question but i've heard this term a lot and i still can't seem to know what it is.

    Mind you i'm still a beginner and just worked on 2 websites so far using SQL , PHP , HTML and CSS , and don't know a lot of terms.

    Thanks

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

    How do most people learn how to program? College, work, self?

    Posted: 08 Aug 2020 10:49 PM PDT

    I found an interesting article on Quora, that college majors in computer science actually don't learn much coding? So where do most people get their formal education on programming?

    Through a different major? Or maybe mostly "on the job? Or maybe this accusation isn't true at all?

    submitted by /u/king-of-everything39
    [link] [comments]

    Something similar to Odin Project for Python and/or Python based frameworks?

    Posted: 08 Aug 2020 11:53 AM PDT

    The concept of The Odin Project seems amazing to me, but Python is more attractive to me and I would rather eventually work with data analysis or conduct back end development work rather than front end web dev, so I don't think Js is something I want to pick up right now

    Are there any similarly structured programs? TOP is honestly the most brilliant free open course I've seen so far

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

    Element of Programming Interview - Java - is it just me or are the descriptions really confusing?

    Posted: 08 Aug 2020 10:23 PM PDT

    I've gone through CTCI before in the past and as I'm preparing for the up coming job search, I picked up EPI and started going through the book. I'm currently in the Array section and some of these problem description are so confusing. I read it over and over and have no clue. One such example is "Sample Online Data"

    I was wondering, is this because of my lack of knowledge or is the book meant to be difficult to read?

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

    Best language to learn for Data Structures and Algorithm

    Posted: 08 Aug 2020 09:59 PM PDT

    As it is stated in the title, what is the best language to learn data structures and algorithm? Sorry newbie here. T.I.A😀

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

    How to Password Protect my Index.html/Main Home page only but not its pages

    Posted: 08 Aug 2020 09:59 PM PDT

    In my index.html/main home page

    There will be buttons linked to different pages of my website , and I want to make only pages accessible by sharing links of it with others , I don't want anyone to access my home page by simply typing my website name

    How do I achieve it ? How to make my index.html password protected that requires you to enter a specific digit or alphabet to make the page visible for you ?

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

    On GitHub, most websites show JavaScript as the language, do they use html or css?

    Posted: 08 Aug 2020 10:11 AM PDT

    I just started using freecodecamp and im learning html and css currently. My friend's github has his own website's source code on github and it shows "Languages: JavaScript 100%".

    Is HTML or CSS used there? Are they needed to learn JavaScript?

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

    Why is this not running the way I think it should?

    Posted: 08 Aug 2020 04:02 PM PDT

    function factorial(num) {
    let result = num - 1;
    for(i = num; i === 1; i--) {
    result = result * i;
    }
    return result;
    }

    factorial(3);

    // first time through:
    // 2 * 3 = 6
    // second time through:
    // 6 * 2 = 12
    // thrid time through:
    // 12 * 1 = 12

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

    Flask trouble- Sublime is not finding the modules that I import.

    Posted: 08 Aug 2020 08:10 PM PDT

    I'm on Windows 10. I'm using Sublime and Ubuntu.

    There are two problems.

    i) Not finding imported packages. For example- "from flask_sqlalchemy import SQLAlchemy", I get "ModuleNotFoundError: No module named 'flask_sqlalchemy'" (Yes, I installed it on Ubuntu.)

    As someone said in my last post "The Windows version of sublime is currently pointing to the Windows version of python. It might be possible to point it to the linux version."

    Their solution is this but I don't understand this at all.

    ii) Not finding folders within my Sublime project. For example- _init\.py is in the folder cardpickup. Also in the folder cardpickup is a file routes.py. When I do, "from cardpickup import routes"on _init.py , I get "ModuleNotFoundError: No module named 'cardpickup'" But, that's how the tutorial did it and that worked fine.

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

    Sensible approaches to executing user commands in C++

    Posted: 08 Aug 2020 04:40 PM PDT

    Hi,

    I've been learning C++ for a good few hours now, and i've got a problem and I don't really have a sensible solution for it.

    This is my current code. You enter a filename and it prints the text. What I want to be able to do is to add a system that allows me to use any number of commands. For example, entering 'dir' to change the directory rather than the filename, or 'return' to return to the root menu of the program.

    The only approach I can really think of is just using If/Else Statements, but there are two problems with that:

    1. I would have to write it in every single definition I have.
    2. It doesn't seem very scalable. For example if I wanted 10 'commands', that would require 10 if/else if/else statements. If i wanted to go up to 100, that would require 100 statements etc.

    What is a more sensible, scalable and efficient approach to something like this?

    Thanks

    Edit: Changed link to pastebin

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

    Need guided in the right direction!

    Posted: 09 Aug 2020 12:14 AM PDT

    Im very new when it comes to coding and am currently working on building a website from scratch. There's a feature I want on my website where you can type something in a search box and news articles found on the web will pop up. How do I attempt to do this? What can I learn to be able to do this? Are there any good resources where I can learn to do this? If anyone could help me with this i'd appreciate it so very much! :)

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

    Swift + C# vs Swift + C++

    Posted: 08 Aug 2020 01:38 PM PDT

    I'm learning swift now, but I want to learn another language. What language is supposed to be learned along with swift? C# or C++? I've worked with C# before, but I don't like with that language.

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

    Starting university in a month majoring in computer science,what programming language should I start learning?

    Posted: 09 Aug 2020 12:10 AM PDT

    Title,thank you!

    submitted by /u/John-Wilson137
    [link] [comments]

    I'm able to run vanilla javascript from and HTML file, but what if the js is not vanilla? For example if a script has external frameworks and is run using "node script.js". Will I need to learn how to and make a node server?

    Posted: 08 Aug 2020 11:55 PM PDT

    Thanks for your insight, want to make sure I have the right idea before I dive into a lengthy node tutorial. Essentially my script uses puppeteer to scrape yahoo finance, but I now want to be able to communicate with this script via an HTML page.

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

    OOP "Types"?

    Posted: 08 Aug 2020 11:52 PM PDT

    Hello!

    I've been attempting to learn OOP in Java. I've been running into this common design problem in which I end up creating "types" of objects. For instance, to implement an achievement system in a game, I would have an AchievementType class that contains an achievement's name, description, and other "constant" variables, and I would have an Achievement class that contains each user's statistics and points back to the AchievementType class so I can reference the "constant" variables.

    When I try to replace this pattern with static variables, I find it difficult, as I cannot create a creator class for each distinct achievement (KillFiftyMonstersAchievement, etc.), as inheritance doesn't work well with static variables.

    Is this an acceptable design pattern or does it weaken the OOP foundation of my project?

    Thank you!

    submitted by /u/New-Condition
    [link] [comments]

    Ok before I keep going I want to say this will be my computer/phone. I want to make a c# program to guess my phone password. But I want to first test it on my computer.

    Posted: 08 Aug 2020 11:51 PM PDT

    Is it possible maybe with a flash drive to make a code to guess passwords on my computer or phone. I want to do this because I have an old phone I forgot the password too that I'd appreciate to get into. I know the basics of c# and am willing to try advanced things. But would this be possible. (I know phones can't use flash drives but how would I go about doing this.) I want to try it on a computer too. So could you tell me how to send the program to the computer and phone. (I want it to be where the computer I'm trying to open doesn't need any software but if I have to download some that would be fine.)

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

    C++: Dynamic array of smart pointers to objects?

    Posted: 08 Aug 2020 07:56 PM PDT

    I have a weird "thing" (Minecraft server startup script) that requires me to make a multithreaded dynamic array of smart pointers to class objects. How do I do this with unique_ptr? Here's what I think could work:

    unique_ptr<myClass[]> Servers[someNum] 

    and plug each pointer of the object into a thread with the use of ->.

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

    Check Constraint in MySQL

    Posted: 08 Aug 2020 11:35 PM PDT

    Isn't the following constraint supposed to enforce the rule that just one single concrete value can be inserted into the field colname?

    create table testtable ( colname char(2) not null, constraint my_chk CHECK (colname = 'CA') ); 

    If so, why does the table still allow me to put in any string as long as it's two characters long? And how do I achieve the desired effect?

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

    how do i build a program that replaces certain words in a text using python

    Posted: 08 Aug 2020 11:15 PM PDT

    i have no idea what i'm doing

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

    Should I add Redux to a small app for portfolio reasons?

    Posted: 08 Aug 2020 11:15 PM PDT

    I have a few projects (personally relevant to me) but none of them warrant going to centralized state. I do know the Redux pattern of using dispatchers to call a reducer function to update the store from toying with it a year ago.

    So I have a couple options: Add redux into a small project. Or make a big project, I'm thinking an Asana clone, that could benefit from it. The later option would extend my buildout time and I'm already 3 years into my self learning and probably (over)qualfied for a junior position, so that is the tradeoff.

    Any advice is appreciated, thanks.

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

    Doing free freelance work

    Posted: 08 Aug 2020 11:06 PM PDT

    Is there is any freelance website where i can practice coding

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

    What is it meant by that implementation in different programming languages may impact the time complexity?

    Posted: 08 Aug 2020 06:28 PM PDT

    I always thought that the time complexity using Big O will be the same for some logic of code for any programming language, but I have been reading how pass by reference or pass by value in C++ or other features in other languages may sometimes have an impact in the time complexity. Is this what is meant by saying that implementation in different programming languages may impact the time complexity? How can one be able to see such differences.

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

    Entry level Java developer interview tips!

    Posted: 08 Aug 2020 06:17 PM PDT

    I have java developer interview in couple days! I'm good with language and DS/algo, but but Nervous! What should I read before the interview! Don't want to loose my chance this time

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

    I want to self-learn CS

    Posted: 08 Aug 2020 09:52 PM PDT

    Should I learn from OSS University or Teachyourselfcs? I plan to get an actual degree later but I need to save some money first

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

    No comments:

    Post a Comment