• Breaking News

    Friday, August 21, 2020

    How to make beautiful GUI like those from videogames? learn programming

    How to make beautiful GUI like those from videogames? learn programming


    How to make beautiful GUI like those from videogames?

    Posted: 21 Aug 2020 08:02 AM PDT

    Hi, I'm just wondering what can you use to create beautiful menus, buttons, and basically graphical user interfaces such as those like in videogames. I am always amazed at how nice they look and their animated interfaces.. what programming languages do they use to do this? I use a pathetic java swing language and it's a million miles away from being beautiful given the limitations swing has for creating windows desktop applications.. I was wondering how you could make beautiful user interfaces.. examples I guess would be like those in simcity games, the sims games, battlefield games, call of duty, even the in-game menu of dead space is nice and interactive.. games such as final fantasy and those elder scrolls interfaces isn't bad too.. do they use c++ for this?

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

    The new way to improve your coding skills while having fun and getting noticed

    Posted: 21 Aug 2020 07:31 PM PDT

    A colleague at work demoed this website (not his, he just found it) to help with our recruiting efforts, plus he thought it was fun. You learn coding while programming games. There are challenges and you can see the code that others have done so you can learn from what they did as well.

    Here is the link: https://www.codingame.com/start

    Pretty cool!

    EDIT: the title ^^^ is their slogan on that page.

    submitted by /u/bink-lynch
    [link] [comments]

    If you are looking to learn React, Avoid Maximilian Schwarzmuller's course on Udemy!

    Posted: 21 Aug 2020 09:03 PM PDT

    I bought Maximilian Schwarzmuller's course on Udemy so you dont have to!

    Background - I started learning web dev back in June last year and landed my first two jobs this summer at tech companies in the United States(One in San Diego and another one in California)Back in the day I used to learn from horrible resources which just wasted my time. But that is why I dont want to waste yours. I learned HTML, CSS and Javascript from Colt Steele's bootcamp on Udemy and it was wonderful. I am proficient in HTML, CSS, JS(ES6 too) and GSAP and this summer I decided I have to step up my game and learn react. So I bought Maximilian's course because I did not know Colt had a course out yet, but few weeks later I found colt's course and bought it too. Now since I landed my internship in May, I did not get my time to follow up with react and although I started both Colt's and Maximilian's course I had to give up. I was also teaching javascript to a few newbies which did not give me enough time. My internship ended earlier this month and I decided that I will start with Maximilian's course and once I am done I will begin with Colt's Course.

    Now, I am not affiliated with Colt Steele in any shape or form and this post is obviously not sponsored by him. So, I started Maximilian's course. It has a 4.6 rating on udemy, but the course flow is downright horrible. For example in the styling section he teaches two obsolete methods/wrong ways of styling(using inline radium and styled components before showing the actual one - styled modules).Most of the times, he makes some changes to the code in a section, now in the next section he starts with the previous code from two sections back and the only way to start again is to download resources from two sections back and then start again! It is like playing russian roulette with this course, you never know what is next and the way to go about it is probably make multiple copies of your original folder probably. The friction in this course is too much and it will be just overwhelming for a newbie to start!

    For example, at one point he asks us to run this command 'npm run eject' so that we can configure our webpack for style modules, but the quickly if you follow his way you end up with countless errors and the configuration doesnt work. You go to the question's section and see lots of other students facing the same problem and the only solution the teaching assistant offers is to "DOWNLOAD" Maximilian's course and start working from there. I am not sure what if you are supposed to learn if you continue doing things this way.

    The court starts in a very good way and I think Maximilian does a decent job of explaining things, but the course structure and flow and his method of teaching is downright horrible. This course lacks proper organization! I have taken a dozen of courses on web development on Udemy so far, but this is the first one to really disappoint me.

    It is a pain in the ass to finish this course, but obviously I always finish things that I start and no matter how much time and patience it takes I will finish this before moving to Colt's react course. But if you are new and probably looking to learn react online please avoid this course for the sake of your own mental sanity.

    One of the fair criticism that I got from a student's review was this -"For me, this is a really poor format for learning the source material. Too many five minute videos to communicate something that is two short code snippets and four bullet points.

    - Hours of just watching someone write undocumented code?

    - Poor structure, not setting context before communicating something, stream of consciousness that borders on meandering.

    - X number of seconds to watch code being entered, then immediately flip to another section of code, so you have to pause and back up the video to actually see the code that was written.

    - Too many sidelines into "you can do it this way or you can do it this way" before getting to the conclusion of why and when you should do things a particular way. The value of having an expert instructor lies in that advice, and there's just too much video to wade through to find those nuggets. "

    If you are someone who has tried this course, please let me know your experiences with this course. I may be wrong and open to criticism.Thanks!

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

    Do you have any routine to "hype" yourself up for work?

    Posted: 21 Aug 2020 10:07 PM PDT

    i listen to two steps from hell, i do this every morning and if im feeling down or i dont want to work or write programs i got hyped and my productivity increases dramatically.

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

    Creating a new file in C++ with fstream

    Posted: 21 Aug 2020 09:32 PM PDT

    I have a simple program that prompts the user for input and is supposed to write it to a file:

    #include <iostream> #include <fstream> using namespace std; int main() { cout << "Enter something. The computer will write it to a file: "; string input; getline(cin, input); cout << input; fstream file("file.txt"); file << input; file.close(); } 

    ...but unless file.txt already opens, it doesn't work.

    However,

    #include <iostream> #include <fstream> using namespace std; int main() { cout << "Enter something. The computer will write it to a file: "; string input; getline(cin, input); cout << input; //CHANGED fstream TO ofstream ofstream file("file.txt"); file << input; file.close(); } 

    ...does work.

    I read this page from W3Schools and it appears to say I can use either fstream or ofstream to create a new file. Cplusplus.org doesn't appear to say anything about this. I'm using G++ and Visual Studio Code on Windows 10, if relevant. I want to use fstream instead of ofstream, because, if I'm not mistaken, ofstream only allows writing, whereas fstream allows reading as well.

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

    Is it better to learn a programming language by learning different parts of it (variables, if/else, loops, functions, arrays, etc.) or by building an actual project?

    Posted: 21 Aug 2020 06:05 AM PDT

    I am going through Udemy to see which course to buy from there and learn Python. There are 2 types of courses targeted towards beginners, one that teaches different parts of it and the other that teaches by building an actual project.

    It's the same with other programming languages too.

    What do you recommend?

    Here are the two courses I'm interested in. I can only afford one.

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

    Best online course for Ruby?

    Posted: 21 Aug 2020 07:29 PM PDT

    Just plain, boring Ruby - not Rails. A bit of background information - I'm a Computer Science student, and I'm enrolled in a unit called Intro To Programming. Whilst I've done programming before, I've never done the language we're learning in this class (Ruby) and I'm really struggling with it. The content itself isn't hard, but the delivery of that content is done in such an awful way that learning seems impossible.

    I'm currently doing uni remotely, as my city is in a Stage 4 lockdown. The lecturer is confusing - he spends more time going over how not to do something than how to actually do it, and rambles his way through a three hour lecture that just leaves me with a headache. The tutorials are even worse - they're being held on Discord, which is pure hell. The tutor never has any idea what to do because we're all talking over each other in the chat and we're all working on different problems. As such, learning how to actually do anything in this class is a nightmare.

    However, I'd like to pass this class, so what do you guys think is the best online course or resource for Ruby? Paid or free. I'm a visual learner, so anything visual or interactive would be good.

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

    How to calculate the moving average of a stock live in the market?

    Posted: 21 Aug 2020 02:48 AM PDT

    Hello, hope everyone is well?

    https://stackoverflow.com/questions/63501706/how-to-calculate-the-moving-averages-for-a-live-stock

    I have linked the code as I didn't want to clutter it too much. I am building a trading algorithm that iterates through 35 different etfs and calculates the moving average for it every however many seconds. I have made this originally using the close for a stock in set days but I dom't really know how to convert it into a live paper trading strategy.

    Thanks!

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

    Hey guys, just wanted to suggest "edabit" as opposed to codewars/leetcode etc it's the only one that i've been able to get hooked on, if you're like me and haven't enjoyed the others give it a shot. It's more geared towards beginners i think.

    Posted: 21 Aug 2020 01:52 AM PDT

    I have checked out codewars, leetcode, and the other ones and i'm not gonna sit here and say they're bad because i know they work great for some people. If those aren't really appealing to you though, and you would still like to practice working on your algorithms and stuff give "edabit.com" a look, i feel much more confident in my problem solving since i started using it.

    • It has a beginner, intermediate and Advanced skill level for questions. These skill levels are based on a beginners i think, so "advanced" is more like "Advanced beginner" IMO, that or i am better than i thought lmao.

    • They have C++/C#/java/python/javascript/ruby and swift and each question has comments, everybody else's solutions, as well as resource links related to that specific problem that you can look at if you are stuck on a problem.

    • The solutions are only viewable after you have the code written correctly, but you can cheat and have the other solutions shown if you just cannot seem to get it, although you don't get any experience points if you do that. (Not sure what the point of exp is yet tbh)

    It has been a huge help for me, i have done like 30 of these so far today and i am loving it. I hope it helps somebody else as much as it has me, good luck!

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

    Completed a year of Computer Science in my first year of college. Looking for the best online resource to pick up where I left off?

    Posted: 21 Aug 2020 08:09 AM PDT

    Hello all, In my first year of college I was given an option to study a third subject along with my degree and I chose computer science. Unfortunately I was unable to continue studying CS as it conflicted with modules in my main degree.

    I have a reasonable knowledge of java and would like to obtain a comprehensive understanding of the language but most courses I find online seem to be geared toward complete beginners. Any help at all would be appreciated!

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

    what should I call a recurring ping-like log event that is not network related?

    Posted: 21 Aug 2020 08:08 PM PDT

    My program emits logs, one of the log is something that runs every 10 seconds to monitor some statistics of the program. Kind of like a "ping". My logs all have "log types" names like "connection", "disconnect", "request", etc. My question is what should I name this recurring log that happens every 10 seconds? "ping" doesn't seem accurate because there's no network interaction. I'm "pinging" my app for statistics, but it's not done over the network. the app "pings" itself.

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

    Working on a tutorial series about hash tables in C

    Posted: 21 Aug 2020 07:53 PM PDT

    Hey folks,

    I never learned how hash tables work internally, so I decided to learn by doing! I've been writing up a tutorial series along the way. https://gist.github.com/cellularmitosis/9db34df37d3df91709ad3e4faf93c417

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

    Learn programming in a different language than your mother tongue

    Posted: 21 Aug 2020 11:39 PM PDT

    Hey all, so I was wondering if there are any resources like a dictionary of some sort which enables me to learn programming specific vocabulary in a different language. I am learning to program in english but I'm going to apply for jobs in german companies.

    Cheers and have a great day!

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

    Should I start learninjg programming now? I am 15 but I have to give the CAIE O Level exam soon

    Posted: 21 Aug 2020 07:43 PM PDT

    Any ideas for when to learn it and approximately how long will it take to learn basic - intermediate python and basic java and basic html programming?

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

    Anybody doing newline's Tinyhouse? How's the course?

    Posted: 21 Aug 2020 11:26 PM PDT

    Any input is welcome. Thanks!

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

    [Python] Legendre Conjecture Question

    Posted: 21 Aug 2020 11:17 PM PDT

    Hi, this is my assignment. Legendre's conjecture (proposed by Adrien-Marie Legendre, and listed by Edmund Landau at the International Congress of Mathematicians in 1912) states that there is at least one prime number in range [n^2, (n + 1)^2] for every positive integer n.

    Implement the function

    legendre 

    that takes in an input parameter n and tests Legendre's conjecture over a range of numbers from 1 up to the input number n.

    This means if the input is 4, you should check that there is at least one prime between 1^2 and 2^2, and at least one prime between 2^2 and 3^2, and at least one prime between 3^2 and 4^2, and at least one prime between 4^2 and 5^2.

    As you might have guessed, the one and only return value of this function is True

    def is_prime(n): if n < 2: return False for i in range(2, n): if n % i ==0: return False else: return True def legendre(n): for i in range(n**2,(n+1)**2): if is_prime(n): return True return False legendre(4) legendre(4) 

    Current my output is printing lines of :

    False

    False

    True

    False

    False

    True

    False

    False

    True

    False

    False

    True

    How do you alter this code such that when legendre(4) or legendre(15) is passed, the output will only be True/False

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

    I have learned all the basic concepts of Python from pirated courses, Any small project topic or test recommendations that you think I can and should start?

    Posted: 21 Aug 2020 11:07 PM PDT

    I have already finished the basics of python and I want to put them into practice so is there any recommended tests or project topics that you did or are doing or have it in your mind right now and it has some basic use ?
    Please do recommend

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

    How do i send a keystroke using PostMessage to the current window?

    Posted: 21 Aug 2020 10:51 PM PDT

    I remember it was so simple. Just one simple line and thats it.

    But i forgot, and now everywhere i look its different and more complex.

    Why didnt i keep track of it. I should have saved it somewhere.

    I tried PostMessage and SendMessage, it doesnt work.

    Pls help.

    Edit:

    This is working:

    keybd_event(0x41, 0, 0, 0); 
    submitted by /u/SneakyJessica
    [link] [comments]

    Which programming language would you think is worth mastering?

    Posted: 21 Aug 2020 10:35 PM PDT

    I recently graduated with my CS Degree, so I would say that I know a bit about the basics. I understand that there is no "one" programming language to learn, as they are just tools in a box.

    However, I also understand that it takes quite a long time to master the ins and outs of a language, learning the intricacies and stuff. I would like to focus on two (this doesn't mean I'm closing my doors to learning others). So Reddit, which language or two do you think is worth spending years and years on (think of it in terms of job prospects I guess)?

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

    How do I balance my learning?

    Posted: 21 Aug 2020 04:32 PM PDT

    Soon to be fresh grad here with no prior work experience. Due to a lack of job opportunities where I live, I figured the best I can do is work on projects and build a portfolio.

    However, I feel overwhelmed by the amount of things I can do and how much time it could take. On the one hand, I am fairly knowledgable with syntax and know concepts such as pointers and dynamic programming but on the other hand I could take hours trying to solve a basic algorithmic problem on data structures. I began working on problems on hackerrank but after a month with very slow progress I feel like competetive programming is not my thing. At the same time data structures and algorithms are vital to cs and I have to do it somehow. So I'm a bit lost about how to go about this. Do I work on a big project of my choice to learn software engineering skills or do I work on my algorithmic skills first? If I should do both then how much time do I spend doing each everyday?

    I'm used to getting work handed to me such as assignments, projects in university. I regret not developing personal projects earlier while I was learning back then. But now that I am free and jobless, I feel a bit lost and limited on time as a grad.

    Has anyone been here? I would love to here your stories and suggestions.

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

    Find x?

    Posted: 21 Aug 2020 10:23 PM PDT

    Is there a way to find the argument a function uses to come to a given result? I have a encrypting script that takes a 'key' and a string a gives an encrypted string. So I am looking for any ideas on how I can find the original string if I have the encrypted string and the key. I have the script used and could probably just use it to backtrack one character at a time by hand but that's just stupid. I don't want to put the code here because I want to solve it on my own, I just need some ideas. The script isn't very complex but it uses the modulus function so I don't know how to solve it algebraically either. TL;Dr Is there an intuitive way to find the arguments used by a function for coming to a given result? PS. I didn't know what flair to use and just went with whatever felt the least wrong

    Edit: I think I have a general idea of what I need to do now, it doesn't sound that tough when I noticed it uses 26 to get the modulo. Still, any further help will be appreciated.

    submitted by /u/need-a-temp599
    [link] [comments]

    How feasible would it be to create a program that watches NBA games records timestamps of specific types of plays?

    Posted: 21 Aug 2020 06:26 PM PDT

    So I had a cool idea in mind but I don't know how feasible it would be. I watch a lot of basketball and do a decent amount of analysis for fun, and I thought it would be cool if I could write a program that would take in videos of NBA games, and it would record in some map structure the timestamps of different plays that are being run (e.g., horns or triangle offence).

    I would assume some sort of real-time tracking mechanism that differentiates the players of two teams by the color of their jersey or something would be needed. And probably a neural net of some sort to determine if a certain play is being run. How I would create something like this is beyond me.

    This is just an idea and I'm nowhere near at a point where I would be able to develop something like this, but I'm curious what more adept programmers think of this as an idea? Do you guys think this would be feasible at all?

    Thanks in advance.

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

    Can I take CS50 courses and learn Python on the side at the same time?

    Posted: 21 Aug 2020 09:52 PM PDT

    I've heard learning multiple languages at the same time is not beneficial although I don't know if this applies to the same case but would it be efficient for me to take CS50 courses every day but also learn Python on the side or would it complicate things. I just took my first CS50 course and I'm unsure of what language will be taught first. Please help.

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

    Web Development - Seeking advice

    Posted: 21 Aug 2020 09:40 PM PDT

    Dear web development programmers,

    I'm here looking for some advice from experienced web developers.

    A little bit of my background:

    I don't own a degree in Computer Science or any similar field. I have graduated in a completely and non-related field.

    Recently I started studying Web Development through a self-taught approach. I don't have money to pay for a Bootcamp either.

    My goal is to land a job as a Full Stack Web Developer in 2021. I have to work full time and usually I have to do 2-3 hours of overtime, 5 times a week. My schedule is very tight, but I am trying to study 8-10 hours on the weekends (Saturdays and Sundays). On weekdays I try to review my codes, read, practice, find solutions to my errors etc. I may have between 1-3 hours if I am not too tired.

    Resources

    Having that said, I'd like to share more details of my approaches. As having explained everywhere, most people recommend new users to learn and master HTML5, CSS3 and JavaScript. Here are some of the resources I have been using:

    1. https://www.freecodecamp.org/learn/

    I finished the Responsive Web Design Certification, including the projects. On this course, many fundamentals were covered, such as Basic HTML and HTML5, Basic CSS, Applied Visual Design, Applied Accessibility, Responsive Web Design Principles, CSS Flexbox and CSS Grid. The final part of this course was the projects that took me some time to do, lots of research etc. All in all, I don't think I did a bad job since I have accessed other people's projects on Codepen and I found out my projects to be satisfactory for the level I was at that time. I am hoping to improve my skills in 6 months, but I will always leave my projects there for future references.

    2.JavaScript Algorithms and Data Structures

    It covers Basic JavaScript, ES6, Debugging, Basic Data Structures, Basic Algorithm Scripting, Object Oriented Programming, Functional Programming, Intermediate Algorithm Scripting, and lastly JavaScript Algorithms and Data Structures Projects.

    I was studying JavaScript through this course. However, honestly I have had lots of trouble in doing the last exercises of Basic JavaScript and ES6 modules. I'm no longer a young person on 10's or 20's anymore...it takes more time for me to learn computational thinking…

    3.https://eloquentjavascript.net/2nd_edition/

    In order to understand more about what I was doing, the exercises' solutions etc, I started reading the book (link above). I'm still at the very beginning, going on my halfway. But I am wondering when I am going to be stuck later on...

    4.The Modern Javascript Bootcamp (2020) by (Andrew Mead)

    To complement the book and get a better understanding of JavaScript from another perspective, I started studying with Mead's course available on Udemy. It was a gift given to me, therefore I could not refuse it. Instead of just leaving the course there, I started taking it from the first video of the course. However, as any resources I have taken so far, it came to the point where I got stuck again. Yes, AGAIN. Do I need to highlight that word? AGAIN. I got stuck at Asynchronous code, Callbacks and Promises' section. Yes, I am not ashamed to say that I have not understood how it works properly.

    5.https://javascript.info/

    This is another resource I'm using to complement my studies. I am reviewing the first parts of the website, because I want to make sure that I really understood the very basics of JavaScript, before I go into real projects.

    6.https://www.theodinproject.com/tracks

    I finished the Front-End modules and I will start the JavaScript Basics' modules soon.

    I keep going in between the resources above, because sometimes I feel like I'm wasting way too much time thinking, researching and still not being able to understand the answers on Stackoverflow etc. I know that the answers there will work on my code, but I want to know why they have implemented in what order etc. Maybe I am overthinking?

    However, I realized that this "waste of time" approach actually helps me a lot. Learning from another perspective or resource, it has been helping to get a more solid understanding of the overall process. Sometimes the explanation on resource X, it helps me to solve problems on resource Y and vice-versa.

    On Udemy

    I have not spent any money on any courses so far. Would you guys recommend me taking some of the Udemy courses, for instance?

    I have been reading the reviews on Web Development courses with 4.5 stars or more. Reading the comments from 1 to 5 starts, I think there is a consensus that the teachers are great instructors. However, the downside is that, despite some of them claiming that it is "Title - Name of the course 2020" etc, they are very outdated.

    I would not mind paying for ONE HTML and CSS course that is more updated and ONE or TWO on JavaScript. I would not mind paying for one Web Development course either. As long as it is worth the the investment (about 12usd each course). If you guys have any suggestions, please let me know. I will consider buying those courses whenever there are discounted prices.

    JavaScript

    If there are any other ways to learn JavaScript, please share your experiences here.

    I feel like in order to understand not only any language, but to become a good programmer, I will need to work more on Algorithms and Data Structures' exercises etc. What would you recommend someone like me?

    When I get the grasps of the fundamentals and start working more with projects, I am considering using the following websites:

    https://www.topcoder.com/challenges/?pageIndex=1

    https://www.coderbyte.com/

    https://projecteuler.net/

    https://www.hackerrank.com/

    https://www.codechef.com/

    https://exercism.io/

    https://www.codewars.com/

    https://www.spoj.com/

    https://www.codingame.com/start

    Technical Interviews

    I know I am far away from getting a job. Let's be realistic here. But I am wondering if practicing through any websites above, that will help me during technical interviews, for instance.

    Do you guys think it will be a waste of time or actually more useful? I'm thinking about applying for jobs by next year. Eventually I will get into technical interviews. I am asking about this because I felt like I started learning about the syntax, but after studying more algorithms and data structures, I was actually learning how to solve problems. What are your opinions?

    Any feedback, opinions etc will be highly appreciated.

    Thank you in advance!

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

    No comments:

    Post a Comment