• Breaking News

    Thursday, October 10, 2019

    How do GUIs ACTUALLY work? learn programming

    How do GUIs ACTUALLY work? learn programming


    How do GUIs ACTUALLY work?

    Posted: 09 Oct 2019 01:48 PM PDT

    When I search for something like "how to create gui in c++ from scratch." Why are all the results just showing you how to create a gui application with an api like QT or something?

    Without using an api, how does displaying a gui work, and is it possible to do from scratch in C++?

    Anyone have good learning resources about this?

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

    I created a GitHub Repo which contains (pseudocode) of various Data Structure and Algorithms that you need for interviews/competitive-programming. Let's remove the clutter of language!

    Posted: 09 Oct 2019 08:14 AM PDT

    There are already a lot of repositories which implement different algorithms in different languages. However, with these implementations, the focus might quickly shift to the syntax rather than the underlying logic behind the questions. Hence, I created this repository to focus on the core logic of the question and not worry about the syntax of a particular programming language for the time being. The goal is to write high quality pseudo-code to demonstrate the power of data structures and its applications to various questions.

    With that said, this repo is still in the starting phase. So, if you know a little bit of Latex, please consider contributing to this repository. Even if you aren't familiar with it, it would be a great learning experience. Plus, learning it takes hardly an hour if you have an Overleaf account.

    Here's the link to my repository

    https://github.com/Just-A-Visitor/Coding

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

    Tips For Beginners Wanting To Learn Code Faster

    Posted: 09 Oct 2019 01:24 PM PDT

    I often hear that people are hitting roadblocks while coding (including me). While this is a common problem across all skill levels, I see people who are talented, yet give up a bit too easily. It can be frustrating, but overcoming those frustrations and solving problems are one of the many things that create amazing developers. These tips may be common sense to the seasoned developer, but I hope those beginning can find these helpful :-). Let's get on with the tips.


    • Learn the basics. Yes, it isn't fun, and you might fall asleep since you're not making something flashy, but learning syntax and how they work are crucial. Learning how to read code will help immensely, even when learning functions you're not aware of yet. You'll start to pick up on the logic behind code, but that comes through practice on learning your languages syntax.

    • If you're not retaining syntax, don't stress. Google, Google, and Google. The only way you are going to retain syntax is through repetition and time. Everyone does this, even the seasoned devs. There's just too much information in a never-ending book of things to learn on code. It will come over time, but you must keep coding rather than just reading.

    • Don't worry about how good someone is or how fast they learn code. Everyone learns at different paces, and time spent on code isn't linear. While time matters when mastering something, how you get there is completely dependent on that individual's learning methodology. You will find your best method of learning, but you need to keep coding.

    • Step away if you're frustrated. Play a game, go for a walk, or so something that isn't coding for an hour or two. If you're frustrated, you'll end up fueling it by stumbling over and over due to it. This is where a lot if people give up, and they often underestimate how leisure can clear your mind if clogged thought processes.

    • Excercise patience. If you don't, you'll end up giving up before you learn anything. A large part of programming are steps and solving logical problems. Don't get me wrong, in a world that wants things done in an instant, you will want to become an overnight success. Taking time on solving your errors will go a LONG way, so rather than rushing, take your time to understand things. You will often learn more than one thing when debugging one or two errors.

    • Once you learn the basics, start working on something you want to create. This is the biggest step of them all. This is the phase where you will learn the most. When you are working on something you like, you gain motivation. You want to learn more, you want to learn how to make something happen, and over time, endless hours will be spent on code. This leads to "muscle memory", and you start to retain syntax, as well as pick up on newer methods and functions faster. You will want to code, and keep trying to solve a problem. Learning exercises are fine, but doing something you personally want to create will ultimately lead to a faster and significantly funner learning experience.

    I hope this helps anyone that is starting out. Keep at it, and you'll make that app you've been wanting to make. I know it may seem a bit brief, but I hope to spark motivation in those that are hoping to become programmers. Happy coding!

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

    I want to learn about databases by making one from scratch. Where do I start?

    Posted: 09 Oct 2019 10:50 PM PDT

    As I plan to change my career towards Data engineering, I realized I will need more in-depth knowledge about databases. So the idea came up, but I can't find enough resources to start.

    I've worked with databases in the past and took a course on my university, so I am quite familiar with the terminology and concept.

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

    Javascript Object Comparisons to Calculate Prices

    Posted: 09 Oct 2019 10:47 PM PDT

    function totalCost(cart, instrument) { let total = 0; cart.forEach((cartItem) => { instruments.forEach((instrument) => { if (instrument.code === cartItem.code) { total += calcLineTotal(cart.quantity, instrument.salePrice); } }); }); } 

    /* I'm wondering why this piece of code is saying that the total is unreachable. I want to find when the item in a shopping cart is the same as one that's in a catalog of instruments, and then when they are the same, I want the quantity in the cart to be multiplied by the cost of the item. This isn't working for some reason. */

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

    Is it a good idea to dive into C++ after finishing C?

    Posted: 09 Oct 2019 06:53 PM PDT

    since C++ is a superset of C, is it recommend to dive straight into it... or it doesnt really matter?

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

    Not a programmer, but want to write a program to help me teach english to japanese students, just need to know if what i want to do is possible. I will try to teach myself after that.

    Posted: 09 Oct 2019 05:33 PM PDT

    Hi,

    I'm currently teaching english in Japan and my students are bored out of their minds with the textbooks we are assigned to use. What I'm hoping to do is write a program where I can give it a list of vocabulary words, and then have the program search through many subtitle files (notepad files), and if it finds one of the words then it records which subtitle file it found it in and which word it found. Then I can know which episodes contain content I can use to teach.

    I'm hoping to use a show like the simpsons to teach them the grammar and vocabulary they need to learn but in a much funner way that might actually get them interested. If I can make clips with the relevant words or themes that relate to the textbooks we use, I think I can really help my students to improve. The problem is it would be much too time consuming to manually search for the targeted vocabulary words since the textbooks have a lot of words, and there are a lot of episodes of the Simpsons.

    I would be hugely appreciative if you can tell me if this is possible to do and what language to use to do it. Once I have a starting point I will attempt to teach myself how to do the task, I just dont know right now where to begin.

    Thank you.

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

    Do I need to learn to code?

    Posted: 09 Oct 2019 06:38 PM PDT

    Hi! I just created this account because I really need guidance on whether or not I need to learn code.

    I'm really interested in getting into ed tech. I've been a teacher the past 3 years, and I see a lot of potential for it, but I've also seen what has been created, and know that better can be done.

    My question is-- do I need to learn coding if I want to make an interactive app? Or would I use something like Unity? If I do need to learn coding, what language would I need to know? I tried researching this topic a few times, and it's so overwhelming, so I just want someone to tell me what to do.

    Thanks in advance!

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

    Interested in joining a coding bootcamp? Read this first!

    Posted: 09 Oct 2019 11:52 AM PDT

    Some context: I'm a self taught Sr. Software Engineer for +5 years now, and I've been teaching on/off at various coding bootcamps in the last couple of years. And more recently, started mentoring privately.

    Since I've received a large amount of questions about bootcamps on my inbox, I decided to just write a short piece to summarize all the things coding bootcamps don't tell you, and the advice I'd give my younger self I was interested in joining a bootcamp. Hope you find this useful!

    The Good, Bad, and the Ugly of Coding Bootcamps - Medium

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

    Put GUI program in console container

    Posted: 10 Oct 2019 12:17 AM PDT

    Hey, I was wondering if something like this exist. I'll shortly describe problem: many specialized programs are available only in GUI (graphical user interface) version. That makes automating process especially hard. I wonder if there is a tool to create console program out of given compiled windows app program - for example, by connecting to visible parts of graphical interface, or detecting exposed parts. I would love to actually sit and solve that problem, but I would like to know first if such solution already exists.

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

    Why is there no solution to the halting problem?

    Posted: 09 Oct 2019 11:46 PM PDT

    I just watched this computerphile video on the Halting problem described in Python:

    https://www.youtube.com/watch?v=r__GZ7ubU0M

    I get the premise, but I don't see how it isn't possible to know if a function is finished or is hanging. It seems like that would be an easy determination to make. If the function returns, it would trigger a flag that can detected by a monitor program. If the monitor program never receives that flag in any reasonable time or if the program is not responding, it is considered hanging. I feel like this solution is good enough for practical implementation. I understand in an idealized scenario it would be impossible to know if a program hangs forever since you would need to wait around for infinite time. But that doesn't even seem to be considered in the problem scenario.

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

    Web-Based Audio Visualizer / Analyzer

    Posted: 09 Oct 2019 11:43 PM PDT

    I want to create a web page that will take a user's audio output from their device and create visualizations from that.

    Is there a way to do this without invoking a microphone such that someone can just play music (or any audio) from their computer and just have the output fed directly into a web script?

    I've seen some older posts that outline a convoluted method using a microphone or an aux cable and a MediaStream in JavaScript, but I just want to take the audio straight from the device. Is there a way to do this without requiring any external effort on the part of the user outside of playing their audio of choice?

    submitted by /u/Science-Compliance
    [link] [comments]

    Valgrind on MacOs Mojave

    Posted: 09 Oct 2019 11:34 PM PDT

    Does anyone know of any guides on how to install valgrind on MacOS Mojave Version 10.14.6?

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

    Open source

    Posted: 09 Oct 2019 07:20 PM PDT

    Where can i find some open source projects for a JavaScript Dev?

    I'm pretty intermediate and think I'm ready for some projects.

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

    Is CS50 AP the same as CS50x? Is there any reason not to take CS50 AP instead of the normal course as a high schooler?

    Posted: 09 Oct 2019 11:00 PM PDT

    Basically the title. I want to do CS50 and I'm unsure about the differences between the normal course and the one that counts for AP credit. Is there any reason to not do CS50 AP or are there substantial differences?

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

    [C] Why aren't I able to switch the values between these two pointers?

    Posted: 09 Oct 2019 10:49 PM PDT

    I have the following code:

    #include <stdio.h> int main() { int tuna = 5; int fish = 7; int *a = &tuna; int *b = &fish; printf("a : %p \n", a); printf("b : %p \n", b); int temp = 0; temp = a; a = b; b = temp; printf("switch \n"); printf("a : %p \n", a); printf("b : %p \n", b); return 0; 

    }

    I get this output:

    https://imgur.com/a/wcwfwKJ

    Why isn't it switching?

    Is it because of variable "temp"? What's B's new address value? I don't know what that is.

    edit: took out the "*" in the printf statements after taking snapshot

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

    How would I go about making a social media platform?

    Posted: 09 Oct 2019 10:47 PM PDT

    I would already say I'm a pretty good programmer, in terms of my experience with algorithms, and code architectures and stuff, but I don't have any experience with web development.

    I don't plan to make "the next facebook" I have a very specific goal in mind that caters to a very specific demographic, that shouldn't need a very flashy website design/with a crisp modern gui or whatever.

    submitted by /u/xsq-
    [link] [comments]

    How do i use the class obejct in the method () Java

    Posted: 09 Oct 2019 10:38 PM PDT

    public class Circle extends BasicShape {

    public Circle(double width) { super(2.0); } public Circle(Circle circle) { } This is an assignment and I've only been coding for the past 3 months. Can anybody explain how do I use The circle object in the Circle method? This is a copy constructor but I would like to know the basic concept of public Circle(Circle circle) on how does (Circle circle) affects the method. 
    submitted by /u/mrFarzt
    [link] [comments]

    Which book is best for beginners: Head first java or Java, A beginner's guide ?

    Posted: 09 Oct 2019 10:27 PM PDT

    I have some experience in python and planning to learn java from scratch. Which one would you suggest out of these two books: head first java or Java: A beginner's guide by Herbert ?

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

    Help with HW? (More Info inside)

    Posted: 09 Oct 2019 10:07 PM PDT

    Hopefully this doesn't get taken down lol. I have this assignment where I need to like make a login system. I am supposed to have a "hardcoded" (teachers words) User and Password. And somehow make it so when I ask for a user and pass I'm supposed to input an incorrect password and after 3 incorrect passwords. Afterwards, I am supposed to input 2 security questions (lol) which are mother's maiden name and pet's first name. Then once I input the correct answer (which I always will input the correct answer) I will be able to reset the password and test it again. After the last text pass or fail it will end the program. Hopefully this makes sense. I know I'm supposed to use a loop or something, but I have no clue how to do any of this to be honest. I don't expect an entire solution just some advice lol. or a lot of advice like drop the class and move on from this.

    import java.util.Scanner; public class Login { public static void main(String[] args) { // TODO Auto-generated method stub Scanner keyboard = new Scanner(System.in); String UserID = "User"; String Pass = "Password"; String Mother = "Eustace"; String Pet = "Sammy"; String UserIDLOL; String UserPassLOL; while (UserID == UserIDLOL && Pass == UserPassLOL) { } } 
    submitted by /u/icyecold
    [link] [comments]

    Offering Mentorship for interested junior coders!

    Posted: 09 Oct 2019 03:23 PM PDT

    Hi reddit programmers!

    UPDATE: I've had 4 people Express interest and won't be able to help anyone else but if you or someone you know is interested in Mentoring please have them comment below.

    I am a midlevel engineer at a FANG company and one of my goals is to start career coaching on the side. If anyone is interested in a pro bono mentorship just message me what your current experience is and your career goals and I'll try to help the best I can!

    I'm only looking to take on helping 4 people for now, but if anyone else wants to mentor please comment below and lets help each other all grow!

    Requirements:

    - Less then 2 years professional experience

    - Specializing in Java, C#, Python, or web development

    - Passion to learn and grow

    - Good English communication skills

    Nice to haves:

    - Someone that knows SEO and how to grow a blog that can help me in return

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

    Given 'n' elements in a 1 dimnesional array/list, how do I organize them in a 3 dimensional grid?

    Posted: 09 Oct 2019 09:01 PM PDT

    Assuming the the number of elements n is a perfect cube, how do I assign them an x, y and z coordinates based on their index in the list/array? I'm just looking for an algorithm, so the question is kind of language independent although any C based language would be fine.

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

    Non intrusive autoclicker for roblox

    Posted: 09 Oct 2019 02:49 PM PDT

    Is there a way for me to script a non intrusive autoclicker for roblox so that i dont have to keep roblox open while autoclicking?

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

    No comments:

    Post a Comment