• Breaking News

    Thursday, October 22, 2020

    I have learned syntax, now what? learn programming

    I have learned syntax, now what? learn programming


    I have learned syntax, now what?

    Posted: 21 Oct 2020 08:31 PM PDT

    I am familiar with the syntax and data structures of Python C++ Java but am stuck on how to actually build a solid application. When browsing other people's projects it seems like they are using other resources other than just their text editor to create their applications. How do I find these resources so I am not constantly reinventing the wheel?

    I hope my question makes sense and I'd appreciate any advice.

    I am 2/3rds completed with a computer science bachelor's degree from WGU (an online University) and still feel a little uneasy about my ability to create something useful.

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

    Has anyone checked out Microsoft’s Frontend Bootcamp? Is it any good?

    Posted: 21 Oct 2020 03:53 AM PDT

    Check out the link here

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

    Top 12 Ways To Learn AWS (for free)

    Posted: 21 Oct 2020 09:07 PM PDT

    Top 12 Ways To Learn AWS (for free)

    By Anna Anisienia

    Regardless of whether you are a programmer, data scientist, data engineer, DevOps, database administrator, data analyst, or a manager, knowing AWS is an important skill. Even if some company uses a different cloud provider, the main concepts of cloud storage, compute, or networking, are quite similar across all vendors. In the following, Author here lists free resources that are extremely helpful in learning AWS.

    • edX courses offered by AWS
    • Qwiklabs
    • AWS free tier

    And 9 more.

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

    I am so excited to finish my first project!

    Posted: 21 Oct 2020 08:31 AM PDT

    OMG, I did it! I deployed my first project! I am gonna fly now! It needs updates and more advanced features needs to be added but here is the raw and 1st version of it. I am open for feedbacks! here it is!

    here is repo

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

    I started to learn coding yesterday and I have a few specific question that were not answered by the site I am using to learn.

    Posted: 21 Oct 2020 05:21 PM PDT

    Will a free learning tool be good for me? Will it teach me what I need to learn? If so, where can I find more reliable sources of this? I am currently using Sololearn but I sometimes feel like some information is missing(I know I just started but that how I have been feelinhg). Some lessons are confuse. I am still not getting it. Where am I supposed to code? I mean, what software is used for that? For all I know, people are kinda coding in the air.

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

    Any programmers I can talk to/ zoom, I’m taking a microcontroller class and getting buried in work today alone I’ve spend 5+ hrs working on a program that’s still not finished

    Posted: 21 Oct 2020 03:19 PM PDT

    The program I'm currently working on I need to control 5 leds using 2 push buttons and a photoresistor.

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

    Syntax is not the problem

    Posted: 21 Oct 2020 06:47 PM PDT

    Hello, I'm a college Graduate with a degree in computer science, but while I was in college, I didn't have enough time to sit down and actually learn programming, but now that I'm out of college, I seem to be struggling tremendously with understanding how to manipulate data when it comes to programming the basics, Like it's not the syntax I'm struggling with its learning when to use an if statement or a for loop or an array to solve problems in JavaScript, Can someone help me understand how I can learn how to manipulate data?

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

    How to add some flair to border box? (CSS newbie)

    Posted: 21 Oct 2020 03:43 PM PDT

    Hey y'all, just started on CSS this week and finally doing a mini website for class, just wondering if there's a way to flair up a border box with an overlaid image/graphic?

    Easiest comparison I can think of is how some Tumblr themes do the background image for posts, but can't quite pick apart how to emulate it on my own for a pretty simple bare bones website. It's a class assignment, and this part isn't required so I wouldn't stress over it, but, I really want to push myself a little and have that aesthetic if possible.

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

    I want to work in education software development, and I don't know where to start.

    Posted: 21 Oct 2020 11:21 PM PDT

    I feel like I'm asking a really stupid question here, but I've looked through the FAQ and couldn't find an answer. Please go easy on me if I'm asking the wrong question or making false assumptions. I'm very much open to learning.

    I have zero experience in programming (unless you count learning basic HTML to change the font color on my Neopets webpage).

    I have been working as a high school teacher for a while now, and I want to move into web/software development, especially foreign language learning software (think Duolingo).

    I'm at a total loss for where to begin, and I'm trying to resist the urge to go for an associate's degree just to have something on my resume. I'm worried that learning through online courses won't make me marketable as a potential employee, and I don't really learn well without some form of guidance.

    Are there any reputable courses out there (free or paid) that will take me from zero to developer within a year or two? Bonus points if there's something I can put on my resume after that.

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

    Where do I learn data structures and algorithms well as a prerequisite to Leetcode (preferably in C++) ?

    Posted: 21 Oct 2020 09:46 PM PDT

    I'm overwhelmed by the amount of resources there are. Is the algorithms specialisation on Coursera by Stanford enough? I will be supplementing what I learn with LC simultaneously.

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

    Is there any online course as good or better than Harvard's CS50?

    Posted: 21 Oct 2020 09:33 PM PDT

    I really want to take CS50 from Harvardx but I'm concerned about the privacy policy, it seems like they share information on you with researchers. Is this truly the single best course (as it looks like it is), or are there better ones?

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

    How get started in networks?

    Posted: 21 Oct 2020 10:39 PM PDT

    Find ways to getting started in programming is easy, but how do I get into networking? I have no knowledge of IP and TCP stuff. Port Forwarding, Routers etc. I have very basic knowledge on Haskell and C, hope thats enough to grasp some basics.

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

    Getting distracted by multiple interests

    Posted: 21 Oct 2020 10:13 PM PDT

    Not entirely sure if this is the appropriate subreddit, but figured it might be in line with what other people are experiencing or have experienced:

    In the past couple months I've been really trying to learn more about programming and computers in general. But the problem is that because I have multiple areas of interest (none of which I am particularly experienced or knowledgable in), I feel that I often get distracted.

    Instead of diving in deeply into one topic at a time, I am switching between topics seemingly at random and find myself unsure of which path to follow first.

    For example, a few of my personal interests include: operating systems in general, linux (e.g. kernel, development, etc.), cryptography and computer security, microcontrollers and embedded programming, networking, etc.. etc.....

    Again, not particularly knowledgable in any of these subjects (in fact, just the opposite) which could be a reason as to why I'm bouncing around so much. One day I will start reading a book on linux, the next a different book on networking protocols....

    Any advice to stay focused on a topic at a time? Or maybe advice to allow myself to explore other areas while still maintaining focus? There doesn't seem to be enough time in the day!

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

    Tic tac toe continues even after win is True (Python)

    Posted: 21 Oct 2020 09:46 PM PDT

    Re: Tic tac toe on python

    This is most of the code regarding the looping

    The problem: After getting three Xs or Os in a row, the message "xx has won" is printed, followed by "player x's choose your row" again. By my understanding the game should stop because it is a while loop and win == False. Any help or advise on how to shorten my code is welcome :)

    #to win

    def check():

    if row1 == [" x ", " x ", " x "] or row2 == [" x ", " x ", " x "] or row3 == [" x ", " x ", " x "]:

    win = True

    print("Player 1 is the winner")

    elif row1 == [" O ", " O ", " O "] or row2 == [" O ", " O ", " O "] or row3 == [" O ", " O ", " O "]:

    win = True

    print("Player 2 is the winner")

    elif row1[0] == " x " and row2 [1] == " x " and row3 [2] == " x " :

    win = True

    print("Player 1 is the winner")

    elif row1[2] == " x " and row2 [1] == " x " and row3 [0] == " x ":

    win = True

    print("Player 1 is the winner")

    elif row1[0] == " x " and row2 [0] == " x " and row3 [0] == " x " :

    win = True

    print("Player 1 is the winner")

    elif row1[1] == " x " and row2 [1] == " x " and row3 [1] == " x " :

    win = True

    print("Player 1 is the winner")

    elif row1[2] == " x " and row2 [2] == " x " and row3 [2] == " x " :

    win = True

    print("Player 1 is the winner")

    elif row1[0] == " O " and row2 [1] == " O " and row3 [2] == " O " :

    win = True

    print("Player 2 is the winner")

    elif row1[2] == " O " and row2 [1] == " O " and row3 [0] == " O ":

    win = True

    print("Player 2 is the winner")

    elif row1[0] == " O " and row2 [0] == " O " and row3 [0] == " O " :

    win = True

    print("Player 2 is the winner")

    elif row1[1] == " O " and row2 [1] == " O " and row3 [1] == " O " :

    win = True

    print("Player 2 is the winner")

    elif row1[2] == " O " and row2 [2] == " O " and row3 [2] == " O " :

    win = True

    print("Player 2 is the winner")

    else :

    win = False

    win = False

    while win == False:

    check()

    if win == True:

    break

    p1row = int(input("Player 1 choose your row: "))

    p1column = int(input("Player 1 choose your column: "))

    p1move(p1row, p1column)

    print_grid()

    check()

    if win == False:

    p2row = int(input("Player 2 choose your row: "))

    p2column = int(input("Player 2 choose your column: "))

    p2move(p2row, p2column)

    print_grid()

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

    First webpage in attempt to hone some of the things I've learned so far, would love feedback!

    Posted: 21 Oct 2020 07:08 PM PDT

    Hi all, I've been taking Colt Steele's Udemy web dev course and just wrapped up the HTML/CSS sections (roughly unit 10 of the new modules). I took a break before going into he bootstrap section so I could practice on some of the skills I got from the course and I'd love some feedback.

    https://drive.google.com/file/d/1z8-IsLMgyzGBk9YQVOpg0SDwe9bxJScX/view?usp=sharing

    I've been trying to get the border on each of my titles to go exactly under the text and remain that way when the page is resized but I can't get it to work. Any ideas how I can go about that?

    It might sound silly but is that something I could include in a portfolio or is not even worth it since it's only html/css?

    Thank you!

    Edit: to do the border will I need to use media queries to have it adjust for each screen size? Or maybe set a title width within a div and give that a border-bottom?

    Edit 2: https://8y8be.csb.app/

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

    My JS is not starting over with SetInverval

    Posted: 21 Oct 2020 11:50 PM PDT

    I'd like this script to repeat, but it ain't working, what am I getting wrong?
    https://jsfiddle.net/cuaf50wk/9/

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

    Is there a wrong way to do input validation loops in Python?

    Posted: 21 Oct 2020 11:34 PM PDT

    Ok so the traditional way of doing input validation is this:

    age = int(float(input('Enter your age'))) while age not in range(1, 131): print('Please enter only whole numbers 1-130') age = int(float(input('Enter your age'))) 

    Here is another way I found that seems more elegant to me, but I don't see it used in what I'm reading.

    While True: age = int(float(input('Enter your age'))) if age in range(1, 131): break else: print('invalid entry') 

    Is there anything wrong with not taking the input before the loop starts?

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

    Can i Create E-Commerce Website with my current skill set?

    Posted: 21 Oct 2020 11:07 PM PDT

    So, I'm really in rush because I need to create an E-Commerce website, the deadline is in the end of the month. I want to create the website from scratch, I know HTML, CSS, I'll say a bit of PHP, I'm currently learning Laravel from Laracasts, and I'm only half way of finishing the lessons, I just finished the section 7 to be exact so I already know the The Seven Restful Controller Actions. I need the website for a school project, I don't need to deploy it or anything, just need to show that it functions. So the big question is, are my skills enough to create this website? or do I still need to learn something aside from the skills I mentioned to make this possible? I hope I've given enough information so my question can be answered.

    I tried to post on r/webdev but my account is too young so it got automatically deleted. I still hope someone can answer my questions here.

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

    Is there a name for the design pattern where a server acts as a client intermediate?

    Posted: 21 Oct 2020 10:58 PM PDT

    For example I have a booking website like expedia. I have a client contact my server and then my server acts like a client and contacts several service providers. In this case, is my server is really a server and client. Is there a good name for this pattern?

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

    How compare the states of this list?

    Posted: 21 Oct 2020 10:38 PM PDT

    Hi everyone.

    Could someone tell me how to do this?

    Im doing a chessboard, with reed switchs and magnets (following a unfinished tutorial).

    What I want to do is verify that the starting position is correct (all pieces on place). And if it is correct then to be able to move the pieces. Currently I can move the pieces but I do not verify the position.

    Of course, if not, turn the led of the pieces that is not on his place. (not piece recognition, just is expected the a1,b1,c1, etc is close, so, if there is no piece it will be open, and that is a board with bad position.

    The starting position of the board is this

     mbrd = [0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C] 

    this is the program with which I check if there was a change and move the pieces. Having these values I think it should be possible to generate the function I want. But the truth is that I can't find the way around.

    import smbus import time import math # MUX stuff I2C_address = 0x71 # address of mux changed to avoid conflict with led driver I2C_bus_number = 1 bus = smbus.SMBus(I2C_bus_number) # bus = smbus.SMBus(1) # Rev 2 Pi uses 1 # this program scans 64 inputs on 4 MCP23017 port exapanders and returns changes mbrd = [0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C] # mbrd is the 8 columns of the chess board chcol =["A","B","C","D","E","F","G","H",'X','Y'] DEVICE = [0x21,0x22,0x23, 0x24] # the 4 I2c Device address of the MCP23017s (A0-A2) GPIOn = [0x12, 0x13] IODIRA = 0x00 # APin direction register for first 8 ie 1 = input or 2= output IODIRB = 0x01 # B Pin direction register GPIOA = 0x12 # Register for inputs GPIOB = 0x13 # B Register for inputs GPPUA= 0x0C # Register for Pull ups A GPPUB= 0x0D # Register for Pull ups B # first we do a one time setup of the MCPs for i in range(0,4): # for each of the 4 MCPs # first calculate channel code to send to MUX # MCPs on channels 2, 3, 4, 5, i2c_channel=2**(i+2) # calculates binary that gives channel pos, ie channel 0 is 0b00000001 and channel 4 is b0b00010000 bus.write_byte(I2C_address,i2c_channel) # tell MUX to use this channel # time.sleep(0.2) #for each of the 4 devices # Set all A 8 GPA pins as input. ie set them to 1 oXFF = 11111111 bus.write_byte_data(DEVICE[i],IODIRA,0xFF) # Set pull up on GPA pins .ie from default of 0 to 11111111 bus.write_byte_data(DEVICE[i],GPPUA,0xFF) # Set all B 8 GPB pins as input. ie set them to 1 oXFF = 11111111 bus.write_byte_data(DEVICE[i],IODIRB,0xFF) # Set pull up on GPB pins .ie from default of 0 to 11111111 bus.write_byte_data(DEVICE[i],GPPUB,0xFF) # now look for a change while True: # read the 8 registers for k in range(0,4): i2c_channel=2**(k+2) # calculates binary that gives channel pos bus.write_byte(I2C_address,i2c_channel) # tell MUX to use this channel # time.sleep(0.1) # just in case for l in range(2): # for each MCP register A and B a = bus.read_byte_data(DEVICE[k],GPIOn[l]) if a != mbrd[(k*2)+l]: # there has been a change c = a ^ mbrd[(k*2)+l] # bitwise operation copies the bit if it is set in one operand but not both. dirx = "Close" if a > mbrd[(k*2)+l] : dirx = "open" # if the number gets bigger a 0 has changed to a 1 y = math.frexp(c)[1] # calculates integer part of log base 2, which is binary bit position print chcol[(k*2)+l], y, dirx, l mbrd[(k*2)+l]=a # update the current state of the board # time.sleep(0.1) 

    Here is not the funtion led, etc. But i dont know how compare the board properly.

    Thanks to everyone.

    submitted by /u/9acca9
    [link] [comments]

    Hi! I have a problem with my following code in C++.

    Posted: 21 Oct 2020 10:12 PM PDT

    Hi! As stated above, I have a problem with my C++. I'm a complete and utter noob at programming but I want to learn. My question is... How do I make this while loop stop? I want it to stop when the user presses "n" at the end cin. But when I press "n" it doesn't stop. What am I doing wrong? (This is a cuboid calculator btw)

    #include <iostream>

    using namespace std;

    int main()

    {

    char yOrN = ('y') ;

    while (yOrN = 'y') {

    cout << "Please type the width underneath." << endl;

    int width;

    cin >> width;

    cout << "Please type the length underneath." << endl;

    int length;

    cin >> length;

    cout << "Please type the height underneath." << endl;

    int height;

    cin >> height;

    int cuboidDimensions;

    cuboidDimensions = height * length * width;

    cout << endl << "Okay, the volume is: " << cuboidDimensions << endl;

    cout << endl << "Any more cuboids? y or n." << endl;

    cin >> yOrN; }

    }

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

    Objective C File Not Opened / No Program Output

    Posted: 21 Oct 2020 06:10 PM PDT

    https://stackoverflow.com/questions/64473437/objective-c-file-not-openned-no-program-output

    Anyone have any idea why my program is written in multiple languages. I am just attempting to get the program to compile but get:

    error: linker command failed with exit code 1

    Can't figure out what the actual issue is as I think it's a simple fix. If you have any ideas you will be greatly appreciated.

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

    How do you update thousands of stuff on screen without losing performance?

    Posted: 21 Oct 2020 12:00 PM PDT

    I have always been fascinated by things like particle systems, fully destructible environment and everything where you have to update 10,000s of objects without affecting performance.

    I just recently started playing Drone swarm and once again I came to wonder: How do you update so much stuff while keeping the framerate high?

    I am a game dev myself and I am struggling with performance with a couple of things on screen, so this type of results baffles me.

    I would love any pointer towards things that I should look into to achieve this type of things :)

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

    Java Question

    Posted: 21 Oct 2020 09:27 PM PDT

    public class Main { public static void reversearry(int[] nums,int begin, int end){ if(begin == nums.length/2){ return; } int temp = nums[begin]; nums[begin] = nums[end]; nums[end] = temp; reversearry(nums,begin+1,end-1); } public static void main(String[] args) { int[] nums = {10,20,30,40,50}; int index = 0; int length = nums.length-1; reversearry(nums,0,length); System.out.println(nums); } } 

    Up above is my code for reversing an array using recursion. One thing I am having trouble with is when I print nums it shows as an address rather then the actual array. How would I fix this

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

    No comments:

    Post a Comment