I built a Twitter bot and successfully deployed it to a remote server learn programming |
- I built a Twitter bot and successfully deployed it to a remote server
- Software engineering after prison - who wants to learn?
- If programming is about problem solving. Do programmers when they start learning will they have to solve problems that were already solved, or in the college do you learn the problems that were already figured out?
- Spreadsheet for tracking your progress and concepts to learn
- Computer Science Classes in High School or Online Courses?
- CSS is the most frustrating language I have ever learnt
- Advice on Studying C++?
- ELI5 how exactly do you put websites online?
- How do checkout buttons work?
- Where to go from here?
- How On Earth Do You Use An Async Function In A Synchronous Function To Return Data?
- CLI Programs to Comfortably Navigate the Command Line
- Started a computer science degree and terrified of being accused of plagiarism
- Mvc and mvvm
- I'm too scared to program?
- Dynamic Dining Philosophers Problem
- Raptor Question
- Unit test for displaying data to a table?
- working on a project that started with an example from the class lecture, when u run the code and play the craps option im not sure why it does play the game as intended can anyone give me a lil help?
- I wanna know what your thinking is about 1day 1commit by problem solving like leet code .
- [Kattis: Nine Knights] Code works in IDE, not in Kattis
- Graficando un Arbol Binario de Busqueda en C SPEEDRUN
- I can't find the error in this code
- How to know when you're ready for a job?
I built a Twitter bot and successfully deployed it to a remote server Posted: 18 Oct 2020 07:42 PM PDT 7 weeks of Python later... my first meaningful project: a bot that tweets a Rilke quote every 12 hours. I spent 6 hours on it yesterday and 3 today. This involved building/editing a set of Rainier Rilke quotes that were 140 characters or less, building the bot, deploying it to Heroku. Took 7 builds for it to run properly on Heroku, uuughhh, they were dumb little mistakes. I followed this tutorial for the most part. It feels so good. It's 7:45 pm right now and I'm glad I finished in time to go to bed early. [link] [comments] |
Software engineering after prison - who wants to learn? Posted: 18 Oct 2020 09:40 PM PDT TLDR: I went to prison as a teenager. After many years I was released, learned to program, and was hired as a software engineer. If you have a felony or have been to prison and want to learn to program reach out. When I was a senior in high school I was involved in a street fight that sent me to prison. I was drinking and foolish and made an irrational choice. I went to prison, as I should have. As you can imagine from that point on my life changed. What was unexpected was that it changed for the better. I grew to care for the choices I made. I learned that I enjoyed programming computers while incarcerated. I was fortunate in that my brother strongly believes in all things education and so showered me with educational material. This seemed to preserve me mentally from the negative environment that is prison. Eventually I was fortunate enough to be a part of a program that allowed me to start a programming class. I was able to witness what guys could do with a slight nudge and the belief that they could change their life's trajectory. After my release I continued my education, developed my programming skills, and was hired as a software engineer. I've been able to overcome the self-inflicted adversity that is my felony record by making a living for my family as a software developer. One major lesson I learned was that it is about who you know. Which brings me to the point of this post. I want to help some others. I have a community of incredibly talented and well connect software developers willing to support any formerly incarcerated people wanting to learn to program and get hired as software developers. This is an all volunteer run group and costs nothing. We only ask that you be committed to making good decisions and that you invest in programming daily. If you are interested reach out here or on Twitter direct message Underdog_Devs. [link] [comments] |
Posted: 18 Oct 2020 05:41 AM PDT I'm really sorry. I have not description. All the question is in the post title. If isn't clear please lemme know it. thank you [link] [comments] |
Spreadsheet for tracking your progress and concepts to learn Posted: 18 Oct 2020 07:02 AM PDT I am a beginner programmer and created a spreadsheet to track my progress and tell me what concepts I should learn. This is not perfect and I would like to get some tips and point out any errors I made. (I did't fill the Java column because I don't know much about Java as I started to learn it today). Any kind of help would be greatly appreciated and thanks in advance! (EDIT) Most of the spreadsheet is my college syllabus so that is the reason why there is so much to learn. [link] [comments] |
Computer Science Classes in High School or Online Courses? Posted: 18 Oct 2020 08:31 PM PDT I felt like this is a topic me and my friends had alot of trouble with going into highschool not totally knowing about what out options were in CS, I went on to take classes and I had a pretty positive experience. What do y'all think? My Insight: https://youtu.be/CKsvK7R8gWo [link] [comments] |
CSS is the most frustrating language I have ever learnt Posted: 18 Oct 2020 11:20 PM PDT I have been learning css for a while and it is the most frustrating thing I have ever done. I didn't even expect it to be like this. CSS is not hard but there are many things which make it very tiresome to learn. Even if I manage to code something in CSS, the code looks very dirty and scattered everywhere. I know I have to work on it but still. Don't get me started on positioning. Why is that if I move one thing, all the other things are scattered everywhere? In this case, microsoft word is much better at positioning than CSS. I can go on and on about it but it won't matter until and unless I put in the work. That's where you guys come in. I need some advice on how to learn CSS effectively and properly. If I am doing something wrong, please point out. I don't why a thing like CSS looks easy but is very frustrating to do. How did you learn CSS and what did you build using it? [link] [comments] |
Posted: 18 Oct 2020 10:40 PM PDT Hello! I'm feeling a bit miserable and fried after taking a midterm exam for my university C++ course, so I'm here just looking for suggestions on what I can do to really become more competent with C++ and coding in general. To be honest even though I've been in my C++ course for about 8 weeks now, I only really have a super limited understanding of C++ and require a lot of help with a lot assignments that are assigned. This course has also been by far the most difficult class I've never taken and it's not great it's also done on Zoom. With that out of the way, I'd just like to know any suggestions on how to really further my knowledge with this and I'll list the questions that if anyone could answer would be great.
Anyways these are the only questions I can think of for now. Sorry if this post comes off informal or whatever, I just really need some help right since no subject has ever made me feel this helpless before. I would appreciate any suggestions or any of my questions being answered. Thanks so much. Also sorry again if this is asked a lot, I just need some more personal help I guess. [link] [comments] |
ELI5 how exactly do you put websites online? Posted: 18 Oct 2020 03:02 PM PDT So I created a very simple static website using only html and css for a local coffee bar and now I'm wondering how exactly do I put it online... So my guess is that I firstly have to buy a domain, which I'm guessing would be from godaddy. Next up I need a place to host the server, I read that AWS can be used for that, but: would I host it on my aws account, or would I ask the owner to create an account and then show them how to set up hosting? That seems a bit complicated, is there an easier way? How much can I expect server hosting to cost for something like this? It can't be expensive, right? Also: when opening the website locally the url ends with index.html or about.html, is there a way to make it so that something.com/about shows the about.html page without the .html suffix in the url? I feel so overwhelmed, and I feel like I only did like 10% of the job so far... please help me ;_; [link] [comments] |
Posted: 18 Oct 2020 09:19 PM PDT Like the pay with Paypal button, how does the backend with something like this work? [link] [comments] |
Posted: 18 Oct 2020 02:54 PM PDT I've been trying to learn C++ for a while now, but i'm a bit stuck. I can make a beep boop calculator in the console, and have done the first but of Project Euler (up to 8 or so), but i've hit a bit of a wall. Challenge based approaches have worked well for me for the most part, but the problem is, is that the challenges rapidly get too complex, and idk what i need to learn to get over that wall. Is there a generalised "curriculum" somewhere, to help me figure out what i beed to learn to move forward? [link] [comments] |
How On Earth Do You Use An Async Function In A Synchronous Function To Return Data? Posted: 18 Oct 2020 06:07 PM PDT I'm very confused about how to use asynchronous functions in normal functions in Javascript. Currently, I've connected to a database, and I'm successfully querying the database. However, I'm trying to write a simple layer of abstraction for the database to make it easier to use, and unfortunately this means I'm using the query functionality, which is async, in a synchronous function. Can someone please look at what I have and explain where I'm going wrong? Really what I want to know, is how do you use async functions in normal ones, so that I can return the async's output? Thanks in advance! [link] [comments] |
CLI Programs to Comfortably Navigate the Command Line Posted: 18 Oct 2020 11:53 PM PDT I'm a programmer who used to dread using the terminal for anything more than Some of these programs include fzf (fuzzy searching), tmux (for tabs and split screens), and bat for colored oututs. I detail my usage and include all links in my post: https://jcsh.dev//top-cli-programs-which-finally-solved-my-fear-of-the-terminal-for-programming [link] [comments] |
Started a computer science degree and terrified of being accused of plagiarism Posted: 18 Oct 2020 07:43 PM PDT Hi, I would like some thoughts on what exactly constitutes plagerism in a computer science degree. The reason I ask is because it doesn't seem as clear cut as other degrees (eg if an entire wikipedia article is copy and pasted, then its pretty obvious its plagerism) But the problem is, in coding, a lot of solutions are going to be similar, so how do they prove plagiarism? For example, is print("Hello World") technically plagiarism? If i say, for example research how to use a specific function, i find an example online then apply it to my assignment, is that plagiarism? [link] [comments] |
Posted: 18 Oct 2020 11:07 PM PDT Here is how I understand mvc: Controller will be in the middle and will have an instance of view and model. Model: will contain service classes and will be the business layer. View: will display the ui. So the user first sees the view, and then onclick the view will call the controller, which will then call the model and return the data back to controller and view. Therefore the view gets updated. So the controller is the middle person, takes request from the view, sends to model and returns response. But I saw a different way and in that way we use the observer pattern, but what I know is that the observer pattern is used in mvvm, where the viewmodel doesn't know anything about the view in which we observe the data and subscribe to it in the view. So should observer pattern be used in mvc or will it be known as mvvm then? [link] [comments] |
Posted: 18 Oct 2020 10:32 PM PDT Like I noticed I have lowkey anxiety to start practicing programming languages. I always amp myself up to start and then when I'm about to do it, something in me just drops out. I guess I fear that I'm not gonna get it immediately so I stop head on. How do I stop this? [link] [comments] |
Dynamic Dining Philosophers Problem Posted: 18 Oct 2020 10:18 PM PDT Im assuming whoever is reading this to be familiar with the dining philosopher problem(concurrency in os) Basically a friend of mine challenged me to implement a dynamic version of this, where new philosophers can be added or removed at will. My solutions however cant seem to orchestrate this change succesfully. What i think im getting wrong is what state should each philosopher be in so that it may be considered "safe" to add one or remove them. So far ive found that the literature regarding this is almost non existant except for 1 research paper which goes waaaay beyond my paygrade. So if anyone has the patience to explain the conditions for a "safe" state, i would be very grateful [link] [comments] |
Posted: 18 Oct 2020 09:45 PM PDT Hello all, I just started a beginning programing class and we use Raptor as our programming platform. This is the question I am stumped on and I would like some help on it. I got part of the program built but I am still having problem. See below. I am having a problem getting it to display the greater of amount1 and amount2. Here is a link of what I have so far https://ptpimg.me/9cj48n.png Design nested decision structures that perform the following: If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2. [link] [comments] |
Unit test for displaying data to a table? Posted: 18 Oct 2020 05:54 PM PDT Hello, I have a simple form that pulls data from a database (Firestore), a list of users, and simply display them in a table. The table is just their name, email, and phone. What would the unit test for this look like? I know I have to mock the database call, as I dont want to actually connect to Firestore, but what exactly am I testing for here? Just that the mocked data is actually displayed to the user? Thats it? Any help would be appreciated. [link] [comments] |
Posted: 18 Oct 2020 09:15 PM PDT #include <cstdlib> #include <iostream> #include <ctime> using namespace std; void craps(); void poker(); int chipsLeft=100; int main(int argc, char** argv) { int choice; int chips = 100; srand(time(0)); do{ cout << "-----------main menu-------------"<< endl; cout << "------choice a game!-------------"<< endl; cout << "----you have currently " << chipsLeft << " chips left"<< endl; cout << "-----1) Craps!-------------------"<< endl; cout << "-----2) Poker!-------------------"<< endl; cout << "-----3) Quit!--------------------"<< endl; cin >> choice; switch(choice) { case 1: craps(); break; case 2: poker(); break; case 3: cout << "thanks for playing"; default: cout << "not a vaild input"; } }while(choice !=3); return 0; } void craps() { cout << " Welcome to craps! "; int numGames = 0; int betAmount; int chips = 100; cout << "you will start with 100 chips" << endl; cout << "place wager: " <<endl; cin >> betAmount; int chipsleft; char input; int totalWins = 0; int totalLosses = 0; //counter int totalPlayed = 0; while(totalPlayed < numGames) { cout <<"current game: " << totalPlayed + 1 << endl; int dice1 = rand() % 6 + 1; //1-6 int dice2 = rand() % 6 + 1; int roll1 = dice1 + dice2; cout << "roll 1: " << roll1 << endl; //flag for winning bool won = true; if(roll1 == 7 || roll1 == 11) { won = true; totalWins++; chipsLeft = chips + betAmount; } else if(roll1 == 2 || roll1 == 3 || roll1 == 12) { won = false; totalLosses++; chipsLeft = chips - betAmount; } else { int dice1 = rand() % 6 + 1; //1-6 int dice2 = rand() % 6 + 1; int roll2 = dice1 + dice2; cout << "roll 2: " << roll2 << endl; while(roll2 != 7 && roll2 != roll1) { cout<< "rolling again!" << endl; dice1 = rand() % 6 + 1; dice2 = rand() % 6 + 1; roll2 = dice1 + dice2; cout << "roll 2: " << roll2 << endl; } if (roll2 == 7) { won =false; totalLosses++; chipsLeft = chips - betAmount; } else { won = true; totalWins++; cout << "rolling again!" << endl; chipsLeft = chips + betAmount; } } do{ if (won) { cout << "won!" << endl; } else { cout <<"loss!" << endl; } totalPlayed++; cout << "would you like to play again? Y for yes"; cin >> input; }while(input = 'Y'); } //display the final result cout << "you win!" << totalWins << endl; cout << "you lose!" << totalLosses << endl; } void poker() { cout<< "poker it is!"; string input; cin >> input; cout << "thanks for playing"; } [link] [comments] |
I wanna know what your thinking is about 1day 1commit by problem solving like leet code . Posted: 18 Oct 2020 09:03 PM PDT Hey guys~ some guy tell me that just 1 day 1 commit by problem solving is not good somewhat than project commit. Thank you for response. [link] [comments] |
[Kattis: Nine Knights] Code works in IDE, not in Kattis Posted: 18 Oct 2020 01:24 PM PDT I am trying to solve the following code problem: Nine Knights – Kattis My code works in my IDE, but it does not work when I upload it to Kattis. I have a suspicion that it is because my code does not check if the game has more than nine Knights in total. I am not sure! NineKnights.java Main.java [link] [comments] |
Graficando un Arbol Binario de Busqueda en C SPEEDRUN Posted: 18 Oct 2020 08:47 PM PDT Hola a todos, me aburrÃa haciendo practicas de mis tps de programación de primer año e hice un speedrun de un código en C para imprimir arboles binarios Tiene muchos errores, algunos que no pude solucionar, me falta recorrer mucho camino pero me encanta este mundo. cada dÃa un poco mas. Espero que les guste, y si es asà déjenme su LIKE que me super ayudan! les mando un abrazo grande los quiero! [link] [comments] |
I can't find the error in this code Posted: 18 Oct 2020 08:09 PM PDT This is a code I made to find all primes(at most 100) under n. However, the compiler says What is wrong with my code? How do I fix it? [link] [comments] |
How to know when you're ready for a job? Posted: 18 Oct 2020 08:06 PM PDT TL;DR The title is self explanatory. I'm a self taught dev, I started learning full time about 1y8mo ago but I don't feel I know enough to get paid (Impostor syndrome, probably) and I'm about to start applying for jobs, I've been delaying this a lot, so it's now or never. My fear is to get a job and get fired a month after because I wasn't good enough. I know it can take me a while to land a job, but it can also take me 2 weeks and I want to be prepared. Probably not relevant stuff: I have enough experience using git and working with PR, I'm talking strictly about languages and libraries/frameworks. I do have enough finished practice projects on my github. My question it's not about how to land a job but how to know when we're ready. Thanks in advance for your help. PS. Sorry if I made some grammar mistakes and my redaction is poor, I had an awful day and my head is killing me [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