Programming thread

So what's the point of his service? This is his main product, he has investors for this. Am I missing something here? Everything he's done seems to be useless.
If he is allowing the end user to submit their own "weird function", it looks like he is trying to simplify the process of triggering a simple function on an upload and attaching it to a webhook. It's abstracting away the knowledge required to effectively use AWS triggers and messenger queues to implement web hooks. There are a ton of products like this which just simplify harder processes on behalf of the user. The earlier repo in your post is the same thing. Removing away difficult things and replacing them with easy abstractions.

Edit: in this setup the user only needs to care about defining the weird function, and handling steps 1/5 and responding to the webhook in 9. You are correct though in a way. If the user can't define the weird function, then all the webhook does is notify a bunch of applications that a file has been uploaded.
 
Last edited:
I might just have random hate for this guy
You're not the only one. Theo sucks. His latest videos are just him spending 30 to 45 minutes "reacting" to a 5- to 10-minute video or blog post about the Current Thing happening in open-source, front-end development. Commenters in those videos are calling him out for uploading junk, but, being the "tech influencer" he strives to be, doesn't care.
 
Uploadthing is just a wrapper around S3. You don't call S3 directly, you call his server, then the server gives you the S3 URL that you directly POST to. Then he gets the metadata from S3 and just forwards it to you.

So what's the point of his service? This is his main product, he has investors for this. Am I missing something here? Everything he's done seems to be useless.
This sort of makes sense, but is also something you can trivially do yourself.
You want users to upload to S3 directly from their browser instead of hitting your webservice and then transferring the file to S3 yourself so you use a signed upload. Presumably this simply wraps that interaction. Maybe with some sauce to make sure the file is the right type and size.

I was thinking this could fix the KF uploads, but then you reveal your direct bucket URL, and that would be bad.
 
Hating on languages is pretty silly. Javascript's syntax can be a bit convoluted, but it's quite fast and not that hard to learn. If you know one language, you can learn any other.
I don't mind JavaScript when it is used for something like the front end, though I do think some people overdo it a bit and it would be better to make it simple.

JS on the server also known as nodejs is a travesty that should have never occurred. JavaScript is bad when it is used to build things it isn't supposed to. I see JavaScript used to build things it shouldn't more than any other language.

Also just in general I don't like JavaScript because of some inconsistencies though I admit that is sort of petty.

I hate java and C# more though that has more to do with the fact that I have been forced to work with them more.

They don't actually seem to know how to code, it's all just buzzwords, acronyms and lists of "technologies" upon "technologies", which in reality are mostly libraries of some form. I've seen job descriptions entirely based on libraries, though every programmer worth his salt should be able to learn how to use a new library
hence why I stay away from Webdev a lot. Website development is basically stupid and sucks and I hate it. I've seen it compared to the automotive industry in the US in the 70s. There was a boom but now that is over and the bad times are here. Everything is a piece of shit.
 
JavaScript is bad when it is used to build things it isn't supposed to.
It's a somewhat lightweight scripting language for gluing small bits of logic together. Essentially Lua from wish.com. And if you try to use it for making a huge architecture, you're most likely going to be in for a world of hurt.
I consider JavaScript that runs outside of a web browser to be a war crime.
stopped clock being right
 
  • Thunk-Provoking
Reactions: Bababooey Warlock
The automobile industry is infamous for its ancient compiler versions, so that's going to be hilarious with all the rapid changes to the language.
With so many people piling into Rust to escape C because people who have money to pay C coders are tired of scrambling because of CVEs so they're moving to Rust as a copout; it's going to be so much fun watching the new antipatterns form. Rust has a symbol density approaching APL and it's easy to destroy readability, I see a whole new world of fucked code emerging.
 
With so many people piling into Rust to escape C because people who have money to pay C coders are tired of scrambling because of CVEs so they're moving to Rust as a copout; it's going to be so much fun watching the new antipatterns form. Rust has a symbol density approaching APL and it's easy to destroy readability, I see a whole new world of fucked code emerging.
they could have made c with memory safety but they made something that mixes the worst parts of javascript package bullshit, perl line noise, and c++ ugliness
 
they could have made c with memory safety but they made something that mixes the worst parts of javascript package bullshit, perl line noise, and c++ ugliness
C with memory safety has been made plenty of times, but nobody used any incarnation. The C weenies just go "muh speed, you don't understand the genius of muh 80s shitunix, real programmers get high voltage shocks to their ballsacks when the program segfaults" like clockwork and ignore it. You saw this with Rust, too, mixed in among the complaints about trannies and obnoxious marketing. It's blackpilling, but Rust, Go and Python suggest to me that the #1 thing you need to have a language take off is precisely that obnoxious braindead marketing, and technical quality is somewhere at #18. I distinctly remember - although I cannot find the source again for the life of me - that Rust specifically chose C++-like ASCII barf syntax over its initial ML-like syntax to appease retards who assumed a language that didn't look like shit couldn't be fast. It's infuriating. You'd hope a profession that's supposed to be all about thinking would act less like baboons. I'm mad. Mad about computers.
 
Getting back into C# using Godot Mono and I've forgotten how neat it is. Theres a lot of stuff with inheritance that I havent used in a long time. I really do like it a lot. Though I might be changing it out for C++ using the Wicked Engine. Though, since im not anywhere near experienced in game development i might just stick with Godot Mono for now since the knowledge base is so much more vast. The biggest reason to change is the fact Wicked isnt putting up pride flags.
 
  • Like
Reactions: Umikot and y a t s
C with memory safety has been made plenty of times
name these mysterious languages
i want something that looks almost exactly like C except there are a few extra keywords that make the compiler more militant about doing stupid shit with pointers and you can set things that fall out of scope to be immediately freed like C++ destructors can do and you can add bounds checking to arrays
instead of making a gay shitshow language that can only use dependencies written in itself because it makes everything as hard as possible to facilitate trendy functionalshit

i am slowly beginning to believe that we should just use a smaller version of C++ with a few extra alterations
 
name these mysterious languages
i want something that looks almost exactly like C except there are a few extra keywords that make the compiler more militant about doing stupid shit with pointers and you can set things that fall out of scope to be immediately freed like C++ destructors can do and you can add bounds checking to arrays
instead of making a gay shitshow language that can only use dependencies written in itself because it makes everything as hard as possible to facilitate trendy functionalshit

i am slowly beginning to believe that we should just use a smaller version of C++ with a few extra alterations
Cyclone is very close to what you're describing, although I'm not sure about the RAII-lite. It's major abandonware for the reasons I mentioned; parts of it were reused in Rust.
 
While it is true that legacy OpenGL shouldn't be used for game engines nowadays, I seem to have a soft spot for it in regards to using Vertex Arrays instead of manually specifying each vertex/normal/texture coordinate/color with their dedicated functions. Precalculated lightmaps and level geometry made via brushes are also things I like about older game engines and their level editors, and I will admit that I like models using skeletal animation more than ones that use vertex animation.
 
While it is true that legacy OpenGL shouldn't be used for game engines nowadays, I seem to have a soft spot for it in regards to using Vertex Arrays instead of manually specifying each vertex/normal/texture coordinate/color with their dedicated functions.
I think modern OpenGL (hell, even Vulkan) lets you do that, and I think it's even the recommended way.
Precalculated lightmaps and level geometry made via brushes
I'd like to see an engine/style that focuses on primitive geometry, but also has a few modern techniques here and there where it counts. I really like the render target water reflections in the later versions of the Source 1 engine. Pure diffuse lighting is quite dull and getting cubemaps to not occasionally look weird is an unending war. Why not use the sheer power of modern GPUs to have unfucked reflections everywhere?

Where's a good place to get started if you wanna start programming
Find any sort-of-mainstream language and start using it to make basic things. Here's an idea: Open up a text editor, make an HTML page with a <canvas> element, then start drawing things with a <script> tag. Eventually you can use DOM events to take input and register timer callbacks. You will then be able to make simple games. Get familiar with consulting references and looking things up as you program. Everybody does it. Then you can branch out to other languages and learn APIs you want to use.
 
C with memory safety has been made plenty of times, but nobody used any incarnation. The C weenies just go "muh speed, you don't understand the genius of muh 80s shitunix, real programmers get high voltage shocks to their ballsacks when the program segfaults" like clockwork and ignore it
One mistake I see software engineers make nearly constantly especially in the modern days is that they tend to think they are smarter than the customer in all situations.

In this sense many people who make languages think they are smarter than the people who will use them in every instance but this is retarded. There are a lot of things humans are actually really fucking good at and it is better to have a human do these things rather than a machine. Memory management is one of these things.

I respect Go's memory management philosophy because it allows you to just use a garbage collector if you can get away with not thinking about it but if you need to manage memory you can.

Programming languages are tools and the best tools let the man using it have as much control as that man wants.
name these mysterious languages
ADA which is used by the defense department. It has all the same problems that Rust has in terms of complexity. There is a lesson to be learned from this actually.
Where's a good place to get started if you wanna start programming
Depends on why you want to learn programming honestly. I'd say in order to learn programming you have to enjoy what you are doing.

There are two routes I think you can go, You learn the basic fundamentals like variables, types, arrays, classes, functions, and assorted data structures, and basic algorithms etc.

Or you just start building whatever it is you want to build.

The first will let you learn quicker but is less fun and you might stop.

The second might be more fun assuming you don't mind being frustrated.

I recommend the former if you have the time, patience and discipline to be a bit bored. If not I recommend the second strategy.

This might piss some people off here but I think C is the best language to start in with its clear syntax and basic structure.

I learned programming in Python and then started learning C and I think C teaches you more and for basic stuff C is basically the same difficulty as Python.
 
Back