|
So, how 'bout that IPv6, eh? I'm trying to update some code at work so that when someone someday decides that we need to make the switch to IPv6 I can slack off. I have code similar to this: code:
The server- and client-side sockets are set up in exactly the same way for both, except the address family for one is AF_INET and the other is AF_INET6. This is on Linux if it makes a difference. I can work around this, but it's kind of a wart. Is this the intended behavior? Is it because my IPv6 address really a fake being tunneled back to the IPv4 address? Or what?
|
# ¿ Jan 8, 2009 23:30 |
|
|
# ¿ May 4, 2024 11:37 |
|
apropos man posted:Cool. I looked at PyCharm and I think you have to pay for it? We're looking for something preferably free to start off with, so I'll look at VSCode as well. The community edition is free.
|
# ¿ Oct 6, 2017 20:46 |
|
C++ is fine as long as you stick to the basics (ie, ignore templates and all that template metaprogramming stuff).
|
# ¿ Aug 31, 2021 07:42 |
|
Hammerite posted:I don't see that there's anything inherently absurd about a 3-space indentation increment.
|
# ¿ Oct 13, 2021 14:12 |
|
Pennywise the Frown posted:I'll certainly check that out. Looks like a lot of it is about breakthrough 90s tech lol.
|
# ¿ Dec 2, 2021 21:34 |
|
ultrafilter posted:Code you wrote sufficiently long ago is someone else's code.
|
# ¿ Mar 16, 2022 17:54 |
|
rjmccall posted:If another language is only half as good as Fortran in the abstract, but its tools and ecosystem are ten times better because it’s got three or four orders of magnitude more users, and that also means you can actually hire expert programmers in it instead of having all your code be written by novices, it’s very likely you’ll got better results overall. The other half of this though is that if your other language just isn't as good at doing what you want to do then it doesn't matter how good your programmers are. If you're doing heavy duty simulations, like simulate-the-atmosphere-over -the-entire-planet level simulations, then you're probably using Fortran somewhere because it still kills at math.
|
# ¿ May 5, 2023 20:30 |
|
nelson posted:The general feeling I got from Java was it focused more on organizing things in layers of indirection and actually doing something was just a happy side effect. With python especially but even with C#, getting to the action is more the focus. Yeah I'm not a Java programmer, but I remember when it was on the rise, and everybody was hyping the "write once run anywhere" idea, but somewhere along the way (and I don't know where) they went hard into "Thou shalt write strict object-oriented code". I bought a Java book at one point when I was looking for a new job, and it was almost condescending about how if you're not doing OOP you're doing it wrong.
|
# ¿ Oct 1, 2023 02:54 |
|
Early on they didn't seem to be so hardcore about it though. Could just be my perception, since apart from a couple tiny college homework assignments in the md 90s, I haven't touched Java directly.
|
# ¿ Oct 1, 2023 07:16 |
|
|
# ¿ May 4, 2024 11:37 |
|
If you ever read the changelogs for game updates sometimes you'll see very specific stuff like "fixed problem of armor not appearing in chest after talking to village blacksmith with dwarven fighter character" and you just know the code is a big ol' nest of switch/cases and if/elses.
|
# ¿ Apr 23, 2024 19:17 |