1. Welcome to NoFap! We have disabled new forum accounts from being registered for the time being. In the meantime, you can join our weekly accountability groups.
    Dismiss Notice

Programming My Brain in Python

Discussion in 'Off-topic Discussion' started by Nathan Harris, May 12, 2021.

  1. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    import NoFap

    while freeFromPorn != True:
    dont_peek()
    if feelingHorny == True:
    meditate()
    if freeTime == True:
    study()
    exercise()
    no_pmo()
    #Any fellow programmer or web developer here?
    #If yes, then what language do you use?
    #Any project you are working on?
     
    im_done, Ammar2, vxlccm and 6 others like this.
  2. I'm learning C# atm
     
    <script>, Nathan Harris and Hadrian3 like this.
  3. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    That's great, Where are you learning from?
     
    I'M DC and CarP like this.
  4. mostly videotutorials, nothing professional
     
    I'M DC and Nathan Harris like this.
  5. Hadrian3

    Hadrian3 Fapstronaut

    170
    1,707
    123
    I love C# and constantly sharpening my skills at it. My current job is related to WordPress and PHP.

    Where are the semi colons and curly braces? Did the python eat them? :emoji_thinking:
     
    CarP and Nathan Harris like this.
  6. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    That's so Cool!
    That's why I love python cauze here curly braces and semi colons are not mandatory and the code looks relatively cleaner and shorter. Btw both the languages are great and I'm willing to learn c# too.
    Right now I'm learning Java, C and JavaScript where curly braces and semi colons are compulsory.
    but If I have to choose among all, I would definitely choose Python.
     
    I'M DC and Hadrian3 like this.
  7. Hadrian3

    Hadrian3 Fapstronaut

    170
    1,707
    123
    Why learning Java, C and JS at the same time?
     
    Nathan Harris likes this.
  8. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    I'm actually learning more than that, because I love programming. So in free time I spend most of my time learning new languages.
    Learning programming is the main step after that every language is same, just the syntaxes are different.
    I am more of a web developer than a programmer. So JavaScript is compulsory to become a front-end web developer.
    Apart from that I know HTML, CSS, PHP and MySQL

    C is the base of all other programming languages, it is one of the oldest and most popular language and most of the other programming languages are derived from it, that's why most interviewers asks question in context with C and C++.
    and I learnt Java just for fun, because programming is fun, right?
     
    I'M DC and Hadrian3 like this.
  9. Hadrian3

    Hadrian3 Fapstronaut

    170
    1,707
    123
    Aye. All languages are worth learning. It helps if you know fundamentals of so many languages. Do you have a programming job?
     
    Nathan Harris likes this.
  10. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    Yes, it helps.
    No man, I don't have a job. I'm a student and I'm doing bachelor's in Computer Science. Sometimes I wish to do freelancing work but I feel like I'm not ready to handle it yet. I'll be focusing more on my interview preparation.
     
    I'M DC and Hadrian3 like this.
  11. Hadrian3

    Hadrian3 Fapstronaut

    170
    1,707
    123
    It's good that you love programming. All of the languages and things you mentioned are great. However I think when it comes to digging deeper into it, you should prioritise them. For example I want to be a backend developer using ASP.Net. That makes C# my first priority. Also as my second goal, I want to be a full-stack developer. So, I have to be good at CSS, HTML, JS, etc too.
    At last, that's good to learn about just any and every other popular languages too. Both for the interviews and when working.
     
    Nathan Harris likes this.
  12. // guess the language
    #include<nofap.h>
    Void main(){
    While(!horny)
    {
    Productivity ();
    }
    nofap.com();
    return 0;
    }
    // Just began learning
     
    Hadrian3 and Nathan Harris like this.
  13. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    Yes man, I do have priorities, I want to be a full-stack web developer and I've been focusing more on web development. I first came to know about HTML when I was in 8th grade and that's where my journey to become a web developer begun.
    If you know backend programming then learning frontend would be comparatively easier, Just keep learning and practicing.
    Happy coding!
     
    I'M DC and Hadrian3 like this.
  14. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    Code Compiled Successfully
    0 returns found
    The name of the language is "C"
     
    I'M DC, Munchausen and CarP like this.
  15. some kind of C
     
    Nathan Harris likes this.
  16. kropo82

    kropo82 Fapstronaut

    @Nathan Harris, I think there's a bug, you need while True instead of peeking once you are free of porn! (Plus == True is not needed.) Here's my version of your code

    Code:
    def dont_peek_forever():
        while True:
            dont_peek()
    
    thread = Thread(target=dont_peek_forever)
    thread.start()
    
    while True:
        if feelingHorny:
            meditate()
        if freeTime:
            study()
            exercise()
            no_pmo()
    
     
    Last edited: May 12, 2021
    <script>, I'M DC and Hadrian3 like this.
  17. Actually it’s C++. And there is no way you can differentiate between the code to be C or C++ here except for the comments.
    Comments in C is like /*your comment while in C++ it’s //your comment
     
    Hadrian3 likes this.
  18. Hadrian3

    Hadrian3 Fapstronaut

    170
    1,707
    123
    This guy makes some funny stuff.

     
    eagle rising and Nathan Harris like this.
  19. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    For a moment, I thought I landed on Stackoverflow :D
    Yeah, I should have written No_peeking_forever, Man, you saved me from bugs.

    I think == True is there in python to check equality but people don't use it because it adds nothing, I wrote it just to beautify the code but I know that it is not the proper convention.

    Your code looks cleaner, so ctrl+c and ctrl+v :rolleyes:
     
    I'M DC likes this.
  20. Nathan Harris

    Nathan Harris Fapstronaut

    31
    1,122
    113
    Man what you talking about. // can be used in C as a single line comment.
    What you are talking about is "/*" multi line comment.
    I agree that the syntax in C and c++ are indistinguishable. but how can you say it's C++ and not C.
    I mean it could be both C and C++.
    The following things are different or extra syntax in C++ in terms of symbols.
    • :: - scope resolution operator
    • : - class inheritance declaration
    • <> - template syntax
    • []() - lambda syntax
    • & - references
    • && - r-value references
     
    Last edited: May 12, 2021
    I'M DC likes this.

Share This Page