• Breaking News

    Tuesday, December 1, 2020

    Question to any black people in this sub: What do you think of the recent terminology changes within the industry? Ask Programming

    Question to any black people in this sub: What do you think of the recent terminology changes within the industry? Ask Programming


    Question to any black people in this sub: What do you think of the recent terminology changes within the industry?

    Posted: 01 Dec 2020 10:12 AM PST

    Before any mods delete this: This is not a political post. I do not have a political agenda for asking this question. All I'm looking for are individual personal perspectives.

    There's been a recent drive to rename git master branches to "main", and blacklist/whitelist to "allowlist"/"denylist". The reason for doing so is to remove potentially racially tinged, exclusionary language from our industry.

    Something that's been curiously absent in all this though, are black voices. Given that these changes are explicitly intended to make the industry more inclusive of that exact group, I'm curious here what members of said group think about this effort.

    I know some might consider it a faux pas to ask this so bluntly, but if we're serious about creating meaningful, positive social change, then we need to actually listen to the people that we say we're trying to help.

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

    Junior Java developer wants to learn to love Java, HELP ME

    Posted: 01 Dec 2020 08:03 AM PST

    Hello, everybody!

    I'm a recent CS graduate who landed a pretty decent, comfortable Junior Java developer position. Started working the job exactly 1 month ago to the day. I've been doing pretty easy tasks, mostly CMD utilities while I'm still learning.

    The problem is that I absolutely dread Java. It's not because of any particular difficulties in work. I've managed to complete all my assigned tasks in a timely manner. A little google here, a little stack overflow there, a lot of baeldung everywhere, and any related documentation. Completing my tasks is not a problem. Naturally, there were a couple of hiccups but that is to be expected.

    However, I just don't enjoy the process of programming in Java, AT ALL. I really enjoy iOS development with Swift, and web development with React. But here's the kicker. I enjoy C#. I've done a bunch of .NET and Unity stuff!

    I don't want to seem like I'm hating on Java. I am really trying to enjoy it, but I just can't. It's such a verbose, ugly language. It takes so long to do anything. Things I never have to worry about in most languages I've used require 75 lines of code to deal with in Java. There's a lot of resources online, but it's hard to find the "right" resources. Maybe I'm still too inexperienced to actually google the correct problem I'm facing, but it seems like just 1 out of 5 links is related to the problem I'm having.

    When learning C#, I didn't face any of those issues. I don't know if I'm doing something wrong, but I know I'm not doing anything different than when I was learning C#.

    I know how some developers get when someone is talking trash about their favorite language (this is not my first post on r/AskProgramming). I just wanna say, I don't mean for anyone to be offended. I'm just sharing my experience with Java. And I really want to learn to enjoy it.

    So, please, tell me what you think. If you enjoy Java, let me know what you love about it! Also, maybe let me know if I'm doing something wrong in my approach. I really hope it grows on me.

    Keep it wholesome in the comments. Still dealing with PTSD from last time posting here :D

    submitted by /u/Wizard-of-Koz
    [link] [comments]

    I want to develop Shopping Point System but how ?

    Posted: 01 Dec 2020 10:45 PM PST

    I want to develop ios application about shopping point sytem ! But I dont kow the exact logic of point system not programming problem . Can you explain me about shopping point system flow ?

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

    (React Hooks) Creating a count down timer

    Posted: 01 Dec 2020 04:09 PM PST

    function App() { const [minutes, setMinutes] = useState(25); const [seconds, setSeconds] = useState(0); const start = () => { // ... return setInterval(timer, 1000); } const timer = () => { if (seconds >= 0) { setSeconds(previousValue => previousValue - 1); } else if (minutes >= 0) { setMinutes(previousValue => previousValue - 1); setSeconds(59); } else { // ... } } useEffect(() => { const id = start(); return () => clearInterval(id); }, []); return ( <div>{minutes} {seconds}</div> ); } export default App; 

    Trying to create a count down App. However whenever I log the value of seconds and minutes, they never change within the timer function. I know the values are changing since the value being displayed is decrementing. So this is messing with the if conditions. I'm not sure what to do. Any help is appreciated.

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

    Do you regret being a programmer?

    Posted: 01 Dec 2020 09:48 PM PST

    In your opinion, what are the drawbacks of the I.T. career? Do you consider shifting careers?

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

    Parallel Arrays C++

    Posted: 01 Dec 2020 09:33 PM PST

    I was wondering what is the difference between parallel arrays and arrays for coding with C++.

    submitted by /u/Task-Exotic
    [link] [comments]

    LinkedIn tool feasibility

    Posted: 01 Dec 2020 08:45 PM PST

    Hello everyone,

    I know nothing about programming, but am wondering about how feasible it would be to build a tool that could scrape the LinkedIn connections of all my LinkedIn connections and exporting that info to a .csv file. I can see a list of my connections' connections by viewing their profile, but would like to automate this process and do it at scale.

    The minimum information I need to scrape is first name, last name and LinkedIn url.

    I've done some research and found a couple open source projects that seem similar here and here, but don't quite address the problem I'm solving for.

    It is allowed under their ToS and I'm currently using a chrome plugin called DuxSoup but that provides info about my personal connections.

    Let me know if there is any other info that might be helpful!

    Thank you in advance :)

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

    What would be the best way to check if new data exists in a database, and if new data does, save the old data, and replace it with the new data? I'm having trouble thinking of the best way to do this. Any help would be appreciated.

    Posted: 01 Dec 2020 04:41 PM PST

    So there's a database that gets updated daily. It is in a zip and it's comma delimited. I want to download that database every day and check it against updated changes everyday, as it changes daily but the amount of changes aren't that great but the details are great on what changes. Unique keys will have information about it change, new keys with information will be added, and old keys with information will be removed. I want to update the database with the new information, but I also want to save the changes that were made to the database to either the same database or a new one.

    I can download the database on day one. I can unzip it. I can then throw the CSV file into a SQL database. I then run a script in like golang to compare each key for changes or additions and at the end for removals? Is that how I should do this?

    Thanks.

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

    Can JS, or a different language, track how long a user looks at a section of a website?

    Posted: 01 Dec 2020 03:18 PM PST

    Been out of web dev for a while and I thought there was a way with JS to track length of time on a section of a page but for the life of me I can't recall if it was possible or how it was done.

    I do remember tracking time on an entire page or tracking the timing of calls to load parts of a site like animations, or something at the bottom of the site, or new sections for infinite scrolling.

    But let's say a huge block of plain text all loads at the same time. I do not remember if there was a way to track which paragraphs a visitor spent the most time viewing.

    Was this possible? Is it possible now? Is JS the best way to do it for websites?

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

    FTP Polling Architecture

    Posted: 01 Dec 2020 03:05 PM PST

    I am looking for architecture solutions to polling several public FTP servers for data. We have some use cases that need data every 15 minutes, some that need to check if a file exists during certain hours every minute (e.g. knowing when there is a new file as soon as possible is important), and some that just need to check daily to see if anything is new. Our current implementation uses ~ 100 cron jobs to check different servers as well as specific paths on those servers for the various data. The intent was not to scan too frequently so as to not bear down too hard on the remote servers (mostly government). Some of the files are quite large (250+ MB) and are of generally arbitrary size that must be downloaded and put into the database.

    It is quickly becoming both a burden on our server running the cron jobs as well as maintaining failures and the cron job scheduling itself.

    Current stack is LAMP (Linux/Apache/MySQL/PHP) mostly if that matters but we're open to AWS Lambda, Node, etc. - I want to think outside of what we're doing to come up with a more scalable solution.

    Any ideas?

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

    Vimeo player restful API docs?

    Posted: 01 Dec 2020 02:57 PM PST

    I am looking at a dart library that hits a specific vimeo url...

    https://player.vimeo.com/video/{videoId}/config

    Hitting this url returns a json file with a lot of fields. I am trying to find any docs that give a description of all of these fields. I have been unable to do so at this point.

    When I go to the Vimeo API reference, it refers to language specific apis like the python api or the javascript api, not the restful api (or at least the portion I am looking for).

    Does anyone know how to find docs that refer to the json returned from the previously listed URL?

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

    Weird question, but can you complete 4 years of computer science in college only using your laptop?

    Posted: 01 Dec 2020 11:03 AM PST

    What i mean is, did you ever have to use other electronic components in your major? Or can you hypotheticaly study app development and web design only using your laptop and phone?

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

    Reddit live upvote counter. Real or RNG?

    Posted: 01 Dec 2020 10:26 AM PST

    The new live upvote / comment count animation is quite cool, but given how random the upvote count usually is I have have to wonder to whether it's actually live or a nice RNG animation.

    I'm too tired to look a the code now, but I don't see any network activity before the count rolls forward. Am I just missing something?

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

    blue pelican java mega file answers to projects/answerkey to all projects

    Posted: 01 Dec 2020 01:55 PM PST

    Hi ive been using the blue pelican textbook to learn java and want to check my code, i have the answer key but its only for exercises does anyone have an answer key for for all of the projects? Thanks!

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

    When are binary search trees actually used in the industry?

    Posted: 01 Dec 2020 10:04 AM PST

    Gift for a programmer

    Posted: 01 Dec 2020 07:45 AM PST

    I want to get my bf a programming-related gift for Christmas but I have zero clue what to get. He's a computer engineer and wants to get a job at a big tech company but he just graduated with his BS this past spring. He said he needs to study for the interviews so is there like books or tools I could get him to help him prepare for those type of interviews?

    Also, he mentioned wanting a mechanical keyboard or something like that and I found some online but idk which brand or type would be best.

    Thanks for the help!

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

    How are SDR vs HDR files stored?

    Posted: 01 Dec 2020 01:32 PM PST

    Dont know if this is the place to ask, but how are the pixel values encoded in the raw files? For standard SDR images we have 3 values between 0-255, one for each color. Since hdr is 10bit are there more values distinct color values for each pixel(0-1023)? And lastly how is luminance encoded both in sdr and hdr? I've tried to find resources on this but i dont really know what to google since i mostly get articles targeted at consumers of HDR technology.

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

    how to use Ubuntu in C

    Posted: 01 Dec 2020 01:12 PM PST

    i have just installed valgrind in my computer. i have no idea how to compile my program in ubuntu. i am quite used to compile my program in windows operativ system. when i tried to compile my program as like windows its not working i mean " gcc -std=c99 -Wall - array array.c". furthermore it is quite hard for me to use valgrind.

    submitted by /u/rahli-dati
    [link] [comments]

    What is an IP port exactly?

    Posted: 01 Dec 2020 06:23 AM PST

    Can someone explain me like I am a kid who was dropped on their head, I've watched so many videos but it's still allusive to me.

    So far this is how I imagine it, like the IP number is your house (computer), and the port numbers are like windows to the house where certain information can be released or accepted. Sort of like how the USB cannot fit into the VGA hole?

    Maybe it's just that simple, but I feel like I'm missing something tangible. I'm always thrown off by the lack of tangibility, or seeing the ports actually being used by the computer... if that makes sense.

    EDIT: When I was a kid I remember hearing people could hack you if they had your IP number because they could check if certain of your ports are open and exploit them.

    EDIT 2: OK so thinking about it more...

    I think I get that each network port identifies what kind of service the request is looking for like, having :80 at the end of the IP address is saying "Hey the think I'm doing has to do with a website, I want to see a website from this IP address", or :25 at the end of the IP address is saying "Hey the information I'm sending is in the form of an e-mail so please treat it like that."

    But what I don't get is what structure is this under. If I'm in my browser and I type "www.google.com" then the DNS server says "you want this IP address" and then my computer goes "OK thanks I'll go there" and goes there, why even tag the :80?

    Like, before e-mails, there were just regular messages, right? Is there a port number for every single thing, like what about those username/password things on websites, or like message things on websites, do those require a port too? I mean, I just don't get it at a deep level lol.

    Thank you!

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

    Do Developers build Self-Defending Applications?

    Posted: 01 Dec 2020 04:37 AM PST

    Hey everyone!

    I'm a researcher investigating techniques where applications are built in a way where they can detect attacks by themselves and thus being attack-aware. There are different names for this concept as well as different approaches in implementing such capabilities. I'm more focused on the AppSensor style of this concept where the core idea is to detect input validation errors or exceptions caused through attacker activity and then to respond defensively (e.g. close the connection, lock the associated user account, force authentication for sensitive functionality etc.) after collecting a number of such errors/exceptions. I was wondering if this something that developers actively make use of and perhaps also your thoughts on this concept in case you haven't heard about it before. My experience so far was that most of the developers that I have talked with were not aware of this but were quite positive about the idea itself since it is based on simple and generic rules. There are parts of an application, such as authentication, where it is more common to see this concept in action (lockout after a certain number of failed login attempts) but I think what most were not aware of is the fact that this can be applied in any part of the application where it makes sense.

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

    Can someone help me with my homework?

    Posted: 01 Dec 2020 10:04 AM PST

    My assignment is to create a UI radio using visual studio express 2012 which I know is no longer available. However I also have a Mac. So I improvised and used Xcode. However I still don't know how to build or even understand c# or visual studio or Xcode. I've emailed my instructor she wasn't much help. There not that much research. And this project is due by Friday.

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

    How do you "warm up" before starting a project?

    Posted: 01 Dec 2020 09:44 AM PST

    What do you consider "must know" technologies for front-end devs going into 2021?

    Posted: 01 Dec 2020 09:06 AM PST

    Also, if you have any good resources for common interview questions or stuff like that, it would also be hugely appreciated.

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

    Trying to find a blog post about errors and error handling

    Posted: 01 Dec 2020 08:35 AM PST

    There was an article/blog about different kinds of errors in programming and which ones should be part of your API, which ones you can design around, etc. I think the person made up some three or five categories of errors. I don't believe it was language-specific, but IIRC his examples were using C# or something similiarly Java-y.

    I believe the author was quasi-famous amongst programmers.

    He gave an example of a try-catch around a thrown exception that you can't avoid. It was opening a file. You can't check that the file exists and then open it, because it may have been deleted between your check and the attempt to open it. So you just have to try to open it and deal with the possible failure. This was an example of one of his "types of errors".

    Ring any bells?

    I thought for a second that is was "The Error Model": http://joeduffyblog.com/2016/02/07/the-error-model/

    But that's not it (still a good read).

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

    No comments:

    Post a Comment