• Breaking News

    Tuesday, November 3, 2020

    I just wanted to let everybody out there that is just starting out know that it is OK!!! learn programming

    I just wanted to let everybody out there that is just starting out know that it is OK!!! learn programming


    I just wanted to let everybody out there that is just starting out know that it is OK!!!

    Posted: 02 Nov 2020 08:52 AM PST

    To fail, to get things wrong, to feel stupid, to feel like you aren't good enough, to feel like you don't belong, to feel like you aren't smart enough, to feel like this career path is beyond you, to feel like you aren't cut out for, to feel intimidated, to feel anxious, to feel uncertain, to feel that others think that you are an imposter, to feel overwhelmed, to feel excited, to feel interested, to feel enticed, to feel judged, to feel naked, to feel criticized, to feel accomplished, to feel like a failure, to feel like you will never understand, to feel like everything makes sense, to feel like you've got this, to feel confident, to feel smart, to feel stupid again, to feel content.........

    It's all part of the process ;)

    submitted by /u/Expensive-Farm-4324
    [link] [comments]

    It took me +100 hours to make these resources, they contain pretty much everything

    Posted: 02 Nov 2020 10:44 AM PST

    Too long don't want to read: Here is the link Resources

    Since Lockdown I started gathering resources for learning various areas of programming like game, web, app development, and even more. This might be a good time to share so: Resources. Hope you find them useful and good, I am intending to make a GitHub for this too sometime soon. Any feedback is appreciated.

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

    I did it, and you can do it too!

    Posted: 02 Nov 2020 10:38 AM PST

    After 8 months of self study, I just got off the phone with a software company that offered me a job (kind of - subcontractor type gig with a view to make me a full time employee in future, performance dependent).

    I remember a few months back - I was getting really discouraged with rejection after rejection - and I saw a post (similar to this one) that lifted my spirits. So I decided to make one myself.

    It's really tough out there to get any kind of job right now, let alone one in which you have no prior knowledge or formal education. Rejections are inevitable, keep making good job applications, build cool stuff and (if you can) network. Opportunity will come eventually.

    This community (and others) really helped me out along the way and I intend to stay active and help others when I can (and I'm sure I have a lot more to learn myself too!).

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

    Pull Request Approved

    Posted: 02 Nov 2020 03:51 PM PST

    Just today, after about a week of review, I had my first pull request approved on Github! This is a huge mile marker for me, and I can hardly contain my excitement. It's hard to think that this all only started for me about a year ago.

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

    How do I write cleaner code?

    Posted: 02 Nov 2020 11:58 PM PST

    Hi everyone, I could become a professional chef with the amount of spaghetti I make. What are some general tips to organize things so they're somewhat legible, and so it's in a somewhat coherent order?

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

    Is there a way to stop bots from using a mobile app?

    Posted: 02 Nov 2020 11:47 PM PST

    Im sure we all see it all the time on instagram or Twitter, fake accounts that just post the same comments or links nonstop.

    Is there really no way to stop them? What do companies do to prevent bots from using the apps? Does forcing users to sign up with phone numbers or 2FA work against bots?

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

    I’ve been learning java for 2 months and I’m impressed with how much I don’t know.

    Posted: 02 Nov 2020 02:22 PM PST

    I've been learning java part time with a bootcamp for 2 months now. I have learned a ton. Methods, classes, maps, collections, lists, arrays, etc.

    I'm very happy with how much I've learned over the last 2 months, but what really impressed me is how much I still have to learn. The depth of programming is crazy and I can't wait to continue this journey! Just thought I'd share my excitement with you guys!

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

    Multiplication of Matrix in shell scripting

    Posted: 02 Nov 2020 11:17 PM PST

    echo "First Matrix"

    echo -n "Enter number of rows :"

    read r1

    echo -n "Enter number of columns :"

    read c1

    echo "Enter elements of first matrix :"

    for((i=1;i<=$r1;i++))

    do

    for((j=1;j<=$c1;j++)) do echo -n "Enter element ($i, $j):" read arr1\[$i$j\] done 

    done

    echo "Second Matrix"

    echo -n "Enter number of rows :"

    read r2

    echo -n "Enter number of columns :"

    read c2

    echo "Enter elements of second matrix :"

    for((i=1;i<=$r2;i++))

    do

    for((j=1;j<=$c2;j++)) do echo -n "Enter element ($i, $j):" read arr2\[$i$j\] done 

    done

    if [ $c1 == $r2 ]

    then :

    for((i=1;i<=$r1;i++)) do for((j=1;j<=$c2;j++)) do mult\[$i$j\]=0 done done for((i=1;i<=$r1;i++)) do for((j=1;j<=$c2;j++)) do for((k=1;k<=c1;k++)) do 

    $(mult[$i$j]) = $(mult[$i$j]) + $("${arr[$i$j]} * ${arr1[$i$j]}")

     done done done echo "Product is :" for((i=1;i<=$r1;i++)) do for((j=1;j<=$c2;j++)) do echo " $mult\[$i$j\]" if \[ j == c2-1 \] then : 

    printf "\n"

     fi done done 

    else :

    echo "Matrix Multiplication is not possible" 

    fi

    This program works fine till the input, but during the multiplication part it shows that mult[11] not found, =: command not found and many more like this

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

    Python is to django as javascript is to....

    Posted: 02 Nov 2020 10:55 PM PST

    As the title states, what is used for the backend typically in web development? Where do you see the future leading to? What about currently? I know ruby on rails is an option but it seems to be dying?

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

    Learning to code. Starting to understand. Advice appreciated.

    Posted: 02 Nov 2020 07:09 PM PST

    Hey, everyone... I have been in and out of programming for the past few years. Finally, I figured out what helped me the most - stop reading articles online about what to learn and how to do 'x'. Rather, I am finding it 'click' more when working on and following things which interest me, rather than following someone else's path. I'm learning JavaScript with working experience in SQL. My last position I worked alongside a software dev who taught me C#.NET ... My current path is: HTML-CSS-Bootstrap 4- javaScript ES6 - DOM - jQuery - Unix Command Line - Node - Express - API - GIT- EJS - MongoDB - Mongoose - deploy web app - build RESTful API - Security - React — I just finished up DOM. I'm looking to program with someone and learn from others and work on projects.

    Any advice or anything would be much appreciated.

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

    Doubts related to basics of java

    Posted: 03 Nov 2020 12:00 AM PST

    I am not new to java its been enough time to know basics of language and i know how to code basic problems but i really wanna know the internal workings of various components in the language. Like why is public class containing main never instantiated??

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

    Multithreading and mutex.

    Posted: 02 Nov 2020 11:57 PM PST

    I am trying to create a simple program, I take a number of threads create them, and print their id, but something ain't right, code below:

     private static void printThreadId(int id, Mutex mutex) { mutex.WaitOne(); Console.WriteLine($"Thread {id}"); mutex.ReleaseMutex(); } static void Main(string[] args) { Mutex mutex = new Mutex(); int n; n = Convert.ToInt32(Console.ReadLine()); Thread[] threads = new Thread[n]; for(int i = 0; i !=n; i++) { threads[i] = new Thread(() => printThreadId(i+1, mutex)); } } 
    submitted by /u/Ammar2301
    [link] [comments]

    Is it true working with ReactJs teaches bad programming practices?

    Posted: 02 Nov 2020 11:55 PM PST

    I read a debate between React and Angular saying that React has poor code structures and weak OOP compared to Angular, and it feels more like PHP, and that learning Angular teaches better OOP principles and good software development practices.

    Would like to hear some thoughts on this.

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

    Can someone tell me the logic to build a real time chat app in Firebase?

    Posted: 02 Nov 2020 11:45 PM PST

    I'm coding a chat app in Flutter and Firebase. What I have done so far is the app will listen for any message using a StreamBuilder from Firestore.

    The problem is I can't figure out how to privately send the messages only to one person. Can someone help me with this?

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

    Approach to doing a live search with dynamic results update (like typing in the google search bar)?

    Posted: 02 Nov 2020 11:28 PM PST

    web dev rookie

    Goal: take user input from web page, send request to web api using python, and load results onto web page. all real time without going to a different page.

    First Implementation of search was to use a form and submit. then load the data to a new page. This worked great since a 1000 line items are being requested.

    • implemented a "<form method="POST" "

    HTML:

     <form method="POST" id="searchbox"> <input name="user_search" id="input" > <br></br> <input type="submit" id="submit" value="Find Playlists"/> </form> 

    flask python:

     @app.route('/') def index(): return render_template("index.html") @app.route('/', methods=['POST']) def index_post(): user_search = request.form['user_search'] playlists = keyWordPlaylist(user_search) playlists_dict = { k[0]: k[1:] for k in playlists } totalPlaylists = len(playlists_dict) return render_template('TheBestOf.html', playlists_dict=playlists_dict,usersearch = user_search, totalPlaylists = totalPlaylists) 

    Next: for the second part of the project, I want to implement a live search with dynamic request to API and dynamic loading of results since only 5 results will be returned.

    Using <input I was able to console log live changes but I don't know how to actually send that to python real time, then make the API request and return results underneath, like searching the google bar.

    saw some stuff using jQuery or Js(never used it)


    What are the steps to achieve this?

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

    My first code

    Posted: 02 Nov 2020 11:22 PM PST

    Hi im new to python please criticize my little game if you have any tips or pointers please let me know im coding on my iPhone because I don't have a computer right now anyways thank you The Code: https://github.com/Clursed/MyFirstGame

    submitted by /u/Clursed--
    [link] [comments]

    Spotify API: Prompt user to login?

    Posted: 02 Nov 2020 11:06 PM PST

    using Spotipy

    To develop the application , I hardcoded my spotify ID into the code. When I'm not logged in, it will automatically take me to the login page for authorization.

    Now, the web app needs to work for anyone's Spotify account. I want to include a button, "Log in with Spotify"

    What would that button link to? I need to get authorization for specific things like create playlists, read users xyz, etc

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

    What am I missing here?

    Posted: 02 Nov 2020 11:04 PM PST

    Objective is to go through list of names and count how many "Bob" their is in the list but my code below keeps giving me 0 as the output...

    https://gist.github.com/abood101/1799174bb3220f715e322070b48c5654

    Am I missing smth?

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

    Has anybody studied MSc Computer Science conversion course in the UK?

    Posted: 02 Nov 2020 10:54 PM PST

    Hi all, I'm considering pursuing MSc CS at University of Kent and would like to get some input from programmers/ CS grads/ alumni.

    A bit of background; I'm a journalism grad from Kent as well and worked as a digital writer and social media analyst. My work experiences eventually helped me realise that I want to do more than just writing and managing social media. I'm very interested to dive into software development so would like to pursue a conversion course since I'm very keen to change career into CS/IT.

    However, I'm a little lost with where to start. I have actually gotten an offer from Kent (it's 1 year + a year in industry) and started learning python on my own but I feel that I'm off to a wrong start. Can anybody advise what I should start learning now to build a strong foundation once I attend uni?

    Also, for those who did a similar conversion course, any advise on planning for your dissertation prior to starting the course? Thanks in advance!

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

    Can someone explain why smart contract is better than regular code?

    Posted: 02 Nov 2020 06:58 PM PST

    I've a programmer myself but I'm new to blockchain/smart contracts.

    I've spent a long time reading about it and I just cannot see the value of smart contract.

    Most papers I've read refer to the example of an insurance company.

    The example goes, if a company has the payout written in smart contract then the insuree will get paid faster and it will be automatic.

    But how? The code will still need to be informed by a third party trigger (plane delays is often the example, weather is another). So that part is not automatic. And in terms of speed, it's just the same speed as a piece of software that the insurance company could've just created and owned.

    The only benefit in this case is that you get transparency as a customer to see the code. But why would a customer care about that? A smart contract is not better than an english contract if you ever wanted to dispute the claim with the insurance company.

    What am I missing?

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

    What to study and from where to study about video/audio codecs.

    Posted: 02 Nov 2020 10:34 PM PST

    i wish to learn about audio, video, images related programming like stuff ffmpeg deals with . Can anyone provide me resources.

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

    Single linked list Can somebody explain to me delete node else part

    Posted: 02 Nov 2020 10:32 PM PST

    Big bad code

    #include<bits/stdc++.h> using std::cout; using std::endl; class Node { public: int key; int data; Node* next; Node() { key = 0; data = 0; next = NULL; } Node(int key, int data) { this->key = key; this->data = data; } }; class SinglyLinkedList { public: Node* head; SinglyLinkedList() { head = NULL; } SinglyLinkedList(Node *n) { head = n; } Node* nodeExists(int k) { Node* temp = NULL; Node* ptr = head; while(ptr->next != NULL) { if(ptr->key == k) { temp = ptr; } ptr = ptr->next; } return temp; } void appendNode(Node *n) { if(nodeExists(n->key)!=NULL) { cout << "Node alreay exists " << endl; } else { if(head == NULL) { head = n; cout << "Node appended " << endl; } else { Node* ptr = head; while(ptr!=NULL) { ptr = ptr->next; } ptr->next = n; cout << "Node appended " << endl; } } } void prependNode(Node *n) { if(nodeExists(n->key)!=NULL) { cout << "Node already exists " << endl; } else { n->next = head; head = n; cout << "Node appended " << endl; } } void insertNodeAfter(Node *n, int k) { Node* ptr = nodeExists(n->key); if(ptr == NULL) { cout << "Node does not exists" << endl; } else { n->next = ptr->next; ptr->next = n; cout << "Node inserted " << endl; } } void deleteNodeByKey(int k) { if(head==NULL) { cout << "List empty " << endl; } else if(head!=NULL) { if(head->key == k) { head = head->next; cout << "Node unlinked with keys value " << k << endl; } } else { Node* temp = NULL; Node* prevptr = head; Node* currentptr = head->next; while(currentptr!=NULL) { if(currentptr->key==k) { temp = currentptr; currentptr=NULL; } else { prevptr = prevptr->next; currentptr = currentptr->next; } } if(temp!=NULL) { prevptr->next=temp->next; cout << "Node Unlinked " << endl; } else { cout << "Node doesn't exist with keys with value " << endl; } } } void updateNodeByKey(int k, int d) { Node* ptr = nodeExists(k); if(ptr!=NULL) { ptr->data=d; } else { cout << "Node does not exist with any key value " << endl; } } void printList() { if(head == NULL) { cout << "No Nodes is Singly Linked List " << endl; } else { Node* temp = head; while(temp!=NULL) { cout << temp->key << " :: " << temp->data << endl; temp = temp->next; } } } }; int main() { // code here // ignore int var; std::cin >> var; return 0; } 
    submitted by /u/Need_job_coder
    [link] [comments]

    No comments:

    Post a Comment