|
MALE SHOEGAZE posted:serverless is great for when you have a simple problem and want to turn it into a distributed systems problem most people using serverless are already using the internet the talent deficit posted:aws lambda is good for when you want to do something in response to an sqs message, an sns notification, a dynamodb stream event, a cloudwatch event or a kinesis message. it's garbage for responding to http requests tho. i assume 'knative' has similar characteristics those would be http requests though?
|
# ¿ Aug 4, 2018 06:00 |
|
|
# ¿ Apr 25, 2024 23:27 |
|
BIGFOOT EROTICA posted:suck my entire rear end programmers: i don't care about style as long as it's consistent and enforced across a codebase, perhaps with automated tooling also programmers: i loving hate significant whitespace!!!
|
# ¿ Sep 18, 2018 21:21 |
|
i think it's because programmers are libertarians or something and hate being "forced" to do stuff?? anyway significant whitespace is cool and good
|
# ¿ Sep 18, 2018 21:25 |
|
lazy evaluation isn't the same thing as conditional evaluation, which is what short-circuiting boolean operators do
|
# ¿ Nov 26, 2018 21:52 |
|
gonadic io posted:conditional evaluation is a form of lazy evaluation tho. "non-strict" evaluation if you're being full pedant i mean they're both forms of "not evaluating something" but the lazy in lazy evaluation comes from the fact that the programmer can be lazy and not worry about the condition at all
|
# ¿ Nov 26, 2018 21:57 |
|
gonadic io posted:you know what pattern I loving hate? The visitor pattern. like you could just accept a single lambda, that chooses which cases it wants to deal with via pattern matching. "design pattern" is just a term to describe a way to overcome a deficiency in a programming language. the GOF design patterns book was written to overcome deficiencies in 1994 java. except people read it now and think sprinkling design patterns in their code makes their code better in conclusion, don't read the GOF design patterns book
|
# ¿ Dec 7, 2018 19:15 |
|
unfortunately i have to learn c++ for work, what’s a good resource for doing so? i’m comfortable with c and java so i don’t necessarily need to start from first principles
|
# ¿ Dec 17, 2018 19:07 |
|
CRIP EATIN BREAD posted:what version are you working with? poo poo has changed a lot over the years and old resources will hold you back with bad practices c++14 thankfully
|
# ¿ Dec 17, 2018 20:14 |
|
scala is fine, you can do whatever fp wankery you want with it or just treat it as java with better syntax and pattern matching. but if you can get paid to write haskell or rust you should do that
Pie Colony fucked around with this message at 20:40 on Dec 17, 2018 |
# ¿ Dec 17, 2018 20:29 |
|
BIGFOOT EROTICA posted:get a new job all of my programming opinions are for sale
|
# ¿ Dec 17, 2018 20:47 |
|
didn’t ratbert start his job relatively recently? and what is his equity exactly, stock options? congrats to the dude but lol at pretending he’s going to come out a millionaire from this
|
# ¿ Jan 18, 2019 17:37 |
|
like when my last company was acquired i made like 30k from my options. after taxes i guess it was a nice vacation and a bit of savings e: shameful snipe but w/e
|
# ¿ Jan 18, 2019 17:39 |
|
Krankenstyle posted:ugh i cant wrap my head around how to structure my python module. i keep wanting to split classes out into their own files, but it makes imports super hosed up hosed up how, like you get ImportErrors because your two modules now depend on each other? you should fix that circular dependency anyway as it'll lead to fewer headaches later. if you just mean you have a lot of imports and it's slower or something, don't worry about it but for the former, you basically have two options: - make your modules smaller / have them do less. if A depends on B which depends on A, take out one of the dependencies (ideally both) and put them in a separate module C, which depends on both A and B - make your modules bigger / have them do more. if the previous thing doesn't work, you can just combine the modules into one big one obviously the right choice depends on your exact code, and i'm not exactly sure what you expect to learn from the design of a completely different project
|
# ¿ Feb 6, 2019 20:47 |
|
wikihow
|
# ¿ Apr 8, 2019 21:22 |
|
CRIP EATIN BREAD posted:if you implemented the system it's near impossible to write good documentation for it, since you've used it so many times you've been doing things that is not the way the user will use it. not really. do you just start implementing a system without giving any thought to how or if the user will use it?
|
# ¿ Apr 26, 2019 20:45 |
|
you can literally read about why dependency injection frameworks are useful on the wikipedia page: https://en.wikipedia.org/wiki/Dependency_injection#Dependency_injection_frameworks it's about scales of code. if you have a small self-contained program that doesn't have independent components to test, you don't need dependency injection. likewise, if the things you need to configure in your application are easily representable as, say, scalar values instead of code, you don't need dependency injection frameworks
|
# ¿ May 3, 2019 22:29 |
|
also yea like the previous poaster said, it’s a design choice, so it’s not NECESSARY for anything, but it does make things easier
|
# ¿ May 3, 2019 22:48 |
|
old people complaining about the internet should be added to the canon thread topic rotation, next to whitespace arguments and dynamic vs static languages
|
# ¿ May 15, 2019 05:01 |
|
Ciaphas posted:how did computers and the programming of them become so amazingly poo poo anyway its actually not that bad
|
# ¿ May 27, 2019 15:37 |
|
Jabor posted:The big issue is complexity. We want to build complex things quickly and easily, which we do by building abstractions - by writing several layers of abstractions, you can focus on one layer at a time, and the complexity becomes tractable. it’s basically this. programming looks more poo poo now because you can do more poo poo with it
|
# ¿ May 27, 2019 18:35 |
|
there was a bug in your GUID library and it turns out they actually aren't random
|
# ¿ Jul 2, 2019 03:12 |
|
are programmers thinking they can definitely optimize the elevator algorithm a thing at every big company?
|
# ¿ Jul 12, 2019 14:19 |
|
they're like the regular lambdas you already know, but you can assign a helpful name to them using special syntax
|
# ¿ Oct 17, 2019 04:56 |
|
Shaggar posted:theres no scenario where dynamic typing is good sometimes you can run your program faster than you can type check it
|
# ¿ Nov 3, 2019 03:32 |
|
i googled this and it showed me places in my area to pick berries. what am i supposed to be seeing that's supposed to make me cry?
|
# ¿ Dec 28, 2019 04:46 |
|
Sagacity posted:I had a colleague (type: never saw something new he didn't like) demo bazel a while ago. after the demo someone asked "so why should we use this instead of maven" i've seen it adopted because remote caching of build artifacts can cut down build times significantly. but this (and it's versatility) only matters if your project is "complex" enough
|
# ¿ Aug 18, 2020 02:27 |
|
work is definitely not something i associate with comfort, so napping at work just seems bizarre. luckily the rest of my team is on the west coast so i can just sleep til noon at home
|
# ¿ Sep 24, 2020 23:41 |
|
bob dobbs is dead posted:python empty list is falsy CRIP EATIN BREAD posted:are you loving serious wait til you hear about javascript
|
# ¿ Oct 23, 2020 22:26 |
|
there's no standard way to do it, but it is python so the only limit is your imagination. for instance you can subclass property and auto-generate a setter when you define your field. __setattr__ is probably the easiest thing but also the one most likely to bite you in the butt as your class gets more complex
|
# ¿ Nov 6, 2020 02:04 |
|
use a cpu profiler like https://github.com/sumerc/yappi
|
# ¿ Dec 17, 2020 15:52 |
|
epitaph posted:i've finally hit burnout after about 14 or so odd years of working in this industry. resigned from my job in december with nothing lined up. tell me your stories of recovering from burnout. what got you excited about programming again, if anything? if you can afford to not work for a bit, find and focus on a non-programming, preferably creative hobby for a while. you'll either learn more about what you enjoy doing, or be reminded of what you enjoyed doing. maybe use that to inform your next job search, and definitely take extended breaks longer than every 14 years the last thing that got me excited about programming was learning rust and realizing a game i had an idea for when i was like 14 (the first book i ever bought was petzold's 1100-page programming windows. i never learned how to program windows)
|
# ¿ Jan 4, 2021 16:01 |
|
fizzbuzz is dumb because if someone solves it, you have no idea if they're a good programmer. you just know they aren't an atrocious one. just ask the hard question if you don't want to waste everyone's time
Pie Colony fucked around with this message at 21:18 on Feb 21, 2021 |
# ¿ Feb 21, 2021 21:13 |
|
bob dobbs is dead posted:this if you really think that, like that fizzbuzz gives you good signal on a candidate, your hiring process is broken
|
# ¿ Feb 21, 2021 21:32 |
|
the bay area isn't the only place in the US to get paid and it's dumb to pretend like it is. FAANGs have multiple offices around the US. maybe your base salary living in colorado is 150k instead of 200k, but your 150k/yr stock grant is the same. and post-covid the remote opportunities have only increased, i'm fully remote clearing 500k/yr (although i have to stay within the US unfortunately)
|
# ¿ Mar 27, 2021 14:26 |
|
haskell is nice because of its type system. other statically typed languages like python get you part of the way there, but the amount of constraints and verification you can encode in haskell's type system really does make it fun to use
|
# ¿ Jun 12, 2021 18:03 |
|
redleader posted:like what now python is a general purpose programming language, popular for its flexibility. like many compiled languages, it has static typing -- optionals, generics, immutable & write-once types, first class types, structural subtyping, you name it. you'll commonly see it called a "p-lang" (productive language) around here, surprised you haven't heard of it
|
# ¿ Jun 15, 2021 03:52 |
|
cool av posted:what if you need 0-downtime updates? use pt-online-schema-change or similar, ezpz
|
# ¿ Jul 5, 2021 22:06 |
|
CRIP EATIN BREAD posted:bazel only has one use: building stuff in google's monorepo. https://github.com/bazelbuild/examples/blob/master/java-maven/BUILD super ugly syntax. what could it even possibly mean?
|
# ¿ Jul 7, 2021 01:56 |
|
you should also be checking in 3rd party libraries, yea
|
# ¿ Jul 7, 2021 01:57 |
|
|
# ¿ Apr 25, 2024 23:27 |
|
bazel's syntax is actually based on a programming language that is world famous for having simple & clean syntax
|
# ¿ Jul 7, 2021 01:58 |