• Breaking News

    Monday, March 30, 2020

    How do programmers learn cybersecurity for software development? learn programming

    How do programmers learn cybersecurity for software development? learn programming


    How do programmers learn cybersecurity for software development?

    Posted: 29 Mar 2020 04:24 AM PDT

    I've built a few web applications for classes, and it always gets me thinking "I'm glad no one knows about this because it could probably get hacked very easily"...since I have no idea what I'm doing on the security side and I don't really implement much for it. (Basically, I know how I should hash passwords.) This is probably really bad, and I feel like this is a skill I should've learned a lot earlier, but I wasn't really ever taught in school. Googling it is kind of difficult and I have a lot to ask so: Where could / how do I learn how to make safe software? How could I prevent it from easily being hacked? How do I keep user information safe? How can I as a software developer prevent from making easily detectable cybersecurity mistakes (e.g. for the customer, or for me - like being my app's secret key on Github or something). Does this question classify under 'cybersecurity' - if not, could someone give me a better word?

    Are there any collection of resources to learn about these topics?
    (e.g. something like MIT's Missing Semester https://missing.csail.mit.edu/2020/, which has one section on security)

    Also, kinda off-topic question if that's cool - when 'genius hackers' and such build their startups, what do they do for security? Did someone like Mark Zuckerburg already know about cybersecurity or does he get a guy to specialize in it?

    To cybersecurity people, sorry I am basically clueless so I probably sound like I'm all the non-tech people in your life who ask you about fixing their printer.

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

    The choice of first language isn't that important

    Posted: 29 Mar 2020 12:43 PM PDT

    I saw many who are new to programming asking this same question on this thread, "which language should I learn first?"

    I believe the choice of first language to learn as a beginner isn't really that important.

    As an demonstration, here's the same simple program written in Java, JavaScript, Ruby, Python:

    Python - https://gist.github.com/codingvideo/82500c460b34d9b7a10713e9b8728cd1

    JavaScript - https://gist.github.com/codingvideo/07426475c004048eeb9f31625ca337cd

    Ruby - https://gist.github.com/codingvideo/062da8d8a0c6f3a76f2c74a04ec9d298

    Java - https://gist.github.com/codingvideo/40df08f66a06610be892fdf7c5a113e1

    And here's a visual breakdown of the syntactical differences between languages:

    JavaScript vs Java - https://pbs.twimg.com/media/EUQMovBXgAEJkjM?format=png&name=large

    Ruby vs Python - https://pbs.twimg.com/media/EUQMovCWoAE_1w_?format=png&name=large

    As you can see, the logic is the same across languages, while the syntax isn't that much different either. And syntax is the easiest part to learn about a language, and so you shouldn't be worrying too much about which language to choose, between the mainstream popular ones, just choose the one that you feel good about. You can easily pick up a different language once you got good in your first one.

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

    stupid question new to programming

    Posted: 29 Mar 2020 10:20 PM PDT

    So I like many others lost my job due to this covid thing. I began codeforfree, and odin project. by the end of it you get a certificate and a course on how to pass a job interview. My question ill be spending quite a bit of time working on this what is the likelyhood of getting a good paying job with these qualifications? is thete more i should be doing? at the moment i cant afford to go back to school so is this good for now?

    submitted by /u/wecanthave-nicestuff
    [link] [comments]

    Help with javascript English -> Morse Code translator

    Posted: 29 Mar 2020 11:21 PM PDT

    So I'm currently working on code.org which has a kind of app lab that runs off of javascript. The HTML part is all done with an editor and you can't really see that code so every HTML element is called using an id and then event handlers.

    The issue I'm having is I want the text input into my textbox to get broken down into each character and then have each character execute a function that hides and shows an image called "flash" but I can't figure out how to get the letters to store a function and then have the function execute when it comes up in the text box.

    My code: https://pastebin.com/7PYqmyCR

    UI/HTML screenshot: https://imgur.com/a/MBAHH4T

    I really need help here, and I appreciate any help I can get.

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

    How do I use a Spring Boot API in a Java program?

    Posted: 29 Mar 2020 09:01 PM PDT

    Im pretty new to this. I made a spring boot api using this tutorial: https://www.callicoder.com/spring-boot-rest-api-tutorial-with-mysql-jpa-hibernate/ and Im not sure how to use it in a java program.

    By java program i mean something where i can ask for the users name using a system out and then use the scanner to get the user input, and this input will be sent to the database via a post request.

    tbh im not sure if this is even possible so any help is much appreciated

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

    Array Algorithm Question

    Posted: 29 Mar 2020 11:00 PM PDT

    You have 2 arrays, where the first array is a master list of strings and the second array is a custom list of strings a user provides. The first array defines the order in which strings should appear IF they exist in the second custom array.

    For example, first array: [A,B,C,D,E], second array: [E,G,A,H,I]

    I want to get the answer: [A,E,G,H,I]

    Notice how A and E were in the custom array, so they have been arranged to follow the expected order based on the first array. The values that are not found in the master can appear in any order, but in this case, I just added them to the end in the order they appeared.

    My thought process:

    I could turn the custom list into an object, where the key is the string value, and the value pair doesnt matter, it could be false. Then we iterate through the master list and for each element we ask whether it can be found in the object. If it can, we push that value to the end of a new array that we will return. This brings all the ones that exist in the custom array to the front but now we don't really know which order the ones that don't exist are in, so we would have to do another pass of the custom array and push the values that cant be found in the master array to the end of the answer list. This would mean that I have to create an object out of both arrays so lookup is O(1). This would give me a total of O(n+m) complexity with 2 passes. (Technically 4 passes total, since you need to iterate to create the objects)

    I'm wondering if I can do better in terms of speed first, and if not, do better space-wise.

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

    [JAVA] Switching from one frame to another in Swing GUI

    Posted: 29 Mar 2020 10:58 PM PDT

    For example, in an app where you go to a main screen after a login screen, is it better to use CardLayout or multiple JFrames for the login screen and the main screen?

    If it's multiple JFrames, would you have the login screen and the main screen as separate classes?

    This is for a small school assignment, any help would be appreciated

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

    I want to write a program that sorts my favorite things in a list. How should I go about doing that?

    Posted: 29 Mar 2020 10:43 PM PDT

    I am a little weird in that I love ranking things, looking through statistics, etc. A few years ago I put all the songs I liked into notepad and went through all of them over time ranking them until I got to a ranked list sorted from absolute favorite to least favorite.

    This took me partitioning my songs into specific groups to make it easier. I was thinking at some point this is a perfect program to write considering this is a problem that I actually want to solve.

    I am pretty sure that there is already an algorithm that sorts in this way, and if you know the name let me know. Either way, I want to write a program that takes in all of my songs. I was thinking that it works in a way where you continuously being asked to compare two random songs from the list and you decide which of the two you like more. After every comparison has been made, the list is sorted

    How should I go about doing this?

    Edit: I'm realizing the algorithm itself doesn't sound that hard, I wrote this spontaneously but i would appreciate any input

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

    Recommendations for any online course for my summer internship?

    Posted: 29 Mar 2020 08:23 PM PDT

    Hi everyone! I have a software engineering internship this summer, and to be honest, I don't have a good picture of what I'll be doing. However, I will probably get a chance to contact the team's manager in a couple weeks, as the management isn't set at the moment, but I'm really excited and I thought I'd find a way to prepare in the meantime:

    My job requires:

    • Java (server-side I think?)
    • MySQL
    • Javascript (a bit)

    At a high-level, I'm guessing my job might be related to platform development in the context of cloud.

    And my situation is: I have zero experience with web and server development / technologies, not even HTML and CSS. I just know the generic OO Java and C++ combo. So I'm not really sure what types of things you do with the specific combination of skills and description listed above - I was wondering if you guys could point me to the right learning material? Maybe there is an online course that teaches you the combination of the three at once, or maybe I should learn Javascript and MySQL separately and figure out how to put it all together during the internship, any recommendations / ideas? Thank you so, so much :)

    submitted by /u/transcender-plus
    [link] [comments]

    need help with Return Functions in C++

    Posted: 29 Mar 2020 10:27 PM PDT

    This example was what i found on youtube:

    1 #include <iostream> 2 using namespace std; 3 4 int getArea(int w, int l); 5 6 int main() 7 { 8 int length = 4; 9 int width = 5; 10 int area; 11 12 area = getArea(width, length); 13 } 14 15 int getArea(int w, int l) 16 { 17 int a; 18 a = w*l; 19 return a; 20 } 

    Question 1: What is this useful for? why can't I just use:

    int a; a = length * width; 

    It is the same answer with less steps. Why use return?

    and plug it into a cout to show them the result later?

    cout<<"your value is: << a << endl; 

    Question 2: so does (int w, int l) have any value or use? if not, is it just there so you can remember what to plug into it later on?

    In the example provided, the person set the values for

    int length = 4; int width = 5; 

    but used:

    (int w, int l) 

    which did not have any numbers assigned to it. Does that mean everything within the ( ) are just fill in's to remind you later on what to plug in?

    Question 3: What does:

    return a; 

    actually do? Does it actually return the whole getArea instead of just a? what does returning it do?

    Question 4: Is there any other important things that I am missing from return functions that I should learn?

    Any examples would be appreciated!

    -online student due to coronavirus :(

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

    A confusing and irresistible itch

    Posted: 29 Mar 2020 10:24 PM PDT

    I have been working on learning Javascript / c# a few times in the past few years. I keep getting lured back in by coding. I am familiar with the basic levels of coding, however I lack the ability or knowledge to see how it all fits together. What I mean is how if else, loops etc combine to make such amazing things. I also find it difficult to comprehend what I can do with which language. For example I know how to write out this simple app, but what is truly possible? I'm having a hard time narrowing down what I can make or do or should do with the knowledge I have. I feel like you can make anything you can think of, but how do you narrow down that scope to a design idea? Also how do I determine like oh ok I have this idea this would be coded under Javascript or instead of Javascript maybe C#. I find this is my biggest limitation in progression with the path of learning code. So many endless possibilities that I don't even know what to start with, or what my limitations are with what languages. I know that html website, and CSS is for styling. But this is a whole new broad world to me and could use some advice/recommendations.

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

    I'm looking to learn python over this quarantine time any suggestions on how I go about starting or what I should do to learn?

    Posted: 29 Mar 2020 09:52 PM PDT

    As I said I'm wanting to learn python and I'm looking for pointers

    submitted by /u/wee-man2012
    [link] [comments]

    "To Do List" first time programmer

    Posted: 29 Mar 2020 09:41 PM PDT

    If i were to make a "To Do List" application which includes both front and backend, what are the things i should learn in order to make it.

    I would like to use C# to do the back end (as i'd like to learn the language), but anything else than that i'm lost in a sense of not knowing

    what else im needed in order to make a simple "To do list" program/web application. So Im asking here if any of you guys have a suggestion for me,

    how to make this happen. What specific things should i learn and if you could list all the languages/frameworks/... i'd need to learn, or if you have an idea

    if it would be better for me to make this a standalone program or a web application (i was told it would be easier for me to make it as a web app

    because of the variety of things i would need to learn). I know im asking for much, but if anybody can help, it would be much appreciated as i would like

    to learn something during this corona lockdown, because for a while now i wanted to learn to code, and now that i have time and will, it seems like it would

    be the best time. Somebody i know told only told me it would be the best to do it as a Web app, so if you have any other way of doing it, please help.

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

    Where to find intermediate and advanced programming practice (not web app development)

    Posted: 29 Mar 2020 09:24 PM PDT

    TL;DR -- looking for a semi-specific type of intermediate/advanced programming practice projects to keep skills fresh. I mostly enjoy backend systems and APIs, and want to avoid full-stack web app development.

    I have a CS background and a few years of software engineering work experience, but have been in a non-programming role (technical product management) for the last ~4-5 years. I have been trying to maintain my programming skills and want some advice on finding the right projects to work on.

    I'm looking for something that's more involved than the typical LeetCode-style practice problems or programming puzzles, ideally projects with real-world applications that I can work on for a few weeks before moving to the next one. My interests are most closely aligned to backend and systems work, including API development, but I am open to applications like data wrangling, image processing, etc as well. I don't much care for the web or app development projects that most people seem to recommend. I like the backend and API-layer work, but don't much care for the frontend/UI development aspects, it was just too much effort to keep track of the ever-changing frameworks.

    Intermediate/advanced difficulty is ideal, I exhausted the intro level work during undergrad. :) For example, I loved the projects from advanced undergrad courses, we'd get minimal starter code just to make sure that the entire thing compiled properly but 99%+ of the work was open-ended. If there are any GitHub repos like this that would be awesome, but it's not a requirement.

    I prefer Python and Java, but am willing to dust off my C++/C skills if needed.

    Looking forward to any advice from you all. I know this a lot of constraints, but I appreciate the help. Thanks.

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

    Which language to use to write an ECU?

    Posted: 29 Mar 2020 08:59 PM PDT

    Which language do you guys think is best to write an ECU for an epxerimental motorcycle?

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

    Project Lead the Way (PLTW) middle school CS teacher, need ideas for online curriculum in at-home learning

    Posted: 29 Mar 2020 08:41 PM PDT

    As you might imagine, most of the teachers in the world are adjusting to something we have never really received training on - 100% e-learning.

    I don't really have a background in computer science, but within my building I was most capable of taking on a very turn-key curriculum in PLTW coursework. I have to emphasize that I don't really need to know how to code more than the students to teach this well, since it is so turn-key and clearly vertically aligned with other courses. I've enjoyed it so far and it has prompted me to look into learning CS more deeply myself, but that's not the point of my post.

    During the normal class, students build code using block programming on makecode.microbit.org. The class was really focused on physical computing, but we are unable to loan out micro:bits to all students in the class.

    So, I am looking for a middle school appropriate, (ideally) game-ified coding courses that I could track student progress on over the course of the next 6 weeks. Even if students simply screenshot code I could make that work. Preferably, however, there would be a teacher/student function.

    Thanks for your help, and feel free to ask me to clarify.

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

    I want to get into coding. Where should I start?

    Posted: 29 Mar 2020 05:04 PM PDT

    I would love to eventually be able to code a program. Although coding small games such as noughts and crosses would be fun my main interest is in coding my own app/program one day. Where should I start?

    submitted by /u/Just-James371
    [link] [comments]

    Why is there such confusion being created whether a language is interpreted or compiled...or both?

    Posted: 29 Mar 2020 11:00 PM PDT

    Until last week I was under the impression that Python was a completely interpreted language but out of intrest when I started digging through articles. I found that on the contrary Python is first compiled to byte code and then interpreted, same case for Java(but still different type of execution as I understood).

    That got me wondering why is this valuable piece of information not taught to us or even mentioned early on? I'm talking about the online courses which claim that they will teach you a language such that you will understand how it works and use it properly. I have done some of them and never was it even implied about this.

    I'm saying this because after finding this piece of information I struck a goldmine of different concepts that taught me about the fundamentals of programming language. I still can't get over the fact that I didn't know about this. Or am I the only one? I know that at first students may get confused or taken aback but then it will just sink in and then they can learn more after that. No offense to anyone but I'm just genuinely interested about the reason.

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

    What is the best software/course material to learn from?

    Posted: 29 Mar 2020 07:12 PM PDT

    I am looking to learn how to code on my own time.

    Obligatory i know there are enough you tube videos out there that i can probably become a master by just looking them up and watching/following along with them...i don't want to do that.

    I don't mind paying, call me a sucker, but an organised program that is interactive and engaging makes it easier for me to learn. so...Which ones have you tried? which ones would you recommend?

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

    Structure Program Abort Problem

    Posted: 29 Mar 2020 10:06 PM PDT

    #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; struct Rtime { string time; }; struct Rdate { string year, month, day; }; struct reservation { string name, phone, exp, email, size, credit; Rtime revtime; Rdate revdate; }; void print_rev(reservation rev) { cout << rev.name << endl << rev.size << endl << rev.revdate.month << endl << rev.revdate.day << endl << rev.revdate.year << endl << rev.revtime.time; cout << endl << rev.phone << endl << rev.email << endl << rev.credit << endl << rev.exp << endl << endl; } int main() { string str; string emonth, eday, eyear; ifstream infile; infile.open("C:/Users/danie/Desktop/dinner_reservations.txt"); reservation rev[9]; int x = 0; getline(infile, str); while (x <= 5) { getline(infile, str); rev[x].name = str.substr(0, 12); rev[x].size = str.substr(12, 1); rev[x].revdate.month = str.substr(17, 1); rev[x].revdate.day = str.substr(19, 2); rev[x].revdate.year = str.substr(22, 4); rev[x].revtime.time = str.substr(29, 4); rev[x].phone = str.substr(35, 12); rev[x].email = str.substr(50, 11); rev[x].credit = str.substr(63, 14); rev[x].exp = str.substr(79, 5); //cout << rev[x].name << endl << rev[x].size << endl << rev[x].revdate.month << endl << rev[x].revdate.day << endl << rev[x].revdate.year << endl << rev[x].revtime.time; //cout << endl << rev[x].phone << endl << rev[x].email << endl << rev[x].credit << endl << rev[x].exp << endl; //print_rev(rev[x]); x = x + 1; } cout << "Enter a date" << endl; cin >> emonth >> eday >> eyear; int arraylength = sizeof(rev); for (int i = 0; i <= arraylength; i++) { if ((rev[i].revdate.month == emonth) && (rev[i].revdate.day == eday) && (rev[i].revdate.year == eyear)) { print_rev(rev[i]); } } } 

    And the Data file I'm using is the following as a text file. The problem is that I'm receiving an abort error in the while loop. Any ideas?

    NAME SIZE DATE TIME PHONE EMAIL CREDIT CARD NO EXPIRE

    G. Hughes 4 5 12 2019 7:00 256-543-1981 [ghp@uah.edu](mailto:ghp@uah.edu) 1000 5678 9231 7-25

    M. Ellis 2 5 10 2019 8:00 256-567-3819 [mae@uah.edu](mailto:mae@uah.edu) 1000 5261 1123 6-23

    B. Rose 5 5 8 2019 6:30 256-578-6743 [bhr@uah.edu](mailto:bhr@uah.edu) 1000 6901 2399 5-26

    K. Elder 2 4 30 2019 7:15 256-591-2334 [akl@uah.edu](mailto:akl@uah.edu) 1000 4312 1721 8-24

    T. Simms 3 5 12 2019 8:30 256-554-4591 [trs@uah.edu](mailto:trs@uah.edu) 1000 1670 5601 2-24

    P. Kilper 6 5 5 2019 8:15 256-555-6413 [phk@uah.edu](mailto:phk@uah.edu) 1000 2890 1819 10-23

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

    two common beginner's traps

    Posted: 29 Mar 2020 09:55 PM PDT

    Based on my observation, there are two very common traps that most beginners tend to fall into, naturally. Avoiding, or rather resisting, them is the name of the game.

    1. reading/watching tutorials without writing code, that is, watch hours of videos or read an entire book from page to page, all without writing any code, or barely writing any code.
    2. getting ahead of oneself, that is, not taking things step by step, trying to get into all kinds of cool popular frameworks before getting well-versed with the basics of programming. e.g. jump into react without experience of traditional client-side programming, or jumping into OOP without mastering functions.

    There are other traps too, but these two remain to be the most prevalent ones, when you're hardly making any progress while making tons of efforts, you are very likely trapped in one of these or both.

    Also, these traps are extremely tricky, you don't even feel you are trapped, they make you feel like you are doing it right. "I mean I'm watching hours of videos every day, how can that be a bad thing right?" "I started learning OOP yesterday, now I'm learning all kinds of design patterns, I'm doing great!"

    Based on this insight, I created some coding practice videos with a new format. Short videos, a different program per each video just to keep it fresh, and they are all tailored around building a solid foundation for beginners.

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

    I want to implement bulk data upload on my website. Should I asynchronously call my "insert" API in a separate AJAX call or should I create a new "import" API that takes all of this data in bulk all at once?

    Posted: 29 Mar 2020 09:51 PM PDT

    As per the title, I want to implement bulk data upload on my website to insert multiple data at once. Each single insert process can be costly.

    Should I asynchronously call my "insert" API in a separate AJAX call or should I create a new "import" API that takes all of this data in bulk all at once?

    I think either option is fine for small number of data, but when it comes to large numbers, calling multiple AJAX seems expensive (correct me if I'm wrong) and if I upload all data at once, the UI might "hang" for a while during the insertion process.

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

    Why learn Java if you already know C/C++?

    Posted: 29 Mar 2020 09:50 PM PDT

    Why do people learn Java if they already know C/C++?

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

    [Python] [Processing] Is there a way to visualize my code, by seeing all the links to where a value is pulled from?

    Posted: 29 Mar 2020 09:48 AM PDT

    Say I have a list and I want to see where I added an element to the list, and where I got the value to add to the list and so on

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

    No comments:

    Post a Comment