Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jdrek1
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
jdrek1
4y ago
Honest question, why? If you properly format your code then it's indented anyway so Python is basically just replacing `{` with `:` and then not having a `}`. Python is the least problematic of all the languages enforcing some style th
32.
▲
by
jdrek1
4y ago
Copy initialization does not mean that the copy constructor is called. It is the correct term for an expression `T a = ...;`, which can often result in the copy constructor being called but does not have to. In this case it's mandatory
33.
▲
by
jdrek1
4y ago
You should absolutely not use or recommend that site. It's stuck on incomplete C++14 at best and also contains some pretty bad code. learncpp.com is a much better tutorial and cppreference.com is a much better reference. The only thing
34.
▲
by
jdrek1
4y ago
You could also use VS Code's remote (over SSH) ability.
35.
▲
by
jdrek1
4y ago
I recommend using the American keyboard layout if you're doing anything remotely programming related, otherwise all the special characters are just way too annoying (even though personally there's also a few of those in the Americ
36.
▲
by
jdrek1
4y ago
> electronvolts (10⁻¹⁹ J) in nuclear physics CERN is at TeV ranges so yes, even in different units we use high prefixes. Might not come up in your every day small talk but they are used.
37.
▲
by
jdrek1
4y ago
> (Edit, that's not possible in c++) Mind expanding on that? Because what that readme there shows is absolutely possible in C++, I have used a similar system for dealing with natural units.
38.
▲
by
jdrek1
4y ago
Ups, yes. I had it switched originally but then for some reason switched it again. Apparently commenting late at night is not a good idea.
39.
▲
by
jdrek1
4y ago
Correlation != causation Spaces are simply inferior to tabs since the latter conveys the meaning of "one level of indentation" while the former does not. It's also better for accessibility and file size. There is not one sing
40.
▲
by
jdrek1
4y ago
Just use uBO like everyone else, there's not a single ad on that page visible for me.
41.
▲
by
jdrek1
4y ago
Shared ownership is a rare case, so in general using shared_ptr should already raise some suspicion. And in this case there is no reason any of the shared_ptr'ed things in the code need to be on the heap so no reason to even have a poi
42.
▲
by
jdrek1
4y ago
That may be true but uMatrix' UX is unmatched - the matrix UI allows for granular control while achieving the same in uBO is significantly harder.
43.
▲
by
jdrek1
4y ago
Scientific simulations. Meson as the build system, vcpkg as package manager. Also using it for hobby projects like a custom shell. Modern C++ is a great language and while I'm also using other languages like Rust for hobby projects I s
44.
▲
by
jdrek1
4y ago
Have you considered that people might actually like that syntax style? Also there's a massive benefit to familiarity, you can easily read code in most languages without knowing them because they look similar. There's a reason most
45.
▲
by
jdrek1
4y ago
- Subnautica - The Talos Principle - Portal (1/2)
46.
▲
by
jdrek1
4y ago
> arbitrary file I/O. I can take my compile time data and write a python script to put it in a std::array, but I shouldn’t have to. There's a proposal for that https://open-std.org/JTC1/SC22/WG21/
47.
▲
by
jdrek1
4y ago
Final Fantasy Tactics Advanced like game but with a procedurally generated infinite map and some sort of re-skilling mechanic so that you don't have to constantly swap jobs before leveling just to minmax the early game where you don&#x
48.
▲
by
jdrek1
4y ago
> you're wasting too much time on looting. But that's the most fun part of Apex ;)
49.
▲
by
jdrek1
4y ago
The problem is they only need to win once. What we really need is an immutable section in the EU constitution that anyone who tries to take away basic privacy rights like this is immediately tried for crimes against humanity and sent to pri
50.
▲
by
jdrek1
4y ago
Nobody said it's impossible, it's just generally not an issue if you write normal code (read: stop treating C++ as C, they are completely different languages). There's only very little difference in how much you need to think
51.
▲
by
jdrek1
4y ago
Practice, lots of practice. Doesn't really matter what kind of program you write as long as you write code. Can be assignments from your university, can be online puzzles like advent of code, can be a program that sends you reminders t
52.
▲
by
jdrek1
4y ago
Unless you're manually implementing data structures or something similar you basically never need to manage your memory manually in modern C++. std::vector takes care of most your needs and smart pointers exist for the few cases where
53.
▲
by
jdrek1
4y ago
Works perfectly fine for me on FF with uBO and all scripts blocked. Apparently that "Sorry, ..." comes from a cookie popup which I don't even see so seems like you need stronger blocking in your browser.
54.
▲
by
jdrek1
4y ago
> That isn't true, you need parentheses for procs with no arguments, else it's interpreted as a proc pointer. Try `echo` vs `echo()`. My bad, I meant 0 argument member functions (or rather 0 additional argument functions, apa
55.
▲
by
jdrek1
4y ago
I'll admit that it's much easier in languages that are not whitespace sensitive but imho it's not an unsolvable problem for the ones that are and software from 50 years ago not handling things correctly is not an argument if
56.
▲
by
jdrek1
4y ago
Exactly, as long as it's readable and consistent I don't care what style other people write their code in, all I ask is that they and the compiler give me the same freedom and Nim and Go don't do that. > It seems like ev
57.
▲
by
jdrek1
4y ago
Guido van Rossum also seems to prefer tabs but was held back by the community [1]. But even if he changed his mind since then those reasons are incredibly weak if you ask me, they basically boil down to "some software 50 years ago was
58.
▲
by
jdrek1
4y ago
The ecosystem might be small but as you said it can grow and I think there's enough people out there willing to give a new language a try if it seems appealing enough, it's quite common to try a new language for Advent of Code for
59.
▲
by
jdrek1
5y ago
And so does Meson. I don't think the xmake author spent a lot of time using other build systems (in fact their short paragraph about Meson demonstrates that they clearly never did use that, using vcpkg with Meson is like 0 effort), it&
60.
▲
by
jdrek1
5y ago
You get points for being the fastest to submit the correct solution to a puzzle part each day. First one gets 100 points, second one 99, and so on down to place 100. So you could get up to 200 points per day if you solve both parts of the p
More ›