HNHacker News
TopNewBestAskShowJobs

chhs

117 karma · joined September 15, 2016

submissionscomments
chhs··on YouTube, the Great Radicalizer
Another great channel in the same area is "Shaun", he does a great job of breaking down and debunking the claims of a lot of popular right-wing channels. https://www.youtube.com/channel/UCJ6o36XL0CpYb6U5dNBiXHQ/vid...
chhs··on Ride-Sharing Congests City Traffic
I think you make a good point. The study[0] broke down the numbers further.

> When asked how they would have made their current trip if ride-hailing hadn’t been an option, 12% said they would have walked or biked, and over two-fifths (42%) of respondents said they would have otherwise taken transit. Some of this "transit substitution" takes place during rush hours. Indeed, we estimate that 12% of all ride-hailing trips are substituting for a transit trip during the morning or afternoon commute periods; an additional 3% of riders during these times would have otherwise walked or biked. Overall, 15% of ride-hailing trips are adding cars to the region's roadways during the morning or afternoon rush hours.

[0] Fare Choices - A Survey of Ride-Hailing Passengers in Metro Boston Report #1 http://www.mapc.org/wp-content/uploads/2018/02/Fare-Choices-...

chhs··on Show HN: git self-blame – Blame yourself for others' mistakes
Or only the names of people who no longer work at the company
chhs··on Block Comments Are a Bad Idea
The D Programming language has a neat trick to block commenting out code for debugging purposes. Wrapping code in a version(none) {} block will exclude the block from compilation. The code inside the block must still be syntactically valid so it avoids the problem mentioned in the linked post.

The D Programming Language - Conditional Compilation: https://dlang.org/spec/version.html

chhs··on In Defense of C++
I've not used D on platforms other than x86 but I have heard cross compilation mentioned in the comments of some conference talks. I found this page which has the status of the LDC compiler on various platforms. It looks like it is still under development but I don't know recently that page was updated.

Status of various platforms: https://wiki.dlang.org/LDC

chhs··on In Defense of C++
I found C++ very complex and difficult to work with, though it is very powerful in terms of performance. There is also several years of libraries available in C++ that is difficult to leave behind.

If you are looking for something like C++ in terms of performance and has a nicer syntax, you should try the D programming language. It's very nice to use, as fast as safe C++ code (you can write unsafe C++ that is faster), has stronger typing, templates, mixins, and can interface with C /C++ libraries.

I've moved my personal projects over to D, I've started writing a game with OpenGL, SDL, ASSIMP, Devil and it's much easier than C or C++.

Some links for those who are interested:

Main website: http://dlang.org/

Package manager: http://code.dlang.org/

Some interesting documentation pages:

Interfacing with C: http://dlang.org/spec/interfaceToC.html

Interfacing with C++: http://dlang.org/spec/cpp_interface.html

Templates: http://dlang.org/spec/template.html

Inline Assembler: http://dlang.org/spec/iasm.html

chhs··on Ask HN: In what areas are NoSQL Databases beneficial over Relational Databases?
For a personal project I used MongoDB over MySQL for somewhat faster prototyping. I was collecting a lot of data from the X display server during runtime and storing it into a database for querying later. Since there were a lot of different types of messages and I wasn't sure about which parts I wanted to keep, rather than building tables for each of them I converted them to JSON and piped them into a MongoDB collection.

I know this is not a good example compared to a production issue, however I think the reducing the amount of time need to get started with a project is very useful over something that needs a lot of configuring before it can be used.

chhs··on Leaked Apple emails reveal employees' complaints about toxic work environment
It happens to me occasionally (I'm male). Unless I'm making a conscious effort my face normally looks sad or down and people tell me to smile or cheer up. It really annoys me when they do that too.
← PreviousPage 2 of 2