|
redleader posted:what other careers are suitable for people with brains that make them stereotypical computer touchers you become the person telling the computer touches what to do and in my case, get paid significantly more for doing it
|
# ? Jun 1, 2023 14:23 |
|
|
# ? Apr 20, 2024 00:29 |
|
RokosCockatrice posted:The preponderance of web frameworks is evidence of just how awful browsers are. You don't have people year in and year out trying to write a new layer on top of C++ to make it bearable to work with, and you definitely don't have flocks of people ready to try your new C++ shim because you promise it'll make your lovely job better. Maybe not c++, idk, but literally every other language
|
# ? Jun 1, 2023 14:32 |
|
mystes posted:People do actually keep trying to write new gui frameworks and web frameworks for other languages
|
# ? Jun 1, 2023 14:43 |
|
also people absolutely used to do that for c++ all the time. it looked different because the programming and paradigm were different: paid frameworks like qt, big grody oss ports of glib, wxwidgets, poo poo like that. and the point of all of them was to provide useful primitives that gloss over platform rendering differences and a consistent environment that made it possible to have shareable reusable components… you’re doing unironic RETVRN poo poo to a period that mostly never existed and to the extent it did exist sucked (like everybody that does unironic RETVRN poo poo)
|
# ? Jun 1, 2023 14:44 |
|
boost::beast isn’t too bad as a c++ web api, but I think there are still no plans to even get to HTTP/2 despite “abstractions”. As if we’ll see HTTP/3 anytime soon, I love how much UDP and having a non-terrible event loop is impacting the development of supporting it at any reasonable speed.
|
# ? Jun 1, 2023 15:02 |
|
redleader posted:what other careers are suitable for people with brains that make them stereotypical computer touchers bureaucrat legislative aide RokosCockatrice posted:The preponderance of web frameworks is evidence of just how awful browsers are. You don't have people year in and year out trying to write a new layer on top of C++ to make it bearable to work with, and you definitely don't have flocks of people ready to try your new C++ shim because you promise it'll make your lovely job better. this is true, it's why there are no c++ ui toolkits, new c++ versions, or complaints about c++
|
# ? Jun 1, 2023 16:33 |
|
Hello, I am a terrible programmer.
|
# ? Jun 1, 2023 16:42 |
|
FlapYoJacks posted:Hello, I am a terrible programmer. pull up a chair if you can find one
|
# ? Jun 1, 2023 16:43 |
|
fortunately the chairs were not built by terrible chairpeople so they function correctly as chairs
|
# ? Jun 1, 2023 16:50 |
|
I spent 40 minutes trying to figure out why sending an ERAL instruction to an EEPROM didn’t actually format the EEPROM. Turns out I forgot to enable writes to the EEPROM first. I am a terrible programmer.
|
# ? Jun 1, 2023 16:53 |
|
FlapYoJacks posted:I spent 40 minutes trying to figure out why sending an ERAL instruction to an EEPROM didn’t actually format the EEPROM. Turns out I forgot to enable writes to the EEPROM first. I am a terrible programmer. only 40 minutes, that's pretty good I give 2/10 on terribleness scale
|
# ? Jun 1, 2023 16:59 |
|
Private Speech posted:only 40 minutes, that's pretty good OK but I’m the one who also wrote the enable writes method. Them immediately forgot to use it.
|
# ? Jun 1, 2023 17:01 |
|
FlapYoJacks posted:OK but I’m the one who also wrote the enable writes method. Them immediately forgot to use it. okay 4/10 then, given additional context
|
# ? Jun 1, 2023 17:03 |
|
Private Speech posted:okay 4/10 then, given additional context I need to up my game if I am only registering a 40%!
|
# ? Jun 1, 2023 17:04 |
|
pokeyman posted:fortunately the chairs were not built by terrible chairpeople so they function correctly as chairs Unfortunately, they're not protected by a mutex, so there's one chair with ten people sitting on it and eleven empty chairs
|
# ? Jun 1, 2023 17:08 |
|
RokosCockatrice posted:The preponderance of web frameworks is evidence of just how awful browsers are. You don't have people year in and year out trying to write a new layer on top of C++ to make it bearable to work with, and you definitely don't have flocks of people ready to try your new C++ shim because you promise it'll make your lovely job better. that's because no-one writes new c++ projects well, outside of new build systems
|
# ? Jun 1, 2023 17:09 |
|
CPColin posted:Unfortunately, they're not protected by a mutex, so there's one chair with ten people sitting on it and eleven empty chairs wouldn’t chair sharing need a semaphore?
|
# ? Jun 1, 2023 17:10 |
|
Depends on if you have a guy you walk up to and ask "which chair should I sit in?" vs if you walk up to each chair and ask if you can sit there, I guess
|
# ? Jun 1, 2023 17:31 |
|
tef posted:that's because no-one writes new c++ projects I just wrote a pair of new c++ programs for someone, one of which uses SDL2, and it’s very needs suiting and development was predictable and I really enjoyed it. I have to fix a bunch of bugs, do user testing and ui improvements, and maybe write a unit test or 2 (unlikely) but seeing someone else use a program you just wrote and be real happy with the prototype is the kind of good endorphin rush I need nowadays. contrast this with my years long project to write a bunch of web apps for my online journaling and not a single line of code has been written because I’m still defining requirements and I really don’t want to learn javascript
|
# ? Jun 1, 2023 19:02 |
|
FlapYoJacks posted:Hello, I am a terrible programmer.
|
# ? Jun 1, 2023 19:03 |
|
laughing my butt off because my overworked boss forgot to renew my contract before it expired. He sent it over this morning but due to time zone differences it won’t be processed until Monday because tomorrow is a holiday in Italy. 4 day weekend!
|
# ? Jun 1, 2023 19:05 |
|
sb hermit posted:I just wrote a pair of new c++ programs for someone, one of which uses SDL2, and it’s very needs suiting and development was predictable and I really enjoyed it. I have to fix a bunch of bugs, do user testing and ui improvements, and maybe write a unit test or 2 (unlikely) but seeing someone else use a program you just wrote and be real happy with the prototype is the kind of good endorphin rush I need nowadays. if i was forced to give a less asinine answer to 'why does javascript keep generating frameworks and c++ doesn't' than 'people don't write ++' i would say there's multiple factors at work: - there's way, way more javascript programmers than c++ programmers. simply put, there's more framework writing because there's more code writing. - javascript is far cooler than c++, or, you're more likely to see javascript frameworks than you are c++ ones in the online gossip circuits - unlike c++, javascript has a huge audience of casual beginners and entry-level professionals, and these people are the most likely people to have the free time to do so, the energy to do so, and the hubris to do so too. - frameworks are easier to write than libraries. a framework is something you bolt code into, a library is something you bolt code onto. - a c++ framework might as well be a different language: take qt, it brings it's own data structures, file i/o, network tooling to the point where you're not really writing c++, even before you consider things like moc - it's easier to write frameworks when you have things like objects, reflection, or garbage collection, than it is to write frameworks when all you have is macros and code generation - the browser api has changed a lot more in twenty years than an operating system api or a desktop gui toolkit, people write new tools to take advantage of new techniques and finally, my asinine answer: - compared to javascript, people in c++ just don't write new projects as much
|
# ? Jun 1, 2023 19:33 |
|
of all the c++ programmers i know theyre all in games and looking to do poo poo in rust or zig if they can instead thats just a tiny data point though, even asking itt people who write c++ say “dont write c++”
|
# ? Jun 1, 2023 19:37 |
|
Share Bear posted:of all the c++ programmers i know theyre all in games and looking to do poo poo in rust or zig if they can instead As an embedded Linux toucher, in the last ten years, the preferred languages went from C/C++ to Rust/Python with C only coming into play if you are in RTOS/Bare metal/Kernel land. This is a good change.
|
# ? Jun 1, 2023 19:40 |
|
I was going to try to use this project as a reason to pick up rust but covid19 caused me to lose a month. I might still use rust for other stuff… it’s certainly something I want to get into.
|
# ? Jun 1, 2023 19:43 |
|
Yeah, C++ sucks. It pays my bills and Rust cannot replace it yet in some domains, so here I am, inflicting more C++ on the world.
|
# ? Jun 1, 2023 19:44 |
|
tef posted:if i was forced to give a less asinine answer to 'why does javascript keep generating frameworks and c++ doesn't' than 'people don't write ++' i would say yeah, that’s definitely true
|
# ? Jun 1, 2023 19:45 |
|
Xarn posted:Yeah, C++ sucks. It pays my bills and Rust cannot replace it yet in some domains, so here I am, inflicting more C++ on the world. Modern C++17 and greater, if used correctly with RAII and unique pointers, isn't that bad. The biggest problem with it is that it's become much like PHP, where the old cruft isn't being removed due to backward compatibility. This isn't necessarily a bad thing, but compilers could do so much to help with this by having flags that would error out if you used the old ways with a message that says "stop managing your own memory and poo poo, there are better ways to do this now."
|
# ? Jun 1, 2023 19:49 |
|
Nothing has given me more confidence in my low level programming than using valgrind, particularly to detect memory leaks and double-free because I’m not familiar with the APIs that I’m using and some of them allocate data on behalf of the caller that the caller has invoke free() themselves. This, of course, would not be a problem in python (or less of a problem if you just have to explicitly free some resources for a long running application or process) or rust so a version 2 or version 3 of these toy apps would definitely use either of those instead of C++ (or only a small amount of shim code in swig).
|
# ? Jun 1, 2023 19:50 |
|
sb hermit posted:Nothing has given me more confidence in my low-level programming than using Valgrind, mainly to detect memory leaks and double-free because I’m not familiar with the APIs that I’m using, and some of them allocate data on behalf of the caller that the caller has invoked free() themselves. Look at this drat fool with "user input" and allocating memory manually. Don't use Malloc, or you will find yourself in a heap of trouble!
|
# ? Jun 1, 2023 19:54 |
|
FlapYoJacks posted:Look at this drat fool with "user input" and allocating memory manually. Don't use Malloc, or you will find yourself in a heap of trouble!
|
# ? Jun 1, 2023 19:58 |
|
Share Bear posted:thats just a tiny data point though, even asking itt people who write c++ say “dont write c++” Nah it's fine as long as you stick to 17 and up.
|
# ? Jun 1, 2023 20:47 |
|
17 and up, eh? Technically it's ePHPebophilia
|
# ? Jun 1, 2023 20:52 |
|
redleader posted:what other careers are suitable for people with brains that make them stereotypical computer touchers good question and if you come up with an answer let us know
|
# ? Jun 1, 2023 21:31 |
|
omg its so hard to explain how thing do just skip the thing, use it instead pleaaaaaaaaase
|
# ? Jun 2, 2023 11:25 |
|
i bet i coulda made that update faster and cheaper than this fuckin external dude did, and im an absolute idiot, a complete dumbass. but now we spent my day and his day on it and paid for it too, this owns
|
# ? Jun 2, 2023 11:26 |
|
terrible programmer stories: we need to get some data off an ancient terminal ui (think curses) for a mainframe that is only accessible via SSH, because getting direct database access is apparently politically impossible, and the web api has only half the data we need so after writing a straightforward c# backend service to query the web api, I'm now loving around with a docker that starts asciinema and trying to write a tcl script for expect(1) to navigate the 80s menus automatically (I was hoping to do it in python but using asciinema as a library craps out with just error code 1) has anybody used expect(1) in anger before? my beard is not that grey
|
# ? Jun 2, 2023 12:57 |
|
How much data is there? Do you have an intern handy?
|
# ? Jun 2, 2023 13:40 |
|
Ok, the library says it spits out something of <unknown> type I'm supposed to iterate over. Typescript says to deal with this, first I need to know what the type is. Feels a little bit like a chicken and egg situation, but I can roll with this. typeof thing? object thing instanceof == Array? true. Object.prototype.toString.call(thing)? string thing.map((bit) => Object.prototype.toString.call(bit))? string JSON.parse(thing)? Syntaxerror God drat i hate this language.
|
# ? Jun 2, 2023 14:01 |
|
|
# ? Apr 20, 2024 00:29 |
|
I don't understand; you're trying to call JSON.parse on an array? Also if it's just a type annotation problem with the library that's not typescript's or javascript's fault and you should just be able to cast it or use //@ts-ignore or whatever I think
|
# ? Jun 2, 2023 14:31 |