Finally made my first Java program! learn programming |
- Finally made my first Java program!
- I don't want to be decent, I want to be great at programming. Thinking of buying a sub of AlgoExpert to learn and understand data structures / algorithms.
- How to become a better programmer?
- Great Book on JS
- The Creator of JavaScript was just on Lex Fridman's Podcast
- How do you deal with the fact that you’re growing at a slow pace?
- Python : Help with Read Text File into List then Sort List on Two Keys
- How do you deal with loving and hating programming at the same time?
- Grasping the concept of programming?
- python str.strip( ) werid behaviour
- Best project based books for learning
- I suck at designing and I don't know what to do.
- I’m having trouble with this cbot can someone look at this?
- Want to make a cool little project involving famous people/celebrity and quotes
- OSSU Computer Science Course questions
- Program won't terminate when try/catch statement is inside of function
- How can I breakdown and understand such functions with double pointers
- Beginner to coding. What language would be best to learn for something like a smart mirror?
- Is using the "new"-keyword when creating a new object in JAVA redundant?
- How can I write good software?
- How to draw system design diagrams?
- made a python TUI!
- [Python] - Automate the Boring Stuff - Issues with EZsheets
- What kind of algorithm is this?
Finally made my first Java program! Posted: 14 Feb 2021 09:04 AM PST In college, I was introduced to coding through MATLAB and fell in love. Telling a computer to do all the hard work for you? Yes! But once I graduated and started working, I didn't have the time to continue learning. Then, Covid happened and I found myself without a job and decided that I finally have the time to learn a skill I'm so fond of. I tried learning Java through Codecademy and just didn't feel like I learned anything, so I bought Head First to try to actually learn some theory. After chapter 6 I still felt like I wasn't learning HOW to code, so I went to kattis for some prompts to test out if I even knew anything. To my surprise I was able to write my first ever Java program! Even though it's a 29 line code that calculates distance given speed and time, this is great motivation to keep doing what I'm doing! Thank you to the community for motivating me whenever I'm sitting around browsing Reddit. Anytime I see a success story of someone earning a job from being self-taught, it motivates me to put in even an hour at a time to work towards my goal. [link] [comments] |
Posted: 14 Feb 2021 05:17 PM PST Hey guys, Quick short story of my situation - I am currently a junior full stack developer at a small company. I was placed under a PIP because apparently I wasnt doing so well and taking too long with tickets. I understand paid resources are generally really great compared to the free ones. I really love having a general layout and roadmap laid out for me so I don't go all over the place when it comes to learning. Any advice for beginner programmer looking to become great one day? [link] [comments] |
How to become a better programmer? Posted: 14 Feb 2021 05:17 PM PST Hello. I'm a 2nd year CS major. I used C++ for my Data Structures class, but without a common base class, I feel like the knowledge was kinda lost on me. What languages should I learn to be a better programmer? Things like dynamic programming, functional, etc. What language should I choose to go back and relearn DS/As and the like? My goal is to eventually become a cyber security programmer, but that means I need to understand the machine. Is C my only option there? I've taken an assembly class so I mostly understand that. I just want to become a better computer scientist/programmer, rather than learn the most trendy/easiest languages. I feel like theory will go a longer way than a specific tool. Thank you. Edit: Thank you all for the great suggestions. To add, the most complex project I've done has dealt with Dijkstra's shortest path, taking file input and, of course, calculating the shortest path from node x to y. Also, I've dealt with binary files and byte offsets to create a mock bookstore database. I compete in competitive programming competitions with the college and have placed pretty high in the competitions I've been in. [link] [comments] |
Posted: 14 Feb 2021 09:12 PM PST Just want to shout out this book: JavaScript The Definitive Guide. I've been working with JavaScript most my life, but never read an actual book on it, just Udemy, online tutorials, and youtube stuff. I picked the book up recently and have been reading and just have to say, if anyone wants to learn JavaScript don't sleep on this one. It goes so deep into the weeds it's great. I have a much better understanding of how everything in javascript really works now. Definitely worth a buy. [link] [comments] |
The Creator of JavaScript was just on Lex Fridman's Podcast Posted: 14 Feb 2021 08:41 PM PST This interview is all over the place but we're learning about the inception of language we all love! I always thought the "Java" part was just to appease some suits. But there is a much longer and crazier story. What a great interview. [link] [comments] |
How do you deal with the fact that you’re growing at a slow pace? Posted: 14 Feb 2021 08:06 AM PST I'm personally learning web dev and have slowly been putting together one or two very basic websites and am slowly moving away from tutorial hell to try and just find stuff out along the way. However, in the back of my mind I can't help but feel depressed quite often at the fact that either I may never get hired or that I may never have the confidence to start applying. Or, I'm scared that I'll get a few months down the line and begin losing interest slowly to the point where I simply go days without ever touching a piece of code, and that I'll just never go through with it in the end and just be stuck at a shitty retail job. Does anyone else deal with these sorts of intrusive thoughts? How do you deal with them? Can anyone who made the transition from self-taught to getting a job weigh in? [link] [comments] |
Python : Help with Read Text File into List then Sort List on Two Keys Posted: 15 Feb 2021 12:09 AM PST Python : Help with Read Text File into List then Sort List on Two Keys I have a simple text file that has three columns of numbers. My code intends to read the text file line by line as numeric data (not string), assign each line read to a list element. Next I want to sort the numeric data by the first and third columns in the list by ascending and or descending rank magnitude on the third column. This seems like something that should be really simple. Python is not my first language, definitely still hard on the learning curve - but I cant figure out what Im missing here. Spent hours scouring the net, forums for similiar issues and recommend routines but still not able to come up with a satisfactory solution. Any feedback, tips, insights, recommendations welcome. Find attached a copy of the text file as well as the simple current code used. I do not want to use dictionarys, tuples or np style arrays, nor panda or jupyter. Am using Python3.4 and am hoping for a solution using lists that work in my current version. The current code I am using does read the text file, stores it to a list and appears to do something when sorted but the sort is not correct. Previously numbers were being stored in the list as strings not integers or numeric format and that was driving me crazy because when sorting it was sorting in an alpha way not numeric. The current code when sorting does not sort in the described way as needed. I want to have the output to screen shown so that its easy to see three columns displayed line by line, hence the for statement used. Thanks again folks, see below ; CODE :
TEXT FILE : the file filtered.txt contains rows of numeric data spaced by tabs, each row has three columns, here is this simple data : 0 128 8 5 256 12 5 256 12 5 256 20 5 256 20 5 256 20 5 256 20 5 256 20 5 256 20 35 23 12 35 23 12 35 23 20 35 23 20 35 23 20 35 23 20 35 23 20 35 23 20 2 32 14 2 32 14 2 32 14 2 32 14 2 32 14 2 32 14 17 101 8 17 101 8 17 101 8 17 101 8 17 101 8 17 101 8 34 212 12 34 212 12 34 212 12 34 212 12 34 212 12 34 212 12 34 212 12 34 212 12 9 198 12 9 198 12 9 198 12 9 198 12 9 198 12 9 198 12 9 198 12 9 198 12 38 22 8 13 234 8 11 218 8 36 322 8 3 222 8 31 322 12 39 111 14 39 111 20 39 111 14 39 111 14 39 111 14 39 111 14 39 111 14 39 111 14 [link] [comments] |
How do you deal with loving and hating programming at the same time? Posted: 14 Feb 2021 12:29 PM PST I'm in a weird spot. I work late nights (12am-7am) and get a ton of free time to focus on other projects. I love programming, I'm learning it. But I feel like I hate it now. I still love programming. But I kinda hate learning it. It's sometimes the projects and those little things I see in the course. I don't remember them because I don't practice a ton (I always try to catch up before moving to the next section though). It's all a mess. I don't know what to do. I want to learn right now. But as soon as I watched the course tutorial, I quit. It's so much work I feel. I feel like I cant learn for a few days now, I'm mentally tired too. I haven't slept for even 6-7 hours in days and I've been functioning on 3.5 hours of sleep right now. I don't know what to do. I've been trying to get through my job right now, and all I need is a hug. I'm so alone. Programming makes me happy. I get so happy when I do something on my own. I felt really proud when I recently learned to start an express server on my machine. I felt good when I created, deleted or edited a mongo database on my own. One part of me wants to skip tonight's boring job because I can do it later. I want to learn a few new things. But Im so tired that I don't know what to do. I feel like crying. I don't know what to do. Sorry I'm just venting here. [link] [comments] |
Grasping the concept of programming? Posted: 14 Feb 2021 09:22 PM PST So im pretty interested in programming and i would say i have beginner knowledge, with basics on what to do. But what are specifics that you have to understand/comprehend to move forward? I know you must learn data structures and algorithms, but is there more beyond that (and obviously the basics of the programming language). And would you also need to relearn data structures and algorithms for different languages? Or is at "as simple" as understanding the concept and altering it for the specific language. Also how much is there one can learn, im probably going too far too early, but say i want to build a small game but also an app, how hard would that be to learn? Is it also quite difficult to learn other programming languages, or would you say once you understand one fully, its quite similar but just learning the syntax (like python, java, c, c++, c#, swift etc) And how do you know which language to use on certain projects, like a website, app or game etc. I know there was a lot of questions but it would be much appreciated if i could have this cleared up!! Obviously its gonna be a big journey and practicing will be better than reading. [link] [comments] |
python str.strip( ) werid behaviour Posted: 14 Feb 2021 09:22 PM PST the hell is this behaviour. I tried reading documentation, but it looks like, i am too smooth brained to understand. someone help me understanding in simpler languange edit: why wasn't 'l' removed in first case and other weird cases? [link] [comments] |
Best project based books for learning Posted: 14 Feb 2021 09:22 PM PST Hi, I am learning web development and web apps and am comfortable with CSS and HTML. I would say that I am between beginner and intermediate for Javascript and Python and looking for some learning resources. I love Python the Hard Way, is there any similar project/hands-on books for ReactJS, Javascript or Python that people recommend? [link] [comments] |
I suck at designing and I don't know what to do. Posted: 14 Feb 2021 09:11 PM PST Long story short: I tried to build a website for my mom who's a pastry chef. She has her own business and only relies on her Facebook page for promotion. I know HTML, CSS and Javascript but apparently that is not enough to create a good and engaging website. The design in general was dreadful and I don't wanna copy a design from other people. Is there someone who's been through the same and was able to redeem themselves? [link] [comments] |
I’m having trouble with this cbot can someone look at this? Posted: 15 Feb 2021 12:57 AM PST Hello everyone, I come with a small problem regarding a cTrader auto trading robot found on the internet. It is an old bot because it is already 8 years old, but when checking it on backtesting it fares very well. The problem with it is that it does not work on one account on two different currency pairs, does not open all transactions that, according to backtesting, it should open and the minimum LOT is 10000 and it cannot be changed, so it's big problem for a small account. Can anyone familiar with this, have a look at the code. Because I'm a beginner in this matter and I don't know much about it. There is code: using System; namespace cAlgo.Robots [Parameter("Take_Profit", DefaultValue = 180, MinValue = 10)] [Parameter("Tral_Start", DefaultValue = 50)] [Parameter("Tral_Stop", DefaultValue = 50)] [Parameter(DefaultValue = 300)] [Parameter(DefaultValue = 5, MinValue = 2)] private Position position; protected override void OnStart() } protected override void OnTick() if (Trade.IsExecuting) if (Account.Positions.Count == 0) foreach (var position in Account.Positions) if (position.TradeType == TradeType.Buy) if (position.TradeType == TradeType.Sell) protected override void OnError(Error CodeOfError) private void SendFirstOrder(int OrderVolume) protected override void OnPositionOpened(Position openedPosition) if (Account.Positions.Count == 1) for (int i = 0; i < Account.Positions.Count; i++) private double GetAveragePrice(TradeType TypeOfTrade) for (int i = 0; i < Account.Positions.Count; i++) private int GetPositionsSide() for (i = 0; i < Account.Positions.Count; i++) private void ControlSeries() if (PipStep == 0) if (Account.Positions.Count < MaxOrders) private int GetDynamicPipstep(int CountOfBars, int Del) for (int i = StartBar; i < EndBar; i++) private double FindLastPrice(TradeType TypeOfTrade) for (int i = 0; i < Account.Positions.Count; i++) private int GetStdIlanSignal() if (MarketSeries.Close[LastBarIndex] > MarketSeries.Open[LastBarIndex]) #forex #icmarkets #programming #ctrader #cbot #cbots #bots [link] [comments] |
Want to make a cool little project involving famous people/celebrity and quotes Posted: 15 Feb 2021 12:09 AM PST I want to make a project since I have seen everywhere to get actual experience and learn programming in a practical way you should have a project you want to make in mind. I would want to put this on my portfolio. I am currently 19 and really am nervous about getting experience, portfolios, and meaningful learning in. I had an idea of making a website where essentially you can search up any historical figure, celebrity, or famous person, and it will give you back a picture of them, and a random quote by them. I imagine this would have need to learn webscraping? I'm a few months into programming, I know Javascript and Python and some C++/C/Java, so I really want to know what technologies or things I need to learn to get something like this into action. Any advice or help will be interested. This is just a project I want to set for myself by the end of next month. [link] [comments] |
OSSU Computer Science Course questions Posted: 14 Feb 2021 08:16 PM PST Ok so, I think I've decided that I want give coding/CS a serious attempt. I'm still not sure what I want to do with my life, but the sooner I try more things the better. I'll find out eventually. That being said, I'm reading through the FAQ and I'm currently giving CodeCademy a shot. I see that it's extremely basic but hey, it's a starting point. I do feel like I'm learning a bit. I also see that following CodeCademy I ought to pursue more rigorous courses. Once I'm done with that, I'm going to buy Head First Java since I've decided that I want to learn JS first. What really caught my eye in the FAQ was the OSSU CS course. Like wow, an entire free CS course that's apparently good. That's amazing. I was thinking about returning to college (doing community first) to major in CS. But I'm thinking of trying the intro to CS portion of the course first to see if I'll actually like the studies. As I mentioned, I'm a bit lost in life currently. Now my questions for the OSSU course: -How good is it? At a glance, it seems too good to be true. -Is this course "recognized"? I'm assuming by completing the course, it would be similar to self education w/o a degree. As in, I would be able to find a job but maybe overlooked for someone with a degree at times. Or am I wrong? -How does the course compare to enrolling at a university? Sorry if this is a dumb question or too broad. I'm considering going to community college for my general eds since financial aid would basically be paying me thousands to go and eventually transferring to a uni/state college (I live in CA). The obvious difference between the OSSU course and enrolling in a university/college is the cost (I would get most costs covered by FAFSA but still would have to take out some loans). The difference I mainly ask about is the level of education. Is a university course superior to the OSSU course? -And lastly: How difficult is the course? I'm assuming very difficult since it states it's emulating a complete CS course. This question is more towards anyone taking it/anyone who has completed it. I ask because I currently work construction/refineries and make real good money, was curious if I would be able to continue learning/working in my field and do 10-15 hours of self education through the course and eventually make a living off it (I realize this sounds kinda dumb considering the answer is "it's up to you, you have to decide how you want to spend your time"). Sorry if some of the questions seem like I'm asking things outside of the programming scope or I'm not being precise (I felt like the stuff I included was important to mention). I just am really interested in this and want to get some answers. I'm considering leaving my union to focus on CS education. I'm kind of tired already of waking up at 4am to go to a job I kind of don't enjoy. A silver lining of the pandemic is that a lot of employers are going to allow people to work from home, and as an introvert that sounds like a dream. Combined with the fact that I already spend most of my free time on a PC this sounds like a pretty good path to take. Thank you for reading. [link] [comments] |
Program won't terminate when try/catch statement is inside of function Posted: 14 Feb 2021 11:43 PM PST Fellow Intermediate Computer Science student here, So pretty much I have an assignment that requires using many functions, and in one of my functions I have a try/catch statement, but the program won't end if I input an invalid value. It will just continue onto the next function I provide. #include <iostream> #include <string> std::string get_name() { } unsigned short get_epis() { } Anyone have a hint for me? Or even a solution? Not sure why the program isn't terminating when a false value is presented. [link] [comments] |
How can I breakdown and understand such functions with double pointers Posted: 14 Feb 2021 11:36 PM PST This is a function in C that appends the reverse of a linked list to its end recursively while only iterating each node once this is the code: how can I break down this problem to understand it? Thanks [link] [comments] |
Beginner to coding. What language would be best to learn for something like a smart mirror? Posted: 14 Feb 2021 11:14 PM PST Hi! I have no knowledge of coding whatsoever, but it always seemed really fun and something cool to learn. I do know that there are multiple languages, and I was wondering if there was a specific one that was good for programming things like a screen that can display messages or the weather or other little neat things like that. Thanks! [link] [comments] |
Is using the "new"-keyword when creating a new object in JAVA redundant? Posted: 14 Feb 2021 09:12 AM PST When we create objects in JAVA, we write something like
it should be clear from the context that we want to create a new Object, even without writing [link] [comments] |
How can I write good software? Posted: 14 Feb 2021 10:59 PM PST Open question. I've been coding for almost 3 years, but I'm struggling with wrapping my head around what makes software "good" and how to go about writing it. [link] [comments] |
How to draw system design diagrams? Posted: 14 Feb 2021 10:37 PM PST Is there a guide on what the general standards are for making one of these? [link] [comments] |
Posted: 14 Feb 2021 03:04 PM PST I'm a beginner in programming, tinkering on and off with python. I've recently switched to using linux more so usually I only work on a terminal. I liked to make lists to keep track of what I need to do during the day, but it would be a real pain to switch windows, so I decided to make a TUI todo app which you can run along side your normal programming screens. I like using it with tmux. Here's the github repository - let me know what you think, and how I can improve it. I already know there is a lot of scope for improvement! I enjoyed making it, it was a good learning process for me. I was able to learn something new about an obscure library and make something useful out of it (atleast for me lol!) [link] [comments] |
[Python] - Automate the Boring Stuff - Issues with EZsheets Posted: 14 Feb 2021 10:16 PM PST Hi guys, I am trying to set up my token files as described here. Everything works fine until the page that asks for permission opens a second time so that it can receive access for Google Drive (Sheets worked fine). When I click "Allow" (as shown in Figure 14-2), I receive a black screen that says website cannot be reached, and localhost denied access (ERR_CONNECTION_REFUSED). The APIs are enabled in https://console.cloud.google.com/ What is my mistake? [link] [comments] |
What kind of algorithm is this? Posted: 14 Feb 2021 10:13 PM PST I have two separate processes that I need to execute based on several parameters. I wrote an algorithm, which is used to decide which one to execute (above mentioned 2 processes). The decision is based on several parameters and the algorithm checks these parameters in the algorithm (these parameters are checked in the conditions). Diagram of the algorithm (https://imgur.com/a/ZK7uLHS) I want to know is, which kind of algorithm is this. Is it a Greedy Algorithm? I don't think it is a Divide and Conquer since when there is a condition, we are following either path related to condition TRUE or a path related to condition FALSE. We don't consider both paths. [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