• Breaking News

    Saturday, October 31, 2020

    What have you been working on recently? [October 31, 2020] learn programming

    What have you been working on recently? [October 31, 2020] learn programming


    What have you been working on recently? [October 31, 2020]

    Posted: 31 Oct 2020 09:04 AM PDT

    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]

    How exactly do programmers know how to code?

    Posted: 31 Oct 2020 10:29 AM PDT

    Let me elaborate, I can go on stack Overflow and search up my problems on there, but how do the people who answer know the answer? Like I'm assuming they got it from their teachers and or other resources. So now the question is how did those teachers/resources know how to do it? Is there like a whole code book that explains each and every method or operator in that specific coding language? I'm guessing the creators of the language had rules and example on how it all works, right? This probably seems like a dumb question but I'm still new to programming.

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

    Offering programming and CS classes

    Posted: 31 Oct 2020 08:39 PM PDT

    Hi everyone. I'm a Ph.D. in CS, living in Toronto for one year; I came from Brazil to do a postdoc here. However, due to pandemics, I have worked from home, and it has been not easy to chat with new people and improve my English. So I thought that an excellent way to improve my conversation skills would be teaching someone else what I know (programming) in exchange for learning English. A win-win trade ;-)

    Said that, if you are a native English speaker and would like to learn how to program or any other subject in CS, feel free to reach me out. We can set a schedule and make this work. My research field is distributed systems, optimization, and software engineering, and I'm fluent in C, Java, Groovy, and Python.

    Y'all don't get me wrong, I know english fair enough, I wanna make my conversation sounds smother and native like.

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

    I created a mobile game to help people get into coding

    Posted: 31 Oct 2020 12:17 PM PDT

    I remember that back when I was in high school I played a similar game on the web and that's what really sparked my interest in learning to become a programmer.

    Life went on and I did manage to become a software developer, but every once in a while I'd remember that game that started it all, and 2.5 years ago I made the decision to create a similar game in my spare time.

    The game's available on Android and iOS, any feedback would be much appreciated. https://www.algorungame.com

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

    Taking an online course for python and im the middle of it and starting to realize i still wouldn't know how to actually create a program of any sort and i honestly feel stupid

    Posted: 31 Oct 2020 06:56 PM PDT

    Should i just give up? Not asking for a pick me up answer being completely serious starting to think im just not smart enough

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

    Vscode doubt.. please help ��

    Posted: 31 Oct 2020 08:37 PM PDT

    I am not even able to get an output for simple hello world program in c++, it says "exited with code = 1". What's the problem and what can I do please help 🙏

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

    Java Developers: Why would you recommend Java to someone? Why wouldn't you?

    Posted: 31 Oct 2020 05:37 PM PDT

    I'm trying to learn a language outside of Python, which I've narrowed down to Java at the moment. The main reasons why I picked Java was because of it's cross-compatibility and GUI support. I'm just starting CodeWithMosh's Java courses and they are solid so far, but before I get too far I just want to know the pros and cons...

    So before I get into the deep end of Java, what do you think someone should know about the language and why would you or would you not recommend it to someone? Is there good reasons to use alternatives, or is Java still relevant for today's standards?

    If you absolutely love or hate Java, please tell me why, because lately I've just seen comments like jAvA iS sLoW aNd HaS sEcUrItY iSsUeS! But then I see comments from Java developers on Reddit that it's solid with the latest releases, so please just explain why you like or don't like it.

    PS: This isn't meant to make me change my mind, but rather make me understand what I have ahead of myself.

    EDIT: I appreciate all the responses so far! Just to be clear though, I'm not asking to convince me to not learn Java since I've already started (and don't plan on stopping), I'm just asking for an honest opinion from those who use Java regularly and what challenges you have faced along the way.

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

    Intuitive thinking

    Posted: 31 Oct 2020 11:25 PM PDT

    In a CS assignment we had to implement kruskals algorithm to a connected graph as well as place n temp nodes. Each temp node should cover its own cluster...

    We were never taught this concept of clustering in class and I found myself trying to find resources online but essentially drowning in all the information.

    Is this something that should have been intuitive or should there have been some level of explanation behind it maybe?

    I can explain more depth of the question if need be. I may have explained it abit bad 😅

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

    How did 8-bit computers did floats?

    Posted: 31 Oct 2020 10:48 PM PDT

    I'm learning 6502 Assembly and I can't understand how these computers could hold floats. I know FPUs were available, and these days most microprocessors have a built-in FPU, and if you wanna go further, you can use the GPU which is a giant FPU by itself, like people do with Tensorflow in DNNs... Ok enough with this tangent. My real question is, imagine in a game, I want X to increase by 0.1 portions. How is that possible in Assembly? especially 8-bit assembly? How can I use Hexadecimal numbers to represent floating point integers? It was even before IEEE standardized floats. i can't imagine how it's possible to do so. I'm running my codes on a C64 emulator.

    So let's see. I'm a very shitty programmer who's dropped out of college. I'm not brilliant like those people who launched an Apollo into the moon with Assembly. Please tell me how I can do floats in an 8bit CPU? Or at least, give me an emulator with a virtual FPU. I'm using vice.

    Thanks!

    PS: It would be great if you could explain it to me with BASIC peek and poke. Thanks.

    submitted by /u/nest-ce-pas-mon-ami
    [link] [comments]

    Computational Sustainability

    Posted: 31 Oct 2020 10:12 PM PDT

    Does someone know what are the prerequisites for learning computational sustainability? Would you essentially recommend learning computational sustainability to high school students ? ** I know computational sustainability isn't essentially programming but idk where to post this

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

    Help with a question about Copy constructors

    Posted: 31 Oct 2020 10:07 PM PDT

    Person q("Mickey"); Person r(p); Person p = q; p = q;

    For what lines above is a copy constructor invoked? A.2 B.3 C.2,3 D.2,3,4

    I personally believe that the first line is not. The second line is POSSIBLE (but I don't know wtf p is... it could be anything). The third line IS a copy constructor and the last line is an assignment.

    So, I believe it could be either B or C depending on what p in the second line is? All these are executed sequentially

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

    Is it possible to see the white Index /of page with the list of files on any website?

    Posted: 31 Oct 2020 03:42 PM PDT

    I am relatively new to web stuff and I have been trying to figure this out, more of a shower thought type of thing then something I need to know right now. I notice that certain websites will display the Index of/ page that is just white with a list of links or files.

    Searching around has revealed to me (and correct me if I'mthan wrong) that this is caused by not having an index.htm or index.php. But what I'm wondering is, can someone "hack" my website in some way to see a list of all of my files(ie: see the index of/ page) in the event that I do indeed have an index.html page. Or does simply having the index page block this out? Also, is this only on apache servers and not an issue with something like say laravel or Django?

    The main reason I'm asking is that I am trying to understand how one would distribute paid content, such as through a paywall or walled garden.

    Here is an example of the Index of/ page that I'm referring to.

    http://www.gutenberg.org/files/59406/

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

    Formally trained vs Self-taught

    Posted: 31 Oct 2020 11:42 AM PDT

    I am a self-taught application programmer with 10 years of on the job experience. Sometimes I wonder if I should go back to school and take programming classes. What concepts have I likely not learned because I didn't take formal classes for programming?

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

    Playbackrate of null? : Can't figure out what this html/js error .

    Posted: 31 Oct 2020 09:12 PM PDT

    SOLVED : preinstalled chrome extension (video playback speed)


    All i'm trying to do is get the input of the textbox into a variable. not sure why i'm getting the error:

    ERROR: "Uncaught TypeError: Cannot read property 'playbackRate' of null"

    Some forums say the code might be running before the DOM is ready. How does this even happen, especially in this code?


    https://pastebin.com/2Xiihzex

    Flask python code:https://pastebin.com/MUmfzwc2


    I tried adding:

     document.addEventListener("DOMContentLoaded", function(event) { 

    at the start of the script block. it still happens but if I type characters fast enough, i can get it to print but no clue what is happening. Pic of DOM: https://imgur.com/a/HnrMADk

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

    Better understanding in implementing logic and effective code writing

    Posted: 31 Oct 2020 08:42 PM PDT

    Hey Fellas, I have been learning to code since few months and have started to practice my understanding in codewars and leetcode as many of you would have done. I am not from a CS grad, and not much of jack of all trade which makes me to feel I am lagging behind much of the CS crowd out there I wanted insights on how you people have overcome the 2 things 1. How to have approach which idea to chose for a particular problem solving. I am aware algorithms and data structures are there for these, but I want insights from you experiencing and experienced guys to give how to learn and understand these implementations alongside while I code to do some minor projects. 2. There are number of ways one can provide solution to a problem and that can be implemented as code, but there are some code implementation which are runtime effective, I mean they take lesser time to execute as well lesser memory consumed while running. Thank you in advance for all the best inputs.

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

    Is is possible do this in react native?

    Posted: 31 Oct 2020 08:41 PM PDT

    Hey guys i am full stack javascript web developer. I haven't looked into react native. I need one project to be done. The project is a mobile app which is launcher for different mobile games. So user downloads the game within the app from library of games available inside the app, then after download finishes the user play the game from the app. Can this be done? Can i run .exe within react native? Please let me know

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

    Function prototype in C++ (Question about whether I'm right)

    Posted: 31 Oct 2020 08:22 PM PDT

    Hey all!

    I disagree with my professor about following:

    > function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer

    I say it is

    int ** function(float * myFloat, char ** myChar)

    he says Im incorrect. I know it's no good to argue but am I correct?

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

    Survey to research how coders learn through collaboration

    Posted: 31 Oct 2020 08:02 PM PDT

    Hello everyone,

    My team is researching the best methods to learn peer programming in Visual Studio Code.

    Please fill out this survey: https://forms.gle/9v6KvbkotGDHGTEN6

    Thank you.

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

    Flask argument issue

    Posted: 31 Oct 2020 06:26 PM PDT

    there is this really annoying problem in my flask code

    I visit the flask server (localhost:5000/arg1/arg2/arg3) and i want a <p> tag in the HTML template i told the program to render to say the 3rd argument in the URL (in this case, arg3) but every time, it just says the whole URL

    here is the code: @app.route('/<arg1>/<arg2>/<arg3>') def foo(arg1, arg2, arg3): return render_template('html.html', thirdarg=arg3)

    I then tried putting this in the HTML template, but it still didnt work <p>{{ thirdarg.split('/')[3] }}</p>

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

    How to make "graphics" in terminal

    Posted: 31 Oct 2020 06:23 PM PDT

    Does anyone have any documentation or something as to how I'd go about putting up what I wanted on the terminal, I'm primarily concerned with ASCII. I want to work in C primarily, but C++ is also acceptable.

    EDIT: Completely forgot to put in a programming language, my bad.

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

    Design question

    Posted: 31 Oct 2020 05:22 PM PDT

    We all know that matrices can be represented by a single vector with a dimension parameters, like so.

    struct Matrix<T>{ elements: Vec<T>, dimen: (u32,u32), //row_ln, col_ln } 

    So my question is do you think I should write a different MPZ class or just use the same struct and implement an mpz_add method?

    Here MPZ refers to multiprecision integers {Z}. Shown like so

    struct MPZ{ num: Vec<u64>, sign: bool, //or dimen({1,0},vec.len()) } 

    or alternately

    struct MPZ{ num: u64[], dimen(i64,i64), //sign would be stored in the i64 } 
    submitted by /u/S-S-R
    [link] [comments]

    Best practice for storing passwords?

    Posted: 31 Oct 2020 01:32 PM PDT

    Just wondering what the main methods for securely storing new usernames and passwords?

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

    Is there way to create an AI like the ones created at Google and Facebook?

    Posted: 31 Oct 2020 09:46 AM PDT

    I was just curious. Can we actually create and AI independently. Like the ones the people made in big tech companies. Like a proper artificial intelligence.

    If yes, how can I create it?

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

    Embeded video question.

    Posted: 31 Oct 2020 05:16 PM PDT

    I want to put a youtube video in my webstie which I am using HTML is visual studio Code and my code reads as follows: <iframe> Width="420" Height="315" (next line) src="URL" (next line) </iframe>

    I did change the "watch" to /embed/ but whenever I refresh the webpage the thumbnail does not show up and I get a playback error when I click on the play button Any suggestions?

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

    No comments:

    Post a Comment