• Breaking News

    Saturday, December 11, 2021

    How would you convince someone to study programming/ and keep them away from it? Ask Programming

    How would you convince someone to study programming/ and keep them away from it? Ask Programming


    How would you convince someone to study programming/ and keep them away from it?

    Posted: 10 Dec 2021 06:50 PM PST

    Hi guys. I'm a biologist that's having an existencial crisis and might want to get into tech. Would like to know more overall about programming. Always been tech interested especially about pc's and gaming

    Thanks in advance

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

    Any recommendations for a programming language in my case ?

    Posted: 10 Dec 2021 10:37 PM PST

    More as a hobby I still wish to learn programming , I learned a bit of C(it wasn't nice) and python(which I really enjoyed) .

    I wish to learn (perhaps more in a hobby manner) a Coding language that would help me to make web apps(but I don't want to become a one man army and make websites alone) and perhaps software Like .exe that also have a chance to get hired at the end of my quest/hobby period

    Do you have any recommendations ?

    I use android (a lot) , and windows (Idk nor like mac) and I like Thinkpads

    I Also love to automatise and make everything as quick as possible

    Idk why , but there's still something fascist about programming and making things that work and move ...

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

    Interviewing Senior SDETs who can't even indent - is that ever acceptable?

    Posted: 11 Dec 2021 03:11 AM PST

    I'm in UK. I've just started interviewing candidates for a Senior SDET role. This is my first recruitment experience. I'm a SDET (7-8y exp) myself and I'm recruiting the person I'll be closely working with for the foreseeable future.

    I know it's a tough market, but I've seen time and time again Senior SDETs who are incapable of following the most basic clean code practices. The kind of stuff my 101 programming teacher at uni would've yelled at me about.

    A candidate has recently taken a very simple exercise (Fizzbuzz-grade). He managed to pack the following issues in a tiny solution (~10 lines)

    • Lack of / inconsistent indentation (a FOR had indentation, 3x IF didn't)
    • Random 1-letter var names var a = <stuff>
    • Inconsistent formatting for (i= 0; i <10 ; i ++)
    • Lack of proper camel/pascal casing var outputstruct = <stuff>

    This was a take-home exercise with a very generous time limit, not some notepad face-to-face coding under high pressure.

    This was done by a SDET (i.e. a dev with a focus on quality) with 10-15y exp. Honestly, I think that would be embarassing code even for a mid level developer, in this age of linters and smart IDEs. I might give grads / juniors some slack about it, but I find it totally unacceptable for anyone striving for a Senior role.

    My instinct is to insta-reject the candidate but my colleagues involved in the interviews don't seem to mind so much and are considering a follow-up interview with him.

    Since I'm new to recruiting, I'm trying to understand if I'm being overly severe. My worry is that if he fucks up such a simple bit of code, what other major fuck ups will he slam into our much more complex code base? How much bullshit will I have to sift through in his PRs?

    What's your take? Should I be more lenient and give people a second chance?

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

    File Encryption and How does it work

    Posted: 10 Dec 2021 07:27 PM PST

    From what I understand the pseudo code goes like this

    1. Read the file's bytes into an array
    2. Loop the array through a encryption algo which will then in turn return a ciphertext

    If you're trying to decrypt it you need it depends on what type of algo was used

    If I'm looking at symmetric encryption then both parties just need the key the file was encypted with to read it correct?

    If I'm looking at asymmetric encryption then The party with the private is the sender and the people with the public key is are the receivers correct?

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

    Java vs C# for a starter ?

    Posted: 11 Dec 2021 02:59 AM PST

    So just as the title suggests , I've been thinking 1/2 of a day about this

    I learned a bit of C and python in the past and I still recongize structures

    My mindset is to make apps that both work on Android and windows and to learn in the same time the basics of programming ...

    What's your opinion , what's better in my case ?

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

    What does the end bit of this problem mean?

    Posted: 11 Dec 2021 01:08 AM PST

    Write a function that creates a dynamic sequential structure. The structure contains the squares of N consecutive integers where N is a function parameter. The integers range from one to N. The function separates the squares into four sets with these restrictions: 1) the sums of the squares in the four sets are equal or nearly equal and 2) the function partitions squares for large values of N. The function returns the four partitions.

    First part is pretty standard, array with sequential squares of 1 to N. But I'm confused about the restrictions, Say I have x = [1, 4, 9, 16, 25], what does the function supposedly return?

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

    [Personal request] It seems that someone in this community sent me a DM, but I accidentally ignored it. I'm sorry, can you send it again?

    Posted: 11 Dec 2021 12:38 AM PST

    I know I shouldn't post like this

    Because it has nothing to do with "ask programming"

    I hope you will have a broader perspective.

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

    Why does Java receive so much hate? (Not talking about this whole Log4J thing.)

    Posted: 11 Dec 2021 12:34 AM PST

    I never quite understood why Java is so genuinely disliked. It's honestly rather pleasant to work with and I've been using it for 11 years. I know around 10 langues and am mostly comfortable with all of them. And honestly, I can't see what Java does that's so much worse than any other language.

    I know some libraries are quite annoying to work with, but that's quite far from condemning the entire language over.

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

    Is it possible my code ruined my servo driver?

    Posted: 10 Dec 2021 06:40 PM PST

    Hey,

    Something just happened... I ran a program that I copied (stupid moment) that was meant to make a servo move while directly connected to a raspberry pi. B

    ut I was not doing that, what I was doing was connecting the raspberry pi to a breadboard that connected to a servo driver (PCA9685) and now the power LED is not turning on unless I disconnect the GND wire, which is supposed to be connected.

    Here's a video of what's happening to the hardware: https://streamable.com/0fdl7w

    And here's the program my stupid self injected into that:

    from gpiozero import Servo

    from time import sleep

    servo = Servo(2)

    while True:

    servo.mid()

    print("mid")

    sleep(0.5)

    servo.mid

    print("mid")

    sleep(1)

    servo.mid()

    print("mid")

    sleep(0.5)

    servo.max()

    print("max")

    sleep(1)

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

    How would you go about solving this?

    Posted: 10 Dec 2021 09:22 PM PST

    You are given an array of person objects with two fields first name and last name. we want to know which family has the longest line of juniors. juniors is when multiple family members have the same full name.

    For example:

    An array with these 4 person objects below.

    Person person1 = new Person("rol","java");

    Person person2 = new Person("rol","java");

    Person person3 = new Person("macha","kola");

    Person person4 = new Person("rol","java");

    In this case the family 'java' has the longest line of juniors

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

    only accepting a country string ? JAVA

    Posted: 10 Dec 2021 08:45 PM PST

    How do I only accept a string that is a country? I don't want to make a list and add them all in by hand, that would be so tedious.

    Any suggestions would be great, Thanks!

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

    How to write a list of elements line by line into a text file and then read it line by line again?

    Posted: 10 Dec 2021 08:20 PM PST

    I have 3 lists and I want to write their first indexes in one text file line. I used a for loop and the \n function but when I try to read it the line by line for later use, it doesn't read it line by line, instead it reads the whole text file. How can I fix this issue? Thank you in advance

    Edit: can't use regular expression or list comprehension due to requirements

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

    Kotlin unit testing Mockito

    Posted: 10 Dec 2021 07:51 PM PST

    Hi I'm doing unit testing on Android studio and I have a question about thenReturn(true) in Mockito

    What's the point of the thenreturn? I mean i want the value returned from the original method not the one im putting into the Thenreturn

    How can I just receive the value from the method invoke

    val UserNAME = mock(Birthday::class.java) val name = mock(user::class.java)*/ // doReturn(true).`when`(UserNAME) //Mockito.`when`(UserNAME).doReturn() //assertThat(UserNAME.invoke()).isFalse()

    You can dm me or reply to the post thanks

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

    How do I understand the task and implement it into the code?

    Posted: 10 Dec 2021 07:41 PM PST

    Hello, I'm a new CS major, and I'm having trouble looking at problems and implement them into code, for example I'm learning about interfaces and implementing classes, but I'm just having a hard time putting it into code. Is it just me being a bad student or is there a method to making the code work for a problem? Thank you and have a great day.

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

    Looking for a coding environment where I can interact with a broswer

    Posted: 10 Dec 2021 07:08 PM PST

    Basically I want something that can manipulate a webpage (click buttons, that sort of thing) and then record html or screen data. My main goal is to shuffle a spotify playlist and record what songs are played successively

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

    I need help with an Imessage Bot

    Posted: 10 Dec 2021 06:52 PM PST

    So I want to make an ai (bot) that sends different text to different numbers but I can't find the place where I insert my code. Is there like a place in the app where I insert my code or is there like a module or pack that I use to do this. Your help will be appreciated.

    submitted by /u/Double-Show7689
    [link] [comments]

    No comments:

    Post a Comment