Hacker News new | past | comments | ask | show | jobs | submit | imstate's comments login

A good zach-like everyone should check out it "the signal state" on steam.

This game is great, but is geared more towards digital logic instead of coding.


> Why not ban nicotine, by the same logic as heroin?

because nicotine doesn't increase crime rates on society.


Nicotine is also legal, safe-per-dose and easy to get.


This interesting.

A while back I wrote a C++ library to load a bitsteam virtex ultrascale through jtag using FTDIs d2xx driver.

Intel is more closed in the JTAG opcodes for programming the device. I was able to read IDCODES out of the JTAG.


opposite for me. I can't stand the xbox analog stick placements. I think it's good to have different options so people can choose what works for them.


The NYPOST was banned for 16 days over this story. It was suppressed for 16 days, not one day.


You definitely don't want to flip a burger multiple times. There is a drastic difference in quality. They advocate it cooks the middle more, but the real trick is to move the burger to the side of grill that is off and close the lid to cook it like an oven.

It's a rule in many kitchens I've been in to only flip once, because you don't want to lose the juices from the fat.


So they dug into the science a fair bit in https://www.seriouseats.com/the-burger-lab-how-many-times-sh... and concluded it really doesn't impact the quality at all.

Is there something specific that you feel they failed to do correctly in their process?


It's really comically how many people here, including yourself, are just assuming they know more than then author. Kenji has done numerous studies debunking this and has dug into every single part of the burger making process and so much more to come up with these steps.

Flipping your burger less doesn't help. Yes, the salt level is correct. Yes, putting the grinder in the freezer is a good idea. Stop assuming you know more than experts without conducting studies your self, you arrogant people.


> It's really comically how many people here, including yourself, are just assuming they know more than then author.

Surely not here - on Hacker News? I'm shocked! Shocked!


Kenji has done lots of testing about this, and his result was: flipping doesn't matter. I tend to trust him over old kitchen myths, although I cannot prove he's right.


It also doesn't matter because you're usually eating a burger with some kind of condiment or side.

Whether it's a mushroom/egg/tomato, coleslaw on the side, ketchup, tzatziki (lamb burger) or something else, most burgers will have juices enough to not make them dry.

You also might not want to eat 100% of the rendered fat from a burger. Some fat is good, but it's still a very high-calorie substance.


this is just an old tale, testing shows it doesn't matter


Yes,

- Marketing - Industry Connections - Cashflow

The majority of the modern Musician's job is marketing through social media. A label helps to alleviate that burden.


Because the media is willfully lying.


Conan O'Brian and his bullshit "Everything is great in Haiti!" stunt seriously should have convinced even the most trusting that yes, the media, from "news" to entertainment, is lying.


Yes, well known journalist Conan O'Brien is who I seek when I am forming my opinions on geopolitics

Also I'm guessing the purpose of the Conan piece was to 1) rebuke Trump for calling it a shithole - rude, unproductive, and should be below the station of the POTUS - and also help drive tourism, which I'm assuming is the nation's main source of income, by showing a fancy resort, as opposed to what's usually shown on news; a destitute country leveled by natural disasters seemingly yearly. Not on Conan to show the other side of the resort.


> Your search - Conan O'Brien "Everything is great in Haiti!" - did not match any documents.


Above and Beyond Group Therapy already does this, but it's a weekly 2 hour mix


Yes and no. A good programmer could learn it, but it exposes concepts that python and java abstracts from the programmer.

C++ requires you to think quite a bit about memory. Modern C++ not so much. However the kind of job that requires C++ will probably require you to know some hardware / embedded which is a completely different domain than web devs and could make java / python transitions even more difficult.


Depends a lot on how you use it.

You can pass everything by value, write very child-friendly C++ code, using std::map like Python dict and std::vector like Python list, and still VASTLY beat the speed of an interpreted, weakly-typed language like Python.

But nobody does that. Chances are someone on the team takes a shit about unnecessary memory copies, the code will be littered with a smattering of pass-by-reference and pass-by-pointer, there will be std::shared_ptr, std::weak_ptr, std::unique ptr everywhere, and if you're lucky some intern will have committed some C-ish C++ code that will leave you gift of memory leaks, and now all of a sudden you need everyone to understand all the nuisances of the language and how memory works.


> But nobody does that. Chances are someone on the team takes a shit about unnecessary memory copies

It’s not just performance. In any moderately complicated C++ program, you will want a function to mutate its argument, and this falls apart.

Sure, you can write in a pure functional style with immutable data structures, but I wish you luck implementing an immutable data structure with asymptotically reasonable performance without using pointers of some sort.


Unfortunately many programmers underestimate the speed at which computers can copy flat regions of memory these days and overestimate speed of code littered with pointers and indirection. Often using pointers to avoid copying a few bytes leads to worse performance.

In my experience a combination of pass-by-value with move semantics provides good code readability and almost optimal performance in most cases, so that's my default. Unless a profiler disagrees in specific cases, of course.


> copy flat regions

A map or pretty much any nontrivial data structure is not a flat region.

In any event, waiting to optimize until a profiler tells you to is a reasonable practice as long as you pay attention to scaling. It’s very easy to write, for example, a JSON parser that performs fine in small tests and has a nice small n^2 coefficient. And then someone throws in a bigger input than you tested and your game takes ten minutes to load.


> A map or pretty much any nontrivial data structure is not a flat region.

Not necessarily. A hashmap can be implemented in a way it stores both the keys and values in a flat memory region, as long as keys and values are fixed size, and such a structure is way more efficient that traditional array-of-pointers implementation, where fetching each key requires following a pointer and getting the value requires following another pointer.


The resulting code will still be asymptotically slow.


In any decent CS school they actually teach you low-level stuff. Transitioning from Java to C++ for such a person is trivial.


Low level stuff, I happily code off the top of my head in pure PIC and AVR assemblies, is not same as C++ low level stuff.

(IMO) C++ is quickly becoming that middle ground language that is destined to be a niche language in a decade. It's not low level enough and not high level enough to give people dealing with assembly code or business logic code a reason to switch.


Certainly not trivial if all you have is school Java experience.


[flagged]


I think the above comment bears repeating:

>A good programmer could learn it, but it exposes concepts that python and java abstracts from the programmer.

Education varies wildly, and overall in industry you will not apply 100% of your learnings. I'm sure I forgot plenty of algorthms that others use daily. Likely, others forgot plenty of low-level memory management than I use daily.

Let's not turn this into a programmer measuring contest. They are different concepts and tools done for the purpose of solving problems, not flexing IQ's. coments like this are no better than the ones you complain about.


I develop business backend servers in C++, no problems there and no hardware / embedded is required. I also happen to be familiar with electronics and do develop firmware every once in a while but I mostly use plain C for that.


That sounds like you're trying to stab yourself in the face...

The unfortunate bit is - there is a lot of people that are learning Python or TypeScript that can develop that business logic as fast as you at a fraction of the cost.


>"That sounds like you're trying to stab yourself in the face"

Sounds like you have no idea what are you talking about. It was exactly Python project I've recently completely rearchitected, rewrote and greatly improved. Client can't thank me enough as it performs hundreds of times better than the old one. And from what the client told it was developed in less time than the original Python version.

In general I use multiple languages including Python. I just do not see anything in Python that noticeably speeds up development of big and complex projects vs modern C++ ( or any other decent language for that matter ).

You just have to know what are you doing. Language is secon


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: