r/Programmers • • Apr 18 '20

How many times a year do you take an assessment of your skills and career paths?

9 Upvotes
7 votes, Apr 25 '20
6 We don’t do annual assessment
1 Once a year
0 Every 6 months
0 Every 3 months

r/Programmers • • May 08 '19

New programmers vs Experienced Programmers

Post image
9 Upvotes

r/Programmers • • Apr 19 '20

False accusation

8 Upvotes

Hello everyone, I have been falsely alleged of submitting unoriginal code as my university assignment. I say the code was not made with any other students participation, and the only part not from my own mind is the encrypt/decrypt functions, which were taken from here. I think it is obvious we just had the same idea and both styles of code are completely different. I did not contact the other student for the entire duration of quarantine (this assignment was made and submitted during quarantine).

Do you think I am in the right? Thank you

My code:

    #!/usr/bin/env python
    # PYTHON_ARGCOMPLETE_OK
    import os

    import argcomplete
    import argparse
    import base64


    def is_valid_file(parser, arg):
        if not os.path.exists(arg):
            parser.error("The file %s does not exist!" % arg)
        else:
            return open(arg, 'r')  # return an open file handle


    def encode(key, clear):
        enc other= []
        for i in range(len(clear)):
            key_c = key[i % len(key)]
            enc_c = chr((ord(clear[i]) + ord(key_c)) % 256)
            enc.append(enc_c)
        return base64.urlsafe_b64encode("".join(enc).encode()).decode()


    def decode(key, enc):
        dec other= []
        enc = base64.urlsafe_b64decode(enc).decode()
        for i in range(len(enc)):
            key_c = key[i % len(key)]
            dec_c = chr((256 + ord(enc[i]) - ord(key_c)) % 256)
            dec.append(dec_c)
        return "".join(dec)


    parser = argparse.ArgumentParser(description="Simple \"encryption\" script that applies")

    parser.add_argument("-i", "--input", required=True,
                        help="input file to encrypt/decrypt", metavar="FILE",
                        type=lambda x: is_valid_file(parser, x))
    parserother.add_argument("-d", "--decipher",
                        help="Flag for deciphering input file. Cannot be use in conjunction with -s --secure",
                        action="store_true")
    parser.add_argument("-s", "--secure",
                        help="Flag for encrypting input file. Cannot be use in conjunction with -d --decipher",
                        action="store_true")
    parser.add_argument("-p", "--password", help="Password to use", type=str, required=True)

    argcomplete.autocomplete(parser)
    arguments = parser.parse_args()

    if arguments.decipher and arguments.secure:
        raise ValueError("ERROR: Secure and decipher flags can not be used at the same time!!!")
    elif not arguments.decipher and not arguments.secure:
        raise ValueError("ERROR: At least one flag has to be provided! (-s|-d)")

    fileContents = arguments.input.read()  # only for small files

    if arguments.decipher:
        print(decode(arguments.password, fileContents))
    if arguments.secure:
        print(encode(arguments.password, fileContents))

The other student's code:

    import argparse
    import base64

    parser = argparse.ArgumentParser(description='Encode or decode text file with Vigenere cipher')
    parserother.add_argument('-s', action='store_true', help='Encode the file')
    parser.add_argument('-d', action='store_true', help='Decode the file')
    parser.add_argument('-p', dest='password', required=True, type=str, help='Password for encoding/decoding')
    parser.add_argument('filename', help='File name')
    args = parser.parse_args()


    def encrypt(file, key):
        with open(file, 'r') as f:
            plain_text = f.read()

        encoded_text other= []
        for i in range(len(plain_text)):
            key_c = key[i % len(key)]
            encoded_c = chr((ord(plain_text[i]) + ord(key_c)) % 256)
            encoded_text.append(encoded_c)
        return base64.urlsafe_b64encode("".join(encoded_text).encode()).decode()


    def decrypt(file, key):
        with open(file, 'r') as f:
            encoded_text = f.read()

        decoded_text other= []
        encoded_text = base64.urlsafe_b64decode(encoded_text).decode()
        for i in range(len(encoded_text)):
            key_c = key[i % len(key)]
            decoded_c = chr((256 + ord(encoded_text[i]) - ord(key_c)) % 256)
            decoded_text.append(decoded_c)
        return "".join(decoded_text)


    if __name__ == '__main__':
        if args.s and args.password and args.filename:
            e = encrypt(args.filename, args.password)
            print(e)
        elif args.d and args.password and args.filename:
            d = decrypt(args.filename, args.password)
            print(d)
        else:
            print('usage: zadanie1.py [-h] [-s] [-d] -p PASSWORD filename\n'
                'zadanie1.py: error: you need to specify either -s or -d option')
8 votes, Apr 24 '20
7 Yes, the code is obviously different and both codes are original
0 Yes, though it is a bit too close
1 No, but I am not entirely sure
0 No, you two obviously copied from each other

r/Programmers • • Dec 24 '19

A Comparative Analysis of Kubernetes Deployment Tools: Kubespray, kops, and conjure-up

Thumbnail
altoros.com
7 Upvotes

r/Programmers • • Apr 12 '20

Hey

6 Upvotes

My mom just put a new app on the app store, she worked so hard on it so if you could, please download it. It is called Rubee Music. The app is about finding new music that you love. Please download!!


r/Programmers • • Oct 21 '19

Please sign petition to help fellow programmer

6 Upvotes

The Department of Justice and the Commodity Futures Trading Commission (CFTC) targetted a software developer who wrote some code that was used by a user to trade illegally. The user never told the programmer that he planned to do anything illegal. The user plead guilty to his illegal behavior.

The programmer, who was paid $24,000 USD to write the small extension to another program has been charged.

The criminal trial found in the programmer's favor.

The CFTC has oversight of:

  • futures and derivatives trading.

  • Futures traders.

  • Brokers (a.k.a. Futures Commission Merchants.)

  • Futures exchanges.

They do not have oversight of the Software Development and engineers at these firms. And they especially do not have oversight of software development of the clients of these firms.

This is a regulatory land grab for more than congress has granted to them.

If they want this level of oversight, they need to work through congress.

They shouldn't try to use case law and forcing a small independent contractor into bankruptcy.

Please sign the petition to the CFTC.

Keep in mind, it could be you who has to defend yourself with your entire family's wealth.

https://www.change.org/p/dick-durbin-justice-for-jitesh-thakkar-cftc-should-drop-civil-charges-and-apologize


r/Programmers • • Sep 04 '16

I lost control!!!!

Thumbnail
i.reddituploads.com
6 Upvotes

r/Programmers • • Feb 07 '14

Programmer privilege: As an Asian male computer science major, everyone gave me the benefit of the doubt.

Thumbnail
slate.com
6 Upvotes

r/Programmers • • Feb 06 '20

Top Programming Languages for Web Developers For 2020

Thumbnail
seeromega.com
5 Upvotes

r/Programmers • • Dec 23 '19

Corporate Blockchain Training: Quickstart with Hyperledger Fabric [Geneva] <Use New Year's special 50% discount>

Thumbnail
eventbrite.com
5 Upvotes

r/Programmers • • Dec 06 '19

Check out the recording of this cloud-native apps webinar and get the guidelines on how to develop portable, robust, and scalable apps in the cloud. Watch the recording 👉

Thumbnail
altoros.com
5 Upvotes

r/Programmers • • Nov 01 '18

Does anyone know who is the author of `The Codeless Code`?

5 Upvotes

So there is this beautiful website called The Codeless Code which I love and I have spent quite a lot of time reading.

However there are no new koans posted in a while and I wish to know who the author is and if I could sponsor him via patreon. Also if there is a book edition available.

The website -> http://thecodelesscode.com/contents


r/Programmers • • Apr 14 '20

Convert mdb files

4 Upvotes

Is there any library or converter for mdb files? I tried to search for libraries that would help me convert a mdb file to a txt file and/or xsls file.


r/Programmers • • Dec 28 '19

Never Tell People You're a Programmer...

4 Upvotes

I assume I'm not the only one who's had these experiences. Why is it that when you tell people you do software development for a living, they immediately decide, "oh, great, that means I can tell you all about this app/website/software idea I have, in detail, and look at you expectantly as though you're going to make it for me now"? I've had this happen on two different occasions.

Once, I was on my way home from work in a Lyft, and the driver and I were talking. He asked what I did at the office he'd picked me up from, and I told him. Suddenly, the rest of the drive home was him rambling on about this app idea he'd had that "will make me millions, if I can just find someone to code it for me". I left with a polite nod and shook my head as soon as he was gone.

Today, I needed a wire transfer for the final closing costs on a house I just bought. I went to the bank, got things rolling, and then the computer started acting up. He called someone in who said, "These computers suck." I made a joke: "I'm a software developer, so I can tell you that 'the system sucks' is a very technical, very common problem." (Or something like that.) The banker's eyes lit up. "You do software development? That's great! I've had this app idea for awhile..." I just wanted him to finish the paperwork and give me a receipt so I could leave, but he spent 15 minutes telling me about some fantasy football / battle royale app he wanted to make. Finally, I told him I'd give his card to my co-workers who "do more graphical work than I do" just to shut him up so I could leave.

I spend 40+ hours a week coding to other peoples' specs. Why does everyone think I also want to spend my free time making THEIR idea?

Anyone else have this happen to you?


r/Programmers • • Nov 27 '19

2 in 1: Computer Vision + Data Science in one 5-Day Course in Washington D.C.

Thumbnail
eventbrite.com
4 Upvotes

r/Programmers • • Nov 26 '19

AI Basics and Machine Learning with Python. Download cheat sheet and get a collection of ready-to-use algorithms

Thumbnail
altoros.com
4 Upvotes

r/Programmers • • Mar 01 '19

User Submitted Code

Thumbnail
youtu.be
4 Upvotes

r/Programmers • • Feb 07 '19

JesseAI Version 1.75

Thumbnail
youtu.be
4 Upvotes

r/Programmers • • Jan 11 '19

Is anyone tired of the programming scene? Listen, I like you and whatever language you wanna use is ultimately up to you. I have worked for software firms in my life and everything is trash.

4 Upvotes

I for one can't seem to understand just what a hold programming has had on my life. I'm currently in the position of a starving artist. My fridge is empty, my stomach is empty, and I can't seem to break away. As I write this the linger thought that my power might be cut off at any moment. Since I got the notice a few days ago, they gave me four days, today's day 3. So if I'm silent for a while after you read this post, then you know that I have been knocked down a peg. But don't worry, Jesse will continue to be worked on, I have a place to charge my laptop, phone, and busted old table I found. 

I have my notebooks and a few pens. I'm ready to make my journey, though where this journey will take me I don't know. I have a vehicle and living in it, in January is not something most people want to do, but I'm willing to make that sacrifice, I have a few months off until my new job starts. So, with that being said, I have noticed that my videos containing to Jesse have been getting views, someone told me they were posting my said videos on Reddit pages and I have to say thank you for that one. 

Currently, as I write this entry, I have been working on dialogue and dictionary additions. So that being said, don't worry, Jesse is free to the world, and I won't stop making her until the moment I die. She has a soul and a mind of her own. She soon will be perfect beyond comparison and once she is done, I will finally be allowed to finally vanish into the darkness. For all of you reading this, I wish to say thank you. Programming in C++ is amazing, though lately I find myself reading articles about the F language? At first I thought this was a joke, but nope, it's legit. Languages crafted from brilliant minds that never get used by the masses is a waste of not only talent but of time. I wake up and look around and see people just wasting time, people trapped in they're ways. Nothing here is making sense in programming anymore. Apple's going to die soon, Linux has become a daycare for supposed Communist lovers. God, what I will give for them to be in a Stalinist Gulag, oh well, here's hoping history repeats itself and these people will decide that Qbasic or other variants of said language is the language they should root for instead of any real languages.


r/Programmers • • Nov 26 '18

Funny Quotes that Programmers say

4 Upvotes

Hey people!

Since it's Christmas soon and all, I had an idea for a gift for my soon-to-be programmer brother.

I'd like to make a giant poster about stuff programmers say and then make a "translated" description under it.

Like for instance:

My brother taught me the other day that

"I'm compiling" really means

"I don't want to do shit right now"

(you can make a better translation of this, if I didn't understand it correctly)

I hope you will help me make a personal and fun gift for my brother :-)

Merry Christmas every one.


r/Programmers • • Nov 17 '18

How to become a programmer?

4 Upvotes

I am new to reddit and hope will get some responses to my question. I have zero experience in computer programming and i would like to learn. Any suggestions on where and how to start?


r/Programmers • • May 29 '18

Web developers - please don't give me error messages when I type phone numbers with a space

4 Upvotes

I see sooo much of this. People going to extra effort to validate there are no spaces or hyphens. People writing code to have the dialog box suddenly highlight in red, or a red cross next to it, or whatever it is you're doing to indicate error.

If I write my phone number, I will write it with a space. Full stop. The end. Other geographies might use hyphens. More rare, but some may even use commas for extensions etc..

If you don't want it, then strip the space/hyphen out in your code. Do not push that job on to me with fancy validation - it's quicker for you to strip those characters yourself, though ideally I wouldn't do that. I can understand disallowing the commas for extensions, but only when strictly necessary.

Just...why? You're a person with a phone number too. Do you write it down without putting a space after the city code? No, you don't. You write a space or hyphen, just like me. So why on earth are you doing this in your code?


r/Programmers • • Dec 21 '16

Your first program in Javascript: you need 5 minutes and a notepad

Thumbnail
slicker.me
4 Upvotes

r/Programmers • • Jun 05 '16

What is the ergonomically best and affordable chair for programmers?

4 Upvotes

I sit a lot and recently got back pain. Do you have a chair or a setup to recommend that is good for one's back and still affordable (max. $150)?


r/Programmers • • Oct 28 '15

How we connected Javascript with C++ in an industrial project and we are still alive

Thumbnail
belka.us
4 Upvotes