• Breaking News

    Monday, May 31, 2021

    Today I spent 3 hours and 126 google searches on writing 25 lines of code... and I loved it! learn programming

    Today I spent 3 hours and 126 google searches on writing 25 lines of code... and I loved it! learn programming


    Today I spent 3 hours and 126 google searches on writing 25 lines of code... and I loved it!

    Posted: 30 May 2021 02:10 PM PDT

    I've been doing a course, and I was getting it all in the course environment. Or so I thought. But when you come to implement an idea independently... wow! Your mistakes, knowledge gaps and frustrations teach you SO much more.

    There's nothing more frustrating than when it won't work... but nothing greater than when it does finally work!

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

    FreeCodeCamp vs The Odin Project. Which is best to get from newbie to hired?

    Posted: 30 May 2021 11:21 AM PDT

    Hi all!

    I recently started learning basic web development on the FreeCodeCamp (FCC). While looking through this sub, I found The Odin Project (TOP). Now I'm at a loss as to which resource to focus on.

    I've been going through the fundamentals of HTML and CSS in FCC the past 2 weeks. Unfortunately, I only have 1-2 hrs daily to learn, so I want to make the most of my time to land a front-end dev position asap.

    I would also appreciate if y'all could give me tips/suggestions as to which other languages/frameworks to learn after I finish HTML, CSS and JS.

    Thanks!

    Edit: I really appreciate everyone's input! This post has gotten more popularity than I expected, so I'm sorry if I did not reply to you.

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

    My advice to aspiring programmers taking the unconventional route in the form of an FAQ

    Posted: 31 May 2021 01:44 AM PDT

    This is kind of a follow-up to a post I made some time last week, recapitulating some points I made on how I would advise aspiring programmers.

    Target audience: Individuals who are early into their programming journey: from those who are deciding on their first programming language, to those who are on their first programming language, to people who are building out their first application.

    Some salt you might want to take before you proceed:

    - Keep in mind that I only have two years of industry experience, so make of that what you will.

    - My wheelhouse is web, so this isn't exactly catered for people interested in doing games, machine learning, embedded systems, etc., but you can still probably get something out of this post if you're a beginner.

    - My suggestions are biased towards things that have worked for me.

    Without further adieu:

    Where do I even begin?

    Two things you should do to start off: Pick a programming language, and learn the basics of how to use your command-line. The latter is a must and is often overlooked in my opinion.

    Here is a nice resource that I would recommend for Mac, Windows, or Linux users.

    Please keep in mind that the Python subreddits despise that author for several reasons, but I personally think his command-line crash course book was fantastic.

    What programming language should I learn?

    It depends. If you already know what you're interested in, then a simple google search will inform you about which programming language makes the most sense for a particular domain. Examples (non-comprehensive and non-inclusive):

    - Videos games: C++ (Unreal), C# (Unity), Lua

    - Machine Learning & Data Science: R, Python, Go

    - Web Development: Too many choices, but JavaScript must be in your arsenal at some point.

    - Mobile Development: Swift and/or Objective C (IOS), Kotlin and/or Java (Android), Dart or JavaScript (cross-platform).

    - Desktop App Development: Probably JavaScript

    - Embedded Systems: C, C++, Rust

    - Dev-ops: Python, Ruby, Bash, Go

    What if I don't know what I'm interested in yet?

    Then it really doesn't matter which programming language you pick first, but if you want my advice, pick an easy one: Python or JavaScript. Keep in mind that the easier the programming language, the more gaps there will be in your knowledge, but that's a problem for later.

    If you're interested in web specifically, my top choices for programming languages to learn would either be JavaScript, Ruby, or Python. You may also consider PHP, Java, or Go, but do some research on your job market.

    What if I'm in a rush to get hired as soon as possible?

    If you're absolutely not open to relocating, then you should do a google search to see popular languages used in the area wherein you wish to live and go off of that.

    So I decided on X programming language, how do I git gud?

    You have a few options:

    For readers, I highly recommend the "Head First" series which has books for all the mainstream programming languages.

    For non-readers, I'd recommend going on the udemy website and purchasing a highly-rated and fairly recent course on the basics of programming language X. Never pay more than $20 for a course; coupons are incredibly easy to find via a simple google search.

    What do I do after finishing my first book/course on programming language X?

    Computer science. You now have a programming language with which to study computer science, a field that is concerned with problems that can be solved computationally, as well as problems for which there are no solutions.

    You'll learn what algorithms are, how to make them, what makes an algorithm good or bad, you'll learn how to make an existing algorithm better. You'll also learn about data structures, and how you can leverage these abstract concepts to frame novel problems.

    Where do you start?

    For readers, just google "Data Structures and Algorithms in Programming Language X" and purchase a book with good reviews. Do the problems.

    For non-readers, search for "Data Structures and Algorithms Programming Language X" and purchase one with good reviews. You can even checkout MIT's open courseware if you're okay with them using a language you might not be familiar with.

    It's important to compliment your DS&A studies by solving problems in order to develop a good intuition for problem-solving. If you're not getting enough of it in your book or udemy course, then checkout hackerrank, which is my personal favorite website for problem solving. You can also use Leetcode, but personally I'd save Leetcode for when you're actually ready to start interviewing.

    Do I really have to memorize all these algorithms and data structures?

    Absolutely not. What you want out of your DS&A studies is to just be familiar with the mainstream algorithms and and data structures so that you know what you can refer to or even google when you're dealing with a problem that could be thought of as data structure X. Developing a basic familiarity and a strong intuition is what you're really trying to accomplish.

    What's this I hear about object-oriented programming (OOP)?

    OOP is arguably the most popular programming paradigm. What is a programming paradigm? It's simply a way to think about and structure your code so that it grows in a way that is sensible, organized, and maintainable. OOP is one of many paradigms, and it's usually the first programming paradigm most people learn first. Learn about OOP, its benefits, and its detriments.

    - What is an object?

    - What is a class?

    - What is encapsulation?

    - What is a method?

    - What is inheritance?

    - What is polymorphism?

    If you have a good understanding of the answers to the questions above, I would say that you have a pretty good understanding of what OOP is.

    Later down the line, look into the functional programming (FP) paradigm as well, as it is becoming an increasingly popular alternative to OOP, but learn about the problems that FP deals with.

    I have a pretty good grasp of language X and I finished my DS&A book/course. I want to work in web — should I do back-end, front-end, or full-stack?

    I may get a lot of people disagreeing with me here, but I think that it's too early for you to specialize in either front-end or back-end. You definitely want to have a pretty good picture of the holistic anatomy of a web-application in order to be a functional web developer, but if you absolutely had to pick an area to be INCLINED towards as someone trying to break into the industry, however, I'd recommend front-end, as I think front-end junior roles are much more common than back-end junior roles.

    What should I learn next in that case to be employable?

    Well first-and-foremost you'll probably want to just get this out of the way now and learn HTML and CSS. Watch a youtube crash-course; they're easy to pick up, and easy to google things for.

    Here are some popular web technology tool-sets that you want to look into for a few popular languages depending on which one you picked in the beginning:

    - Python: Django or Flask

    - Ruby: Ruby on Rails

    - JavaScript: MongoDB, Express, (JavaScript front-end library/framework), and Node

    - Java: Spring

    - PHP: Laravel

    - Go: Fiber

    Now here's where my advice forks into different paths depending on what you language you decided to learn in the beginning:

    For JavaScripters:

    Build a static web-page (no backend) in just pure JavaScript/HTML/CSS. Perhaps make your portfolio website. After that, pick up a popular front-end JavaScript library/framework like React, Angular, or Vue, and rebuild your static web-page using said library/framework. My personal recommendation is React.

    After that, learn about the MERN stack: MongoDB, Express, React, and Node. If you picked up Angular or Vue, it would be called MEAN or MEVN, respectively. Build another app, but this time with a backend and learn how the database, backend, and frontend all connect to make a fully functional web-application.

    Note: Some people opt for using a SQL database over MongoDB, but I'm simply recommending MongoDB because it's a pretty popular choice amongst Full-stack JavaScript developers. Pick whichever, I'd recommend MongoDB.

    For Non-JavaScripters:

    Build your first web-application using the most popular web framework for that language and use little-to-no JavaScript. Learn about the MVC architecture (or MVT in Django land) and what an object-relational-mapper (ORM) is. Learn some basic SQL and learn about the SQL database you're using.

    After your first app, the next thing for you to do is to learn a modern JavaScript front-end library/framework (I recommend React) and build another application combining your web-framework of choice with your JavaScript library/framework. You can find a lot of courses on udemy and youtube teaching you how to make applications that combine say Django with React, or Ruby on Rails with React.

    ~~~~~~~~~

    All-in-all I think that if you follow the above steps and have a decent understanding of how the web works:

    - What is HTTP?

    - What is the request response cycle?

    - What is JSON?

    - What is REST?

    - What's an API?

    - What's a RESTful API?

    - What is GET/POST/PUT/PATCH/DELETE?

    - What is idempotency in the context of say a POST?

    - How does user authentication work?

    - How does data get stored?

    - How is data stored and transferred securely?

    - How do the client (frontend), server (backend), and database all connect?

    If you have a pretty solid understanding of the above concepts, I'd dare say that you are probably job ready.

    How do I know when I'm ready to start applying?

    If you follow the above steps and can answer the questions I listed I think that you should just start applying. You'll never feel ready and you will always feel like there are a million things left to learn; when people start talking about things like Docker, GraphQL, AWS, or anything that you feel completely unfamiliar with, don't let that deter you. A lot of these tools and technologies can be learned on the job. What's more important is that you've demonstrated that you're smart, hard-working, and have the know-how to make a web-application.

    What should I do to prepare?

    Have a solid understanding of your own toolset, as well as solid proficiency in one programming language with which to solve interview questions with. Do hackerrank and/or Leetcode to sharpen the problem-solving muscle. Exercise to give the mind a break.

    Any other advice?

    Be hungry. Getting your foot in the door isn't going to be easy as it takes an insane amount of dedication and grit. You'll likely find yourself getting discouraged throughout the process but if it takes you a year or two of hauling ass to eventually get your first offer, the 5-10 years-later version of yourself will look back and thank your present-day self for taking that plunge (assuming you don't hate programming).

    People are certainly going to point fingers at this and accuse me of survivorship bias or for being an American where it's easy to feel that your efforts are commensurate with your success but I'm not about that defeatist attitude. I've been there, I've had my bouts with doubt, I've struggled, but at the end of the day I wasn't going to let those become excuses.

    Some people naturally have tougher situations than others, yes—those people will have to work harder—but it's up to you whether or not you want doubt to overpower impetus.

    Keep struggling friends, and "May you find your worth in the waking world" — The Doll. 

    EXTRA ADVICE EMPLOYED UNCONVENTIONALS EARLY IN THEIR CAREER:

    If you're like me in that you started off with a very high level language like Python and devoted most of your time to just using frameworks to build applications, there are probably a lot of gaps in your knowledge about how computers and programs actually work. If that's the case, I would HIGHLY recommend learning the following:

    - Learn a low-level systems programming language that puts your more in touch with types and computer memory: C, C++, Rust, or Zig just to name a few. I personally recommend Rust.

    - What are pointers?

    - What is stdin/stdout/stderr?

    - What is a file descriptor?

    - What's a Kernel?

    - What's a system call?

    - What the heck is actually happening when I run my program from the terminal? How does my program get memory to play with? How does it know where to print stuff?

    - How does my rails/django/node/whatever server actually work? Learn about sockets!

    - What is the OSI and TCP/IP model?

    - What are the responsibilities of the CPU? What do CPU registers do?

    - What are kernel/OS threads?

    - What is parallelism?

    - What are green threads?

    - What is concurrency?

    - What is a data race?

    - What is a memory leak?

    - What the heck does Unix-like even mean?

    - What does the unix-phrase, "everything is a file" mean?

    - What is POSIX?

    The above list is just a random dump of unorganized information that you can likely get away with not knowing for the entirety of your career but it is definitely super enriching to know and it serves to only make you a better programmer. It is not comprehensive by any means, and I am kind of just listing whatever is coming to mind.

    Good night everyone.

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

    My 2 cents: How to become a programmer attempt 2

    Posted: 30 May 2021 03:29 PM PDT

    Hello, folks! I will give my 2 cents on how you can become a programmer.

    Disclaimer: This is how I see the world and this is my PERSONAL OPINION.

    1. I see a lot of people trying to become programmers. There are few types of people wanting to become programmers. Some like it because it's "cool and trendy", others because it's well "well paid" and small group of people like it because they are interested in it genuinely. No matter which type you are, you must understand that programming is never ending learning process. It's not like some other professions where once you learn it it never changes. To be a good programmer you havr to spend hours learning new stuff EVERY SINGLE DAY, every day you have to read and develop yourself if you want to be good. I know some of you will say: "I learned X language and Y framework and it's all good i get paid it's fine, you don't have to keep learning ". Those people don't last long, if you don't progress and learn every day after a year or two you will become useless. Younger people with less years of experience, but more knowledge will replace you. Nobody is going to hire someone who's not progressing, keep that in mind, you have to constantly learn and keep pushing forward.

    2. A lot of people wonder if they are good enough to be a programmer. All it takes to be a good programmer is to practice and learn. Only few people have the talent to be a great programmers, however almost anyone can be a decent or a good programmer. What I'm trying to say is, even if you aren't the sharpest tool you can keep up with others or even surpass them, just by practicing more than them. I believe you can become good, if you just push hard enough.

    3. Practice and consistency is the key to success. You have to practice every day, even if it's just for half an hour. It's better to practice 7 days a week 30 minutes each day than to spend 8h every sunday. You need consistency and practice in order to understand and remember things.

    4. Make sure when you are not getting distracted by anything while studying. Try to spend at least 30 minutes a day focusing only on studying, no phone, no social media, no music, just reading and practicing programming. 30 minutes focused studying is better than 4 hours studying while getting distracted.

    5. Don't watch video tutorials. Most of tutorials are just someone following the documentation and making a video. Read and follow the documentation yourself. I know, I know someone will say: "Yes, but in the video X person Y mentioned something that wasn't in the documentation and it was very useful". True, there are some useful moments videos, but they are so few its not worth wasting your time with it. Instead of wasting 30-60 minutes watching a video and blindly coping the code from the video, read the doc in 15 min and practice the next 45 minutes. You will learn a lot more just by reading documentation and tinkering around, watch some conference instead of stupid getting started tutorial.

    6. Don't switch languages all the time, focus on only one. A lot of people think by learning basic syntax of language X that they know it. Understanding some programming language isn't about the syntax, you can code in Java and switch to PHP in matter of minutes/hours. However that doesn't mean you understand php, it means you know the syntax enough to write few loops and if statements. Understanding a programming language is so much more than knowing the syntax. It takes years of practice to deeply understand a programming language.

    7. Read code on github. After grasping the syntax of some programming language, pick a simple problem you want to solve. Write the code, then search for solution online and read up how other people solved the same problem. You will learn a lot by reading other people's code.

    8. Don't get discouraged. If you don't understand something instantly don't bash yourself, sometimes it takes a little bit of time to understand. Try getting a rest and continuing on the next day if you get frustrated. Don't give up, failing means you are learning.

    9. The most important skill is to know how to Google stuff the right way. What i mean by that is: You should learn to Google your problem in such way, that the solution to be first or second link, not the 5th result or on second page.

    10. First things that you need to do is to decide what you want to code

    Web - PHP, Python, Java, C#, Ruby on Rails, Javascript

    Embedded and System Programing - C, C++, Rust

    Automation - Python, Golang

    Command Line Tools - Python, C, Golang, Rust

    Games - C#, C++

    Desktop Applications - Java, C#

    Android - Java, Kotlin.

    iOS: - Swift, Objective C.

    Front End - Javascript + HTML + CSS

    1. The language doesn't matter that much, all languages can do almost anything. Some are just better for mobile apps other for games.

    2. DON'T START WITH A FRAMEWORK!!! learn the basics I can't stress this enough!!! Everything is based on same basic things: variables, data types, data structures, loops, conditions, functions. Learn them and you will be able to understand the material further.

      You should aim for is learning the fundamentals... how everything works in programming.

    Imagine you want to teach someone how to multiply 3 by 3. You will tell him that 3x3 = 3 + 3 + 3 = 9 right? You bring the multiplication to addition right? Now imagine, if that person doesn't know how addition works. if he doesn't know that 3 + 3 + 3= 9 you won't be able to make him understand how 3x3 works. You might be able to make him remember that 3*3=9, but he won't know why and how. It's the same thing in programming, if you understand the truly basic things you will be able to use and understand any programming language fast.

    Same thing learning OOP in programming is based on functions methods in oop are basically functions.

    1. Finding a job, here comes the hard part... One way to find a job is: a. Create Linkedin profile add as many HR and technical people from your country, city as possible. b.Create some good looking project on Github, write proper documentation for that project in the repo as well. Documentation is very important it shows that you are responsible person. c. Create CV/Resume, put your Github repo inside. d. Post on LinkedIn that you are looking for internships, in the post include your resume and your github profile. e. people will start contacting you about interviews.

    2. When it comes to interviewing those are my 2 cents:

      1. Self esteem and confidence is needed, but don't be cocky, be humble and honest.
      2. You will always be asked something you can't answer, just ask the interviewer to explain it to you. That way you learn something new for free, also you make good impression as a guy who wants to learn and develop himself further. This boost your chance of getting hired.
      3. You make new friends, they might not hire you now.but they can help you later you never know. I've been hired by people that rejected me years ago.
      4. Human interaction itself is pretty good, soft skills are very important important, sometimes even more than the hard skills (coding skills).
      5. Always ask for a feedback, you will learn what your bad sides are.
      6. You will learn how much you cost when you get many different offers.
      7. You will get to know what technologies different companies use and for what reason.
      8. For your first job the best impression you have to make is, that you are able to learn fast and learn from your mistakes.
      9. Most internship/junior people are hired based on intelligence and soft skills, not hard skills (coding skills).
      10. At my company we can hire you even if you started learning programming 1 week ago as long as you show good potential for development.
      11. Most juniors out there can't even do enough work to deserve their salary the first year.
      12. You should show them that you can think the right way, will give you example:

    We ask people to find a way to tell me how many leafs are on the tree outside our office.

    The good answers sound like this:

    I don't know, but we can get approximate number by counting leafs on a branch. Then counting branches and multiply it by leafs per branch, however not all branches have equal number of leafs, but that way we can get approximate number. This shows that you can come up with some solution and you have the right mindset and enough potential.

    Bad answers sound like this:

    I don't know, how can i know they are too many, I can't count them. So anyone who doesn't show a good way of thinking and common sense gets rejected.

    1. Also very important thing is to think out loud. If they ask you question and you stay silent for 2 minutes. You are thinking in meantime, but other side just see you silent and think. 'this dude is an idiot he can't even speak is he even thinking about giving an answer'.

    So just think out loud, if you don't know the answer. Say you don't know, but you assume the answer might be.... and here express some of your own logic based on your knowledge about the question. It's okay to say you never heard of something and you have no idea. After all you are applying for an internship, not a senior position. Keep calm and good luck.

    Sorry for bad English, I know I have a lot of grammar and punctuation mistakes, please help me fix them.

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

    How are applications, extensions and add-ons made?

    Posted: 31 May 2021 12:39 AM PDT

    Hello I've been learning a lot of python recently and I'm getting pretty far into it. I'm about to start learning linked lists but I realized, I don't know how to make applications and such. I know all this programming but I don't know how to put it to use. I want to start making applications, extensions and add-ons for Spotify or other apps.

    submitted by /u/467danny
    [link] [comments]

    Programming is very difficult to manage with high school

    Posted: 30 May 2021 07:47 PM PDT

    I've been programming since I was 13 and made it a serious hobby at the age of 15. I'm currently 16 years old and while I'm getting decent grades in school, it's made it very hard to do programming-related projects, which is something I'm serious about because I want to have a career related to this space. I've wanted to do so much in the past couple of months, but I can't find time to do it.

    For people in a similar situation as me, how do you manage school and programming?


    [link] [comments]

    Want to make a clean looking simple GUI to run basic scripts

    Posted: 31 May 2021 12:57 AM PDT

    Hi!
    I want to make a clean looking simple GUI to run basic scripts.
    My plan is to have a set of simple trouble shooting scripts deployed to users to save some time then to connect and do the simple tasks or guiding commands in cmd ( sometimes a simple flushdns command can take minutes! )

    rather then having a bunch of individual .bat or .ps1 files i want to build a GUI thats just a windows with a couple of buttons that when clicked executed X command.

    i know you can build it in stuff like posh or VBW but i want it rather clean looking with a kind of modern w10 look.

    what would you recommend for this specifik task ? C#? Python?.. codemonkey????

    Thanks!

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

    After CS50x

    Posted: 30 May 2021 11:40 PM PDT

    I have begun Princeton's Coursera Algorithms Part 1 and I have no clue how to even complete the Week 1 practice RandomWord.java

    What even is standard input?

    Should I do another course instead or is there somewhere I can learn basic Java before continuing?

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

    Django or Node?

    Posted: 30 May 2021 06:12 PM PDT

    Python has become my favorite language, but one of my first languages was JavaScript. I would say I use Python more and know it slightly better now.

    I'm debating between whether I should learn Django or Node for finding jobs within Southern California. I know both can be used for web development so that's why I'm caught between which is more desirable/useful. I don't know about the nuances between them and which is better for what.

    Right now I'm working through courses to prepare for an online masters in CS but I want to be able to make myself more employable by learning actual frameworks rather than just focus on prerequisites and theory.

    Which also is a good other question... if anyone has finished a MS in CS without a CS degree, I'd love to hear about it. I just feel that because I already have a bachelors degree in a different field, it would be a bit odd to spend money to get a second bachelors degree, especially since I'm pretty sure a BS will not teach me Django nor Node.

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

    Steps for a decent personal project?

    Posted: 30 May 2021 04:12 PM PDT

    Tomorrow I want to start a personal project. I'm thinking something that can grab and display information from the net so perhaps it'll be a RESTful web app.

    For example, if I want to find the grocery stores within a 5 mile radius of my location, or something along those lines.

    I just wanted to know some high level steps as far as iterating through the project.

    So, I want to use Java and it's stack. I've never used spring before but I think I need to use that. So, gathering my tools may be first?

    Then, setting up version control?

    I may adjust the type of project because the main goal is just having something I can show, that proves I've used my tools and produced something that is prod ready.

    Are there some good video guides or books or anything?

    Thanks!

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

    Full, comprehensive list of resources I used to make my game.

    Posted: 30 May 2021 03:21 PM PDT

    Hi, the title says it all. I'm a game developer by trade and just finished up a free playtesting demo for my project RD Mars. RD Mars is a top-down narrative-driven shooter about the mind of a man named Felix Darwins. You can find said project here, alongside the list of resources you'll need to make it:

    https://successstudios.itch.io/rd-mars

    https://www.yoyogames.com/en/gamemaker

    https://freesound.org/

    https://www.youtube.com/watch?v=izNXbMdu348

    https://www.youtube.com/watch?v=raGK_j1NVdE

    https://www.youtube.com/watch?v=tV4ghL4CEtw&t=831s

    https://www.youtube.com/watch?v=R84mR52QaMg

    https://www.youtube.com/watch?v=pXvRcPObUbU

    Good luck and godspeed programmers.

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

    What unpopular opinion do you have on programming?

    Posted: 30 May 2021 02:29 PM PDT

    I'll start with mine.

    The majority of CS programs you'll find are actually pretty bad.

    The majority of computer science programs in the country are pretty shit. At least over here in the United States. Mine in particular fit the bill perfectly while I was in it. Like plenty out there, there was an over abundance of Object Oriented code without any kind of explanation of why I would use the paradigm. Instead of introducing other paradigms and giving insight on what they're good for, we simply just adopt OOP as the only real introduction to programming entire and stick to it. Nothings wrong with object oriented but there's functional programming and procedural programming, neither of which were taught to you or even mentioned. I haven't even talked about concurrency nor immutable data structures. Neither of which were offered in my school. Of course the data structures and algorithms class was there but you could find that in any book. I could go on and on but you get the point.

    The fact is, CS programs seem to have these kinds of problems where they either lack certain things you need relevant to the job or they're not taught well at all. In the end, you teach yourself.

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

    Java Multithreading For Toy Financial Trading Project

    Posted: 31 May 2021 02:19 AM PDT

    I am writing a program to simulate clients asking for prices and a bank replying. The whole project is in one program, run on one computer and doesnt need to work over the web. The requests for prices/quotes are to be generated randomly and the program should reply back to them with prices (generated from an order book). I need to write the request process and the pricing process in two different threads. However, I am unsure as to how to do this.

    At the moment I have an order book, and the pricing process as far as I can see is a function which looks at the order book to see at what price a request can be done. I am not quite sure how the request for quote process and the pricing process can be put in two different threads as they seem to me to be the same thing if its a simulation program on one computer.

    Does anyone have any thoughts on this?

    Related to this: https://www.reddit.com/r/algotrading/comments/nn59ve/building_a_toy_rfq_box/

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

    Data structures and algorithms or deeper learning in C ++?

    Posted: 31 May 2021 01:58 AM PDT

    Hello friends I'm currently learning programming and C++. I know the basics in C++ like: pointers, control flow etc. I understand almost everything in OOP like move semantics,inheritance, operator overloading etc. but I'm not familiar. At this time I am learning DSA and I see that it helps me a lot to think like a programmer, but I don't move forward in C++. My goal is to get a job as soon as possible. What do you think? Where I need to focus more?

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

    What's the programming paradigm for storing relatively few values between executions?

    Posted: 31 May 2021 01:57 AM PDT

    Let's say I have a python script that runs repeatedly, and I want to persist a value between executions.

    Typically, for persisting data I would jump straight to PostgreSQL, store the values in a database, and call it a day. However, for storing a single value, that seems overkill (and possibly inefficient).

    The next option is to persist it by just writing the value to a local file, then reading that value. However, this seems messy to me, and it seems like there are dozens of points of failure. I don't know of a good design pattern to follow for this approach.

    Is this what Redis is for? What would you do for this?

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

    My first Python Tool for AWS transitgateway

    Posted: 31 May 2021 01:55 AM PDT

    This tool will let you create segmented routing in AWS transit gateway, refer to Readme file for more info.

    https://github.com/tariq87/transitgatewayautomation

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

    sort SQl database by python variable

    Posted: 31 May 2021 01:49 AM PDT

    hi all.

    I am using python, flask and sqlalchemy with a My SQL database. i am unsure if this is actually possible the way i am trying, but i need to sort a bunch of posts order of location from a user. That could be done just by example = abs(current_user.postcode - User.postcode)

    I present the database in a for loop in the html doc. I want to sort the table by the output of a example
    . Is this possible.

    TLDR: can a sort a sql database from a variable in a python file?

    Cheers. any help is apreciated.

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

    Merge two arrays without extra space.

    Posted: 31 May 2021 01:29 AM PDT

    The two arrays are sorted in increasing order and the required time complexity for the problem is O((n+m)*log(n+m)) where n is the size of the first array and m is for the second array. Below is my approach to solve it but it exceeded the time limit. Is there any way to reduce the time complexity in my solution?

    class Solution { public: void merge(int arr1[], int arr2[], int n, int m) { for(int i=0; i<n; i++) { // finding a element which is larger than first element of second array if(arr1[i]>arr2[0]) { int k = n-2; int end = arr1[n-1]; // storing the end // pushing one step forward each element in first array while(k>=i) { arr1[k+1] = arr1[k]; k--; } // putting small value at first array index i arr1[i] = arr2[0]; int j = 0; // traversing in second array to put first array last // element at correct position while(j<m) { if(arr2[j]>end) { arr2[j-1] = end; break; } else { arr2[j] = arr2[j+1]; j++; if(j-1 == m-1) arr2[j-1] = end; } } } } } }; 

    what we want ------>

    arr1 = { 2, 5, 7, 9 }

    arr2 = { 4, 6, 11 }

    After performing operations ->

    arr1 = { 2, 4, 5, 6 }

    arr2 = { 7, 9, 11 }

    So at the time of printing, we get output in a sorted manner. like 2, 4, 5, 6, 7, 9, 11

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

    Am I doing it wrong as a beginner?

    Posted: 30 May 2021 09:07 AM PDT

    As a beginner, I often write the solution on a piece of paper to see how it's actually working (like with real values). I just don't exactly understand the solution till I write it. Is this wrong? Have y'all ever done this ? and is there anyway to get rid of it ?

    And the other problem is that I'm stuck with arrays. I'm kinda tired of solving problems based on arrays, although I won't say that I'm best at it. It's just can I learn other data structures while solving few array problems on a daily basis ?

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

    Is it easy to migrate a Bootstrap 4 based project to Bootstrap 5?

    Posted: 31 May 2021 01:18 AM PDT

    Can you just replace the css and js files? Is it more complicated?

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

    Automated QR Code placement within a template?

    Posted: 31 May 2021 01:02 AM PDT

    Apologies in advance if this isn't the right place to ask. If it isn't, please direct me to the correct subreddit. Thank you.

    So basically I've designed a template and I've left a designated space for a QR code. And I have 2000 unique QR codes. Does a program, website, or service exist that would allow us to place each unique QR code within the designated space and basically return 2000 versions of the template, with the QR code area filled?

    Or does it have to be done manually? Mainly cuz our printing guy isn't willing to print em on if given the QR codes separately, so now I'm pretty lost as to what to do.

    Edit: template is just a quick design I pulled together in Adobe XD and saved as a PNG, QR code's are all in a PNG format.

    Thank you in advance!

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

    Looking for a partner to help with the front-end development of an existing platform

    Posted: 31 May 2021 12:35 AM PDT

    Hi! I have been working for the last 3 months on a platform using Angular as the front-end with a .NET Web Api handling the back-end connection to a SQL database. The idea around the platform is a place for students to meet/become mentors for help with all sorts of subject areas. I have the platform structure working well, with most systems implemented. Where I fall short is in both my creativity and knowledge/will to do a front-end design.

    I have always really coded by myself, but am looking for someone who can join me with this project and work with me all round, but mostly focusing on the front-end implementation.

    Although the platform is mostly being built to learn, I do have the intention to release the platform externally once to a point that it is ready to be used.

    There will be no pressure on anyone to commit to a certain amount of hours as this project is mostly for learning :)

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

    Help Chrome extension devs, chrome.proxy not working

    Posted: 30 May 2021 11:58 PM PDT

    So, I'm trying to use chrome extension API's chorme.proxy API, I read the document and some SO posts, gist examples, this should be worked, but it does not work, I have no idea where is bad on the code. The project is quite simple. "background.js" ```js var config = { mode: "fixed_servers", rules: { proxyForHttp: { scheme: "http", host: "localhost",
    port: 3138
    }, } }; chrome.proxy.settings.set( {value: config, scope: 'regular'}, function() {} );

    ```

    "manifest.json"

    ```json { "background": { "scripts": ["background.js"] }, "browser_action": { "default_title": "chromeexttmp" }, "name": "chromeexttmp", "permissions": [ "tabs", "proxy", "<all_urls>", "unlimitedStorage", "storage", "webRequest", "webRequestBlocking" ],

    "version": "0.1", "manifest_version": 2 }

    ```

    Of course, the proxy address localhost:3138 is working perfectly (I can confirm that on curl). Checking IP address on a website such as whatismyip, and the IP has not changed, going to the chrome URL chrome://net-internals/#proxy, there is no proxy settings showing up, and most strangely, there is no error messages on output/debug console. (if the bg.js has some kind of syntax error or something, at least I want some message or really cannot get what is happening behind..). So, what is wrong with my code?

    disclaimer: I'm noob to chrome extension dev

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

    Are boot camps worth it ?

    Posted: 30 May 2021 11:47 PM PDT

    Hi I'm 24 looking for a career change. I currently just graduated with a Economics degree and a minor in CS . Due to the pandemic I wasn't fully committed to CS but I still enjoyed it nonetheless. I live in SF and I want to do a bootcamp but I'm not sure if it's worth it.

    My real questions are:

    are they even doing in person boot camps ? I was looking into some during the pandemic but it was online and would just do meetings in the end of the week . I'm more looking into a bootcamp where either have daily meetings or every other day or just in person in general . If so, which ones can you recommend ?

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

    No comments:

    Post a Comment