• Breaking News

    Thursday, November 25, 2021

    [Meta] There is a lot of blind leading the blind here. Be skeptical of answers here sometimes and do your due diligence. learn programming

    [Meta] There is a lot of blind leading the blind here. Be skeptical of answers here sometimes and do your due diligence. learn programming


    [Meta] There is a lot of blind leading the blind here. Be skeptical of answers here sometimes and do your due diligence.

    Posted: 25 Nov 2021 11:52 AM PST

    First and foremost, I just want to say that this is an indispensable resource for many — me included. There is a wealth of information and I've secured amazing internships and have learned so much through because of this community. However, I see many questions with answers that are just flat out wrong. Typically, these wrong answers are downvoted, but I've seen some bad top voted answers that are on popular posts. And it seems like it's more frequent now a days.

    For example, I saw a question that was asked what math do I need to know for Introduction to Algorithms by CLRS. This person stated that he had a weak background and wanted to do ensure he had the proper math background before he read it. The top comment was a list that extremely wrong and very misleading. It wanted OP to learn calculus before basic trigonometry and had linear algebra before algebra 1. It was very absurd, but stated so matter of fact AND was the top comment. OP and other commenters were thanking this comment and it was painful.

    That's just one example, but when directing someone's future and studies, there should be a certain amount of responsibility when answering questions. I don't know how to solve this problem. Perhaps having a flair that specifies the ethos of the person responding. And if you are not sure or if it's an opinion, preface your answer with that.

    Take answers with a grain of salt and do your due diligence.

    submitted by /u/Stock-Flatworm-364
    [link] [comments]

    Almost every code that I see lately uses pointers and it's getting frustrating. I don't get why are they used in particular coding examples.

    Posted: 25 Nov 2021 04:45 AM PST

    Hey all, I have started learning C language and it's been difficult for me lately because of pointers. I am coming from Python background (which might explain a lot, given the memory allocation is not that huge of a deal there from my experience). I have been mostly analysing biological data and creating some short scripts in the past, but now when I have to learn C, it's been rather troublesome for me.

    I just can't understand pointers. I do know the definition, can probably explain what they symbolise theoretically using linked lists and have read many understandable analogies why to use them (such as referencing/passing a portion of huge data over working with the big files; building a house instead of showing just the blueprints analogy etc.)

    What is difficult for me is not the big picture view but rather the "Why do I use pointers here in this particular code" or "Why does this need pointers/references as arguments over the regular variables" etc.

    For example - I have been working with typedef constructions and strcpy() function lately, they both are using pointers as arguments under certain conditions but I just can't tell why, can't make a connection to the analogies above. Why do we use a pointer to char when we need to copy the whole char in some examples? Why is char sometimes written as a pointer to it in the type definition?

    Another example is swap function that I can define in my programs. I know that there needs to be a pointer used in the swapping and references in the arguments but what I don't get is that if we don't use a function for it and write it via some "temp" variable into the driver code, we don't use the "*" symbol. That doesn't really click.

    I might be missing some very valuable information about the data types, memory or the computers themselves, or else idk but I am slowly becoming desperate and feeling tired of the "it's just storing an adress to another variable, it's very easy and I don't get what you don't get about it" explanations.

    Everyone around me keeps talking about them, how useful they are and as they were just obvious to understand in these examples but I feel like I don't seem to get them at all probably, if I can't and don't want to use them. I know that they are very important though and occur very regularly in codes I see, so I try very hard to make myself understand them.

    Could anyone please give me any short or understandable reason why are the pointers used in "shorter" codes/constructions such as those that I mentioned? Or some other basic explanation of them/computer memory/references that could help me grasp this topic?

    Thanks in instance for reading my post and your time! Have a great day.

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

    First job and I feel like a fraud

    Posted: 25 Nov 2021 03:18 PM PST

    So I came out of a bootcamp, and somehow I got a job with an consultant company and tbh I never felt like a quick learner, it takes me some time to grasp some subjects and recently I got a shortcoming and I fear this is going to be forever, want to know how to grow as a programmer, my boss is aware I'm new, but seems like they want me to learn fast and throw me into the project right away and there's a dude who's 9 years of experience and when I see his code I just get horrified at how I wound't be able to pull up logic like that(he did my story because I was unable to come up with the solution I'm honestly feeling useless).

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

    Where can I learn more about OS?

    Posted: 25 Nov 2021 08:15 PM PST

    I was born and raised with Windows PC. I never owned a Macbook. I don't know the difference between consoles in PC or in Mac or in Linux. I don't even know the difference between MS DOS and MS PC. When someone says Macbooks and Linux are kernel-based, it means nothing to me. Because I don't know what a kernel is. I don't know what GCC's are. I don't know why you can include certain header files (in c/c++) only in unix and not in windows (codeblocks). I don't know why you can just sudo apt install in unix when in windows you have to go to a browser and download the thing you want to install. I am so used with GUI that using bash or any console mystify me. My mind is all over the place because I don't know where to start. I want to be able to answer these questions by myself

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

    Are there any books, podcasts, YouTube channels anyone would recommend?

    Posted: 25 Nov 2021 02:50 PM PST

    For when I'm not actively learning to program, I'm looking for content I can passively consume that will help me in my journey. I've been learning to program since September in C (my first language), and I'm still a novice in a lot of regards. If anyone has any resources they recommend, I would appreciate it.

    Thanks!

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

    How would you feel knowing that a person who is teaching you to code is a self taught developer with only ~1.5 years of official working experience? Would you trust such lecturer?

    Posted: 25 Nov 2021 10:31 AM PST

    I've got an offer to become a lecturer at a coding school. I would teach very basics and fundamentals of html, css and js.

    When I started my learning to code journey, I've created an Instagram account (@berta.codes), where I shared my experience and adventures while learning, tech tips and everything what was related to front-end development and career change.

    Today I have a 60k Global community, where I try to help people to get into software development world and I'm working as a software engineer (focused on front-end development).

    Could I teach? Yes. My main concern is, would people see an authority in me. Would you?

    Please, share any thoughts! Thank you

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

    Going into CS with a traditional (Non-CS) engineering degree?

    Posted: 25 Nov 2021 07:30 PM PST

    If someone has a more traditional engineering degree like civil, mechanical, chemical, etc, how does that play into the job searching process? How much of a downgrade do I have compared to CS majors? Would extra schooling like a masters be recommended? Personally, I have a civil engineering degree and thinking about just self studying since I have taken higher tier math courses and have a little programming experience from college. But I do wanna know if this is the most effective and beneficial route to go through.

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

    Why does the file containing 1 word consume 2 bytes?

    Posted: 25 Nov 2021 07:30 PM PST

    I created the text file which contains only one ASCII word "a", which size is supposed to be 1byte using Vim but `ls -l` shows it consumes 2 bytes on my mac.

    Is there any factor that takes the storage other than a word?

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

    Small firm asked me to build them an App and website.

    Posted: 25 Nov 2021 10:59 PM PST

    I been studying CS for almost year and a half, i know good knowledge of Java. i made a post asking for job offers. i got contacted by a firm, i believe its a small firm that asked me to build them an app if i could. i explained that i'm not experienced but i can give it the time to learn the things i need and build them an app and website. they asked me for the price cost, here where i stuck, i have no idea what the price cost is. i'm not sure how to approach this. can someone give me an advice please?

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

    Open App Academy: Skip to SQL?

    Posted: 25 Nov 2021 10:55 PM PST

    Maybe a dumb question but I'm making my way through Open App Academy. Currently at the Software Engineering Foundations portion. Can I skip ahead to the SQL section or does it build on the previous sections? I plan to go through everything eventually but SQL is more relevant to my immediate interests.

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

    Would unreal C++ be a bad first language to learn?

    Posted: 25 Nov 2021 07:12 PM PST

    I've been developing games using Unreal Engine 4 blueprint scripting exclusively over the past few years and I want to learn a language and best practices. I've had my eyes on c++ but apparently the version of c++ unreal uses is slightly different. Would it be a bad idea to start with Unreal C++ or should I learn regular c++ to start? Thanks in advance!

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

    Spotify API Authentication

    Posted: 25 Nov 2021 08:33 PM PST

    I'm working on a spotify integrated application that aggregates data based on my music tastes. I want to be able to run this on a Raspberry Pi and I'm confused how to setup the authentication flow. I know with the Authentication Code flow I only need to authenticate once but when testing it out, I realized I need to able to sign in on a browser. I can't really do this on my raspberry pi. Is there a way to spin up the Flask application and have a separate web server interact with it? I'm just not too sure how the architecture diagram is supposed to look for something like this.

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

    How to get informative data about the smart contract with using API in R Studio

    Posted: 25 Nov 2021 08:20 PM PST

    I want to get informative data about the contract with using API.

    I found hash address with using Etherscan. I copied the contract to the R. But I don't know how to get informative data (such as balance, token info etc.)

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

    How do engineers make use of libraries on github that aren't well documented on YouTube and blogs?

    Posted: 25 Nov 2021 05:27 AM PST

    My condition

    I have very little knowledge of javascript

    Even if I read the readme of the library, I don't feel like I can use the library, probably because I don't have much knowledge yet.

    so I ask this question.

    Question

    1 . How do engineers make use of libraries on github that aren't well documented on YouTube and blogs?

    2 . How would you know how to use this library?

    https://github.com/jhlywa/chess.js

    Thing I only could is download this library

    I have no idea how to use this library

    There is an explanation, so if you are a wise programmer, maybe you will understand,

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

    Laptop Suggestions for "Full-stack developer" and "Data Science". Budget within 45K INR or Indian Rupees.

    Posted: 25 Nov 2021 11:39 PM PST

    Hi guys, I'm new to IT, so looking to purchase new laptop in india. For programming specifically for "Full-stack developer" and "Data Science". My Budget is below 45K INR or Indian Rupees

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

    Best data structure for finding words that have a specific substring in them

    Posted: 25 Nov 2021 01:02 PM PST

    I'm currently making a program that can essentially win the jklm[dot]com's bomb party easily, but with one added condition: I want to type the longest word possible (just to flex).

    The game is that you're given a string of preset length, let's call it g, and you have to find a string that contains g as a substring, but is not g.

    Right now, I'm using two tries, one of about 1000 of the longest strings and one of around 20,000 words just taken at random from an online dictionary, minus the 1000 in first trie.

    The way I'm using the tries is, if the substring g I'm given is "ere", my program will look through the first trie and find all strings that contain "ere". Finding the longest one requires me to look through the entire trie, which doesn't scale well which is why, if the program doesn't find it in the longest strings trie, then it looks in the other trie and just gives me the first one it finds. (I have to find the string and type it in 5 or so seconds.)

    A friend suggested, since I know the substring length (in the game setting), I could just pre-compute a list for each of the 26**(substring_length) possibilities, but I think that's impractical..

    Is there a better data structure than tries for this? I don't mind using more memory; I just want more speed at a reasonable memory cost. This would allow me to expand my dictionary to maybe contain all 100,000 some words that are in modern day english.

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

    I've been granted an "R&D budget" from work; looking for recommendations on paid learning resources.

    Posted: 25 Nov 2021 05:34 PM PST

    Hello everyone.

    I was recently granted an "R&D" budget at work (essentially just a self-learning budget). Looking for recommendations for books, courses, or even upcoming conference tickets to improve my knowledge of: general programming, stats, algorithms (namely scheduling and graph problems), and data analysis, and GIS.

    For more context, I work as a data analyst in the public transportation sector. I would consider myself an intermediate programmer using Python, VBA, and SQL. The data I work with involves geospatial data, but I also make reports for scheduling, HR (absenteeism), and payroll - so it's not all GIS, as my title and job description usually make it sound.

    I have no formal education with programming or analysis, so even resources that might be considered beginner or foundational would certainly be of value.

    Thank you for your time.

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

    How to change results in second page by clicking on a image in first page?

    Posted: 25 Nov 2021 11:29 PM PST

    I want to show product details in an e commerce website. when I click on a product it should go to second page which is details page, in that I want to show details of that particular product clicked. It should work for all products in the first page. Please help me.

    --Page 1 Html--

    <div class="cont"> <a href="page2.html" onclick="proGallery(this)"><img src="product-gallery/a.jpeg"></a> <a href="page2.html" onclick="proGallery(this)"><img src="product-gallery/f.jpeg"></a> </div> 

    --Page2 Html--

    <section> <div class="wrapper"> <div class="product-images"> <img> <img> <img> <img> <img> </div> <div class="result" ><img></div> </div> </section> 

    Javascript

    function proGallery(x){ let imageSrc=x.getAttribute("src"); let pics=document.querySelectorAll(".product-images img"); if(imageSrc=="product-gallery/a.jpeg"){ open("page2.html"); pics[0].src="product-gallery/a.jpeg"; pics[1].src="product-gallery/b.jpeg"; pics[2].src="product-gallery/c.jpeg"; pics[3].src="product-gallery/d.jpeg"; pics[4].src="product-gallery/e.jpeg"; } if(imageSrc=="product-gallery/b.jpeg"){ open("page2.html"); pics[0].src="product-gallery/f.jpeg"; pics[1].src="product-gallery/g.jpeg"; pics[2].src="product-gallery/h.jpeg"; pics[3].src="product-gallery/i.jpeg"; pics[4].src="product-gallery/j.jpeg"; } } 
    submitted by /u/AdvanceOne8040
    [link] [comments]

    Resources for learning ASP.NET

    Posted: 25 Nov 2021 11:28 PM PST

    I have already some familiarity with C# and watched this video from FreeCodeCamp that was released literally three days ago, but i want to take some tutorials or whatever to learn more before I start programming any of my projects.

    I found some articles on google but they don't have a release date, I don't want to follow an outdated tutorial unless ASP.NET hasn't updated what is probably wrong.

    Free stuff is more appreciated but if one not exists a paid solution is better than nothing. Thanks in advance!

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

    What would you call the "agreement" between frontend devs and backend devs regarding the format of requests and responses to expect?

    Posted: 25 Nov 2021 07:30 PM PST

    So I assume when working on large projects, where there are dedicated frontend and backend developers, there needs to be some discussion about what the frontend people code their stuff to expect, and what the backend people code their stuff to expect, so the two pieces can fit together like a puzzle.

    What would you call this "agreement"? Like if Bob the backend guy said "ok, the backend will expect a request asking for a color by name, such as orange, and will return a response containing the RGB values of that color", then Frank the frontend guy can make a frontend that makes a request by sending the name of a color, then can expect to receive RGB values as a response. What is this called?

    Is this just an API? Based off the name "application programming interface" (and having learned that "interface" can often mean "contract", thanks Java) this seems to make sense. But at the same time, the term API often seems to be used in a way that describes actual programs, not just the contract between the frontend and backend, you know?

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

    Im one of those mainstream self learning web dev

    Posted: 25 Nov 2021 03:43 PM PST

    Sorry long post.. Hi Sir/Mam for 3 months averaging 5 to 8 hours a day.. Sunday rest.. Im studying non-stop about front end dev. First I was studying python and I got bored easily. So I studied html css js since then. I made some basic js apps like note taker.. expense tracker and many others basic js apps.. while asking in stackover flow. Made some complete business website design.. playing with web public apis.. I think my CSS is so so(gonna focus on that soon but i feel js is priority) and my JS is okayish.. my code is like spaghetti code and some are repetitive(sometimes im laughing to myself on how stupid my code looks like compare to what i've seen in youtube vids) but it works im kinda fine with it.

    My question is learning vanilla javascript is enough for junior dev? I haven't touch react yet. For what I read we should get used to vanila js before react. Github? do i need to transfer all my finished projects on that? i just saved all of them in my vscode.

    for personal question:

    Is it too late to change career? im 31 btw. Im tired of being in a sales/marketing job. But im seeing i can combine my experiences to web dev job.

    what im currently at: html-css-js-boostrap

    and wordpress for other tool(in case i dive into freelancing)

    Im currently making a legit website to my friend's dad for his business.

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

    Java Android Development, Adding TextView values in each RecylerView item

    Posted: 25 Nov 2021 11:08 PM PST

    I am new to android development in general and I seem to be getting a problem when adding the TextViews inside a RecyclerView. For context I am making a program that adds the Total Amount of money that a customer is due to pay and display the sum in a separate TextView. I am saving and reading these data from a firebase realtime database. So for example I currently have 17 customer entries in my firebase db they all have a field name of "Total Amount". Now I put these values inside a RecyclerView so that I can view them easily but I also want to know the total sum of the "Total Amount", like computing the sales.

    My problem is that I cannot figure out how to correctly program the adding part, instead of adding it only calls the "Total Amount" value of the 3rd Item in the recyclerview and nothing else. I even tried testing if it can call the very last value (no arithmentics, just calling the specific value) but it doesnt show it. I am very lost here and I also cannot provide any error messages as there are none.

    Here is the code: https://pastebin.com/PTkv4DbF i put it on pastebin so it looks neat.

    Here are also screenshots some screenshots for some more context:

    Here are the specific TextViews I want to get the total sum of: https://imgur.com/a/jMNe6dY

    And this is the result I am getting: https://imgur.com/a/dTE5T8N

    As I have said I am quite lost here, and I would be very grateful if you can please help me.

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

    What's a good program or language to do analysis of cryptocurrency

    Posted: 25 Nov 2021 07:21 PM PST

    My goal is to take large amounts of data on most cryptocurrencies market cap, trade volume, etc, and do analysis. I want to find relationships and patterns In general, and was hoping someone with some programming know how, could tell me how I might go about this. I've considered using Excel, although in the process of planning it appears cumbersome, and there might be too much data for it too be usable. Any help would be appreciated.

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

    Which course should I buy on Udemy to learn about Web Development?

    Posted: 25 Nov 2021 10:49 PM PST

    Guys, sorry if this seems like a stupid question but I thought I should ask it here before investing what little money I've left this month. My budget is pretty tight. and Black Friday sale is now live on Udemy. I want to learn about Full Stack Web Development, but mainly front-end development. I know a little bit of JS, CSS and HTML. Which course(s) do you think I should buy? Thank you in advance.

    P.S. - The sale is ending in 11 hours.

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

    No comments:

    Post a Comment