• Breaking News

    Friday, October 23, 2020

    Passed an Interview, Was waiting for Second & Removed because I asked a question learn programming

    Passed an Interview, Was waiting for Second & Removed because I asked a question learn programming


    Passed an Interview, Was waiting for Second & Removed because I asked a question

    Posted: 22 Oct 2020 08:15 AM PDT

    I had recently been going through an Interview process at a company and they had told me I had a second interview which involved a coding exam.

    The day Prior I asked them what specific subjects/topics would be covered so that I could be well prepared, I felt this was a fair question.

    Soon after asking the canceled my interview & removed me from list of possible candidates.

    Is this fair? I thought the question was fair & that I should know?

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

    What's the best way for someone with decent programming knowledge to improve?

    Posted: 22 Oct 2020 10:31 PM PDT

    I don't think I'm skilled enough to work even as a junior anything, but I have a firm understanding of most concepts and C in particular. I get good grades in school; it feels good to do. There's always more to learn but I know the fundamentals and I've already spent loads of time googling for solutions and debugging. Also pretty familiar with HTML/CSS/JS.

    Now when I look at things like web development, and its related frameworks, I feel like it's all so cryptic. I can't really interpret it. Do I need more education on how the internet works?

    I would also like to make something useful for myself. I just don't know how to apply what I've learned so far.

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

    First Project Happiness_Rock Paper Scissors

    Posted: 22 Oct 2020 07:14 PM PDT

    Hey Guys, I've seen members of this group encouraging newbies to programming and that pushed me to give a try. Thanks to ODIN project community I was able to complete Rock Paper Scissors game. I have no programming background in real time and I hope this gives me a new beginning. Please review my code and let me know if that's good. I struggled a week just for front end but, it was worth the failures.
    GitHub link

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

    socket io 404 error

    Posted: 23 Oct 2020 12:29 AM PDT

    I deployed an application via Google cloud run. It runs fine on my local machine but I'm getting a 404 error when it's deployed to a web server.

    https://commvoice-ixeps5oorq-uc.a.run.app/

    See the console for the error.

    Server

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="//code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js" integrity="sha256-yr4fRk/GU1ehYJPAs8P4JlTgu0Hdsp4ZKrx8bDEDC3I=" crossorigin="anonymous"></script> <script type="text/javascript" charset="utf-8"> var socket = io.connect('/'); socket.on('connect', function () { socket.emit('audio-streaming', {}) console.log('Connected') }) socket.on('gender_model', function (ms) { $('div.gender-box').text(ms.pred).html() $('div.category-prob-gender').text(ms.prob).html() }) 

    Client:

    @socketio.on('audio-streaming') def run_audio_stream(msg): while True: socketio.sleep(0.5) socketio.emit('model', {'prob': round(np.random.randint(0, 1000) / 100, 2)}) 
    submitted by /u/da_chosen1
    [link] [comments]

    Wich websites do you recommend for learn back-end development and programming courses in general? (I know freeCodeCamp, W3School, Odin Project, MDN, and Udemy)

    Posted: 23 Oct 2020 12:25 AM PDT

    And wich JavaScript, nodejs, and backend courses do you recommend from Udemy? Thanks!

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

    Coursera recommendations for a total beginner

    Posted: 23 Oct 2020 12:05 AM PDT

    Our country is sponsoring free Coursera and would pay to any course we enroll, just right at the time I want to learn programming. Can you recommend good Coursera courses for a total beginner?

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

    Would anyone like a one on one session with an experienced developer this weekend?

    Posted: 22 Oct 2020 05:56 PM PDT

    I'm looking to set aside an hour or so to help someone that may be struggling to learn something. We can hop on a Zoom or Discord call and collaborate with repl.it.

    If you're interested, please post a comment with what you'd like help with, and some times when you're available. I'm on the US West Coast and am available between late morning and late evening.

    I'd be happy to help with things like interview prep, recursion, data structures, basic networking. I'm rubbish at most anything front end related.

    I'll keep this post up for a few hours to collect responses and send a direct message to someone I think I'd be able to help.

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

    How to save state of a WPF application

    Posted: 22 Oct 2020 11:20 PM PDT

    Hi guys,

    I'm currently building my first real world WPF application and learned a lot already. Implemented MVVM, SQlite, Bindings, Commands, etc.. I'm currently working on finishing up the business logic for a working prototype. But I encountered a little problem. I don't know how to store the state of my application.

    What does my application do? It takes user input, stores it in a DB and shows all items, entries, addresses in tables and automates some calculations. How do I save the entries permanent so when the user shuts down the programm/PC he can still access the numbers and implement a "New File" feature where all addresses and items are still stored (core components which don't change when you create a new file) but the calculation part is completely empty and needs new user input.

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

    What would I need to know to build a mobile app like this?

    Posted: 22 Oct 2020 03:30 PM PDT

    I'm building a community resource app. It will have similar features to yelp mobile app but a lot slimmer.

    Features it will have similar to yelp:

    1. A robust search with the ability to filter
    2. A similar homepage
    3. A homepage with components which may update often (ex. Yelp has a "Picks for you" - weekly picks section which updates frequently)
    4. The map search that comes up after you've searched a term (searching by location, a map which has pinpointed locations that you can click to find out more)

    Not included in yelp but my app would also include a language toggle feature.

    Features my app won't include:

    1. No user profile or any user generate content
    2. No rating system or reviews
    3. No delivery system

    I've never developed a mobile app before and I only know HTML/CSS. What would I need to know to build this (like coding languages, APIs, etc.)?

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

    Help me come up with 100 unique task?

    Posted: 22 Oct 2020 11:00 PM PDT

    I'm trying to come up with 100 unique task to help learn different patterns. For example printing all the files, folder and subfiles/folders is a intuitive example of recursion. Towers of Hanoi is not very intuitive but maybe I'll use that as a different example of recursion.

    With arrays there's map, filter, min/max, sum, any, first and I seen a ToDictionary which is like map except the value returned is the key and the element becomes the value. I'll probably read lodash for more ideas.

    I learned deterministic finite automaton by converting a regular expression into a state machine. It's a hard example but pretty satisfying to learn.

    I'm not sure what this pattern is called. A app state that basically starts in the main loop with if (state == statename) {} (or an indirect function all) and a functional called SetState(newState) that may execute specific code based on state your leaving, entering or both. An example is a game going from menu->game state it may destroy the intro/menu images and load up the world.

    I once seen code that instead of using a switch statement (it was C++ and string cases are not allowed in switch) it used an array of functions and std::string to do string comparisons to find the correct function to call. IDR what the code did but I'd like to come up with a good example of why you would prefer that over ifs

    Can you guys think of good examples people may want to use?

    submitted by /u/Quiet-Smoke-8844
    [link] [comments]

    How to count in octal numbers

    Posted: 22 Oct 2020 10:35 PM PDT

    I don't know how they did this but, I'm confused this is more confusing than converting hex, octal, binary and decimal to each other.

    http://imgur.com/gallery/hFxyhAW

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

    How come drawing a grid works in this Python program, but is sort of funky in this Java program?

    Posted: 22 Oct 2020 10:30 PM PDT

    grid.py

    picture of grid.py

    grid.java

    picture of grid.java

    As far as I can tell the code in both of these programs are pretty much the same, but for some reason the Java program doesn't really work. The lines of the grid don't line up with the edge of the window in the same way that the Python program does, which I don't understand... Not to mention the vertical weirdness in the Java program, which is something I've experience before (although I have next to GUI/Graphics experience in Java)

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

    Local storage for crucial data

    Posted: 22 Oct 2020 10:26 PM PDT

    I've looked through some Reddit posts but haven't been able to get a clear explanation so I figured I would ask here. What type of data would you recommend putting in local storage?

    I'm trying to learn the MERN stack and am working on a project where I need to save the user's MongoDB ID for future queries. I tried using React contexts but they all become null after refreshing the page. Would it be alright to just keep the user ID in local storage? I realize that some browsers (like Safari in private mode) don't allow access to local storage so I was curious whether saving in local storage could be a potential issue.

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

    Which approach is better to learn to program, Watching Videos, or Reading Content?

    Posted: 22 Oct 2020 08:54 AM PDT

    I'm curious to know what your preference is when it comes to learning programming. Are you more of a watch a youtube video and do programming or read docs and do it.

    For me, it has been best to take up a Udemy course and follow through the instructions. I do feel it's a bit time-consuming and spoon-feeding. The downside with videos, you have to keep pausing and fast-forwarding, but it's the one that's been working for me for now.

    When I asked my friend, how can I learn node.js? He directed me towards the official node.js website. I must confess that I couldn't get a single thing out of that document. It's only after taking up a Udemy course that I was able to get my head around node.js

    These days there is accession in text-based courses with embedded coding environments like educative.io or The Odin Project or The Daily Coding.

    While they are a good alternative to books that are too dense and poorly written, I still can't feel comfortable to learn programming by reading.

    I believe this aversion towards reading to acquire programming knowledge will deter me from keeping up with the trends.

    Many new language or technology tutorials are available only through text-based documentation and, yeah, sometimes poorly written.

    I'm trying to understand what your approach is to learn a programming language. I'm aware the standard answer is to build a project, but how do you start your first step of acquiring knowledge?

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

    I need a bit of help with a Haskell function

    Posted: 22 Oct 2020 09:27 PM PDT

    So basically I've been struggling with some exercises that our teacher gave out for functional programming. I'm trying to right a function that does this:

    mergers ["a", "b", "c", "d", "e"] returns [ ("a", "bcde"), ("ab", "cde"), ("abc", "de"), ("abcd", "e")]

    I have tried to do it recursively with (x:xs), [(x, y) | x <- something, y <- something], foldr, etc... but none of them work because they separate the first element and then I have no way of accessing it. Some hints or Haskell tricks would be greatly appreciated guys. Thanks :)

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

    Python program works with small inputs, but not with large ones

    Posted: 22 Oct 2020 09:02 PM PDT

    For this CS50 problem, I was asked to make a program that takes as input a .csv file containing the a sequence of characters, and a .txt file, from which I have to search to see if it's in it.

    import sys import csv if len(sys.argv) != 3: print("Usage: python dna.py database sequences") sys.exit() filename = sys.argv[1] searchfile = sys.argv[2] values = [] names = [] found = {} compared_value = [] seq_len = {} name_search = {} with open(searchfile, "r") as search: sequence = search.readline() search.close() with open(filename, "r") as file: counter = 0 reader = csv.reader(file) for i in reader: names.append(i[0]) if i[0] == 'name': search_seq = i search_seq.remove('name') names.remove('name') if counter != 0: y = i y.remove(y[0]) name_search[counter - 1] = y for j in range(counter): found[j] = False counter += 1 file.close() #for x in range(0, len(sequence) - len()) #for everyone in name, get the for i in search_seq: count = 0 for j in range(0, len(sequence) - len(i)): for k in range(len(i), len(sequence)): if i == sequence[j : k]: count += 1 seq_len[i] = count for key, value in seq_len.items(): compared_value.append(str(value)) for key, value in name_search.items(): if value == compared_value: found[key] = True else: continue for key, value in found.items(): if value == True: print(names[key]) sys.exit() print("No match") 

    If I run this for the small sample size, it outputs the right results in a split second, but if I do it for a larger file, it doesn't. And, it takes so long to finish running.

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

    [C] Why does strcat() not work inside a for loop, and why does it make the program take a long time when strcat() is used multiple times?

    Posted: 22 Oct 2020 02:54 PM PDT

    #include <stdio.h> #include <string.h> int main(void){ char str1[] = "Hello"; char str2[] = " World"; for (int i=0; i<5; i++){ strcat(str1, str2); } printf("%s\n", str1); return 0; } 

    For some reason this outputs Hello Xorld. Why is that? If I just copy and pasted strcat(str1, str2) 5 times it would be what I expect, which is to output Hello World World World World World, although the program takes a long time to finish after these words are output. What is going on here?

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

    Question about file organization

    Posted: 22 Oct 2020 01:14 PM PDT

    I'm making a text-based adventure with a friend and I had a question about how to process something. The game has a room object that has a room code, a description for when you enter, encounters, and containers (treasure, etc). The character will have a current room variable that changes when the player types a movement command. I'm currently thinking about using json to store all of the room data, descriptions and everything, and then when you go to a new room, it gets the new data from the json, but I wanted to know if there was any kind of problem with making too many calls over to an external json file. Would it slow the system down to keep grabbing data that way? Would having the file open a lot be risky for file corruption or anything like that? I really don't know about file use, so any advice would be appreciated, along with any other solutions if that's not going to work. Thanks!

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

    Programming Documentation!!

    Posted: 22 Oct 2020 08:44 PM PDT

    Should I learn a programming language such as java through the official documentation?

    I have tried to learn with video tutorial, and books but they all are outdated

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

    VS open folder project help

    Posted: 22 Oct 2020 08:43 PM PDT

    So i am very very new to programming and im starting off with c++. i like to use visual studios to write code in but i hate making a project every time i want to start a new little hello world cpp file. i was wondering if anyone could help me out by providing a way to debug simple cpp files without having an entire project dedicated to it. i know windows released some blogs about how this might be done but i feel very hopeless trying to decipher their code. Please help i don't wanna go back to repl.it, i hate it there.

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

    CodeWars: Extreme variation in difficulty within the same Kyu level?

    Posted: 22 Oct 2020 08:21 PM PDT

    This is something I've noticed is especially frequent amongst newer and less tested/less popular Kata.

    My account is 5 Kyu right now. If I sort 5-6 kyu katas through popularity, the top ones are very accessible, and some of the 6 Kyu ones I can solve in essentially seconds.

    However, some of the newer 6 Kyu katas albeit being simple programming wise may rely on very obscure or deep mathematical knowledge which leads to their difficulty level being very deceiving. I've recently spent days on 6 Kyu katas which I honestly feel could be 4-3 Kyu.

    Did anyone else notice this with recent katas?

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

    Eclipse installation for Java problems

    Posted: 22 Oct 2020 08:17 PM PDT

    Hi. I have a problem with Eclipse installation. Eclipse don't allow me install virtual machine for Java8. I can not choose VM lower than 11. I don't how to fix this problem. Or maybe other IDE for Java.

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

    Coding for the first time in AP Computer Science A, don't feel very guided

    Posted: 22 Oct 2020 08:12 PM PDT

    Hi, I'm a senior in high school and as a student in silicion valley my ap cs teacher expects us to basically know what we're doing and we're blazing through everything. I've made it clear I'm a beginner and while he is nice I still feel very misguided. I know there are so many resources to learn how to code but I want to know the best resources that will get me through things like oral exams and the AP CS exam that are actually hands on and not just boring textbooks. Any advice or resources?

    submitted by /u/Master-Papaya-104
    [link] [comments]

    No comments:

    Post a Comment