|
CPColin posted:cjs: Handling a corner case where a user logs in, but isn't in the vendor's database, so the API call to get their details returns null. Can't figure out why my "if (vendorId == null)" check isn't working. Turns out our code "handles" this situation by creating a fake, empty user details object with the ID set to "-NONE-". I just got rid of that empty object altogether and everything works fine. are you sure there's not some other component that will break when it receives null instead of a fake user object
|
![]() |
|
![]()
|
# ¿ Sep 23, 2023 12:18 |
|
MALE SHOEGAZE posted:i just want to get the most bang for my buck is what im saying if you wanna do something maybe interesting and never make money at it stay in academia or contribute to open source if you wanna be overpaid to make the world worse go into commercial web development or mobile apps if you wanna never have an existential crisis leave technology altogether
|
![]() |
|
Kilometres Davis posted:JavaScript is much better than PHP this thread is insane. why would you even bother saying this like you're trying to convince someone that drinking a glass of bile is better than drinking a glass of diarrhea
|
![]() |
|
Kilometres Davis posted:An accurate metaphor for my career path thus far, yes. programming.txt
|
![]() |
|
thank you tef for continuing to rant in yospos sincerely, no yoscasm
|
![]() |
|
MALE SHOEGAZE posted:i'm being facetious. clearly a language needs to be able to model is-a relationships. i suppose i'd amend my statement to say "composition is better than complex inheritance. i like sandi metz's advice on class inheritance trees: broad and shallow is better than narrow and deep
|
![]() |
|
cinci zoo sniper posted:i really dislike visual studio too but it does the job. except for vcs integration, gently caress that - i just alt tab into visual studio code for git operations same here, p much i do drat near all my coding in either visual studio or vscode and in visual studio i always ignore the vcs tools and switch to either vscode or a command line (unless i'm on a project that uses tfs, which is thankfully almost never)
|
![]() |
|
MALE SHOEGAZE posted:admittedly react/jsx/html, which i'm not very comfortable with in general, and rust, where the bad experience is not because of vscode. ime visual studio is wicked awesome for anything c#/.net and sorta okay for anything else vscode suits the rest of my needs i don't gently caress with rust, tho, so i can't speak on it
|
![]() |
|
SpaceAceJase posted:Yo, what's a good ETL/workflow engine for parsing CSV files, and doing stuff like error trapping at certain steps? php has fgetcsv and fputcsv
|
![]() |
|
TheFluff posted:the first programming thing i learned was regular expressions. i was 9 or 10 years old at the time - my dad taught me. to this day i maintain that it really wasn't a bad place to start thinking abstractly about a single symbol being a representation of some other set of symbols. i didn't learn anything about state machines until over a decade later though. that's not terrible as long as you don't get stuck thinking "this is how the syntax should look for all things always" much like any other thing you learn first
|
![]() |
|
Spime Wrangler posted:everybody wants to be a farmer until it’s time to do farmer poo poo if only more people could relate to this sentence when paul mooney replaces the word farmer
|
![]() |
|
the talent deficit posted:I’m sorry we already have a John Smith using our app, you’ll have to change your name way to miss the point of even the part of the post you quoted, let alone the previous sentence you don't even disagree with him. you just failed to understand the whole picture. learn before you speak bitch edit: for the second time this week i'm editing a post because i might have misunderstood sarcasm. maybe it's time for me to take a yospause DaTroof fucked around with this message at 03:55 on Sep 21, 2018 |
![]() |
|
xtal posted:Does it still ship proprietary, opaque binary blobs? I hope so, because I consider spyware to be a feature of my text editor. it's been open source under an mit license for a while now. if you download one of their prebuilt binaries, it ships with preconfigured telemetry options and ms-specific branding. other than that i think they're the same
|
![]() |
|
mystes posted:I wish they had described this as being for "visualization" or something. I ignored it when I saw a link to it yesterday or the day before because when I saw "analytics" I assumed it was for analyzing website traffic or ads or something. I guess maybe I'm not sure what "analytics" actually means? analytics is basically synonymous with data analysis, but your assumption is understandable since the term is so ubiquitous in seo and digital marketing gotta use the fifty-cent words if you wanna call yourself a growth hacker
|
![]() |
|
a manager at my last job categorized unit tests as non-functional requirements. "non-functional" simply meant "unimportant" to him so he discouraged working on them as much as possible when their flagship software imploded it practically killed the whole company
|
![]() |
|
gonadic io posted:At my old job I made the mistake of rushing things without unit tests and presenting it as an option. Not making that mistake again imo that's the #1 argument for using ci and writing unit tests first. more for the benefit of bureaucracy than the development process itself if you tell management the feature works but you haven't written unit tests yet, they might tell you to skip it if you tell them the build is broken, they'll panic and give it top priority
|
![]() |
|
prisoner of waffles posted:#63 seems like a pretty small ask from someone donating their time to sqlite but #36 precludes the foss community en masse
|
![]() |
|
Doom Mathematic posted:Probably counting npm install as part of the "compilation"? that was my first guess. possible bonus, someone added `rm -rf node_modules` to the start of the build because they couldn't figure out how else to resolve dependency changes
|
![]() |
|
ratbert90 posted:Fun story about that! your yospos story arc has been fascinating and i wish you the best
|
![]() |
|
the people gettin hosed up over twitter, they already know in the real world, if they're in a restaurant and wanna drop some n-bomb bullshit, they look over their shoulder first they just haven't learned to do the same thing on twitter, where 100% always someone is over their shoulder gently caress em you don't get to say "i'm not the type of person to do this" after you publicly do it
|
![]() |
|
akadajet posted:if you kick/ban people when they complain about having to not be a dick you'll probably have less garbage. this dude gets it i'm not even being slightly ironic
|
![]() |
|
Arcsech posted:very often production software is complex enough that you can’t hold every execution path in your head at once, and interactions between components are the source of way more problems than bugs within a single function/class/whatever. integration tests help but you’ll never cover every scenario it me i got real lucky with one of my current projects when it comes to debugging. it's composed in a way that i can write throwaway scripts to reproduce internal bugs. then i can turn the script into a spec and run it through a debugger while i fix it unsurprisingly, none of my other projects make it that easy
|
![]() |
|
Main Paineframe posted:it sucks that webkit is literally the closest thing to a good, actually-cross-platform environment to write a cross-platform app in, but when it's the best we've got it shouldn't be shocking that people use it p much this html/css is far from perfect, but it's amazingly robust and can be shoehorned into a whole lot of use cases for native cross-platform, my favorite is xamarin because i like c#, but even with that xaml is basically "xhtml but shittier"
|
![]() |
|
Shaggar posted:maxpermsize is supposed to be ignored entirely so either the jdk has a bug that's using it or maybe check ur paths to make sure ur not running a different jvm. you look like you know a lot about ignoring maxpermsize
|
![]() |
|
floatman posted:Tell them that they should get rid of all staging servers, push everything to production because what profit do you get from testing??? except i once had a manager make drat near that exact argument
|
![]() |
|
the same manager suggested that scm was causing problems because it resulted in developers working on different copies of the codebase
|
![]() |
|
DONT THREAD ON ME posted:i'm working through this years AOC in various languages and right now I'm doing one in haskell. Symbolic Butt posted:I bet you'll have fun with day 8 in haskell hey, this is fun. thx for bringing it up, first time i've seen it i'm doing them in ruby cuz im a douchebag
|
![]() |
|
leper khan posted:it’s amazing how many of them make it to the top at my old job a few years back, our department needed a manager, and they promoted one of our developers specifically because he was the least useful guy on the team. like, one of the benefits of promoting him was reducing his coding responsibilities. an exec-level guy straight up admitted that poo poo to me unsurprisingly, he wasn't effective as a manager either, and they eventually let him go. more than a few of my coworkers were constitutionally incapable of hiding their contempt for him
|
![]() |
|
Chalks posted:typescript is a good call, never use javascript directly typescript is good but angular is buttcheeks
|
![]() |
|
Falcorum posted:If it's any comfort, it happens elsewhere and even with regular non C level coworkers being the source of that dumb poo poo. that sounds like a lovely situation and im glad it also sounds like you were able to defend yourself appropriately jfc as much as id like to work on a aaa game everything i hear from the industry makes it sound like it would drive me toward suicide
|
![]() |
|
Cold on a Cob posted:unless you're working contract and being paid for every hour or you get time in lieu, don't work OT
|
![]() |
|
Deep Dish Fuckfest posted:loving christ i wish i could get something as well-defined as a NullPointerException in dynamically typed languages the error always means your object's interface doesn't match what the receiver expected. just like statically typed languages. the only difference, with dynamic typing, you don't know it's a problem until runtime, and for some reason it's still supposed to be your fault
|
![]() |
|
Soricidus posted:undefined.js, null.js, and ... uh ... ok i didn't think this joke through - brendan eich, 1995
|
![]() |
|
aardvaard posted:i've written several static site generators because i was too lazy to learn how to do the thing i wanted to do properly and that's probably the reason that staticgen.com lists almost 250 god drat static site generators never seen that site before. i'm...nonplussed if i ever encounter someone who uses the term "jamstack" irl i might wake up in a jail cell with tooth chips in my knuckles
|
![]() |
|
Corla Plankun posted:i could see that being a useful word in the game jam community like maybe a suite of tools that make it easy to jam the games, but i refuse to google what it actually means because im sure its just a bunch of webdev js bs yeah, no need to google it
|
![]() |
|
imagine some 12-year-old who's "good with computers" (i.e., has a twitter) decides to learn programming. he spends six weeks studying online courses. 3 weeks on html/css, 2 weeks on javascript, and 1 week learning how to use jekyll. the entirety of his experience is writing pokemon fan pages that have never been hosted anywhere besides his own laptop. i mean good for him, and i hope he's having fun learning and all, but thanks to some conference promoter with an undiagnosed concussion, this kid gets invited to make a tedx talk about the future of web development, and he only has one hour to prepare. the presentation he would make is "jamstack"
|
![]() |
|
my girlfriend and i got into a huge argument when i wanted to put a deep-fat fryer in the kitchen. i can't imagine the fights we might have had over poo poo that was actually important, like variable naming conventions
|
![]() |
|
Fatty Crabcakes posted:Do you really deep fry that many things? yes
|
![]() |
|
DONT THREAD ON ME posted:like it's good when your framework exposes a controller class and you can inherit the controller class and use and it automatically knows how to do the things a controller should do. the controller class is a good example. ime inheritance works better if it's shallow, even if it's wide; e.g., a handful of classes that directly extend a single superclass. if your inheritance tree is ten levels deep, it's probably fragile interface implementation seems closer to composition than inheritance
|
![]() |
|
![]()
|
# ¿ Sep 23, 2023 12:18 |
|
Aramoro posted:Why would you not have test coverage for something like that? I mean sure if you're a terrible programmer your usage of inheritance is going to suck, but then so is your composition. Someone breaking subtype B fixing a bug in Subtype A without even testing it is awful and will gently caress up your codebase no matter what you do. i don't wanna call anyone out because maybe what i inferred is not what they meant, but in a very general sense, some people seem to think type safety precludes testing, and HOLY poo poo are they wrong
|
![]() |