• Breaking News

    Tuesday, June 2, 2020

    How can I become a programmer Ask Programming

    How can I become a programmer Ask Programming


    How can I become a programmer

    Posted: 02 Jun 2020 04:58 PM PDT

    Hello everyone!

    At 27 years of age (a bit late), I think I've found something that really interests me from a career standpoint and it's, no surprise, programming.

    I've got the full Python, Wordpress, and JavaScript courses on Udemy, and want to dive headfirst into them. I'm hoping that by the end of the year I'll have passed them. They not only include theory and examples, but projects that I can do that puts these skills to the test.

    My question is, is it realistic to assume that I'll have viable work options for me by having taken these courses and made my own examples through the course? Will I be screwed without a college degree?

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

    Explain Aspect Oriented Programming like i'm five

    Posted: 02 Jun 2020 05:50 AM PDT

    Couldn't wrap my head around it even after Googling it numerous times.

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

    im really not good at this (help)

    Posted: 02 Jun 2020 10:37 PM PDT

    what does this mean "error CS0019: Operator '*' cannot be applied to operands of type 'Vector3' and 'Vector3'"

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

    Graduating in December. No idea what kind of jobs to apply to?

    Posted: 02 Jun 2020 09:53 PM PDT

    I will be completing a 3 year Ontario (Canada) College diploma program in December. Up until now, I have coded in Python, Java, C# (console and forms apps), JavaScript, PHP, web development in ASP.NET, and Android programming (Java). I've worked a co-op for 12 months doing IT support and PowerShell scripting, but this was not really a developer job, however it was all I could get at the time and I needed the money.

    With all that I've learned so far, and the final semester approaching, I have no idea what to apply for upon the completion of the semester. I am by no means a programming wizard who can solve complex coding exercises in minutes. I am the type that needs to sit down and understand it for a while and gradually solve it. One thing that I can promise is that I always eventually get the job done.

    I really enjoyed android programming and did really well in that course, however I also want to ensure that I am getting paid well and don't want to settle for just anything because I enjoy it.

    I know this is a rather vague, but I am just looking for any sort of guidance, perhaps from people who can relate to me, or have been in my shoes at one point. Any help would be gratefully appreciated!

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

    Scraping a site to supplement a feature it's missing. Legal?

    Posted: 02 Jun 2020 08:03 PM PDT

    Hey everyone,

    A popular site in my country is missing a great feature and its easy to create with the elements they display publicly. I was thinking of filling this gap, but I'm afraid of getting sued / bullied by the company hosting this site.

    Any advice would be great!

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

    [HELP] Understanding a website's structure.

    Posted: 02 Jun 2020 12:14 PM PDT

    Hello!

    I'm trying to create a website from scratch using github pages. I've been taught to create a website like this:

    • main_folder
      • index.html [FILE]
      • style [FOLDER]
        • style.css
      • img [FOLDER]
        • img_001.jpg [images that will be used on the website]
      • libs [FOLDER]
        • jQuery files*

    So my question is if this method of structuring your website is still being used or is it outdated?

    Just trying to keep up with current guidelines of programming. If there are even any.

    I'm looking to get things right so when I go for an interview or something they can see that I know stuff.

    Thank You all in advance for your responses.

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

    Does anyone still use Pascal ?

    Posted: 02 Jun 2020 03:50 PM PDT

    It was what I used at college in eighties, never heard of it since. I didn't go into computer career. Just wondering what became of it. Wikipedia says it died out. Wonder if it still has some special use?

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

    What are some solutions for graphical representation of modules and procedures?

    Posted: 02 Jun 2020 07:35 PM PDT

    In this quora question: https://www.quora.com/How-do-you-feel-when-working-on-more-than-500k-lines-of-code

    Clive Thomas posted this answer:

    My company designed and wrote a system which is probably in total about 600K lines of code.

    This may seem weird, but it is actually very easy to maintain. The whole system is laid out in a graphical representation of modules and procedures, and the graphical project system interfaces directly to the intelligent code-aware editor, which is capable of following functional links automatically.

    The system also has a particularly good search engine, which can find any function or variable throughout the entire system in a matter of seconds.

    I should probably add that programming standards and style were quite well adhered to, as well as consistent naming, so the code is mostly very easy to read and is (at the small scale) pretty much self-documenting.

    So, strangely enough, this system, which is pretty huge in a way, is much easier to maintain than some of the programs I maintained as a junior programmer some decades ago which were not even one tenth the size.

    As for a system with 522,000 lines of poorly documented php code - well, you have my sympathy. Large programs aren't actually supposed to be like that.

    What IDE or program is creating this graphical representation with those features? I don't really mind what programming language or framework the system is built for.

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

    What does this mean, 'parameters must be in URL request and not the body'?

    Posted: 02 Jun 2020 03:19 PM PDT

    I was wondering what does this mean. Does it mean that the parameters must be in the url itself?

    Would that structure look like, 'google.com?value1=key1&value2=key2?

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

    It is too late to start a career in the IT sector (programming) at 27?

    Posted: 02 Jun 2020 09:34 AM PDT

    If not, can you tell me what projects should I try to make to be able to learn as fast as possible. I'm all about time here because I feel as if I'm way behind in life compared to others my age. I want to enter the field as fast as possible.

    Note that I am not a complete noob. I do know about loops, recursion, searching and sorting algorithms, stacks, lists etc.

    Thanks!

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

    The name "input" does not exist in the current context

    Posted: 02 Jun 2020 05:22 PM PDT

    I'm trying c# for the first time and making a unity project for first-person movement, but my input commands are not working can anyone help

    heres the code:

    using System.Collections;

    using System.Collections.Generic;

    using UnityEngine;

    public class MouseLook : MonoBehaviour

    {

    public float mouseSensitivity = 100f;

    public Transform playerBody;

    // Start is called before the first frame update

    void Start()

    {

    }

    // Update is called once per frame

    void Update()

    {

    float mouseX = input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;

    float mouseY = input.GetAxis("Mouse Y") * mouseSensitivity * Time.deltaTime;

    playerBody.Rotate(Vector3.up * mouseX);

    }

    }

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

    Webgl drawElements() draw two objects on the screen

    Posted: 02 Jun 2020 04:41 PM PDT

    I have a program that draws the numbers on the screen by taking input from user. I created vertices array vec2(x,y,z) for whole vertices then I created indices arrays for each digits. indices0, indices1 etc. one buffer takes whole vertices and index buffer takes indices values accourding to input.(bufferNum1 takes whole vertices , iBuffer takes indices of the numVertices array for each numbers) I can draw single digits between 0 - 9 but this program should write numbers from 0 to 99. I couldn't draw the two-digits on the screen 10,11...99. I should use one index and one vertex buffer. How can I solve this? I need to draw two-digit numbers. My buffers :

    var iBuffer = gl.createBuffer();
    gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, iBuffer);
    gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new Uint8Array(indices8),gl.STATIC_DRAW);

    bufferNum1 = gl.createBuffer();
    gl.bindBuffer(gl.ARRAY_BUFFER, bufferNum1);
    gl.bufferData(gl.ARRAY_BUFFER, flatten(num1Vertices), gl.STATIC_DRAW);

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

    What Do I need to know to make a backend for an app?

    Posted: 01 Jun 2020 10:07 PM PDT

    Hi, I was wondering what it says in the title. What I need to know to make a backend? Which language is the best? In my work we use Java with Spring, but I didn't see much backend code because I'm mainly front, but besides a database, what else do I need to know?

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

    help, new to programming oop c++

    Posted: 02 Jun 2020 07:53 AM PDT

    I want to create 20 students with their roll number and cgpa

    but this approach is not working what am I doing wrong? Is this even a valid approach? If somebody could point it out it would be very helpful

    include <iostream> using namespace std; class student { public: int rollno; float cgpa; }; int main() { for (int i=1;i<21;i++){ student s+i; } } for (int i=1;i<21;i++) { s+i.rollno=0+i; } for (int i=1;i<21;i++) { cin>>s+i.cgpa: } 
    submitted by /u/thePHEnomIShere
    [link] [comments]

    How do you keep track of your commandlines/notes?

    Posted: 02 Jun 2020 06:13 AM PDT

    I have a text file where I put relevant commands/processes (how to start up a server in our system, various chained commands, etc). Do you guys do/have a system for that?

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

    Can anyone recommend a tutorial on getting a server to work over the internet?

    Posted: 02 Jun 2020 03:40 AM PDT

    Say I've bought a domain and I have a simple server in C. Maybe an echo server. How do I access this from outside my local network? I am aware of some of the steps, there's port forwarding etc. but I've never quite managed it. Are there any complete guides on how to get this up and running?

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

    Vehicle key fob programming

    Posted: 02 Jun 2020 11:54 AM PDT

    I tried posting under r/programming which is much more members but it wouldn't let me. I'm trying to see if anyone would know how to program a vehicle key fob to my 2008 Nissan Altima. I already have 1 fob that works. Bought another off eBay for a spare but it was programmed to a different Nissan. Does anyone know if I can program it to my vehicle without having to go to the dealer? Thanks for any help or advice

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

    What is the best programming language to learn as a complete beginner who has never programmed before?

    Posted: 02 Jun 2020 11:30 AM PDT

    Sorry if this is the wrong subreddit for something like this.

    I really want to get into programming. I'm 27 and figured I should learn a new skill and programming opens a lot of windows. I've been trying to learn C++ since it's so popular and I've been told you can do anything in CPP. But I'm just not learning anything from any of the tutorials.

    I've tried tutorials on YouTube, Skillshare, Udemy, Codecademy and I bought an 800 page text book.

    All of the tutorials are the same. They don't explain WHY things do what they do or even what something like OOP or IDE means. I know those are basic things, but it becomes overwhelming whenever they don't explain anything. I end up getting completely lost. I have a few friends that help me out when I get lost, but I feel bad constantly hounding them for answers. I do google too, but it just slows the process down to a snail's crawl.

    It feels like every tutorial I try assumes that you already know a bit about programming and I don't.

    I'm starting to wonder if there's a program I should learn before jumping straight into C++ so that I can learn the absolute basics and terms for programming. Would learning python first be smart? Or should I just suck it up and keep banging my head against the CPP wall until it clicks?

    If not python, is there a better language to learn first? What do you guys think?

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

    How are there CVE security alerts for Jquery when Jquery is just javascript?

    Posted: 02 Jun 2020 10:18 AM PDT

    Shouldn't the alert be for Javascript and not jquery? Jquery doesn't do anything that Javascript doesn't does it?

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

    Passport JS won't save new schema to DB?

    Posted: 02 Jun 2020 09:45 AM PDT

    I am trying to use passport.js with GoogleStrategy to authorize users for a web application I am building. I then want to store the users in MongoDB using mongoose.

    passport.use( new GoogleStrategy({ clientID: keys.google.clientID, clientSecret: keys.google.clientSecret, callbackURL: '/google/redirect' }, (accessToken, refreshToken, profile, done) => { console.log(profile); console.log(profile.displayName); console.log(profile.id); new Models.User({ username: profile.displayName, googleID: profile.id, memberOf: null }).save(console.log('got to the save')).then((newUser) => { console.log(newUser+'was created'); }); console.log('came down here'); }) ) 

    That is my implementation of passport and mongoose. Once I get the profile from Google I am trying to store that user's displayName and googleID in my User schema which I want to save to my DB. I'm not sure what I'm doing wrong but when I run this program I see that all the console.log's output to the terminal **except**
    for the console.log(newUser+'was created');
    in the .then()
    I was hoping someone could help me fix this issue.

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

    Why do I have to put () after calling upon a method in C#?

    Posted: 02 Jun 2020 09:12 AM PDT

    Hi,

    I've just started to look into a bit of C# about an hour ago. I'm trying to be really thorough with the basics and i'm following along with a tutorial and making notes of all the difference aspects of C#.

    Tutorial for reference: https://www.youtube.com/watch?v=GhQdlIFylQ8&t=196s

    So i'm at 41:35 and i'm calling upon a method.

    string phrase = ("Giraffe Academy");

    Console.WriteLine(phrase.ToUpper() );

    Why do I have to put () after ToUpper? I didn't have to put a () after (phrase.Length);.

    Is this something that's going to become apparent a bit further on in my study?

    Thanks in advance for the help. I can see me missing off a few ()'s and some semi-colons here and there, so I think it would be good to learn why they are necessary, rather than going through the motions.

    EDIT: Thanks for the replies so far. Put bluntly, is the () just a space to house a parameter, should it be required? For instance, the next section of this tutorial has me call upon a .Contains("Academy") ); method, and here I specify a parameter which is "Academy".

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

    Unique identifier for devices with Internet access?

    Posted: 02 Jun 2020 08:35 AM PDT

    I wonder if there is any kind of unique device identifier for devices that can access the Internet? If not, is there any approach to distinguish one device visiting a website from another (not IPs, but actual devices)?
    I realize that, say, for a desktop it is hard to say what is this particular device exactly, as many parts can be replaced. Yet I wonder if there is anything similar to a unique device identifier?

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

    Help with something simple

    Posted: 02 Jun 2020 08:09 AM PDT

    Hi folks,

    I'm trying to develop a simple api hook, and it's my first time playing around with this stuff. I downloaded postman, and following the documentation I have this line:

    curl --tlsv1.2 -k -X POST https://example.com/api/ -d "clientCode=1234&username=5678&password=opensesame&request=verifyUser"

    This works from the command-line (unix or even dos shell on windows 10), it returns a session key and I can then use my session key to continue on, and I've made several successful api requests after that via the command line.

    The problem:

    I can't seem to recreate this in Postman, and I'm not sure my way forward. The interface starts with the word POST and I don't know where to specify CURL or it's modifiers prior to the POST command. I realize this may not qualify as "programming" per se, so if you could point me in the right direction I would be also thankful.

    cheers!

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

    What's wrong with my function?

    Posted: 02 Jun 2020 07:47 AM PDT

    Here is the exercise:

    Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive. The string can contain any char.

    Examples input/output:

    XO("ooxx") => true

    XO("xooxx") => false

    XO("ooxXm") => true

    XO("zpzpzpp") => true // when no 'x' and 'o' is present should return true

    XO("zzoo") => false

    My code:

    public class XO { public static boolean getXO (String str) { str.toLowerCase(); return CountOccurence(str, 'o') == CountOccurence(str, 'x'); } public static int CountOccurence(String s, char c) { int counter = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == c) counter++; } return counter; } } 

    But somehow one of the randomized tests keep failing. Why?

    Here is an example of a correct code:

    public class XO { public static boolean getXO (String str) { str = str.toLowerCase(); return str.replace("o","").length() == str.replace("x","").length(); } } 
    submitted by /u/dont_mess_with_tx
    [link] [comments]

    No comments:

    Post a Comment