• Breaking News

    Monday, January 4, 2021

    Beginner friendly project idea: Command-line chess learn programming

    Beginner friendly project idea: Command-line chess learn programming


    Beginner friendly project idea: Command-line chess

    Posted: 03 Jan 2021 09:50 AM PST

    Try writing the game of chess, but instead of having to do GUI programming at first, use unicode chess piece characters to show the board ("♜♞♝♛♚♟♖♘♗♕♔♙"). Take command line input for moves like "e2 e4". Make sure to only allow legal moves, keep track of castling availability for both sides, en passant, check and checkmate, and even threefold repetition and the fifty-move rule.

    Should make for a meaty project for beginners, and has opportunity for expansion into more advanced topics if you are up for it afterwards (GUI, AI (through minimax or alpha-beta algorithms), exporting and importing games)

    simple example board output i made

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

    How do you “clean your mind” after your studying/coding/programming sessions?

    Posted: 03 Jan 2021 04:03 PM PST

    I'm 38 yo and started studying programming a few months ago, for hobby (and maybe some extra money, if I become good enough).

    I'm not a fast learner, but I'm very persistent, and I can easily spend hours trying to find a solution to problem. This is how I learn.

    The problem is, although these journeys are pleasant to me, they affect the quality of my sleep: I keep having dreams -unpleasant dreams- with the problems over and over again, always waking up at the same point.

    Do you have the same problem or something like it? May be it is some kind of anxiety, or something like it (although I don't consider myself an anxious person).

    I often do short breaks on my study sessions, go to the gym everyday, eat healthy and periodically, don't drink coffee after noon... but it doesn't seem do help.

    How do you "clean your mind" after your studying/coding/programming sessions?

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

    Sometimes learning to code feels like going through the motions without fully understanding

    Posted: 03 Jan 2021 11:46 AM PST

    Newbie here currently in the process of learning javascript. I'm getting to the harder and more complex portions of learning the language in codecademy's web development course.

    I felt as though I could understand the simpler parts of the code and comfortably move on to the next part, but now it i feel like I'm not getting a full grasp on some of the concepts, but still moving onto learning the next concept.

    What would you guys recommend?

    a. make sure you feel like you understand a concept fully before moving onto the next one.

    b. be okay with partially understanding something, in the hopes that down the road you'll come to fully understand it while practicing other concepts.

    the second options will a faster progression through the program, but not as much understanding.

    the first option will be much slower progress wise, but i'll be more comfortable with moving on to learning new concepts of the code.

    Also, has anyone else experienced this before?

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

    Fibonacci Fast Algorithm Hint

    Posted: 03 Jan 2021 12:35 AM PST

    I'm currently trying to figure out the fast algorithm for solving the Fibonacci sequence. Essentially, say we're given the position N in the sequence, I'm looking to return what the value is at that position.

    I know that I should be returning the sum of two numbers and that N must be greater than or equal to 2. When it comes to positioning, should that be zero-indexed?

    I'd like to emphasize that I'd like hints, not the full answer just yet.

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

    Learning to Programme beginning with Scratch?

    Posted: 03 Jan 2021 08:22 PM PST

    I have no experience programming but wanted to self-teach myself because the future is technology, and in my opinion failing to get on board could significantly hamper many opportunities in the future.

    I've decided to start right from the very basics and I am using Scratch. I have learned quite a lot and am capable of putting together simplistic stories and games using the visual coding blocks, but there are still some things I struggle with and feel I still need to learn.

    However, most of the fundamentals are down, and using this has really allowed me to think a lot more about the algorithms of a computer. I want to move onto a proper programming language now and wondered whether it would be wise to stick with the scratch for a little while longer or whether the basic fundamentals will be enough to move onto a proper programming language.

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

    TiCTACTOE finally worked after 3-4 days.

    Posted: 03 Jan 2021 02:39 AM PST

    tl:dr You guys are awesome. My game finally worked.

    Since I had my basics like if else, strings, lists, dictionaries, tuples, methods, etc clear, I started making TICTACTOE few days ago. I wrote all my code the first day but couldn't get it to work. I was frustrated and couldn't figure out what I was doing wrong. I posted here not more than two days ago asking what other people's experience was like when they were beginners. To that I got lot of positive responses saying that it is part of the learning process, frustration shouldn't stop you if you really love programming. Today, the game finally worked. So far no bugs/errors. It may not be the best code, but means something to me. I am happy for myself and I have you guys to thank for giving me such great advice and sharing great experiences.

    Thanks you. You all are awesome.

    Any beginner brother/sister of mine like me, reading this, Dont give up just yet, if you love it. Hair pulling and head banging is part of the process.

    Edit:- Link to the code. https://github.com/ElliotAldersun/TicTacToe

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

    People that accurately remember concepts about programming - how do you do that?

    Posted: 03 Jan 2021 12:20 AM PST

    I am now re-taking a course called "Javascript and the Weird Parts". I am coding along, but I fear I will forget most of what I learn.

    What's the best method to prevent that, and remember the concepts you learn (besides coding along)?

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

    Just curious, how big a gap is there between academic CS and employment in the field?

    Posted: 03 Jan 2021 10:46 PM PST

    The gap between theory and practice is nothing new, but I'd like to ask those who have successfully completed CS university education about how applicable the education was to your subsequent day-to-day employment. How much of your CS education didn't turn out to be useful? Or was it all very relevant? No agenda here, just curious, thanks!

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

    Using depth=x when pulling from upstream stops me from pushing to fork

    Posted: 03 Jan 2021 11:01 PM PST

    Ok, first of all I am sorry if this isn't the best place to ask about githup but I tried posting in r/githup and got no answers.

    Recently I forked a repo because I wanted to contribute to it, but I have a really slow internet so the only way I can clone a repo locally is by using --depth=x, which is apperanately blocks me from merging the pulled changes from upstream into my fork.

    I am new to githup and this is causing me quite the headache so if anyone has a solution, I am all ears.

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

    Any suggestions on a good reference for data structures and algorithms?

    Posted: 03 Jan 2021 10:49 PM PST

    Hello everyone!

    So I recently finished studying data structures and algorithms as a course that is a part of my degree. However, i feel like i need to learn more about that and I'm trying to find a good reference/book to get back to for any details i need. The material and notes i have from the course are not very helpful. If there are any suggestions i would greatly appreciate it!

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

    How can I get over the learning hump?

    Posted: 03 Jan 2021 08:31 PM PST

    Hi everyone.

    I recently started learning Python, it's my first programming language. I've basically been watching CS Dojo videos on YouTube and I've watched the 'Python for Beginners' video by FreeCodeCamp. I understand everything pretty well but when it comes to practicing on my own, I'm lost. I don't even know where to begin.

    I guess my question is, when you first started learning to program, how did you get over the learning hump, going from just watching videos to actually practicing and writing code yourself?

    Does anyone have any good resources to do something more interactive? I don't think I can watch anymore videos without going crazy, I need something more interactive

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

    I have been at this for two years and have failed to materialize a job.

    Posted: 03 Jan 2021 03:47 PM PST

    It was November 2018 when I decided to become a developer after reading Peter Thiel's book on startups. I began to devote a few hours a week to learning basic web dev. HTML, CSS, JavaScript. I dropped out of college because I enjoyed it so much. I began building static sites, and following basic tutorials. In May of 2019, I enrolled in a coding bootcamp. After 4 months of a 9 month web development program bootcamp, I had to drop out. I have had ADD my entire life, and despite studying/working 12 hours a day during the program, I simply couldn't keep up. I continued to try to teach myself after that, and through a family friend was able to secure an internship at a startup.

    Unfortunately the startup used Ruby on Rails, which I was entirely unfamiliar with, and after working 40 hours a week there unpaid for 6 months, they never decided to hire me and I had to move on.

    I don't know what to do now. I see people here and on Twitter getting job offers all the time after learning CSS and HTML for 2 months. I have plenty of drive and work ethic I just have no idea what strategy I should take or what I should do to secure employment in this field after trying so many things.

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

    Project ideas to get better at android development

    Posted: 03 Jan 2021 10:25 PM PST

    Please suggest me some project ideas, in which I can implement something like multi-threading, async task, API implementation and so on.

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

    What type of language do I use for this project?

    Posted: 03 Jan 2021 10:01 PM PST

    So in discord I learned how by typing in chat you earn xp to level up, and my friend told me how it gets harder and harder over time. So I want to write a program that types something in the chat for me every few minutes or so I level up (just a fun little project). Now. Here's the problom. I know nothing about programming so I want to know what language this would require so I can start learning it.

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

    Stick with Python or focus more on Java?

    Posted: 03 Jan 2021 09:14 PM PST

    Moving to another state soon where there are more jobs in Java than Python. Still have 1 year of school left (moving won't effect it), and have more time in Java than Python since school drills us on that more.

    Creating a full stack personal Python project, 1 week till completion, but am considering setting my time towards Java only projects since the job market is larger where I'll be moving (Indeed: Java 1300 listings, Python 500 listing; Glassdoor: Java 3100 listings, Python 2500 listings). Prior to the move I was essentially going to focus 66/33 Python and Java with the former having more time into it.

    Anyone care to chime in? A good friend of mine says stick with one language and while Python was the one I wanted to focus on Java will be a focus because of school classes.

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

    What’s the next step after learning syntax?

    Posted: 03 Jan 2021 09:13 PM PST

    I spent last semester learning syntax and creating a bunch of mini projects on my IDE but what comes next after I learn the syntax for a language? I know that I need to create a project but I'm confused on knowing where and how I build a project.

    I just studied the python syntax. Am I supposed to learn a framework like django now? I only know how to code on a text editor. How do I make stuff?

    submitted by /u/applebees-but-worse
    [link] [comments]

    How to submit an HTML form with Python Requests?

    Posted: 03 Jan 2021 09:13 PM PST

    I'm trying to automate filling out a website's form that I need to fill out semi-regularly. I'm barely familiar with requests so I need to ask for help.

    The form is filled with HTML elements that are labeled input with class=form-control tags. How do I submit values to this form?

    Example:

    ```

    <div class="form-group required-field is-focused"> <label for="first-name" class="control-label hide-if-no-placeholder">Name <span class="error"></span> <span class="show-on-error">(required)</span></label> <div> <span class="hide-if-placeholder">First Name <span class="error"></span></span> <input type="text" class="form-control" name="firstName" id="first-name" value="" placeholder="First Name" autocomplete="given-name" data-qa="first-name-input"> <span class="hide-if-placeholder">Last Name <span class="error">*</span></span> <input type="text" class="form-control" name="lastName" id="last-name" value="" placeholder="Last Name" autocomplete="family-name" data-qa="last-name-input"> </div> </div>

    ```

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

    Is it an issue that I can't write out the brute force solution but can get the dynamic programming portion? Ive been banging my head against the wall on the Minimum Coin Change problem.

    Posted: 03 Jan 2021 08:51 PM PST

    Basically, I've been practicing leetcode for interviews, and this particular problem is getting to me. The brute force solution is very different from the dp solution so a lot of tutorials online basically go straight into the optimized solution.

    Is this necessarily a bad thing?

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

    Are college interview training courses a waste of time?

    Posted: 03 Jan 2021 08:50 PM PST

    I live in Hyderabad and my college has decided to conduct a job interview training course on Jan 18th - Jun. Until now, we had some tests and I scored pretty well. All the people who participated in the test are going to be segregated into 3 batches. I am a bit sceptical about this because all the tests were online and it was fairly easy to copy and paste the code. Basically, they used the assignment questions as the test questions.

    The organization's name is Suntek Corp and to be honest, they didn't teach us a lot. We have 2 months of classes last year and they taught the basics of C and Python which was taught to us way before.

    They didn't teach DSA but expect us to answer all the questions. If you didn't answer all the questions, you failed the test. There was a test where there were 3 questions. I answered 2 but failed to answer the last one. When I submitted, it told me that I have failed the test. WTF!

    Now to the crux of this post, there is another training conducted by Smart Interviews. They only select the cream of the batch. I was selected for the batch and was very happy. I practised a lot for the 3 tests they conducted. But after the first class, all the selected students were told to a reasonable amount of money every 3 months for the course. Let me breakdown the course structure. 2 classes per week, each of 3 hours. 2 hours of assignments every day and 1 test per week. All they teach is DSA.

    Should I join the training programs conducted in my college or should I learn on my own?

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

    i can build a project using api's but not a simple JS calculator how is this possible?

    Posted: 04 Jan 2021 12:28 AM PST

    i am sorry, if this might seem a rant, but i am actually pretty sad about my situation with the programming world, how is it possible that i can build a pretty functional website with api's and nodejs without any tutorials( deployed website, source code ) and not being able to build a calculator, a tic tac toe game and some of those considered simple app?, i am starting to think that i am not good with logical thinking therefore with programming

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

    codesignal (aka. codefights)

    Posted: 04 Jan 2021 12:27 AM PST

    Does anyone else remember an old website called codefights?

    From what I recall they had like a real time head to head debugging challenge versus another person. I dont recall it being anything serious other than some small brain teasers here and there. But i recall it being kind of fun.

    I looked it up today and saw they rebranded to codesignal? But i dont see that they do the head to heads anymore? can anyone confirm?

    submitted by /u/Puzzleheaded-Bad-914
    [link] [comments]

    [NetBeans] Won't Import Files

    Posted: 03 Jan 2021 08:28 PM PST

    I'm trying to import and edit some code in Netbeanns, but when I open the directory browser, I'm met with a profound lack of files: https://ibb.co/X4PHmST

    How do I fix this?

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

    Newbie GUI development

    Posted: 04 Jan 2021 12:05 AM PST

    I'm a 20-year-old college student, in high school, I took a few programming classes, VB, Python, and C++ sadly my highschool teacher checked out, and instead of teaching us any Python or C++ she had us learn PHP for half the year and then... Nothing for the rest, so the only language I'm overly familiar with is VB.NET, though I know a little more Python than C++.

    Recently I was starting to program a simple little program to help me manage my depression, that would have taken me 5 minutes to do in VB but took me HOURS strangling Python, tkinter and tkinter.ttk to get even just some semblance of ugly on my screen. I've programmed genuinely nice looking stuff in VB.NET but I'm under the impression it's looked upon as amateurish and would reflect poorly on me to continue to program with it.

    I was never taught any GUI for Python or C++ and that was the point of me going through this exercise, to make something appealing, but now I realize how good I had it with VB. This program is as simple as you can get, just taking some strings and compiling them together in an array and spitting it back out, so the back-end was no problem, I'm just wondering if there's something I'm missing? Is there a Python library that magically doesn't make this painful? Am I using the wrong language? Java maybe? C++? Is there external software you're supposed to use? I'm no stranger to Graphic Design either, I currently work as one for my college, so it's isn't a lack of any artistic ability, just where to apply it.

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

    Kotlin: Creating a grid that each number is selectable

    Posted: 03 Jan 2021 08:17 PM PST

    Whats the max amount of numbers can I have in a grid with Kotlin? I'm told it's 255 that I can do. Anyone make a selectable grid before?

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

    Junior Full Stack .NET Dev - How do you guys decide what to learn and in what order?

    Posted: 03 Jan 2021 04:30 PM PST

    Hey guys,a little bit about myself, I am currently a junior full stack .net dev working at a very small consulting company. I was working with wordpress for about a year until a couple of months ago I transitioned from php to C# / Asp.Net as well as other full stack technologies.

    I was just placed under a PIP so I'm basically fully aware I will be let go by the end of march so I've been burning the midnight oil and trying to develop my skills as a developer in hopes of being more prepared in my next job.

    My question for you guys is this - considering juniors have so much to learn in order to be decent at their job, how exactly should I spend my time learning?Things I for sure need to learn and master / develop are -

    1. Javascript => Front end framework like React / Vue possibly
    2. C# => C# framework like Asp.Net Framework / Asp.Net Core
    3. SQL => Entity Framework
    4. How API's work

    I am sure I am missing probably a few other items but these are the ones I've been focusing on as of now. What I've been doing is focusing on 1 topic for a full week for a couple of hours a day after work / weekends. For example, this past week I've been focusing on learning the fundamentals of Javascript through my CodeCademy Pro membership and doing the code challenges / projects. At the end of the week, I plan on switching from Javascript to continuing to build my C# fundamentals as well as the framework.

    My biggest worry is that I am not sure if I want to apply for Front End developer jobs or sticking to .Net jobs as well as making sure my priorities are set correctly. Any advice would be greatly appreciated, Thank you!

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

    No comments:

    Post a Comment