• Breaking News

    Wednesday, July 29, 2020

    as a beginner, have you ever felt that exercises are either too easy or too hard? learn programming

    as a beginner, have you ever felt that exercises are either too easy or too hard? learn programming


    as a beginner, have you ever felt that exercises are either too easy or too hard?

    Posted: 29 Jul 2020 11:09 AM PDT

    I'm learning and my theory is mostly fine for a beginner, but I seriously lack good 'projects' to do, projects that might teach me something. I know I'm whining, but have any of you ever felt like that?

    Every personal project I want to follow seems too hard. I love algorithm stuff/IA/'puzzle-solving' projects, but they also seem too hard for a beginner. Exercises are either too easy or too hard, any tips? Should I stick to my personal projects even if they seem hard at first glance?

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

    What software conferences are free this year that normally aren't?

    Posted: 29 Jul 2020 10:42 AM PDT

    Given COVID, a number of tech conferences that might have cost $1000+ in the past are now online for free.

    This could be a particularly good time to get engaged.

    Does anyone have any that they would suggest?

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

    Been learning CSS grid for a week now and still finding it hard to use

    Posted: 29 Jul 2020 08:56 AM PDT

    I've been using CSS grid on code academy and in code alongs by Brad traversy. I'm just struggling in general with grid and wondering if there are any tips or resources etc that would help me out?

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

    Choose your own adventure game

    Posted: 29 Jul 2020 10:38 PM PDT

    I am working on a choose your own adventure game in C and using text files as the prompts for my story. Instead of making a program with a huge if() branch, I was suggested to make an array of structs containing the file name, and the locations of option 1 and option 2, but I'm not really sure how to do that and I'm having trouble getting started with this. Could anyone help me with how to get this done or possible resources to understand this?

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

    How did you get your first job?

    Posted: 29 Jul 2020 06:49 PM PDT

    I'm an amateur about programming, but I like it, and always that I can see some recruiters they ask for somebody with 5 years of experience, how dou you handle that? I'm learning about git right now somebody told me that is a good start for other to see what I can do

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

    Prime Number Algorithm Returns Odd Values

    Posted: 29 Jul 2020 10:36 PM PDT

    I am beginning to learn c++, and was working through the Project Euler challenges, and #7 asks you to find all prime numbers within a given range. After online research i decided to try using Sieve of Erastothenes, however with the code i have set up, i currently get weird values such as (2, 0) when i ask for 2 primes, and (2, 4, 5, 5) when i input 5.

     #include <iostream> #include <vector> #include <math.h> #include <bits/stdc++.h> using namespace std; int main(){ int end_point; cout << "how many prime numbers would you like to find?\n"; cin >> end_point; //creates a vector to store all values, that will eventually be whittled down to primes vector<int> primes = {2}; //adds all numbers between 2 and chosen end point to the vector for (int i = 3; i <= end_point; i++){ primes.push_back(i); } for (int i = 0; i < end_point; i++){ //starts at the first value (always 2), and feeds it into the next for loop //once the next loop is done, it moves on to the next value in the loop and feeds that in primes[i]; //looks at values in the vector, starting with the next value in the vector for (unsigned int j = i+1; j < primes.size(); j++){ //checks if the value at [j] is divisible by the value at [i] //if it is, this deletes it from the vecotr //if not, it moves on to the next value in the vector if(primes[j] % primes[i] == 0){ primes.erase (primes.begin() + (j-1)); } else{} } //prints out all of the primes in the specified range cout << "Primes are: "; for (unsigned int k = 0; k <= primes.size(); k++){ cout << primes[k] << ", "; } } } 
    submitted by /u/mhlind
    [link] [comments]

    Books that teach a language in depth

    Posted: 29 Jul 2020 05:19 PM PDT

    I recently read Thinking in C++ and was fascinated with the underlying implementation of the language as taught in the book (although a bit outdated). So I'm wondering if there are other books that teach other languages, especially Java and Python that way. I know there's Thinking in Java of the same author. But other than that, mostly when I skim through a Python book, it only teaches the syntax, how to use common libraries and how to use the language for a very specific purposes and doesn't mention much about the basic under-the-hood concept such as memory management, garbage collections or how different structures are implemented.

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

    Using query strings on my website?

    Posted: 29 Jul 2020 08:10 PM PDT

    Hello everyone! I'm new to web development, but I have experience in Java and Python. My dilemma is that I created a quiz website, but I need to pass the quiz results from one page to another. I was hoping to use a query string and then parse it, so the JavaScript code directs from examplesite.tk/quiz to examplesite.tk/results/string. However, I'm not sure how to make the HTML results page accept the new URL with the query string appended. Any advice would be appreciated!

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

    Can you recommend an online course (preferably video) for learning Java in the context of game programming?

    Posted: 29 Jul 2020 04:20 PM PDT

    Pretty much as title.

    I've been trying off and on (mostly off, let's be honest) to learn programming for a couple of years now. Usually what happens is I'll start making my way through a course and then slowly lose interest over a few weeks until I quit doing it.

    I think the main problem that I have is that it's hard to contextualize a lot of what I'm trying to learn on its own. What I am looking for, ideally, is a tutorial or video series on creating a simple game (something like one of those oldschool side scrolling or topdown shooters like galaga, 19XX, or ikaruga) from start to finish so I can actually see how things go together as I'm learning different concepts. My last attempt was with Java through a Udemy course by Tim Buchalka. It seems pretty spot on but the classroom style is hard for me to follow after putting in a full day of work - I need something that gets to the point a little more quickly.

    Do you have any recommendations? Failing that, do you have any suggestions for keeping my head in the game?

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

    Which is the better way of doing this?

    Posted: 29 Jul 2020 11:43 PM PDT

    if (condition) doStuff() return 0 doOtherStuff() return 1 

    or this

    if (condition) doStuff() return 0 else doOtherStuff() return 1 
    submitted by /u/SugarAndSodaDiet
    [link] [comments]

    Already working in the mobile gaming industry, looking to further career options

    Posted: 29 Jul 2020 07:51 PM PDT

    I have a Bachelor's in Finance and a Masters in Economics, and am currently employed in the mobile gaming industry.

    My role is essentially operational, and pertains mostly to marketing strategies, scouting for new possible IPs, quality control, localization quality control and overseeing the localization and customer service teams.

    In the grand scheme of things, I'd say I have a comfortable and decently remunerated position, but I definitely have higher salary expectations which don't really seem realistic in this type of position, as comfortable as I may be right now.

    I took a look at local job postings in the industry which do require programming knowledge and there is a massive pay bump, with many offers in the 90-100k USD range.

    The ones which seem to be suitable for me after learning how to code are mostly front end development positions, since the majority are asking for previous experience in more operations based videogame positions. Language wise they seem to be asking for Python, C++, occasionally Js and experience with Unity.

    I am currently running through the OSSU program at Github, starting from 0 and now going through the Python section, and doing roughly 4-6 hours per day.

    Are there any other tips that people in the mobile gaming industry may have to give, especially from people who made similar career jumps?

    Cheers

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

    How to make a component a size using a percentage of the size of the parent using TornadoFX?

    Posted: 29 Jul 2020 11:12 PM PDT

    I want to make my components increase in size when resizing my application, how do i do this?

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

    How to make use for Azure for Students

    Posted: 29 Jul 2020 11:07 PM PDT

    So I got the azure for students pack. I just wanted to know any recommendations of how should I use it to learn cloud computing. Also I have taken the azure fundamentals path, so please don't recommend the azure fundamentals path and I didn't learn a lot in the path

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

    When it's best time to consider Application Refactoring

    Posted: 29 Jul 2020 11:06 PM PDT

    Sometimes it is impossible to add new functionality to old code without prior elaborating the better half of the source code. Refactoring can help add new application functions, and prevent new bugs as well.

    Otherwise, the process of adding one feature to your application can be endless debugging. The best time to consider refactoring is before adding any updates or new features to your application.

    Recently lots of companies are considering business application migration to cloud. Refactoring is often required for finalizing this process and to make the app better suit the new cloud environment.

    https://www.ispirer.com/blog/application-refactoring

    Why Refactor?

    • Improve code readability;
    • Simplify the modification code process;
    • Reduce maintenance fees;
    • Gain better understanding of your code functionality;
    • Improve design of your existing code.

    When refactoring should be considered?

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

    Does anyone regret their chosen path?

    Posted: 29 Jul 2020 10:55 AM PDT

    I see the debate constantly between schooling and self teaching, and I always see people fighting for what they had chosen themselves. What I'm wondering is if there is anyone that regrets the one they did and wished they did the opposite path. For example a person with a degree saying they wish they spent the time instead doing self taught and making projects or the other way around.

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

    What is a good choice of language for processing massive batches of text?

    Posted: 29 Jul 2020 10:32 PM PDT

    I'm building a database using a combination of dozens of datasets, mostly climate datasets from NOAA including the absolutely massive SUNY solar dataset. Most of these datasets are either CSV files or plain text files with some kind of structure -- whitespace separated, pipechar separated, comma separated, etc. Most of these are compressed in some way or exist inside an archive file, and many are part of a larger fileset whose names need to be parsed into the final output.

    I've been reading these with Python for the most part, fetching select fields and combining them with others to be output as well-formatted CSVs to be imported into postgresql tables. This has been... slower than I'd like on the larger datasets and the code has gotten a tad messy.

    Is there a language built for this sort of work that can operate at high efficiency?

    As an example of the sort of thing I need, the CLIMGRID dataset is split into compressed archives whose contents are named:

    200101.<variable>.conus.pnt

    where <variable> is one of four climate measurements. The contents are:

    <lat> <long <value>

    where <value> is the measured climatological average of <variable> at a gridsquare defined by the given lat/long values.

    My Python code has to decompress each archive, skip the non-CONUS files, store the year and month values from the filename, then extract the records and store them in a data structure so that it can combine records along their lat, long, and timestamp values to be written to stdout in the form:

    <year>,<month>,<lat>,<long>,<precipitation\_value>,<temp\_min\_value>,<temp\_max\_value>,<temp\_avg\_value>

    The code I've written to do this can be found here: https://dpaste.com/FGBREKFCW. That code is ugly and in need of streamlining, but it works.

    Is there a tool, language or languages that can do this sort of thing more efficiently and with greater speed? The ClimGrid dataset is the most complex one to parse, so if it can handle this, all of my other parsers should be simpler to write. The SUNY dataset is similar in the kind of procedure needed (getting data for the tables from filenames as well as contents), but so massive that my Python code takes hours to process just a single state's lat/long values.

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

    Python? JavaScript?

    Posted: 29 Jul 2020 10:19 PM PDT

    Hello. I'm starting a small business and I was planning to design a website to go along with it. Given my experience I know it would be easier to pay someone to do it for me, but my budget does not allow me to, and I wanted to get into programming for a while.
    Before I get publicly executed for saying I want to "program" a website, let me explain what I want to achieve: I'd like to let the customer customise to a certain extent the product and I'd like to integrate APIs (like DHL's, PayPal's or something) to manage billing and shipping.
    From what I understand the best way to implement such features would be using either Python or JavaScript, thus the title. Maybe it is possible in both (or in neither, I don't know). Sincerely, I'd pick one randomly, but since I think my goal is quite specific and the FAQ says it doesn't really matter which programming language you learn first, I thought it would be better to ask someone well versed in the field. Which one would make those things easier to implement? What is your experience with similar APIs? Which language you deem more beginner friendly? (this does not matter that much, I'm willing to learn whatever I need to learn).
    I apologise if I committed any kind of mistake or if I chose the wrong post flair. If this post has been answered already I'm fine with being redirected there. I'm just looking for guidance, anything helps! Thanks in advance!

    submitted by /u/Ikarus-Schmidt
    [link] [comments]

    Code works in main but not in a separate function

    Posted: 29 Jul 2020 10:16 PM PDT

    I know the code is supposed to be concise but I don't know where the issue is. I'm trying to put a command line argument through a set of tests. The tests are a little long so I don't want it to be in main. The issue is, when it's in main it works exactly as intended, but whenever I put the exact same code into a separate function, I get a segmentation fault. I'd get it more if it never worked, but why does it only work in main even though I'm feeding it the same values?

    int validate(int argc, string argv[]);

    int main(int argc, string argv[])

    {

    int i = validate(argc, & argv[1]);

    }

    int validate(int argc, string argv[])

    {

    if(argc < 2)

    {

    printf("Usage: ./substitution KEY\n");

    return 1;

    }

    int check = strlen(argv[1]);

    if(check != 26)

    {

    printf("Key must contain 26 characters\n");

    return 1;

    }

    for(int i = 0; i < 26; i++)

    {

    char a = argv[1][i];

    if(isalpha(a) == 0)

    {

    printf("All characters must be letters\n");

    return 1;

    }

    }

    for(int i = 0; i < 26; i++)

    {

    char b = argv[1][i];

    for(int x = i + 1; x < 26; x++)

    {

    char c = argv[1][x + 1];

    if(b == c)

    {

    printf("No repeats\n");

    return 1;

    }

    else

    {

    return 0;

    }

    }

    }

    return 0;

    }

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

    Learning computer science as someone currently in a software dev degree.

    Posted: 29 Jul 2020 04:10 PM PDT

    Hey guys, hopefully I'm posting this in the right place, but I'm looking for some advice prioritizing my learning (outside of school) as someone who is getting a software dev degree which isn't very CS heavy.

    I'm 31 and currently attending WGU for a software dev degree. I'm trying to accelerate through the final half of it over the next 9 months or so, which is already keeping me pretty busy. This degree has quite a bit of coding related courses (html/css/javascript, basic c++, two c# software classes, a mobile applications course, and two SQL/database courses, plus the capstone), but not much computer science outside of operating systems.

    That said, I want to be a good programmer and feel the computer science aspect is also important, so I'm learning it on my own time. I'm starting to feel incredibly overwhelmed though, despite being a pretty quick learner.

    Things I want to do/learn outside of school: portfolio projects (building several portfolio sites, building a procedural maze generation application), learning more advanced webdev stuff, GIT, finishing up the algorithms book by sedgewick, precalc, Calc, multivariable Calc, discrete mathematics. Reading through (and doing exercises with) the SICP book. Learning the basics of a lower level language like x86, and so on.

    I just have no idea what I should prioritize on outside of actual school work. The more I focus on things like math, the less time I have for portfolio projects. Algorithms and data structures are a must of course. I wonder if things like SICP, x86, and math related stuff might be better suited to learn slowly after getting my first job, though.

    I'm currently going through the book Code: The Hidden Language of Computer Hardware and Software by Charles Petzold, and Algorithms by Robert Sedgewick/Kevin wayne (although the section on algorithm analysis went a bit over my head).

    I'm trying to find a good balance of learning CS, while not going completely crazy and burning out, but I just don't know what the most relevant skills to pursue (CS-wise) actually are in regards to getting my first job. What do I delve into now, and what to do I leave for later, when I've actually got a job? I'm not trying to jump right into a top tech company right out of school or anything like that; even a small company will pay me way more than what I currently make.

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

    I'm a hobbyist programmer going to school to become a professional. Here's the second project in a series of projects that I'm publishing in an effort to build my portfolio!

    Posted: 29 Jul 2020 06:30 AM PDT

    I put a lot of love into this project. It's actually the fourth iteration of a password keeper that I've made, this time really trying to make the UI look polished and implementing stronger (read: properly implemented) encryption methods

    I'm 28 years old and entered higher education in the spring, hoping to get a bachelor's degree in CS. The classes I'm taking right now aren't that great at challenging my skill level since I've been programming for almost 15 years at this point, so I'm trying to come up with some project ideas that challenge my ability and show future employers what I'm capable of

    This project, named Keeper, is a password archive that keeps your passwords for you, encrypting them with a master password. It features a password generator as well, allowing you to generate randomized passwords up to 1024 characters long.

    The source code and a prebuilt binary can be found on the project's github page, found here:

    https://github.com/this-is-forever/Keeper

    Keeper is written in Java and uses the Swing UI library for its GUI. AES in CBC mode is used for encryption, SHA256 is used for data authentication, and scrypt is used for strong, password-based key derivation

    submitted by /u/0x198d
    [link] [comments]

    I am so lost when it comes to choosing a front end framework.

    Posted: 29 Jul 2020 09:38 PM PDT

    I don't know which framework to use. And why that framework. I am looking at angular, react, and vue, and bootstrap or tailwind for a CSS framework. My goal is to build minimum viable products, web applications (similar to swappa, netflix, reddit etc...), using the Java back end stack. I'm leaning away from bootstrap because I hear it's hard to override customization, but also it needs Jquery, and I hate Jquery. I'm terrible at it no matter how hard I try. Any recommendations or suggestions? What front end framework should I be using, any particular reasons to go with one over the other?

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

    Anyone know of sites or books with good challenges for building an application?

    Posted: 29 Jul 2020 12:53 PM PDT

    Some of the examples that come to mind already are FrontendMentior.io and DevChallenges.io ...

    As the title suggests, I would like to find websites and challenges where you build out an application. It doesn't necessarily need to be a website, I mostly want to work on my design skills from an object oriented programming and functional programming perspective. So something like example requirements and use cases, mockups, etc. Then it's up to you to build the app or program (could even be command line).

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

    Need help understanding the following c++ statement

    Posted: 29 Jul 2020 09:36 PM PDT

    I am trying to understand the following statement:

    std::stringstream xmlStream(SceneXml);

    Xml::HElement root = Xml::Reader::loadXml(xmlStream);

    The way I understand it, it looks like root is an instance of Xml::HElement class whereas Xml::Reader::loadXml(xmlStream) is a function from Xml::Reader class. Is this correct? How can you assign a function from Xml::Reader class to an instance of Xml::Helement class?

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

    [Java] Output values are not what is expected when using doubles in a for loop.

    Posted: 29 Jul 2020 09:36 PM PDT

    Link to ideone: https://ideone.com/LUiDOj

    My code is supposed to calculate the four points of a circle (x1, x2, y1, y2) based on the radius of the user's choice, where the x values are incremented by a number of the user's choice. (Both radius and increment are doubles. These four values are then formatted onto a table using printf.

    However, when I run the code like what is in the link, the outputted values start fine until it gets to -0, and at the end it is one number short of where it should've actually ended. But when I use 1.0 for the radius, and 0.1 for the increment, it runs as intended.

    At this point I don't know how to debug this. All I could think of is that maybe it has to do with the fact that the values are doubles, but I'm not 100% sure.

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

    No comments:

    Post a Comment