What are the advantages and disadvantages of being a backend engineer? learn programming |
- What are the advantages and disadvantages of being a backend engineer?
- What I learned in 1 month of web development
- I know how to code but I also feel like I have 0 clue either. How do I progress?
- Tips for a beginner in programming?
- Looking for an accountability partner
- Just launched a new podcast, and the first episode is all about getting started with coding
- I need an advice for programing
- Do you think a year is a feasible amount of time to become employable?
- The MDN Tutorials Are Great!
- Feedback on code
- How do I go about getting a software engineering job with only some college education?
- Writing my first full GUI (tkinter) Python application, i have most of the issues hammered down. And Tkinter is fairly easy to follow. But i am running into a weird little issue, after my root window every subsequent window brings up an empty pop-up window.
- Importing trig identities to python
- Feedback on a side project
- I want to make a card game I can play on my browser. I know the basics of c# a little more complex stuff but mostly the basics. Should I make it a ASP.NET site or go with Unity
- How are different programming languages ported into one another?
- Is Homebrew safe?
- built my first project using an API
- For what type of programming are there jobs out there now?
- How can I learn Visual Basic.net to program proficiently enough to pass/ my Software Developmwnt Subject?
- I need help with finding out what is wrong with this .bat code, it doesn't work
- Virtual diamond inheritance c++
- Are there prebuilt functions that help you sanitize user input?
- How Do I Get MonoDevelop on Windows 10
What are the advantages and disadvantages of being a backend engineer? Posted: 02 Dec 2020 03:48 PM PST I want to know what your perspective is of being a backend engineer. I've heard that the real work is done in the backend, but as a backend engineer you alse have to tackle with very old frameworks or technologies. I'm interested in your opinion! [link] [comments] |
What I learned in 1 month of web development Posted: 02 Dec 2020 02:08 AM PST TL;DR
Hello everybody, my name is Andy and I am new to the development scene. I recently started my journey into web development and here are some observations that I have for everyone starting this path. Also, this is my first ever article written, and this is a major milestone for me, as I always thought that I cannot write so please be kind :). I have other things to say, but this turned into a longer story than initially planned.
Why do you want to learn web development? Do you want a better-paid job? Do you want to build your own business? Do you want to have the freedom of working from anywhere? For me, it was the latter. I am working in tech for more than 13 years but my job is harder to do remotely and when possible it implies a lot of meetings, which I don't necessarily find useful or love. I want to have the freedom of traveling and choosing the projects and people that I want to work for and dedicate my time to. As you get older, you really understand how precious and limited time is. I know that I barely scratched the surface during this month, but whenever I feel discouraged I always remember what my goal is, and that helps me a lot.
a) What to learn In order to learn you need to know what to learn first and stick to it. The internet is such an amazing and dangerous place if not used properly. You will start learning something and the next minute find yourself starting a tutorial/course for a code framework that you don't even know. Ideally, you will also set a deadline for different steps of the process, this will keep you on track and focus on what matters now. Like any plans that you do in life, work, etc, it will not be perfect and it will need adjustments along the way as soon as you uncover new information, but it's better to adjust something than to work in zigzag for your goal. b) How to learn There's a reason why I don't trust the public education system, at least from where I am (Romania). You are awarded based on what you memorize and not what you understand. Maybe this way of learning helped many years ago when the information wasn't at your fingertips as it is now, but now you need a different skill set to be successful in our day and age. There are many articles and lessons out there that teach "learning how to learn", and I will not enter the subject deeply in this post. What I want to emphasize is this part is a must, if you want to succeed on your journey, from my point of view. Don't be discouraged if you finish a course and then you find yourself in front of your code editor and don't know where to start. Most probably, you will not remember most of the information. What you can do, is decompose that information into smaller bits, and practice individually the s*** out of them. Play with different proprieties, incorporate the last lesson with the one you practice now, and so on. Another great approach that you can use in conjunction with practice is to write what you have learned like you are explaining it to a 5-year-old. Trust me, you will need to master that subject as well as possible in order to summarize it for an infant or non-tech adult. c) When to learn Now that you have a better understanding of what and how you will need to plan the time needed for this. I am not a strong believer that anyone can do anything in life, but I do think that if you like what you are doing and put the effort in, you will be pretty good at almost anything. I don't want to put numbers behind the time you need to dedicate for development as each person is different than the other one, but please keep in mind that you will need to put constant effort in order to solidify, in your brain, the vast amount of information. If you put some time today, sometime next week, and continue like this, the chances to give up because "it's not for you" are pretty high. What you can do, is to think of how much time it took to master a skill that you poses. Most probably, if it isn't something really simple, the answer is years! Give up, when you can look back, and you are proud of the time and effort put in. I will end this with a question for everyone reading this. If you were to give one piece of advice and only one to someone just starting in, what would that be? I will try to document my journey as much as possible, and you can find me also here (if you don't want to create a hashnode account, just remove /joinme from URL): https://hashnode.com/@andyprv/joinme [link] [comments] |
I know how to code but I also feel like I have 0 clue either. How do I progress? Posted: 02 Dec 2020 04:09 PM PST I've just completed my Algorithms & Data Structures module at my uni which I did well on and enjoyed. But I still feel like I don't know how to program and it makes me feel like shit. I want to get to a point where I can just build anything that I want but I'm not sure how to progress. I heard looking at open source projects is key to further develop coding/problem solving skills I found a game with an active modding community (Terraria) where players can create mods using a modloader api. I've tried making mods but as soon as I open the csproj file and see these massive code blocks it just looks so intimidating/overwhelming. It's weird because I perfectly understand that e.g its just a method is being called with five values passed through but as soon as context is given to it regarding the game (speedX, speedY, prevSpeed, dmg, vectors) my brain just absolutely melts and I don't know why. Is this normal?? Am I just an idiot beginner programmer that somehow managed to complete an data structure course??? [link] [comments] |
Tips for a beginner in programming? Posted: 02 Dec 2020 02:45 PM PST I've spent 3 years running a digital agency and have finally decided to put some time aside to learn how to code. I've signed up to a course teaching design & branding, HTML, CSS & JavaScript and experimental typography. I'm a big gamer and my dream is to work in the gaming industry and ultimately build my own games. Problem is, I feel overwhelmed with the amount of information there is and am worried I won't be any good at it once it gets complicated.. is it normal to feel this way? Also, I feel like I won't be able to 100% remember everything about a language to truly master it, is that still fine and would I realistically be able to get a job in programming eventually? I have a basic understanding of development concepts from work but I'm also aware that I'm starting quite late (late 20s) Do you have any recommendations on what backend languages I should learn right after front end? I heard Python, C++ or Unity is good for gaming but I'm not sure. Any tips would help, thank you! [link] [comments] |
Looking for an accountability partner Posted: 02 Dec 2020 07:52 PM PST Hey Reddit, I know this has come up numerous times but it seems those treads have sizzled out so I figured I'd make another one. Essentially, I'm looking to find someone who is committed to learning programming very seriously and will be able to commit pretty much on a full-time basis. If you're on this journey alone I think we can help each other get through it much more efficiently. I'll write a bit about myself below and if you think our workflows could allign shoot me a message/comment below. Others looking for an accountability partner feel free to comment below and potentially find someone else that works well with you. A bit about me: -on and off programming for about 5 months -based in SF but frequent LA -looking to break into an entry-level SWE job in 21' -study (or attempt to) programming 8-5 PST [link] [comments] |
Just launched a new podcast, and the first episode is all about getting started with coding Posted: 02 Dec 2020 02:19 PM PST Hi there! I am one of the hosts of a gaming podcast, and also a senior software developer! We often get questions about development (how to get started, what languages to learn, etc) which led to me writing a handful of dev-focused articles on our site; but I have now moved that a step further into a dev-centric podcast! The first episode can be found here! If you'd prefer listening to it in your favourite podcast app, I'm in the process of getting the feed submitted to all the major apps, and I think it's already up on at least Spotify and Stitcher! =] Once it's up everywhere, you should be able to find it by searching for "Coding Fyx," but for now, it is also available as the latest episode on our main "Gaming Fyx" feed (which is available across all podcast apps) Episode 2 will be all about the advantages / disadvantages of various languages to learning with, tools to use, and what the day-to-day life of a professional dev is. Beyond that, I have some guests lined up who are also senior devs to come in and talk about a bunch of topics, including things like Imposter Syndrome, being a dev as a member of a marginalized community, and general development tips/tricks/environments/etc =] Hopefully this series can be useful, and I'd love to hear any feedback anyone has to offer - be it positive or negative!!! Thanks a bunch, and happy coding <3 [link] [comments] |
I need an advice for programing Posted: 02 Dec 2020 11:39 PM PST When i see a programing problem i can solve it in my mind by making an algorithm but i'm unble to solve it in computer then i see it's solution and then i truely understand how this program is working but then i'm still unable to write this program on my own. Can anyone tell me what things i might doing wrong. [link] [comments] |
Do you think a year is a feasible amount of time to become employable? Posted: 02 Dec 2020 05:58 PM PST I use a combination of my own reading up, FreeCodeCamp and lots of online resources. I think I'm about halfway through FreeCodeCamp right now. I've always wanted to learn to code, never really had the time. I'm always trying to learn new skills and upskill in a knowledge-based economy. I can't really afford to do it full-time, so maybe if I squeeze in the hours at lunch at something on my phone...? [link] [comments] |
Posted: 02 Dec 2020 09:16 AM PST Just wanted to share that the MDN has some really awesome resources that I somehow managed to miss over a year or so of visiting the MDN regularly. It may be because the design of the page is not as snazzy as some educational sites, or maybe because they are not linked to in the most inviting/obvious ways. I hope this post helps someone who also did not realize what a wealth of content they have there! Learn Web Development Really thorough HTML, CSS, JS introductions, with practice. Definitely a must-read for anyone setting out on their web developer journey. Helps connect the dots if you've done an HTML tutorial and a JavaScript tutorial but aren't sure how it all fits together or how to build your first project locally. JavaScript Guide A little denser and more detailed. Provides a good overview of some of the most important/most used features of JavaScript. List of all Tutorials Sorted by topic and beginner/intermediate/advanced. [link] [comments] |
Posted: 02 Dec 2020 10:27 PM PST Code is of k&r 1-19 problem to reverse strings one input at a time. [link] [comments] |
How do I go about getting a software engineering job with only some college education? Posted: 02 Dec 2020 09:57 PM PST I have been thinking about this for a while. I am a sophomore in college right now, but I am starting to think that college isn't for me. I know that college can't be the only path into a software engineering job because it seems that lots of software engineers are successful self-taught without a degree. Is there something I'm missing? what does self-taught entail? I question myself because I have never had a job or internship before. Is it possible for my first job or paid internship to be as a software engineer? I have several personal projects, one or two group projects, a personal website that I coded and styled myself, I know(?) 5-6 languages, and I am willing to put in the time to do whatever else I need. Is this even close to enough? or are recruiters going to look at that and think it's a joke. I have no idea. Any help would be appreciated. [link] [comments] |
Posted: 02 Dec 2020 08:38 PM PST The app is small, and it is based on dialogues printed to a Text box with us responding or putting in inputs as prompted. My idea was to design a small code cracking game simulator. And i did it through the use of random module in the python standard standard library. here is the problem, due to my extreme inexperience in Development. (No formal training, on and off video lessons) i have run into at least two issues. One , when i run the app i end up with a strange little pop-up window. Here is a link to Dropbox and A link to the project ive done google searches and tried to follow the advice for other peoples ideas, yet it does not seem that their ideas work for my project. Second....SPAGHETTI CODE!!!! I tried to separate the functions that have the workings of the app into their own separate classes, and i tried to write the functions on top of the class where i wrote the GUI layout. But it does not allow me i keep getting bugs. Eventually referring to the Python functions within the function that has the GUI lay out/codes allowed me to make the app give me the functionality i wanted. here is an example of what i am talking about.... any help would be appreciated [link] [comments] |
Importing trig identities to python Posted: 02 Dec 2020 08:14 PM PST I'm confused since if I directly multiply math.sin and a certain angle I think python won't accept it or it will only result to syntax or semantic error. import.math a = any angle s = math.sin * a print ("s") Can I do this because in my calculator I just enter sin(a) and this will automatically give me the sin of a certain angle, also should I convert the angle to radian? [link] [comments] |
Posted: 02 Dec 2020 11:50 PM PST https://github.com/kcfang2215/novel-alerts The program starts from the novel_Alerts_App.pyw file. I would like advice on the ways that I could improve my code in terms of design, structure, comments, etc. I don't have any experience, so any advice that helps me better design my code is appreciated. [link] [comments] |
Posted: 02 Dec 2020 11:36 PM PST I'm not even sure if I can make a multiplayer ASP.NET browser game. But I know there's some hate towards unity's browser version. If y'all have other ideas that include using c# I'm open to them. I'd love any and all ideas. I'm excited to make this a reality (I made up this card game so there's not a site that already has this out there). Thanks in Advance! [link] [comments] |
How are different programming languages ported into one another? Posted: 02 Dec 2020 11:24 PM PST I was learning multiplayer game dev with Unity 3D and Photon Engine(Photon). In docs of Photon, it is stated that Photon Core use native C++ for performance reasons and C# for business logic(Here). So how exactly these different programming languages ported? I happens in Unity to where it uses C++ for runtime and C# for scripting and many other examples like some software use Python and C++ both(nowadays I find .py files in almost all softwares' folders). Please also explain what is meant by business logic. [link] [comments] |
Posted: 02 Dec 2020 06:32 PM PST Relatively new developer here- I'm exploring using Flutter for mobile dev and I need to add Git to my command line, but looks like the Git site is requiring me to add Homebrew first, from which I can then install Git. Preliminary research indicates Homebrew is safe but it looks like it tries to install a lot of other stuff that my Mac didn't have, but I'm just curious if it's worth it? I only need Git, all the other command line tools I seem to already have. What's your experience? Is there any risk to a tool like Homebrew? Thanks [link] [comments] |
built my first project using an API Posted: 02 Dec 2020 12:19 AM PST can someone critique my first project built using javascript DOM, and OMDB api, it'a a simple project that let's you search for movies and then gives you a brief detail on the movie it's built with:
the website is hosted on github pages: https://dianebaye2001.github.io/moovie.github.io/ [link] [comments] |
For what type of programming are there jobs out there now? Posted: 02 Dec 2020 06:07 PM PST Game development? Software development? I'm going to be starting to learn to program. So far I've done a bit in open.app.academyand freecodecamp. I'm also looking into the Odin Project and Galvanize(from Hackr.io). Which should I stick with first? My goal is to get a good job. What types of jobs are there right now? I've been jumping between all of them, which is not a good thing to do, as I feel I don't retain as much as I would otherwise. [link] [comments] |
Posted: 02 Dec 2020 03:52 PM PST Apologies in advance if this is the wrong place to post this. I'm completely new to programming and I've always struggled to wrap my head around the technical and logical hurdles of learning programming, even basic and beginner-level stuff. My objective is to pass my Year 12 exams and the Software Development subject I'm taking. In order to do that I have to know how to program in Visual Basic.net. I can't use anything other than VB.net unfortunately due to the assessment criteria and my teacher's preferences. I have Visual Basic.net already installed on my home computer and my school laptop and have looked into some guides on YouTube and W3schools as well as talked to my uncle who has extensive knowledge of programming and I.T stuff in general. However, all that said, I am quite apprehensive since I have to pass this subject and I'm a complete beginner. Last year I didn't do too well and things like Pseudocode, the AGILE model, Gantt charts and other things on the study design for the subject have left me struggling to memorise it. That isn't super relevant though, what is, is the fact that I have to know how to program to pass the subject. The good news is that I have two months before the class/year begins, but I would still like advice in passing my exams and the subject's assessments. If it helps, I'm an Australian student (Victoria) doing Unit 3/4 Software Development in 2021. [link] [comments] |
I need help with finding out what is wrong with this .bat code, it doesn't work Posted: 02 Dec 2020 09:30 PM PST @echo off title Rocket Launch color 0a echo. echo ----------------------------------- echo press start to launch the rocket echo ----------------------------------- echo. echo Made By: owen turner echo. set /p input= Type Start - if %input%==Start goto A :A echo ___ echo / \ echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo. echo. echo. echo. echo. echo. echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo. echo. echo. echo. echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo. echo. echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo. echo. echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo. echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo. echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo. echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo. ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo / \ ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo / \ echo / \ ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo / | | \ echo / | | \ echo/|_|\ ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo / | | \ echo / | | \ echo/|_|\ echo /\ /\ ping localhost -n 1 >nul cls echo ___ echo / \ echo / \ echo / \ echo / | | \ echo / | | \ echo/| |\ echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo | | echo / | | \ echo / | | \ echo/|_|\ echo /\ /\ echo [link] [comments] |
Virtual diamond inheritance c++ Posted: 02 Dec 2020 09:28 PM PST Hey I have an assignment on virtual diamond inheritance I have a decent grasp on virtual inheritance but I don't understand where to start. I'll post the assignment but I just wanna understand what I need to do. Sorry I just can't wrap my head around the concept right now. It's draft time again for major league baseball and the managers need to look at the history of the player, and they want to see a pattern of improvement or if they're training program for a player is working well. For this assignment we are going to create the preliminary data structure to store historical information on an athlete. Common to all the athletes being considered are the traits of a professional athlete in general. Common traits of a baseball athlete might be motivation, dedication, hard work. All the athletes carry (and will inherit) those traits. Then, each athlete has four categories which are batting average, bases run, strike outs, home runs. We store their results as events to the appropriate category as an event consisting of the description and the date. Implementation #1 (virtual inheritance) You will create a diamond style of implementation. The base class is called baseball athlete, has a simple vector of common traits as a vector of strings. Then there are four virtually derived classes called batting average, bases run, strike outs, homeruns, or Each of these maintains its own vector of events. A bottom diamond class called profile inherits all four of those, and lets you add events to the relevant event vector, and print out their history. Your main method creates profiles for two individuals, adding some various events to their profile, and prints out their history. Implementation #2 (virtual functions) You will implement this in a completely different way such that it uses a virtual function(s) instead of the diamond inheritance. The virtual function can be basic or pure, either one is fine. The virtual function should demonstrate that you can have a vector (or array) or pointers to the base object but when you print the traits it will call the appropriate print routine in the inherited object. Show off your virtual function implementation by having a generic array or vector of the baseball player profiles (or therapy patients), and then print out the lists. Tips Here is an example of the main function. You can hard-code the events in your source code or create an interface for entering them, either approach is acceptable. int main(){ Profile Tanner("Tanner"); Tanner.addBasesRun(event("Ran 3 bases", "10/11/2012")); Tanner.addBasesRun(event("Ran 2 bases", "10/11/2014")); Tanner.addBattingAverage(event("7/10", "1/9/2012")); Tanner.addBattingAverage(event("7/10", "1/9/2014")); Tanner.addHomeruns(event("2", "10/8/2012")); Tanner.addStrikeOuts(event("1", "1/7/2015")); Tanner.addStrikeOuts(event("2", "1/7/2017")); Profile Kayla("Kayla"); Kayla.addBasesRun(event("Ran 2 bases", "10/5/199")); Kayla.addBattingAverage(event("5/10", "10/4/2000")); Kayla.addHomeruns(event("3", "10/1/1999")); Kayla.addHomeruns(event("2", "10/1/1998")); Kayla.addStrikeOuts(event("1", "1/2/2001")); Tanner.history(); Kayla.history(); return 0; } This is what the program output should look like ProfileTanner Bases Run Ran 3 bases, 10/11/2012 Ran 2 bases, 10/11/2014 Batting Average 7/10, 1/9/2012 7/10, 1/9/2014 Home Runs 2, 10/8/2012 Strike Outs 1, 1/7/2015 2, 1/7/2017 Profile Kayla Bases Run Ran 2 bases, 10/5/199 Batting Average 5/10, 10/4/2000 Home Runs 3, 10/1/1999 2, 10/1/1998 Strike Outs 1, 1/2/2001 Your event class should be defined as: class event { public: string desc; string date; event(string s, string d){ desc=s; date=d; } }; [link] [comments] |
Are there prebuilt functions that help you sanitize user input? Posted: 02 Dec 2020 09:07 PM PST Say I have a register user field that I want to sanitize on my backend. Are there already prebuilt functions that I can use to check if the user field for name, email, DOB, etc are valid? Or would I have to write the logic from scratch [link] [comments] |
How Do I Get MonoDevelop on Windows 10 Posted: 02 Dec 2020 09:06 PM PST I'm crossposting this in all subreddits relavant to the topic so sorry if you see it more than once Here's my issue I would like to start learning gameDev with Monogame but I just dont have the space on my PC for Visual Studio I used to C# with unity using Sublime then later VS Code but Omnisharp stopped working no matter what I did it constantly crashed or failed to start I tried using the pre-compiled version of monodevelop from this link https://www.dropbox.com/s/2a3b33jihuvwrmw/monodevelop_7.6_Win.zip?dl=0 posted in this thread https://github.com/mono/monodevelop/issues/4653 It starts up fine but when I try and make a project I get this error the type of initializer for 'Monodevelop.Projects.MSBuild.MSBuildEvaluationContext' threw an exception' I have no clue how to fix this despite my best Googling Rider is also not an option. so I'm asking for your help on the best way to move forward Thank You for any advice you can give [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