• Breaking News

    Tuesday, December 28, 2021

    Why do you think people nowadays almost invariably post code as screenshots? Ask Programming

    Why do you think people nowadays almost invariably post code as screenshots? Ask Programming


    Why do you think people nowadays almost invariably post code as screenshots?

    Posted: 28 Dec 2021 03:03 AM PST

    It is very annoying to me that people post code as screenshots, whether to mock in places like /r/programminghorror or /r/badcode, or to ask legitimate questions in language-specific places. You can't copy and paste from a screenshot, you can't change the font or indentation, it's invisible to people without their sight so they can't participate through use of their screenreaders, screenshotted code is invisible to search engines...

    Is it just somehow easier to some (younger?) people to screenshot a thing and post it? Is it just scary to lose syntax highlighting because Reddit or some other forum or app doesn't support it as readily as their IDE or Github? Some other reason I can't think of?

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

    As a full stack web dev, which low-level language(s) should I add to my tool belt?

    Posted: 27 Dec 2021 09:56 PM PST

    I've been working with mostly JavaScript, Python, and PHP for over 10 years, primarily on web based CRUD apps for various business ops. Next year, I want to branch out to something that doesn't require any runtime environment like an interpreter or VM. What would you suggest and why?

    submitted by /u/watch-dogg
    [link] [comments]

    This is the logic that I used in my other code, but it's not working. It's quite simple, but I have to do it with pointers, and I'm still not familiar with them. Could you tell me where I'm making a mistake?

    Posted: 28 Dec 2021 12:50 AM PST

    #include <stdio.h> #include <stdlib.h> #include <string.h> struct People { int id; char name[20]; int age; }; void insert(struct People *array[], int i) { //&array[i]->id = &array[i]->id + 1; //im trying to increment id for every person printf("\nInsert name of %d. person: ", i); scanf("%s", &array[i]->name); printf("Insert age of %d. person: ", i); scanf("%d", &array[i]->age); } int main() { int i = 0; struct People array[100]; while(1) { i++; insert(&array, i); } } 
    submitted by /u/Individual-Ad-6813
    [link] [comments]

    Regarding which database I use for App Development

    Posted: 28 Dec 2021 02:39 AM PST

    I'm developing a Billing and Inventory App in java. I'm using Net-beans for the Windows version and Android Studio for the Mobile version.The PC side of the app runs as the main app. Both Apps share a common database that can be accessed 24x7.

    The issue is which database to use. Because I will be concurrently accessing the data from PC and mobile I cannot use an embedded database like SQLite because it may not fit with the client-server sort of model setup. The other databases like MySQL will require the whole new database management software to run on the server side which require more installations.

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

    It's a general question and I'll be glad if you help me

    Posted: 28 Dec 2021 06:07 AM PST

    Hey fellows. I have an external hard drive and as you know , if I delete something it goes to the recycle bin. And to free up space I should shift+delete or delete the file from recycle bin . Now , how can I delete the files that I had deleted and don't have access to recycle bin?

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

    Socketio question: How would I implement some basic authentication?

    Posted: 28 Dec 2021 05:39 AM PST

    Hi! I'm new to socketio and I'm trying to achieve the following:

    Have the user go to a room, input a password and if the password is correct make a socketio connection.

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

    Help with job interview needed

    Posted: 28 Dec 2021 02:59 AM PST

    Hi guys, I have an interview for a junior position in about 10 days and I need some advice. I already passed the first step in the selection process which is building a simple React app that makes an api call and renders the data in some way. I'll describe the app a bit so you get the idea of the skill level required.

    The app itself uses basic React functionalities to change the way the received data appears in browser. Apparently I did good and they invited me for the second test/interview and broadly explained how it will look like and it goes like this:

    "This will be a 2-2.5 hour test. The emphasis will be on solving an algorithmic logical problem and adding functionalities inside an app (node api) and a technical interview about setting up the software architecture for a potential client. The key is to see how you think and act in certain situations, how you search for solutions when you get stuck".

    I don't have any technical background and I'm self taught. I've mostly done simple JS and React apps and I'm familiar with node and express basics (CRUD).

    So, what can I expect from this interview, most importantly - what could they ask me about setting up the software architecture. I'm quite clueless about that.

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

    Location-based app questions

    Posted: 27 Dec 2021 11:32 PM PST

    Hi, I'm very new to Reddit so not sure if this is the right place to ask but let me try.

    I learnt UX design and came up with my own imaginary project 'Audio Tour app for an art gallery' and due to pain point I found, users prefer to have less interaction with their devices when using audio tour. So I think location-based app would be a great idea to track user's location and connect with each artwork.

    What I would like to ask is: - If 2 artworks are closed to each other, will the app be able to track the exact place where the user currently is and connect them to the right audio? - Does location-based app apply to the whole app? (For example, if my app consists of homepage and audio page, while user is scrolling through the homepage and incidentally walking closer to one of the artwork, will it automatically connect to the audio and change to audio page?) - Are there any optional or suggestions on which technology/method would suit the audio tour (ex. Bluetooth)?

    Thank you

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

    Vue, :selected not working

    Posted: 27 Dec 2021 10:44 AM PST

    How would I be able to select a specific element in my courseCategories?
    :select isn't working for me for some reason...

     <select class="uk-select" v-model="formData.course_category"> <option v-for="(item, index) in courseCategories" :key="index" :value="item.id" :selected="index === 1"> {{ item.name }} </option> </select> 
    submitted by /u/dikbummmm
    [link] [comments]

    To what extent should you catch errors?

    Posted: 27 Dec 2021 04:00 AM PST

    So there are statements in whatever language where you do normal things like:

    • assign something to a variable
    • remove something from an array

    etc...

    Then you put those in a block... that does something together. I guess as dumb as it might seem, should you worry about those sub-language-level steps failing...

    I guess you could wrap the entire function in a try catch....

    I'm just trying to make sure that I appropriately handle failures so that whatever app I'm working on continues to run/UI can reflect problems.

    There is one other thing, say you have a recursive nested function, do you catch the entire process or per level. I will try this and throw some errors on purpose inside the nested functions.

    If you have a looping thing, do you put an external check (other than say the main decrementer/incrementer) to make sure if something goes wrong with that, it doesn't just keep going infinitely.

    edit

    Thanks for all the insight

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

    What's the fastest way to calculate area of a polygon given 3 vertices?

    Posted: 27 Dec 2021 10:38 AM PST

    Need help understanding what the readings of a qph file actually means.

    Posted: 27 Dec 2021 06:24 PM PST

    So as i said in the title i have a qph file with some readings that i need help understanding.

    What i know.

    -The file describes multiple drilled holes in a cliff side or mountain.

    -Each hole has multiple readings that contain the following information (azimuth, and deviation Degree from the last reading).

    i also have some comments on the first hole described and some various other things and my thoughts about them.

    What i need help understanding.

    -What the rest of the data means

    -The structure of each reading

    link to the file:https://drive.google.com/file/d/1FPLCipc5c6trV5XhvWB_XcyLv0Z2ecGo/view?usp=sharing

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

    Loading website resources locally

    Posted: 27 Dec 2021 10:30 AM PST

    Hi, I don't know about coding but I just want to ask a simple question. Is there a way to load things from a website from my own computer instead of getting them from the host.

    For example; is there a way to load "https://www.redditstatic.com/reddit.en.gKe0eogbv_E.js" this script from my computer instead of getting it from redditstatic.com each time I reload the page? If theres a way, is there a program or browser extension which can do that?

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

    How to execute a program through javascript?

    Posted: 27 Dec 2021 02:55 PM PST

    I have a program written in javascript (and html). It's meant for running locally, not to be posted online.

    Problem is that for one step I need to use the tool ClustalW. What I put through it is too heavy demand for the online version, but you can easily download it and run it from command prompt. Problem is that now I somehow need to run command prompt from javascript, which from what I read is damn near impossible.

    All I am trying to run is the command:

    clustal-omega-1.2.2-win64\clustalo.exe -i input.txt -o output.txt --outfmt=clustal --force

    It's very important that it all runs through my tool. No command line operations etc., can be required from the user. And the tool needs to remain directly executable (stand-alone), so no installing programs. Ideally it would work with all internet browsers. I'm on windows.


    EDIT: I've figured out another way. With Django you can easily combine JS and Python, and Python can easily run shell commands.

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

    How do you guys handle the process for displaying data from a REST API?

    Posted: 27 Dec 2021 02:00 PM PST

    This question is meant to create discussion. I'm currently working with react native and am curious how you all handle data from a rest api.

    Let's say your api returns alot of data. The route I'm going right now involves using a class to take in the data and (parse/reformat?) it in a way that the view expects. This way if we change the format the api returns the data we just have to change our typescript class to accommodate that change therefore our react view code doesn't have to change at all.

    I'm not sure if this is an optimal solution and am curious how you guys go about this. References or links are welcomed!

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

    Does anyone know about running code with Google App Script?

    Posted: 27 Dec 2021 10:07 AM PST

    I'm only BARELY experienced with coding myself, having tried to learn html years ago. Now for my business I'm trying to automate some emails through Google Sheets, and the code that I've found online isn't doing what it's supposed to do (or at least what I want it to do). Is there anyone who can help me figure out what I'm doing wrong, or even better, help direct me on what to do?

    For more information about the automation I'm trying to run, I want to send emails to everyone in a spreadsheet, but I want the names in the emails headers to be customized for everyone. I also have another thing I'm trying to code, but that isn't as pressing.

    submitted by /u/Foreign-Press
    [link] [comments]

    Development cost

    Posted: 27 Dec 2021 01:21 PM PST

    What would be the estimated cost of making a simple board game in an app for mobile?

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

    When I pay for phone data, what am I paying for exactly?

    Posted: 27 Dec 2021 12:50 AM PST

    Somehow my phone negotiates the two microwave frequencies it's going to call 1s and 0s with some 4G antenna. It then interprets those 1s and 0s as IP packets, which if corrupted or belonging to someone else are dropped (do I pay for dropped IP packets?) It then converts the remaining packets into a useable and reliable TCP stream. (Do I pay for ACK and FIN packets?). It then performs a TLS handshake (do I pay for that?) and then finally sends me encrypted data, which my phone then decrypts.

    What is my phone provider charging me for? Just the useful decrypted application data? Every microwave signal my phone attempts to interpret? Something in between?

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

    What are your thoughts on Haskell?

    Posted: 26 Dec 2021 09:54 PM PST

    I have heard lot of programmers hating Haskell, not really sure why but I couldn't understand their exact reason as I have no knowledge of Haskell.

    1. What are the pros and cons of Haskell?
    2. Is Haskell easy to learn?
    3. Do you know any popular open source projects which uses Haskell apart from Hasura grapql engine?
    4. Where exactly is Haskell more popular in? I have not seen anyone using it for mobile, web, OS, graphics or backend development.
    submitted by /u/BraveEvidence
    [link] [comments]

    Which subreddit to post my first webpage css and html code for review?

    Posted: 27 Dec 2021 05:12 AM PST

    I wanted to post my webpage code and ask about if there is any redundancy and stuff. So which subreddit to post the question in?

    Or should I post it in stackoverflow?

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

    Make batch file run .bat and .exe with automatically entering command.

    Posted: 27 Dec 2021 05:05 AM PST

    I am trying to host Minecraft server.

    no idea how i should do this, i need a .bat file to run a .bat file C:\minecraft server\run.bat, then wait 5 seconds and run a exe C:\minecraft server\ngrok.exe AND run a command ngrok tcp -region eu 25565 in that exe. also exe is not supposed to close.

    cant figure out how i would do this so i ask for help.

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

    What is a library for a library called?

    Posted: 27 Dec 2021 04:50 AM PST

    What are fields of artificial intelligence that we can do projects on?

    Posted: 27 Dec 2021 01:23 AM PST

    like deep learning, computer vision, nlp etc? what else exists? data mining and machine learning comes to my mind...what else?

    and what is the most easiest and fastest to make projects on?

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

    No comments:

    Post a Comment