Recently started to learn code. Want to build a website. Have a few questions. learn programming |
- Recently started to learn code. Want to build a website. Have a few questions.
- Computer Science Fundamentals for a Self-learner?
- Learning python
- Got problems understanding how to prove correctness of my bubble sort with loop invariant technique
- Looking for MVC Projects to do during self isolation. Any step by step guides would be really appreciated!
- Advice on How to Create simple Web App in Java
- Tools needed to be a Data Analyst (Marketing)
- Anyone using vanilla vim as their primary text editor for programming?
- Learning C++
- Learning RubyOnRails
- Backup for computer scientists
- Python stripping accents on strings held in lists/dic
- [Java] Having Trouble Replacing Image On an Existing JFrame Window
- Modifying a field involved in the total order of a linked list - how to trigger the reinsertion?
- Finished reading up to the "additional topics" section of CLRS. Should I finish the book?
- How to think like a programer?
- Modern GUI Application Structure
- error when installing opencv through console
- Help with my postgresql double-entry accounting implementation -- how to insert new postings
- Why does this get this answer?
- Is it a good idea to ignore the country code when implementing localization?
- Hello i want to ask question
- Unity 2d Follow a Particle
- Visual Studio Code SFML/Graphics.hpp not found error
- how can i maintain consistency towards learning c++ on my own everyday?
Recently started to learn code. Want to build a website. Have a few questions. Posted: 17 Mar 2020 11:17 AM PDT So I finished the c++ course on sololearn and I'm not saying I'm ready to tackle the field just yet, but I want to start a project and learn more as I go. People say sololearn doesn't teach problem solving but it has for me. Whenever I get stuck I can go back to a point in the course and I am able to fix any errors in my code. But I have a great idea for a direct to fan website. I don't want to do the whole backend with c++ but I also want to learn JavaScript, Python, Node.js and Use react as well. I know I have a lot of learning to do, but Im new to all of this and I am willing to learn more as I work on my project. I may have some really NOOB questions.
I know these things may sound stupid to ask but I really want to hurry and hit the field with this. Sorry if any of this sounds ignorant. [link] [comments] |
Computer Science Fundamentals for a Self-learner? Posted: 17 Mar 2020 09:50 PM PDT Background: I work at Google as a datacenter technician. I recently applied and was accepted into a program that allows me to sit as a full-time Site Reliability Engineer (SRE) at Google (for career growth and development) for six months. I've been programming as a hobby for ~10 years now, but have never received formal education (all self-learned). I've managed to stay somewhat above water in the new role, and am certainly learning a lot through trial by fire, but my biggest weakness is my lack of formal training. As a self-learner for the past 10 years, almost every class, tutorial, article, etc. I've consumed has almost always skipped over many fundamental computer science topics. My most recent find was Big O notation - something I'm just now hearing about and is something that is taught very early on in computer science education. This leads to my question: what are some good resources for someone who is not new to programming but is interested in learning some CS fundamentals? It feels like books that teach you syntax and basic problem-solving are a dime a dozen, but anything more complicated than that seems to be hard to come by. I would love to hear what has worked for other self-learners who found themselves in this predicament. [link] [comments] |
Posted: 17 Mar 2020 06:18 PM PDT Hey, after the covid 19 breakout I got some time to learn how programming works. Is someone interested to learn with me python in the next months together ? I am a beginner and would like to start with another beginner, so we can start with the basics and work us through the concepts. We can watch similar tutorials and discuss concepts when needed. (I would like to spend 3 hours a week on learning). Would be awesome if you are my age around 25 years old. I am a native german speaker. [link] [comments] |
Got problems understanding how to prove correctness of my bubble sort with loop invariant technique Posted: 17 Mar 2020 04:06 AM PDT Hi, as I said in the title I don't know how to prove the correctness of my bubble sort algorithm with the loop invariant technique. Here is the pseudocode: So I know I could write the algorithm with two for cycles, but I like the fact that I came up with this version, but as I said before I don't know how to prove its correctness. Not asking for a solution, just a hint.Thanks [link] [comments] |
Posted: 17 Mar 2020 07:16 AM PDT Hello, I have recently completed a pretty intensive coding bootcamp where I completed several projects including three MVC web apps. I am looking for projects to work on to add to my portfolio while my area is shut down. My preference would be for step by step online courses or books. Anything involving JavaScript, C#, .NET/.NET Core, MVC, etc. would be my preference since I am really trying to sharpen my skills with MVC. I do not mind paying for resources, so if you know if an ebook, print book, online course, etc. that costs money, I am very open to paying for good content. I should also add that I have several years of experience doing front end development so I am really looking to focus on back end skills with my next project. [link] [comments] |
Advice on How to Create simple Web App in Java Posted: 17 Mar 2020 11:31 AM PDT Hello all, I have a Java Swing application that stores post-game statistics into a database. This has worked very well, but I currently only have one gripe. That being the lack of ability to view that information in a nice way on any machine. To solve this, I have looked into developing a local web-page that pulls data from one Database View into a table on the web-page. Since I coded my app using Java, I would like to continue using Java to create this simple page. However, this has proven a difficult area to get started. I was hoping someone here would be able to provide me a resource to get this done as quick as possible. Also, if this could be done quicker and more simply using a different language / framework I would be open to exploring this. [link] [comments] |
Tools needed to be a Data Analyst (Marketing) Posted: 17 Mar 2020 09:07 PM PDT Hello friends. I feel like this need not be sad but the pandemic we are currently facing has put a lot of people out of work. To give context, I work in media as a video editor; without there being a steady amount of work coming in, there is going to be less and less work for me...something that I have built over the course of 6 years in my career. I digress, but my back is up against the wall and I need an exit strategy that is going to allow me to earn a decent living and put me back to work (even if that means WFH). I landed on data analytics as a career change because I am actually graduate of my local Economics program over at uni. This course of study does include an introduction to calculus with a more in depth review of statistics (since a lot of the models used in upper division classes have statistics used). With the research that I have done over the course of a few weeks, I have came to the conclusion that I will need SQL, Python, and Excel in my toolkit. Luckily I just need a refresh on my Excel macros, but as for the other 2 I am going to need some serious work to focus on them and learn as best as I can. My main question for any and all data analtsts out there is...how are these tools being implemented at your job? Sure, one could easily reach the conclusion that they collect and organize data, but exactly how these tools are gathering that information is what really baffles me. If I was with a company that sells action figures (for example), am I tracking the ages/genders of the consumer base? How many sells at what price? How our competitors are doing relatively? It seems like there are a lot of questions to answer from the outside looking in, so being able to be pointed in the right direction is really going to help out a lot. Side note: I know that I am not the only one in this boat and I am trying my best to learn as efficiently and quickly as possible. Just want to put out as much positive energy out there and let everyone else know that you aren't the only ones out there struggling as the economy starts to slow down quite rapidly. Getting a career related to programming is going to be an option for a few other folks out there, so lets do our best to be positive and encourage one another as we try to keep ourselves afloat! :) [link] [comments] |
Anyone using vanilla vim as their primary text editor for programming? Posted: 17 Mar 2020 12:18 PM PDT By "vanilla", I mean no plugins, extensions and such. I met a person doing C programming in vim, without a .vimrc configuration file. That person does it daily and works on a pretty big project. I guess she is not the only person who does that. I know it's personal preference. Is there anyone else doing it in the same manner? [link] [comments] |
Posted: 17 Mar 2020 09:24 PM PDT I have grasp fundamental knowledge about C++, And I would like to create a desktop application. So far, I have only ran my programs through a cmd prompt. Can somebody provide me resources on how to create a a desktop application? [link] [comments] |
Posted: 17 Mar 2020 11:48 PM PDT Hi! Tomorrow i will start in a RoR project (mobile application), i don't have much knowledge of Ruby, where i could learn this language/framework? Any websites or resources i'll be appreciate it 😊 [link] [comments] |
Backup for computer scientists Posted: 17 Mar 2020 05:43 PM PDT I've been coding for a good number of years now. And recently I had the tradgidy of losing a lot of my work. Most of it has been recovered from various sources. But that was a pain. I have used just windows standard backups before. But because I had things in the c drive. It didnt catch any of that. What do you guys trust to properly back up a computer? [link] [comments] |
Python stripping accents on strings held in lists/dic Posted: 17 Mar 2020 11:31 PM PDT Hi. I'm preparing textual training data in Spanish for a ML pipeline in python3. I am trying to understand what's going on with characters in my data that have accents. The file is taken from the BYU corpus, it is originally in `latin-1` encoding but I converted the file to `utf-8` with iconv on the command line. This is my code: My issue is that when I print some of the tokens in the resultant dictionary `nouns` , none of the tokens have any accents (which are there in the original file, and when I add debug print statements in my for loop that populates the dictionary). I've read that printing lists of strings uses `repr` and defaults to ascii characters and thus will strip accents, but this behavior does not happen when I initialize lists in my notebook. I'm also wondering if its because I am storing these strings in lists, themselves within dicts. ' Why are my accents being stripped? Are they actually stripped, or is this a side effect of printing in the notebook? Thanks! [link] [comments] |
[Java] Having Trouble Replacing Image On an Existing JFrame Window Posted: 17 Mar 2020 11:30 PM PDT Hello. I have just started to learn to program in Java. I am trying to replace the GIF in an existing JFrame window, but every time I call the draw method in a different class, the program opens another window instead of replacing the GIF in the existing window. Here are the codes: import java.awt.BorderLayout; import javax.swing.*; import javax.swing.JFrame; import javax.swing.ImageIcon; { /** * */ private static final long serialVersionUID = 1L; JPanel contentPane; JLabel imageLabel = new JLabel(); public FrostyCanvas(String imageName) { try { setDefaultCloseOperation(EXIT_ON_CLOSE); contentPane = (JPanel) getContentPane(); contentPane.setLayout(new BorderLayout()); setSize(new Dimension(600, 600)); setTitle("FrostySpirit v0.1 - FrostyCanvas"); // add the image label ImageIcon ii = new ImageIcon(this.getClass().getResource(imageName)); imageLabel.setIcon(ii); contentPane.add(imageLabel, java.awt.BorderLayout.CENTER); // display target GIF this.setLocationRelativeTo(null); this.setVisible(true); } catch (Exception exception) { exception.printStackTrace(); } } This is how I call it in the main method in a different class: Doing so does output the GIF correctly, but I could not figure out how to replace the GIF in the window. Calling FrosyCanvas with a different file name just opens another window. If anyone knows the solution, please help. Thank you! [link] [comments] |
Modifying a field involved in the total order of a linked list - how to trigger the reinsertion? Posted: 17 Mar 2020 07:40 PM PDT Say I have a sorted linked list class and a node class in the same package but as standalone with no inheritance. Suppose the linked list is your standard fare: My solution to preserving the total order was a manual reinsert of the Node object using a LinkedList.reinsert(node) function that the client must call after any update to the node. What if instead I wanted any update in setData() to trigger a reinsert automatically? How would I go about doing that? [link] [comments] |
Finished reading up to the "additional topics" section of CLRS. Should I finish the book? Posted: 17 Mar 2020 11:17 PM PDT I'm not really studying "for" anything in particular, atm I'm already working fulltime writing code, but I want to make up for not having done a CS major (I did math instead). So I started reading CLRS in January and slowly getting through it (I haven't skipped anything except for the proof of the master theorem because that seemed incredibly boring & unimportant, but I'm not doing any exercises). Should I finish it? Or pick and choose chapters? If so what chapters? I already read Sipser except for the additional topics part there so I'll probably not read the np-completeness discussions again, but the rest seems like stuff I don't know yet (I did linear programming & RSA in linal but that was soooooooo many years ago that I remember nothing). So considering it'd probably take me another full month to finish, is it worth it to read the entire thing? Or should I skip around? Or stop now and read something else next? I definitely have other stuff I could switch to, but if this is worthwhile to finish I'll do it (even if just to say I did haha) [link] [comments] |
How to think like a programer? Posted: 17 Mar 2020 02:00 PM PDT Hello guys, i´ve been doing Jonas java script complete course on udemy and was doing fine until the budgety app building started. i know all the concepts that he is using as they were all taught in the course, but the way we put everything together in order to create the app just seems waaaay out of my league, while i understand them, i couldn't even begin to think how to do all these function closures to work together in order to build this app? I feel overwhelmed with all of this, and starting to think i might not be smart enough for this.. Thank you! [link] [comments] |
Modern GUI Application Structure Posted: 17 Mar 2020 10:15 PM PDT I have a bit of an open ended question about the structure of how a lot of newer GUI libraries/implementations work. As a preface, I have been programming for quite a while, but am pretty much 100% self taught, making small scale programs for fun and occasionally selling them to people locally. Pretty much all of my experience is in Java, but am currently expanding into other languages like C# and JS. My point is that I have no real concept on conventions are in the actual programming community. Bear with me, there is going to be a lot of context for this question. Most of the GUIs I've created have used Swing as it was the first GUI library I learned. I am very familiar and comfortable with it even though I know it is very outdated. I've grown accustomed to the structural freedom that Swing gives me. For most of my programs I've adopted an program flow that keeps the logic of a program separate from the GUI, with the GUI acting only as a controller. This takes the form of me creating an abstract "Controller" class that the logic side of the program interfaces with, which I then extend to create Console interfaces, GUIs, Controls over Sockets and AI controllers for games. For example, see the structure of a quick Tic Tac Toe program I created the other day with Java: This game class handles all the logic of the Game. The inner workings are irrelevant but for context all of the game data is stored in a Board class, with the game prompting moves from controllers and sending board data back each turn. Now here is the definition of my Controller class And the definition of my GUI class, extending Controller. For reference, a GamePanel is an extension of a JPanel that displays a tic tac toe board and uses synchronization to take user inputs when requested by the Game class. So where am I going with this? Now that I am expanding into more and more languages, I'm finding that most of the modern GUI libraries do not easily allow this sort of structuring. I can't exactly put it into words, but for example: JavaFX, WPF, Xamarin.mac and Cocoa all seem to want to "own" the "Main" part of the program. Rather than having the control separate from the program, it seems to me that the control aspect (GUI) is the program. Now I haven't exactly learned any of these libraries to the extent that I know swing, so I guess my question/questions are: What are the benefits of having these GUI libraries structured this way? - Do these implementations solve problems in larger projects that I just haven't come across? Is there a way to implement things in the way that I know and prefer with these modern libraries? - If not, do I need to throw away my own way of thinking about GUIs and embrace theirs? [link] [comments] |
error when installing opencv through console Posted: 17 Mar 2020 09:38 PM PDT In the image below. I keep getting stuck at 30% when trying to install opencv through console. I'm installing it through a virtual ubuntu machine [link] [comments] |
Help with my postgresql double-entry accounting implementation -- how to insert new postings Posted: 17 Mar 2020 09:11 PM PDT I'm working on an open-source inventory-tracking system for a small community-supported agriculture company. I've worked briefly with SQL before, but this my first attempt at a large-scale system and I'm learning by chewing through the postgresql manual as I go. I realize that this is probably patently insane, but the poor bastards were keeping it all in Google Sheets before and it was just too horrific to allow. The resultant code will be released under an open-source license. I've put something together based on double-entry accounting to help track the flow of planted, harvested, and sold products between our growers, inventory, and clients, largely based on this and this. The bit I'm having trouble with at the moment is how to handle the creation of new transactions in a safe way. Here's the code used to create the database (and the sum total of what I have so far): The transactions table serves to group postings entries together into whole units of work, per the first link. However, they also stipulate that the program's logic should not permit an incomplete transaction. It seems to me, though, that an incomplete transaction would be required in order to enter a set of postings. To the best of my knowledge, one would have to insert a new entry in the transactions table before one can successfully insert anything into the postings table. How do I approach this? Also, is it better to implement the insertion code within the database itself? Or is it best to keep that in the application code? [link] [comments] |
Why does this get this answer? Posted: 17 Mar 2020 09:10 PM PDT int i = 5, j = 10, k = 1; (k += 3*--i) - j++; i becomes 4 j becomes 11 k becomes 13 I understand that k adds 3*4. But why j become 11 and no other changes? Why does - j++ not affect i or j at all? That subtraction appears to not affect the bracketed content at all. Why is that? [link] [comments] |
Is it a good idea to ignore the country code when implementing localization? Posted: 17 Mar 2020 08:58 PM PDT I'm using jquery.i18n library to implement localization in my website. I'm currently using javascript to read the browser current localization settings (language code) and pass it to the library and it will fetch the localization strings from a JSON based on the browser settings. So if the user is configured to US English, it will try to find en-US.json. If the user is configured to GB English, it will try to find en-GB.json. However, this is tedious since the amount of language-country combination that needs to be considered is a lot. Hence, I'm thinking of ignoring the country code and match only with the language code. Is this a good idea? [link] [comments] |
Posted: 17 Mar 2020 08:46 PM PDT My question is i have learnt java and i want to learn android dev so i want to learn it from a good source and i have no money so i need a free site or method to take a very good course for it Sry for my bad English And thanks very much [link] [comments] |
Posted: 17 Mar 2020 08:30 PM PDT Hello, i don't have any code to fix, i just cannot figure out a way to follow a particle, there isn't any way to add 2d lights to a particle and i want to make a 2d light follow a particle and simulate the particle for emiting a light, or something like that. Is there any method to get the particle position? not a particle system position, the particles of a particle system's position. [link] [comments] |
Visual Studio Code SFML/Graphics.hpp not found error Posted: 17 Mar 2020 12:54 PM PDT I am on MacOS Catalina using Visual Studio Code (C, C++ extension by Microsoft) and the Code Runner Extension. Compiler is clang. I was coding a game using C++ and I get the error "main.cpp:1:10: fatal error: 'SFML/Graphics.hpp' file not found". My code is https://ideone.com/9Pk5g3 and my configuration & the error can be found here https://imgur.com/a/C5bLSZ9. Please guide me as to how I can fix this. [link] [comments] |
how can i maintain consistency towards learning c++ on my own everyday? Posted: 17 Mar 2020 08:21 PM PDT I already took data structures as a college student. But, since I don't have any cs courses this semester. How can i motivate myself to put an effort to learn more regarding algorithms and improve my programming skills every day? Thank you in advance. [link] [comments] |
You are subscribed to email updates from learn programming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment