r/AskProgramming • • Nov 11 '20

Careers For the self taught programmers, how did you do it? What did you had to learn to get your first job?

53 Upvotes

r/AskProgramming • • Nov 02 '20

Does randomness really exist in computers, where everything has to be an output of a logical calculation at the core of a computer's hardware? Is it really a random result that a random number picker out of a set of numbers gives you?

53 Upvotes

Thank you


r/AskProgramming • • Oct 31 '20

Careers The big rewrite. You know, that piece of legacy no one wanted to touch.. How did you finally convince management to let you do it?

53 Upvotes

r/AskProgramming • • Jun 12 '20

Why is docker a thing?

53 Upvotes

I'm genuinely curious here, not trying to ask a loaded question, is just that... I don't really understand why is so widespread, so I'll just go with my particular case:

I'm on $Big_Corp. We have many stuff obviously standardized, and for our web applications we have been told to use a dockerized database. I started a small project from scratch and to connect to a $Standard_Database I just downloaded $Standard_Database, installed it on my machine, configured it and began working with it.

Of course, this is on a development environment, so more or less, who cares how I got this set up, but I'm approaching a point in which I got to "get real" with the database, which implies setting up a docker image of $Standard_Database.

Now, for what I've seen and I'm reading, this is just some kind of container that will (in theory) only have that database, with docker itself running in memory for I don't really understand what. From the point of my application and my database-access program, I will only have to change the database connection info and I would be good to go.

I kind of understand a potential need for having independent systems and all that, but, as someone who really love continuous integration and has spent lot of time making processes that deploy cleanly, I don't really see the point on making a new layer just to have this database for this application.

Maybe I'm having here a too narrow view and in a bigger org is needed to keep things tidy (thus my case of use would be just "the way corporate has told us to do things", maybe I'm missing something here. And thus, I'm asking here about it.


r/AskProgramming • • Jun 10 '20

How not to get dishearted during a project because it already exists somewhere else

53 Upvotes

I'm new to app development and I've been working on a specific app for a while.

obviously I'm aware that there is app for everything already, but I just find it so frustrating that whatever I think of is already taken.

so recently I saw an app that was doing exactly what I've been working on, and although I think my front end looks better, the other app is more functional than mine and got me really dishearted.

how do you guys deal with this?


r/AskProgramming • • May 13 '20

I still don't understand what problems Dependency Injection solves

53 Upvotes

I know what DI is and how to use it, I just don't understand why to use it and what errors I will get not using it.

I've been looking at explanations e.g. https://stackoverflow.com/questions/14301389/why-does-one-use-dependency-injection

And the top answer used a class called Logger to justify a fault scenario i.e. he said using this statement through multiple classes is problematic

var logger = new Logger();

But why can't I have multiple of these statements in different classes throughout my code? If they exist in a different scope each what does it matter if I use DI or not to create a ILogger interface? Vs just instantiating a separate logger as a dependency for each class that needs it


r/AskProgramming • • Mar 26 '20

APIs Explained ...

53 Upvotes

I dunno but I don't understand APIs fluently. Does anyone know of an informative article or perhaps a website or just personally explain to me frankly wtf APIs are an why we need them ...

Edit: Thanks everyone for your empathetic contributions. Guess what; I have a better understanding of APIs now than I did before.


r/AskProgramming • • Dec 10 '18

Follow-up to "Help me make my son a birthday cake."

53 Upvotes

As promised, we just celebrated my son's birthday yesterday and your help made his cake awesome.

Link to an image of the cake.


r/AskProgramming • • Jan 29 '26

Career/Edu The more I learn about web development, the less I want to do it

52 Upvotes

I have been learning web development since about 2019. I started with copying JavaScript projects out of books, then moved on to designing my own websites with HTML and CSS. I learned PHP later on (maybe it was 2021?), and was able to do a few projects with it, but never anything too advanced. I was very critical of Node.JS and MVC architecture, instead preferring the event-driven model from ASP.NET (which I had introduced myself to a while after PHP) and the weird preprocessor stuff from PHP. I tried MVC for the first time a couple years back, and ended up settling with Ruby on Rails. I'm not a fan of how opinionated Rails is, to be honest, but I still find it the easiest way to develop backend stuff. I also started using jQuery around this time.

Now, all that is perfectly fine with me. I found learning each of these technologies to be fun and intuitive. It's what comes after that's a problem for me.

To start with, trying to host a website on the modern internet is a complete mess. There are so many options to choose from and all of them suck in their own unique way. There are also a ton of exploits which are constantly being abused that your app has to protect itself against. And if, god forbid, you decided to implement user-generated content for your app, moderating it is a total nightmare! I tried to learn ReactJS, but I learned it was the source of most of the performance issues in modern websites (remember when Facebook started performing significantly worse in 2013? Nintendo Switch eShop anyone?), so I kinda gave up on it and went for jQuery and server-side stuff instead. I also learned how to use Webpack and ES6 modules recently, and it just somehow makes JavaScript... less fun? Trying to build my projects around webpack and modules feels increasingly cumbersome and irritating. I honestly prefer the old method of tossing everything into global scope because it required way less work from the developer. Making stuff for the web used to be quick and easy, like an environment made just for rapid prototyping, but now it feels like a chore the same way programming in C++ does.

Who knows, maybe this is all a bit silly, but I'm just not having fun with web development any more. Really, the "intuitiveness" of it all took a sharp hit with Webpack. It's very unpleasant to use. I've had good luck with Vite before, but everything about it screams immaturity when compared with Webpack, so I don't bother with it.

Feel free to let me know if I'm just being stupid and these problems are easily fixable.


r/AskProgramming • • Jan 26 '26

Other Does vibe coding make programming boring for you?

52 Upvotes

This might just be me being weird but I find using AI to help with software development projects makes it boring.

The whole fun of programming is solving problems, learning new software, programming languages and techniques as well as organising software projects using decent architecture.

Being able to ask an AI agent to solve your problems ruins the fun for me.

Sure it is faster but it takes away quite a lot of the fun of programming.


r/AskProgramming • • Nov 09 '24

Other Why have modern programming languages reversed variable declarations?

52 Upvotes

So in the old days a variable declarations would put the type before the name, such as in the C family:

int num = 29;

But recently I've noticed a trend among modern programming languages where they put the type after the name, such as in Zig

var num : i32 = 29;

But this also appears in Swift, Rust, Odin, Jai, GoLang, TypeScript, and Kotlin to name a few.

This is a bit baffling to me because the older syntax style seems to be clearly better:

  • The old syntax is less verbose, the new style requires you type "var" or "let" which isn't necessary in the old syntax.

  • The new style encourages the use of "auto". The variables in the new camp let you do var num = GetCalc(); and the type will be deduced. There is nothing wrong with type deduction per se, but in this example it's clear that it makes the code less clear. I now have to dive into GetCalc() to see what type num is. It's always better to be explicit in your code, this was one of the main motivations behind TypeScript. The old style encourages an explicit type, but allows auto if it's necessary.

  • The old style is more readable because variable declaration and assignment are ordered in the same way. Suppose you have a long type name, and declare a variable: MyVeryLongClassNameForMyProgram value = kDefaultValue;, then later we do value = kSpecialValue;. It's easy to see that value is kDefaultValue to start with, but then gets assigned kSpecialValue. Using the new style it's var value : MyVeryLongClassNameForMyProgram = kDefaultValue; then value = kSpecialValue;. The declaration is less readable because the key thing, the variable name, is buried in the middle of the expression.

I will grant that TypeScript makes sense since it's based off JavaScript, so they didn't have a choice. But am I the only one annoyed by this trend in new programming languages? It's mostly a small issue but it never made sense to me.


r/AskProgramming • • Jun 15 '24

If you could instantly become fluent in any programming language, which one would you choose?

52 Upvotes

Inspired by this comment from an r/AskReddit post.


r/AskProgramming • • Dec 29 '23

Other Are security flaws relatively common in software run by successful companies?

52 Upvotes

Last month I was surprised to read a thread where many of the experienced devs here said much of the software they've worked on (even in larger companies) was made of "hacky" code that is barely strung together.

I am curious - have many of you also come across security flaws? Is this common for large-scale applications to have exploits that are likely (or hopefully) never found?


r/AskProgramming • • Dec 21 '23

Other Why is it that email seems to have remained fundamentally unchanged since the 1980s?

52 Upvotes

Has anything significant really changed 'under the hood' of email in the last 30-40 years? Why does the user experience and shortcomings of email today still remain basically the same, while other technologies like instant messaging etc have become more secure?


r/AskProgramming • • Mar 20 '23

Other Anyone else not impressed with GPT's coding skills?

52 Upvotes

I most often see 'I'm a new programmer and with chatgpt I wrote this python gui script that does X'.

And I think we are about to have one of those "Lets outsource to a third world country... oh wait that was a terrible idea" moment.

I love GPT, its been incredible on multiple areas, but writing code has been a poor use for me. I do use it at work to do the following:

Fill in parameters for functions/apis

Explain an error

Tell me how to use poorly documented niche language IDEs

Write a algorithm to get a general idea what I'll have to rewrite later

Things I dont use it for anymore:

I used to use it for algorithms instead of copypasting from stackoverflow, but I have found it be too poor at doing that as well.

It doesnt handle edge cases and writes the code rigid/not extendable.

Its bad at regex, and I end up using a GPT based regex website because its somewhat better/trained on regex.

I want to blame it on my prompt, but I've used it enough to realize its not necessarily me. ChatGPT4 has not solved it either.

Great tool, even a great tool for programmers, but it isn't good at coding.

So, do you blame the prompter? Or do you agree that it isnt useful for writing code?


r/AskProgramming • • Nov 26 '22

Javascript Why do so many websites have JS errors all the time?

52 Upvotes

I create quite complex webapps and I try to get the console.error-counter to 0. I try to treat every warning as fatal and use tons of assertions to try to make sure the program never goes into any undefined state if anyhow avoidable (I have only encountered a very limited number of cases where I did not succeed and had to life with an error popping up), but those are usually in extreme edge cases.

But when I look at any website's developer console, it's flooded with errors, right from the start. I don't mean some normal guy's website with 2 visitors a year, but even things as Google (which produces 4 errors for me, all regarding some cross-origin stuff with some base64 images). Yeah, Cross-Origin-Policies can be hard to come by. But this is just one of many examples.

Try looking into some websites you often use and you'll probably see the same.

Why don't people, even at such highly-visited sites like google, care about those errors?

I mean, the site still works. I don't see anything on the google site that doesn't display correctly, so it obviously works. But is that really enough? Why not handle these errors somehow?


r/AskProgramming • • Nov 01 '21

Other Why do people dislike Java?

52 Upvotes

I’m a beginner to intermediate programmer, and I’m curious why people dislike Java. I’ve worked with a few different languages (c++, Java, python, c#), but the only one I actually disliked was python and that’s because of how annoyingly different it was. Is there a aesthetic reason for why people dislike Java (like disliking python for the white space) or is it something more like how the language works (like [insert something low level that I don’t know about another language])

Thanks!


r/AskProgramming • • Jul 14 '21

I know a lot and I work as full stack dev since 12 years yet I feel a failure and mediocre

52 Upvotes

Hello fellow coders,

I have been in the IT software dev field since 12 years.

I've seen a lot of stuff, really.

I've been taught the hard way system administration, IT tech support both software and hardware for every imaginable platform (android, mac, blackberry, windows, linux) for a lot of hardware (laptops, desktops, phones, tablets, embedded, barcode scanner, thermal printers, serial/ethernet stuff, arduino, raspberry, some IoT and list can go on)

I've seen a plethora of technology and as of today, my skillset covers a wide array (I preferred this word over others, duh, I'm a programmer) of technologies.

I develop full stack.

From setting up the VM/Cloud machine on Azure/AWS, the Active directory on which it authenticates, the database (both relational or documental like mongo or cosmos for azure etc. etc.) on it which the application will use, the application itself (I am doing PM/Developer for a set of 3 big portals for a pharmaceutical company) and I set up the whole environment and the application skeleton for the other devs under me to use, so their work can be faster. I decided what programming pattern apply to the project. I go to the customer and deploy the application on their server, talk with them and solve problems or decide for new projects.

I work mostly on .NET Microsoft technologies but as you can imagine I saw the hell and back (C, C++, ASP Classic, Javascript and derived frameworks like angular, vue etc, php, sql in various flavours, from oracle mysql sql serve.... etc etc).

So I don't definitely lack experience.
BUT

As many of you could think "Well, that's a really good achievement", I feel lost and used.

All the stuff I know is devoted to quick problem solving. To quickly put up an application and work.
I would like to be a jack of all trades but the stuff is just too much.

I would like to know every detail of a technology but I can't. I study it but I forget it. I use it and I think "Ok it worked so I learned it".

Yet, I find myself overflooed by good practices, patterns, new technologies, new tech toys, and I see brilliant devs who look like they know it all and can grasp things immediately, even if they are in the field from less time than me or for a few more years.

I hate it. I feel dumb. Most of the projects I do looks like a dumb trial and error because I partially forgot that best practice, that pattern, that detail of the framework.

Lot of technologies I would like to use look hard and I can't remember all the details. I have to work and study them and I can't take all the work information and all the study informations.

Recently I've dived into docker. It looked good until I had to learn the details, which were a ton.

Needless to say I remember half of the things and I'm a half baked docker devops.

Yes, i can run some container, put them togheter and stuff. But I would like to master that technology and I feel that it will take me years to do so because I'm so forgetful and stuff.

Sometimes I ask for help on the web, and people tell me to put up a quick project to show the problem I'm having. I'm both scared and lazy to do that. I know something one of those brilliant dev would do in 1 hour would end up taking 4 hours for me because I forgot to put this, to add that, and I get lost in details and trial and errors.

It's frustrating and infuriating and I think my brain is limiting me.

Those "brilliant" dev seems to grasp easily any technology, remember the details and if they don't a quick look on google and they are able to make it work or to fiddle with it.

A simple example.
Up to these days, I'm still forget the concept of delegate methods and I have a hard time re-grasping it everytime.
I've studied and used it various times, yet in the span of 12 years, it happened to use them a few times.

I completely forgot the whole thing and need to relearn it. Sure it's quicker the next time but it's frustrating.

I also lack the time, motivation and culture to learn to do my job in a structured way.
I see lot of people read books, books, books, about programming patterns and other stuff.
I can't do that. Finishing a programming book takes me a lot of time because I need to learn every detail and understand what it does.

Basically I feel useless because I feel like a code monkey who knows a bit more than the average, just thanks to a combination of luck, intermittent willpower, job experience.

I've arrived to the point of thinking to pay other senior programmers to lecture me about the technologies I already know.

I am the guy to who you would gladly give tasks, but the second choice if you need to start a new project or do pm stuff.

I am the guy who still to this day does some stupid mistakes like staying on a task too long because I overdo syntactic sugar in code or sometimes does a lot of trial and error.

I hate all of this. How do I change? What can I do?

I can just surrender and get along with a "that's you, you know already a lot, live with it" mentality


r/AskProgramming • • Jul 07 '21

Will WebAssembly ever achieve mainstream status?

52 Upvotes

I'm a web developer and I don't like web development. I think we're trying to do a lot more in the browser right now than what we were ever meant to do. I might be a bit old fashioned, but I miss downloading a piece of responsive, powerful desktop software instead of using either an Electron monstrosity or a sluggish web app.

Having said that, something that really excites me is WebAssembly. For something that became stable in what, 2015, 2016, it just hasn't made a lot of progress. Why is that? Why haven't we seen WebAssembly really hit the mainstream? I know there are companies out there working on various WASM techs, Microsoft included, but it just doesn't really seem to get talked about. Thoughts?


r/AskProgramming • • Apr 11 '21

Language What is "enterprise" Java code and how it different from normal Java code?

52 Upvotes

In the article I was reading there was a mention of "enterprise" Java code.

What is meant by that and what are the differences to normal Java code?


r/AskProgramming • • Apr 06 '21

Mobile How do developers get their UI to look exactly the same on mobile and inside the browser?

52 Upvotes

Forgive me for my beginner question, I don’t know a lot about mobile development but I would like to learn. I’ve always wondered how developers are able to make an app that has the exact same UI on a mobile device, and in the browser or even a desktop app (for example, Discord).

In addition, it’s interesting that the mobile apps can be look the exact same on an iPhone and an Android. I am aware that you can use flutter for this, but then, how do they build the web application that runs in the browser and looks so similar to the mobile app? How do they go further to build a desktop app that looks similar as well?

I would appreciate if someone could explain to me how this works. Do developers use different technologies or are they able to use the same frameworks and languages when developing for web and mobile.

Thanks

EDIT: I am not asking about the mobile-first approach (building a web app and testing it in the mobile browser) but I am instead asking how developers build web apps (browser) versus mobile apps (App store or Google Play) versus desktop apps (electron apps, QT, etc) that look exactly the same.


r/AskProgramming • • Feb 16 '21

Other Struggling With My Masters Due To Depression

52 Upvotes

Hi Guys, I’m not sure if this is the right place to post this. If not then I apologise and the mods can delete this. I just don’t know where to go or who to ask.

For some background information, I’m a 27 year old student who is currently studying for her masters in artificial intelligence. Now to give some context, my background is entirely in education and philosophy. I applied for AI because I realised that teaching wasn’t what I wanted to do and I didn’t want to be stuck in retail for the rest of my life.

Before I started this course, the only Python I knew was the snake kind. Some background info on my mental health is that I have severe depression and anxiety that I am taking sertraline for and I’m on a waiting list to start therapy.

My question is that since I’ve started my masters, I’ve struggled. One of the things that I’ve struggled with the most is programming. Python is the language that my course has used for the AI course and I feel as though my command over it isn’t great. I know this is because of a lack of practice and it scares me because the coding is the most basic part of this entire course. I feel so overwhelmed when I even try to attempt to code. It’s gotten to the point where I don’t know how I can find the discipline or motivation to make an effort and not completely fail my masters.

When I started this course, I believed that this was my chance at a do over and to finally maybe have a career where I’m not treated like some disposable trash.

I’m sorry if this sounds as though I’m rambling on, I’m just struggling and any help or suggestions will be appreciated.


r/AskProgramming • • Feb 07 '21

How can I be ready for competitive programming?

52 Upvotes

Hey, I'm a high school senior. I have good knowledge in python, C#, C, html, CSS, and JavaScript. How can I be prepared for competitive programming like IOI and other competitions? Where should I practice and learn? And what topics I should learn?


r/AskProgramming • • Jan 25 '21

Ultimate noob question. Can I program/compile with a shit 150 dollar laptop? Are there online compilers so I can actually run programs?

52 Upvotes

I mostly want to write math programs.