|
Do they also define IS_THE_SAME because if so I'm behind them.
|
# ¿ Jun 13, 2019 21:30 |
|
|
# ¿ Apr 30, 2024 01:44 |
|
ultrafilter posted:What Every Computer Scientist Should Know About Floating-Point Arithmetic Jesus the text is really small too
|
# ¿ Jun 16, 2019 20:11 |
|
I've been really impressed with how big I can make Javascript arrays recently. I had to write a script that would do something to all the records in a table and I basically just went ahead and fetched them all. There were some few hundred thousand records Javascript totally dealt with it.
|
# ¿ Jun 17, 2019 18:18 |
|
Strip everything except brackets from the string, if it's an odd length fail, then match half the indexes against the opposite using a switch statement.
|
# ¿ Jun 18, 2019 01:33 |
|
Something like JavaScript code:
|
# ¿ Jun 18, 2019 01:50 |
|
rjmccall posted:(a)b{c} Not in test cases, therefore not my problem. In honesty 90% of a technical interview is seeing how you solve/iterate on problems. So add test case and fix.
|
# ¿ Jun 18, 2019 12:19 |
|
I'm sorry I cannot read your code because I am not a terminator.
|
# ¿ Jun 18, 2019 13:12 |
|
ma galaxybrainJavaScript code:
|
# ¿ Jun 18, 2019 15:05 |
|
Cuntpunch posted:I know a developer who, after spending 3+ years working purely in C#, would still copypaste StackOverflow answers written in java - without realizing it was a different language - and then lose an entire day of work trying to figure out why the compiler kept bitching about the @SomeAttribute poo poo in his code, despite it CLEARLY working in the answer. I worked with a guy who was convinced he improved Javascript with a horrendous utils directory. He obfuscated everything you could do in Javascript, if statements, filter, map everything, to the point where no code anywhere was anything more than function calls within function calls all the way down. He was absolutely certain that it was superior to vanilla Javascript and wouldn't listen to a drat soul who told him to stop doing it. He worked at the company for like a year driving everyone insane. Nolgthorn fucked around with this message at 21:36 on Jun 18, 2019 |
# ¿ Jun 18, 2019 21:34 |
|
sunaurus posted:Nobody can beat this guy Yeah that's the type of bullshit I was talking about. I'm pretty sure these people have brain damage, they certainly aren't self aware enough to avoid getting hired.
|
# ¿ Jun 19, 2019 18:05 |
|
poemdexter posted:https://www.linkedin.com/in/jonschlinkert/ His 'ansi-cyan' library is used in 223,321 other repositories. It's enough to make me quit programming.
|
# ¿ Jun 20, 2019 00:55 |
|
I'm pretty sure npm has given me extremely serious ptsd, in line with what soldiers returning from Vietnam must have experienced. Or maybe worse. I think all the blue haired developers working there should pay for my therapy, while a replacement is finally made. I suggest namespaces for one thing. The ability to delete repos, mainly just to discourage overuse of modules, and to encourage people to make their own forks. I think if your super popular library needed to manually stay up to date with dependencies which may or may not still exist, you'd feel encouraged to limit your use of them.
Nolgthorn fucked around with this message at 14:20 on Jun 20, 2019 |
# ¿ Jun 20, 2019 14:17 |
|
Arsenic Lupin posted:Hey, folks, what's your opinion on the following pair of articles? I never did frontend, so I'm more clueless than usual. There are a great deal of real concerns surrounding the use of 3rd party code no matter what. Most people do not check the code they are implementing and subsequently running on their server. The hope is that at least somebody out there is but there really are so many libraries that are used in so many places, it would be difficult to keep up with it. Libraries are often dependencies of dependencies of dependencies and are always the latest patch version which isn't necessarily "only" a patch. This isn't an issue with frontend either, quite probably much more damage could be done on the backend. Npm is fundamentally broken. And at the exact same time radically overused.
|
# ¿ Jun 22, 2019 05:56 |
|
xtal posted:In a utopian future, we would all have a single left-pad or is-odd implementation that we decided was optimal as a community. What? In a utopia I have to learn what implementation was decided on by a community for every stupid thing? If I want to add padding to a string, it might be my requirements for padding are very specific and easily described in code that I write myself. What type of utopia is this imaginary hellscape? I feel like the suggestion itself is so bad that I'm already in hell.
|
# ¿ Jun 23, 2019 19:47 |
|
Here is a talk done about that npm fiasco. https://www.youtube.com/watch?v=2cyib2MgvdM
|
# ¿ Jun 23, 2019 19:49 |
|
xtal posted:This is partly correct, and I encourage you to move it toward completely correct. If you have special requirements for string padding that aren't included in the One True Left Pad, send a patch. That would be a better idea than writing it yourself, forgetting the edge cases contributed by others in your same position, needing to write tests and maintain it and so on. There is absolutely no reason to cover every single edge case. I know what my code is doing and what to expect out of it and if the requirements change I can easily change my code. There are very few packages that are justified such that they fulfil a relatively complex yet similarly specific task. All the rest of it is people looking for projects to contribute to instead of building something.
|
# ¿ Jun 24, 2019 03:25 |
|
Ola posted:A dumb question: Isn't there huge amounts of user friendly tooling that makes C easy and safe by now? My understanding is that "user friendly tooling that makes C easy and safe" refers to every programming language that came after C since they are all built with C and you are not meant to ever actually use C.
|
# ¿ Mar 1, 2022 11:11 |
|
Junkiebev posted:"Our logs don't show any errors" There isn't a court that wouldn't convict.
|
# ¿ Mar 3, 2022 12:37 |
|
wolfman101 posted:This. Also, learn to love encapsulation and stateless functions if you want to get the most out of testing. Stateless is the way. I don't understand why every classroom I ever attended tried teaching me object oriented.
|
# ¿ Mar 4, 2022 09:05 |
|
Presto posted:I'm a battle-scarred old C programmer, and I will happily take smart pointers, because then the memory gets released automatically and that's one less thing I have to think about. A C programmer who doesn't like memory allocation? What in the world
|
# ¿ Mar 4, 2022 19:02 |
|
I don't think I'm complaining too much about my ORM having an 'engine' component written in rust that is 2.5GB in size and requires me to build it myself. My host where I'm trying to put it is running FreeBSD13 for which the ORM doesn't have pre-compiled binaries. I'm currently moving 2.5GB of who knows what onto the host so that I can pray that I can build it. The ORM is Prisma by the way.
|
# ¿ Jan 18, 2024 17:59 |
|
Ok well I spent all day today trying to get a javascript npm module to run on node. I'll wake up with a brilliant idea I can try, I'll try it as a curiosity. Then I'll spend all day tomorrow replacing the ORM in the project.
|
# ¿ Jan 18, 2024 19:03 |
|
abraham linksys posted:personally i would not use the ORM created by a company that originally raised money to be a GraphQL-based backend-as-a-service, then pivoted to being a GraphQL query engine as a serice for existing databases, then pivoted to being an ORM for all databases and languages, and now appears to have burned $40 million dollars in venture capital on building a TypeScript ORM I remember when a client wanted me to build them a gatsbe project and I did and then they had a bloated application that was way more complicated than what they needed.
|
# ¿ Feb 7, 2024 01:55 |
|
|
# ¿ Apr 30, 2024 01:44 |
|
GABA ghoul posted:I think there is a very clever solution for this that could save a lot of work I want to know if I can get this through code review, don't tempt me Satan.
|
# ¿ Apr 8, 2024 16:02 |