• Breaking News

    Monday, September 28, 2020

    Any programming language Certifications I should know about? learn programming

    Any programming language Certifications I should know about? learn programming


    Any programming language Certifications I should know about?

    Posted: 28 Sep 2020 09:10 AM PDT

    A friend of my uncle is a computer programmer, and I also want to become a programmer. My uncle told me that his friend got certifications for the programming languages he uses. I was wondering where I could find them, if they exist at all. Thank you in advance.

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

    [Data Structure/Algorithm] How would you approach this problem?

    Posted: 28 Sep 2020 09:45 PM PDT

    Hi, I am trying to solve a problem but I am not quite confident how to approach. I will be glad if anyone could give me some insight.

    -------------------------------------------------------------------------------

    My task is to determine if I could seat N guests on a round table based on their likes/dislikes on other guests. There are two requirements for seating arrangement:

    1. All guests should be seated to next to guests they like
    2. All guests should not be seated next to guests they dislike

    Input: likeSet = { guest_id: [list of other guests] }, dislikeSet = { guest_id: [list of other guests] }

    Output: Boolean

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

    Reading > Tutorials (Video)

    Posted: 28 Sep 2020 03:28 PM PDT

    This is something I've noticed recently. I feel that I get more out of reading a quality textbook and taking my own time to go through the material. I respond more to reading "Eloquent JavaScript" and taking my own notes than watching someone else explain it in their own interpretation.

    I think that tutorials are better if used when it comes to building things and following along. But from now on, I think that reading documentation or a quality textbook are better for learning the fundamentals.

    I used the book "Learning Web Design" when I started with HTML & CSS.

    Happy studying everyone!

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

    My mom wants to learn programming

    Posted: 28 Sep 2020 06:42 PM PDT

    Not for any career purposes, but just for fun, apparently. Any recommendations of books or resources I could get her? She's not too tech-savvy, but very smart. Thanks friends!

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

    I am brand new to coding I want to know how it works

    Posted: 28 Sep 2020 08:59 PM PDT

    I'm trying to learn c# first and by brand new I don't even know how to open the coding software almost though I do have visual studios installed I have no idea how coding works and like I said I'm trying to learn c# and I have no idea what's going on no matter how hard I try and what can I even do with coding

    submitted by /u/get-red-bulled
    [link] [comments]

    [C++] Difference between declaring int x = 0 and int x;

    Posted: 28 Sep 2020 08:51 PM PDT

    I was doing some codeforces problems...

    using namespace std; #include <iostream> int main(){ //taking input, no. of rows int n; cin >> n; //all three input COLUMNS (not rows) have to equal 0 //to be in 'equilibrium' int xSum = 0, ySum = 0, zSum = 0; //CORRECT DECLARATION //i < no. of rows for(int i = 0; i < n; i++){ int x, y, z; cin >> x >> y >> z; xSum = xSum + x; ySum = ySum + y; zSum = zSum + z; } if(xSum == 0 && ySum == 0 && zSum == 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } } 

    This solution was correct.

    However, this was incorrect:

    int main(){ //taking input, no. of rows int n; cin >> n; //all three input COLUMNS (not rows) have to equal 0 //to be in 'equilibrium' int xSum, ySum, zSum; //INCORRECT DECLARATION //i < no. of rows for(int i = 0; i < n; i++){ int x, y, z; cin >> x >> y >> z; xSum = xSum + x; ySum = ySum + y; zSum = zSum + z; } if(xSum == 0 && ySum == 0 && zSum == 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } } 

    What is the difference between "int x, y z;" and declaring "int x = 0, etc." ?

    Why was declaring int xSum, ySum, zSum; incorrect and gave me an error?

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

    Advice about Programming from CSE Graduates

    Posted: 28 Sep 2020 10:25 PM PDT

    I am from India and I'm a girl. I just entered Computer Science. And I have no knowledge of Programming. How to start from where to start, what to start. every day I just try reading books and watch a tutorial, and I understand but the time in applying and starting myself with the code only "HELLO WORLD" works.

    If anyone, could help?

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

    I can't put multiples apppenChilds. JavaScript

    Posted: 28 Sep 2020 09:19 PM PDT

    Hello!

    if i do this::

    document.querySelector("#list").appendChild(document.createElement("li"));

    document.querySelector("#list").appendChild(document.createElement("li"));

    two "li" elements are added to "#list";

    but if i do this:

    const $li = document.createElement("li");

    document.querySelector("#list").appendChild($li);

    document.querySelector("#list").appendChild($li);

    only one "li" element are added to "#list".

    what is the error of second way? why can't i do this? :

    const $list = document.queryselector("#list")

    const $li = document.createElement("li");

    for (let i = 0; i< 20; i++){$list.appendChild($li)}

    and add 20 "li" elements to my "#list".

    How can I solve that?

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

    CodeWars - Assembly Language - check list for value

    Posted: 28 Sep 2020 09:08 PM PDT

    I'm doing assembly language problems on CodeWars, a website with practice problems.

    I think I've got this one solved. It's working in my step debugger, SASM. But CodeWars doesn't like it. Any idea what I need to adjust?

    Problem

    https://www.codewars.com/kata/545991b4cbae2a5fda000158/train/nasm

    Create a method that accepts a list and an item, and returns true if the item belongs to the list, otherwise false.

    Solution In C

    To give you an idea what the assembly code will be doing.

    #include <stdbool.h> #include <stddef.h> bool include(const int* arr, size_t size, int item) { int i = 0; loop: if ( i < size ) { if ( arr[i] == item ) { return true; } i++; goto loop; } return false; } 

    Solution In NASM Assembly (Linux x64)

    SECTION .text global include include: ; bool include(const int* arr, size_t size, int item) ; sizeof(int) = 4 bytes (32bit) ; sizeof(size_t) = 8 bytes (64bit) mov ecx, 0 ; unsigned int i = 0; loop1: cmp ecx, esi ; if ( i < size ) { jae skip_loop mov ebx, [edi + 4 * ecx] ; make a temp variable so we can see this in step debugging cmp edx, ebx ; if ( arr[i] == item ) { jne skip_if mov eax, 1 ; return true; ret skip_if: inc ecx ; i++; jmp loop1 skip_loop: mov eax, 0 ; return false; ret 

    Error

    Test Crashed Exit code: 0 Signal code: 11 
    submitted by /u/RedDragonWebDesign
    [link] [comments]

    Bounce between front and back end or focus on one at a time

    Posted: 28 Sep 2020 07:28 AM PDT

    I know personal preference will impact this so I wanted to ask what the full stack programmers do and why they prefer their approach. i bounce between focusing on one side, and bouncing between the two myself. As I gain experience I seem to be heading towards this loosely:

    1. Build the front end in React.js with dummy data
    2. Start writing the Express.js API. Get some initial requests working from any outside services
    3. Bounce between front end and API. And also the database. A lot of alter table statements go on too.

    Without bouncing frequently I tend to detach from the needs of the other end, hence why I believe I do it like this. Context switching slowdowns are real though; it's like losing 20 IQ points for half an hour.

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

    Naruto fan based game

    Posted: 28 Sep 2020 07:48 PM PDT

    To practice. I'm thinking of a Naruto styled game. Where each number on the number pad co-concides with a hand sighn. Which in proper order, and according to your stats. What jutsu you can cast. Further more. The more you practice a skill set, the more proficient you are. Ie fire style, water style, etc. And can unlock stronger jutsus with more use. Cross this with a chrakra system that's not at all stamina, but more like a life force type deal. So as you run out. You can still fight and run, but you'll be more sluggish and less resistant to damage. So you'll be encouraged to put effort into extending the bar or ending the fight quickly. Or decide to use defensive measures like mud wall over trying or woulf it be easier to dodge across the water. Are you fast enough. Etc Also the Elements to actually follow the rock paper scissors outline.

    Thoughts and opinions?

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

    What concepts should I learn as a Blockchain Developer?

    Posted: 28 Sep 2020 11:33 PM PDT

    Hi! I'm going to start working in Oct. 1 and I'm so excited. But the company mainly uses Java and Kotlin. I haven't touched a Java projects for 5 months and I'm currently on reviewing.

    Although the company provides a training, I still want to learn by myself. What concepts should I learn in order to do good in my first ever job? Thank you!

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

    Axios Post Error

    Posted: 28 Sep 2020 11:15 PM PDT

    I started using Axios to connect React with Express. I am currently trying to make a post request from Axios. My code is simply:

    const newTask = { name, desc, date };
    axios.post("/add", { newTask })
    .then(res => console.log(res.data))
    .catch(err => console.log(err));

    However, I keep receiving an error message that says my URL was not found. I have doublechecked for spelling errors and allowed CORS. I also checked that the URL is correct and that my JSON object was created. I was wondering if anybody can help me figure out what is wrong?

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

    Should I learn Swift or Python (given I already know JS)?

    Posted: 28 Sep 2020 11:10 PM PDT

    I mainly do MERN work but want to branch out to other areas. Python seems to be really popular and liked but project-wise, you can pretty much only do ML, data science and backend, and I can already do that in JS and Node. Swift has a smaller community, but IOS Development has a comparatively higher entry barrier and also seems to be a good area. Will one of these choices supplement my current knowledge better, or is there no difference to what I choose? Which combination looks better on a resume?

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

    Deleting elements from a 2D vector.

    Posted: 28 Sep 2020 11:07 PM PDT

    So i have vector<vector<int> > temp;

    Let's say temp holds this currently:

    5 15
    3 11
    2 5
    1 3

    and I want to remove the row containing 3: 11.

    How exactly do I go about that?

    I've tried sorting_list[0].erase(sorting_list[0].begin() + 2);

    thinking that 0 is the column and 2 is the row? so [2][0] but even then that would remove just 3 and not the 11 (if it were to work, which it doesn't).

    I can't find the syntax of how to just remove that row completely.

    I've thought about trying to swap the row I want to the top and then doing a pop() but also couldn't get that to work. I'm not sure how to go about this.

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

    LSP snippets for C

    Posted: 28 Sep 2020 07:14 PM PDT

    Hi all, I recently use vim with clangd as lsp for C coding. Do you guys know where to get some lsp snippets for C? I've searched the Internet and cannot find anything.

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

    Tips to get a job after a coding bootcamp

    Posted: 28 Sep 2020 01:14 PM PDT

    Hey everyone! I teached 100+ people how to code in person and personally coached 10+ of them during interviews and wrote some tips on the approach and mindset you should have to get a job after graduating a coding bootcamp or finishing an online course.

    The reason I wrote this is because many of the students get demotivated pretty quickly when what you actually need is to keep pushing.

    I hope it is useful to you, let me know if you have any questions and I would love to answer them or expand on the topics I mention.

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

    Help with a portable Windows/Linux makefile that suddenly stopped working

    Posted: 28 Sep 2020 10:53 PM PDT

    I'm making a little game in C with a friend. I'm on Linux while he's on Windows. I've been trying to make a makefile that works for both of us automatically, and so far it's been fine. The file worked without a problem. However, he recently got a new laptop since his old one broke.

    Even though they're both windows 10, and both set up with GCC and Make, it refuses to compile on the new one. It errors out by being unable to find animation.c/animation.o, which I believe aren't special, I think it's just the first file it tries to work with.

    I suspect it has something to do with Make working with forward slashes while Windows is expecting back slashes for its file paths, but that doesn't really answer why it would work without issue on one Windows 10 laptop but not another. We tried a lot of combinations of switching out forward slashes for backward slashes, and were able to make some progress, but not enough to get it to compile.

    Any ideas? I suppose it's possible to try out the Linux subsystem thing, but if we could get it working how it used to be, that'd be optimal. I'm not too experienced with GNU Make, so it's entirely possible I'm just missing something simple.

    Here's the makefile in question.

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

    Is it really necessary to know a strongly typed language?

    Posted: 28 Sep 2020 07:07 PM PDT

    Throughout the years I'm using php and Javascript to do most of my coding. Usually I hear that it is a great advantage to know a language like java or c#. Is it really necessary?

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

    What’s the best way to make notes when learning from others’ code?

    Posted: 28 Sep 2020 10:45 PM PDT

    Just add comments in the script? How about saving it as pdf and annotate the code?

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

    I'm looking for 1 or 2 full stack JS accountability/project partners.

    Posted: 28 Sep 2020 10:20 PM PDT

    Hi! I have issues with self-motivation so I am seeking 1 or 2 people to work with on full stack Javascript projects. Letting someone else down is the only thing I can make myself care about. If our first project goes well, we can keep working together until we're employed (if you aren't already). Getting a web dev job is my main goal with this partnership. I would like to a do a basic todo / shopping list app as our first project. I'm open to suggestions after we get that fundamental project built and deployed.

    I am 25 years old, self learning to get a web dev job. My current skill level is: advanced beginner. I've done the programming fundamentals in 5 different languages and traversed the depths of tutorial hell for months, but I haven't actually built anything on my own yet, due to fleeting motivation and shaky self-discipline. I can learn quickly and find solutions independently. I am familiar with most of the fabulous buzzwords everyone throws around, as I enjoy reading about advanced programming architecture more than I do actually programming.

    The stack we will be using to begin with: vanilla CSS, vanilla JS, node JS, postgres + some ORM like Sequelize (I am open to other choices for ORM). We will transition to using bootstrap and/or Material UI, + React.js + Nextj.js later. (after getting good fundamentals down with vanilla CSS/JS. We will use my github account and Heroku to host projects so that job recruiters can see them.

    We will use Discord text chat to communicate and potentially something like Trello to keep responsibilies organized, if necessary. Hell, maybe we will build our own Trello. The sky's the limit. I am often online between 12pm and 4pm, 9pm and 12am EST, but we dont necessarily need to be online at the same time to work together.

    Requirements:

    • must be hungry to learn and improve your full stack Javascript web development skills
    • must commit to at least 2-6 hours per day, 5 days a week, to work on our co-op projects
    • must have built at least 1 full stack app or have the confidence that you could do so right now, by yourself (using google and API docs ofc). You should at the very least understand the fundamentals of HTML, CSS, JS, front and back end web development, and everything I've mentioned in this post.
    • must be mature and a good communicator (speak up when you have something to say, be honest and direct, give constructive criticism)

    If you're interested please DM me and tell me a bit about yourself, what your goals are, and your skill level / development expreience. Include the word potato in the subject line so I know you at least read some of this and are taking it seriously.

    I will edit this post when (if) I've found my partner(s). (:

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

    Tax calculator Python

    Posted: 28 Sep 2020 10:16 PM PDT

    I am trying to create a tax calculator in python. I have attached a picture of my code and it will not output the total taxes correctly and I'm not sure how to calculate the exact percentage either. I'm not sure what I'm doing wrong. Any help is appreciated! *This is according to a 2017 tax bracket.*

    Here's my code:

    print('Please enter the filing status.')

    status = str(input('STATUS>'))

    print('Please enter the income earned.')

    income = int(input('INCOME>'))

    if status == 'single' and income < 9326:

    tax = income * .1

    percent = '10%'

    elif income > 9326 and income < 37950:

    income = income - 9326

    tax = income * .15

    taxes = tax + 932.5

    percent = '15%'

    elif income > 37951 and income < 91900:

    income = income - 37950

    tax = income * .25

    taxes = tax + 4293.75

    percent = '25%'

    elif income > 91901 and income < 191650:

    income = income - 91901

    tax = income * .28

    taxes = tax + 13487.25

    percent = '28%'

    elif income > 191651 and income < 416900:

    income = income - 191651

    tax = income * .33

    taxes = tax + 27929.72

    percent = '33%'

    elif income >416901 and income < 418400:

    income = income - 416901

    tax = income * .35

    taxes = tax + 74332.17

    percent = '35%'

    else:

    income = income - 418400

    tax = income * .396

    taxes = tax + 524,65

    percent = '39.6%'

    if status == 'joint' and income < 18651:

    tax = income *.1

    percent = '10%'

    elif income > 18651 and income < 75900:

    income = income - 18651

    tax = income * .15

    taxes = tax + 1865

    percent = '15%'

    elif income > 75901 and income < 153100:

    income = income - 75900

    tax = income * .25

    taxes = tax + 8587.35

    percent = '25%'

    elif income > 153101 and income < 233350:

    income = income - 153100

    tax = income * .28

    taxes = tax + 13487.25

    percent = '28%'

    elif income > 233351 and income < 416900:

    income = income - 233350

    tax = income *.33

    taxes = tax + 22469.72

    percent = '33%'

    elif income > 416901 and income < 470700:

    income = income - 416901

    tax = income * .35

    taxes = tax + 60571.17

    percent = '38%'

    else:

    income = income - 470700

    tax = income *.396

    taxes = tax + 18829.65

    percent = '39.6%'

    taxes = round(taxes)

    print('The tax owed by this person is ' , taxes)

    print('OUTPUT>' , taxes)

    print('The percent of income paid in taxes is ' , percent)

    print('OUTPUT>' , percent)

    submitted by /u/Formal-Cockroach420
    [link] [comments]

    Python projects for beginners and intermediate developers

    Posted: 28 Sep 2020 10:10 PM PDT

    Hi guys i recently created a python tutorial series to help beginners and intermediate developer with simple projects which can be used to improve coding skills. The first tutorial is on creating a simple CLI game of rock, paper, scissors using python. if you're interested you can check the tutorial here https://www.youtube.com/watch?v=zXUGDAPgbkg or you can read the article here http://www.cnerdprogramming.tech/Python/Python_projects_for_learners/Game_of_rock_paper_scissors tell me what you think

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

    [JavaScript] How do I make this search function works on mobile device?

    Posted: 28 Sep 2020 10:04 PM PDT

    I have different decks of flashcards that I want to perform search on based on their names. The current function I'm using is:

    /** * Filter out decks based on search query. * * @param {Array.<Node>} decks * @param {HTMLElement} searchbar */ const searchDecks = (decks, searchbar) => { searchbar.addeventListener('keyup', (e) => { let query = e.target.value; // Hide all decks on keypress decks.forEach(deck => { // hide class is just display: none deck.classList.add('hide'); }); // Remove hidden decks matching search query decks.filter(deck => { if (deck.textContent.toLowerCase().includes(query)) { deck.classList.remove('hide'); } }); }); } 

    This works on my desktop but when I try to use the site on my phone, it doesn't work. What can I change so it works on mobile?

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

    No comments:

    Post a Comment