• Breaking News

    Saturday, December 12, 2020

    What have you been working on recently? [December 12, 2020] learn programming

    What have you been working on recently? [December 12, 2020] learn programming


    What have you been working on recently? [December 12, 2020]

    Posted: 11 Dec 2020 09:00 PM PST

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    What Do Software Engineers Actually Do?

    Posted: 11 Dec 2020 11:15 AM PST

    Hey guys,

    I am currently a freshman CS major and am having difficulty understanding how what I'm learning (things like data structures and algorithms) apply to what would be expected of me when I get a SWE internship or job.

    I can't imagine that the job is just doing leet code style problems. I'm scared that once I get a SWE position, I won't be able to do anything because I don't know how to apply these skills.

    I think it would really help if you guys could provide some examples of what software engineers do on a day to day basis and how the conceptual things learned in college are used to build applications.

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

    [python] I used Pickle to save the cookies of a site but the cookie text file is unreadable. is there anything that can make it readable?

    Posted: 11 Dec 2020 11:37 PM PST

    it looks like this

    hello i am noob.

    while using selenium on chrome browser, i used a function to save the cookies of a site to a textfile on my computer. i used the pickle module to save it. and it saved the cookie as a binary text file.

    but when i open it with notepad, it looks like this

    is there anything that can make it readable?

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

    In college but want to learn on the side

    Posted: 11 Dec 2020 06:08 PM PST

    I'm in college but I want to learn on the side as well. What would you guys recommend? Build apps or something? I'll be heading into my spring semester of my sophomore year.

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

    I'm going to be done with AP computer science principles soon where you learn CS and javascript basics. How can I continue to advance my coding knowledge after the class?

    Posted: 11 Dec 2020 09:36 PM PST

    Just as the title says I've learned the basics behind computing, CS, servers, javascript, etc and in college, I want to major in CS and math. What resources are there for me to continue my coding knowledge?

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

    Trouble Making A Decision

    Posted: 11 Dec 2020 07:30 PM PST

    I'm a web developer, freelance now, with years upon years of full stack experience. My skills currently are, from strongest to weakest: PHP, SQL, JavaScript, HTML/CSS (let's not argue semantics of "programming" HTML/CSS as it's irrelevant one way or the other except that it's a skill). I am not new to programming but I want to start hobbying with something to build PC applications. I can't decide on a language to take up and focus on. I'm not familiar enough with their uses or usefulness. I have some VERY basic experience with Java and I really like OOP but it feels verbose and far too complex for me so it's not ideal on a personal level but I'm not opposed to trying to learn it more. I also feel that when I'm done with a small program that getting it to compile as a usable program outside Eclipse often doesn't seem to work.

    Here are some learning goals I'd like to achieve: Ability to interact with databases Interact with serial data (this may not be as clear in context to you as it is to me lol) Create an executable for my programs Able to create some sort of functional GUI

    Thanks for tips in advance!

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

    made first nodejs project from scratch

    Posted: 11 Dec 2020 10:28 AM PST

    after following a few nodejs courses i finally made a project by myself from scratch, the project its self is a copy of one of my old projects made with just only vanillaJS, but this time i decided to make it with a server side language, the app uses the OMDB api, and it works like this: it takes a user input and send back the movie or movies with that user search query on the results page, then the user can click on the wanted movie and get a more detailed information, i know the graphic isn't that good but that's something i am gonna work with in the time.

    github code repository: https://github.com/dianebaye2001/MovieApp-Node

    deployed website: https://powerful-dawn-90595.herokuapp.com/

    Used technologies:

    • EJS(Templating language)
    • Node JS
    • Express
    • Javascript
    • EJS(templating language)
    • Api's
    • html
    • boostrap
    • css
    • Heroku(to deploy the website)

    I used some packages to make the word easier to do, in this case:

    • body-parser(To get the user searched query)
    • axios(To make requests to the OMDB api)

    I'd be glad if someone could review my code and tell what do they think about readability and how can i improve.

    Thanks in advance

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

    What to put on a resume for an internship when you don't have much?

    Posted: 11 Dec 2020 08:43 PM PST

    I need to start looking at internships instead of procrastinating, but I always feel weird doing this sort of thing because, even though it's an internship and not a job job, it still requires a resume and I don't have much in this department. I worked at a pizza place for 9 months in high school, and am going to college for CS. I have like one project that I'm semi-proud of, and that's about it. How do I go about this?

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

    Another pseudocode question, again...

    Posted: 11 Dec 2020 10:54 PM PST

    Hello again, I got some comment from my instructor for my homework but because he always replies slow and I would like to get fast help here. I am new in this field and only study things by myself, so please forgive if I can't get it right fast.

    So the original question is this, very classic easy one:

    * Write pseudocode for an algorithm with a list of integer numbers as parameter. The algorithm should print all numbers of the list that are prime numbers. A number is a prime number if it is only divisible by 1 and itself. The smallest prime number is defined as 2. As an example, here are the prime numbers smaller than 10: 2, 3, 5, 7.

    In the pseudocode you can check whether one number is divisible by another number with the comparison "is divisible by". Apply stepwise refinement.

    *

    My answer was this:

    procedure PrimeNumber(list) if the list is empty then report "empty list" else for each number in the list IsPrime ← True divisor ←2 while divisor < the number in the list and IsPrime = true if the remainder of number/ divisor is not 0 then IsPrime ← True else IsPrime ← False end if divisor = divisor +1 end while if IsPrime ← True then print the number end if end for 

    I tested it line by line and I think it worked. However, the instructor commented that "However, your algorithm does not use stepwise refinement."

    I know "stepwise refinement" is to break down the problem to smaller problem or sub-task, then get to solve the entire question. I don't know how to break it down. I am still learning the difference between the recursion and iteration. Maybe I should not use the loops?

    Thank you!

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

    Another Pseudocode Question

    Posted: 11 Dec 2020 10:41 PM PST

    Hi guys, I am doing my homework and I can't get solution in recursion of this question. Please advice.

    * We'll say that a "pair" in a string is two instances of a character separated by a character. So in "AxA" the A's make a pair. Pairs can overlap, so "AxAxA" contains 3 pairs: 2 for A and 1 for x. Write pseudocode that *recursively* computes the number of pairs in the given string.
    Examples:
    "axa" → 1
    "axax" → 2
    "axbx" → 1

    Thanks!

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

    Traversal via Functional Programming

    Posted: 11 Dec 2020 08:08 PM PST

    The question is pretty straight forward. Is recursion the only way to traverse anything? Strictly speaking, can you still iterate via loops and keep functional programming down?

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

    What courses should I take to improve my programming skills?

    Posted: 11 Dec 2020 06:18 PM PST

    Hey everyone! Im an amateur programmer and in my Junior year of university. I am a non-comp sci major, but I want to fill my electives with comp sci and improve my progamming skills. So have the following courses and any input on which course to take will be appreciated:

    1. INTRODUCTION TO COMPUTER ORGANIZATION AND ARCHITECTURE
      1. This course gives an understanding of what a modern computer can do. It covers the internal representation of various data types and focuses on the architectural components of computers (how these components are interconnected and the nature of the information flow between them). Assembly language is used to reinforce these issues.
    2. APPLIED LOGIC FOR COMPUTER SCIENCE
      1. Propositional and predicate logic; representing static and dynamic properties of real-world systems; logic as a tool for representation, reasoning and calculation; logic and programming.
    3. DATA STRUCTURES AND ALGORITHMS
      1. Lists, stacks, queues, priority queues, trees, graphs, and their associated algorithms; file structures; sorting, searching, and hashing techniques; time and space complexity.
    4. SOFTWARE TOOLS AND SYSTEMS PROGRAMMING
      1. An introduction to software tools and systems programming. Topics include: understanding how programs execute (compilation, linking and loading); an introduction to a complex operating system (UNIX); scripting languages; the C programming language; system calls; memory management; libraries; multi-component program organization and builds; version control; debuggers and profilers.
    5. DISCRETE STRUCTURES FOR COMPUTING
      1. This course presents an introduction to the mathematical foundations of computer science, with an emphasis on mathematical reasoning, combinatorial analysis, discrete structures, applications and modeling, and algorithmic thinking. Topics include sets, functions, relations, algorithms, number theory, matrices, mathematical reasoning, counting, graphs and trees.
    6. Computer Science 2212A/B/Y INTRODUCTION TO SOFTWARE ENGINEERING
      1. A team project course that provides practical experience in the software engineering field. Introduction to the structure and unique characteristics of large software systems, and concepts and techniques in the design, management and implementation of large software systems.
    7. DATABASES FOR INFORMATICS AND ANALYTICS
      1. A study of relational databases. Theoretical concepts will be covered, including relational algebra and relational calculus. Commercially available database systems will be used to demonstrate concepts such as Structured-Query-Language (SQL), writing code to connect and query a database, query optimization, Atomicity-Consistency-Isolation-Durability (ACID) concepts, and database design.
    8. ARTIFICIAL INTELLIGENCE FOR INFORMATICS AND ANALYTICS
      1. An introduction to artificial intelligence, focused on its application to informatics and analytics. Topics include knowledge representation; logic and reasoning; searching; inferencing; expert systems.

    Ive made programs such as tracking and alerting me if a space becomes available in a class which is full. I hope to be at a level where I can make a site that people can use and it alerts them. Basically make programs that the public can use via internet. Im not sure what my next steps should be.

    So yeah, Im not sure which ones to take. Any insight will be appreciated!

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

    Experienced Engineer/Architect Seeking Advice

    Posted: 11 Dec 2020 09:05 PM PST

    I just finished reading through the sidebar and FAQ on many different subreddits. Ultimately, I decided I would make a post here to share information about my background and hopefully get help to create a learning plan to get me where I want to be. This is longer than I initially intended, but I wanted to make sure my situation was completely understood. Thank you for reading!

    • I have a ton of experience doing a ton of different IT jobs (Sysadmin, Systems Engineer, DevOps Engineer, Cloud Engineer, Cloud Architect, various security engineer and architect roles, etc.).
    • I have never been a developer, but worked very closely with many different developers (frontend, backend, mobile, etc.) and have even participated in pair programming from time to time.
    • I have some experience with different program languages (c#, python, go, java, and javascript), but I am not fluent in any of those languages. I would not be able to build a complete project in any of those languages (or even using any combination of them together).
    • I love building CICD pipelines with soup to nuts automation for provisioning and configuring anything you could imagine. I can geek out on anything like that forever.
    • My biggest strength and weakness is that I absolutely love everything IT related. It's been great for my career because I am a "generalist" and can get thrown into many different problems to immediately add value. It's been horrible because I wish my knowledge was deeper in different areas.
    • I am a Powershell wizard. I sometimes write scripts to collect data from hundreds of thousands of applications. It's not uncommon for me to generate extremely large datasets. The data is collect ends up being extremely valuable to many different business units and no one else at an extremely large company has anything quite like it.

    I think that my question really comes down to, can someone please help me build a plan to build the skills necessary to be a real developer? In particular, my last bullet point about Powershell and collecting these large datasets...

    Goals

    1. After I collect all of this data, I would love to insert all of the data into a database following best practices.
    2. Build rock solid Web APIs for real developers to get my data through their own services
    3. I'd like build some "templates" that I can reuse over and over for different types of data sets.

    I would sincerely appreciate any thoughts, suggestions, etc. Thank you.

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

    Would it make sense to group similar many to many rows together?

    Posted: 12 Dec 2020 12:29 AM PST

    Confusing title but here's an example : I have a 3 tables a car, features, and a many to many table called car_feature Now, 90% of the cars have like 4 or 5 feature common between them, I've been I have to make a separate table with these group in order to decrease the number of rows. While the moves does decrease the number of rows significantly, its just stupid to do and requires a LOT more implementation, what if the cars stops having these similar features? What if a new car has only 2 or 3 of those features? How do I link them to the the new table. It's just a mess yet I've been it's a lot better to do to improve speed, even though I only have a couple of thousand rows. Very messy, very dirty to implement. What do you think? Is having a cleaner code better than having a slightly fast one? Does it make sense to act on a pattern that almost covers every row seen in a table?

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

    Where shoul I learn DS and algorithms

    Posted: 12 Dec 2020 12:27 AM PST

    So I recently got into C++ programming, I also enrolled for B tech program in IT. I currently can solve most implementation problems, and have a rank of just under 3k on hackerearth, I want to learn DS and algorithms but my college will only teach that in the 2nd semester, which is months away, I wanna learn rn, what are some good sources for me to learn and practice on my own?

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

    CS guide question//What courses would you recommend some interested in algorithms?

    Posted: 11 Dec 2020 08:36 PM PST

    Hi, I'm a almost newby computer science student, and I'm very interested in solving algorithms with code and stuffs like that ( like we do in adventofcode). But as I said, I'm almost newby, and need some sources to learn from.

    My university master isn't really the type to kill himself helping me, so I just don't know what courses to search for in google .

    So, conclusion What source would you recommend to someone interested in knowing algorithms and has still only have learned "Dynamic programming" and "Recursive algorithms" ?

    Thank you all for paying attention.

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

    [C++] Help with static library

    Posted: 12 Dec 2020 12:21 AM PST

    I'm currently working on my first own library. I've created a static library and an exe project that link to that library. Now I'm confused on how I should handle 3rd party libraries. I have a third party library. with a header file and a lib which I'm able to link to my library. This part works fine. The problem comes up when the exe is involved.

    Lets say have a cpp file in my exe that includes a header file in my library. Then that header includes a header inside the 3rd party library. In this scenario my exe in forced to know where I store my 3rd party headers (as a additional include directory). I don't want to have this way right? I guess I don't want to have to tell my exe exactly where each include is?

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

    What should I do

    Posted: 11 Dec 2020 08:34 PM PST

    I've been trying to learn c# and unity for the past few months through coursera and a lot of youtube videos but it feels like I haven't been able to get anywhere. Does anyone have any suggestions for videos or courses that will help?

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

    I just finished Automate the boring stuff with python and udemy's from zero to hero bootcamp where do I go from here?

    Posted: 11 Dec 2020 10:13 AM PST

    Hi guys I'm a begginer in my journey and after finishing these two sources I feel like I have a good understanding of the basics but I wanna expand my knowledge and reach a decent level and I only have about a month to get that level because I'm a master's student in computer engineering and since my bachelor's was from another Field I'm seriously lacking in terms of coding skills and this month is my last chance to catch up or else I will simply get fucked.i would really appreciate your feedback and your guidance

    PS: happy holidays, sending you love from Middle east

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

    I want to follow a track to pursue Machine Learning and Data Science.

    Posted: 12 Dec 2020 12:06 AM PST

    Hi, I am currently doing the Udemy course on Python by Jose Portilla. I want to pursue Data Science and Machine Learning and want to learn online. With so many options available I dont know where to start or what to do. It would really be helpful if someone provided a track to follow, for e.g. first take this course and practice on xyz site and then take abc course.

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

    Question in General about people curious of what’s in a CS degree

    Posted: 11 Dec 2020 11:57 PM PST

    I'm well into my computer science degree and I remember back in high school not really knowing what may come out of it. Ie what we'd do other than programming and stuff. I'm thinking about creating a video to help give insight on my experience and what may be involved in the degree itself. Do you think it's worthwhile and could help people out?

    Ps not sure if this is the right sub to ask this in but thanks guys

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

    Can't get rid of unqualified-id error

    Posted: 11 Dec 2020 11:45 PM PST

    I'm a total newbie in c++, so I got a book and did some exercises but got stuck on this one. It is about macros and the occurrence of MESSAGE should be replaced by the for and account for the parameters passed., but it just gets back some errors.

    #include <iostream>
    #define MESSAGE(c, v)
    for(int i = 1; i < c; ++i) std::cout << v[i] << std::endl;
    int main(int argc, char *argv[])
    {
    MESSAGE(argc, argv);
    std::cout << "invoked with" << argv[0] << std::endl;
    }

    I already fixed some problems myself but i don't know what else i'm missing

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

    For java learn best tutorial need

    Posted: 11 Dec 2020 11:14 PM PST

    Anisul Islam tutorial is best .any other?

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

    SFML HELP WITH SPLASH SCREEN

    Posted: 11 Dec 2020 07:21 PM PST

    In SFML, please help how to control states of the game. My splash screen stuff works, but I'm not sure how to place it into the main game file. I want the player to press enter to get into the game. In order for the splash screen details to be shown, I have to draw it out after EVERYTHING in the main game, but the game is still playing. Below is the code of how my game is laid out. Tell me how I can put in the splash screen into my game.

    Relevant code in the main file:

    int main() { sf::Clock clock; float dt = 0.f; float timer; sf::Clock clock1; srand(time(0)); bool GAME_STARTED = true; sf::RenderWindow window(sf::VideoMode(1920,1080,32),"test"); window.setFramerateLimit(60); SpaceGameNamespace::SpaceGame game; game.start(window); while(window.isOpen()) { sf::Event event; while(window.pollEvent(event)) { if (event.type == sf::Event::Closed) { window.close(); } if(event.Event::KeyPressed && event.key.code == sf::Keyboard::Escape) { window.close(); } game.addEvents(window, event); } //TIMER timer = clock1.getElapsedTime().asSeconds(); game.setTime(timer); dt = clock.restart().asSeconds(); game.Setdt(dt); if(sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)) { GAME_STARTED = false; game.exit(); } window.clear(sf::Color::Black); if(GAME_STARTED) { game.addEvents(window); window.draw(game); } window.display(); } return 0; } 

    Game File that runs everything(only relevant code):

    void SpaceGame::start(sf::RenderWindow& window) { // if(!status) // { // splash.initSplashState(window); // splash.draw(window); // // if(sf::Keyboard::isKeyPressed(sf::Keyboard::Enter)) // this->status = true; // } // else // { //these functions initialize all the interface and variables in the game this->initMusicBackground(); this->initSoundEffects(); this->initPoints(); this->initSpace(); this->initInterface(window); this->initAmmo(); this->initEnemy(); this->initGun(); this->initPlayer(window); this->pauseGame(); this->getScore(); this->scoreUpdate(); //} } void SpaceGame::addEvents(sf::RenderWindow& window) { if(!pause) //continues the game as long as the game is not paused { if(this->player->getHealth() > 0) { this->update(window); } } } void SpaceGame::addEvents(const sf::RenderWindow &window, sf::Event& event) { //pause the game by pressing enter if(event.type == sf::Event::KeyPressed && (event.key.code == sf::Keyboard::P)) { if(this->pause) { pause = false; this->music[mainMusic]->playMusic(); } else { pause = true; this->music[mainMusic]->stopMusic(); } } } void SpaceGame::draw(sf::RenderTarget &window, sf::RenderStates states) const { Draw(window); } void SpaceGame::exit() { } //constructor SpaceGame::SpaceGame() { splash.initSplashState(); image_path = "..\\Space_Fighters/Sprites/game_logo.png"; title = "Space Fighters"; this->dtMultiplier = 62.5f; } 
    submitted by /u/DabbingVoy
    [link] [comments]

    Want to start learning Unity? Get started with my easy to follow micro tutorial series

    Posted: 11 Dec 2020 07:13 PM PST

    I just started this tutorial series for my brothers who are interested in game development, however I got some praise from them and they suggested I share this with others! Check this video if you want a series that will start super simple and build complexity at a followable level https://www.youtube.com/watch?v=BXyWXbTO8l4&feature=youtu.be

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

    No comments:

    Post a Comment