Better HN
topnewbestaskshowjobs
Log inSign up

externalreality

415 karma · joined Jun 1, 2015 (11y ago) · 220 submissions

Submissions

comment 7y ago · link · parent

You could help to decrease the prevalence of the attitude whose extreme form was responsible for the passage of the law in the first place. Ever give that a thought? There is no totalitarianism here its Law & Order.

comment 7y ago · link · parent

Yes, they are. Its not the dominate paradigm and you wouldn't want to program them that way, but that's my point.

comment 7y ago · link · parent

Nah, don't remove your education. I did that once and people just kept on asking anyway or assuming I didn't have any at all. Not a good idea.

Just like anything else if you want to code you don't need a degree. Just prove that you can code.

Just keep improving your skills. May be difficult at times with no background but that goes for anything.

comment 7y ago · link · parent

That was seriously cool. I had to scroll to see the last section. That was cool.

comment 7y ago · link · parent

> Immediately closed the article

You shouldn't have done that because a few sentences later the wiki describes how he was motivated by other mass shootings, which is precisely what the article is talking about. Was he a white attacker, well yes, but based on the wiki I wouldn't say he was a supremacist.

comment 7y ago · link · parent

> Right now when things escalate

What do you mean by "escalate"? I hope you are not using the word "escalate" to describe the murder of hundreds of innocent people by extremist terrorist.

> to people who are already triggered.

These killers are not "triggered" they are just crazy, bigoted, racists who somehow feel the need to kill. Your words sound very sympathetic in suggesting that the solution is to give these killers "time to cool off". The solution is to identify them early and get them some mental help.

comment 7y ago · link · parent

One reason these attacks will continue to grow is because authorities are not looking for these individuals because they are white. So when they start planning and collecting weapons the flags that would be raised, for say a dark skinned muslim, are not raised for the white extremist. The sad fact is that white privilege applies to extremist mad-men just the same.

comment 7y ago · link · parent

> Hardly any work is being done towards personal "small-computing"

That's not true.

comment 7y ago · link · parent

> Well, maybe we’ll still have Linux... None of the major Linux companies — Canonical, Red Hat, SUSE — makes the desktop a priority anymore. The Linux desktop will continue on, but it will keep going in the same way it is now: a platform only for power-using enthusiasts.

I'm a "power-using enthusiast" because I use Gnome3? Gee, thanks... but wasn't desktop a thing despite (in spite) the so-called "Major Companies". Canonical for one made "Unity" which was about as painful as a Rubix-cube covered in shards of glass. It couldn't have died sooner. I mean that what you get when a "Major" company tries to dominate the FOSS space - layoffs and an alienated base. Red Hat was corporate from the outset, they never pretended to otherwise, which is probably why they are actually successful and not using millions of person fortune to put on a show while loosing boku bucks in the background and laying off employees.

In short, desktop is not dead. FOSS people love desktops. Microsoft doesn't dictate anything anymore.

comment 7y ago · link · parent

> I wish they'd produce a systemd-less version like Devuan.

I've been hearing similar often. What's the beef with Systemd anyway? I've haven't heard much and Googling will surely just turn up a bunch of theoretical, philosophical, or hate posts. Why is Systemd bad from the perspective of a regular user.

comment 7y ago · link · parent

> because 99% of developers aren't kernel developers

That is like saying you have to be a kernel developer to work with containers.

comment 7y ago · link · parent

> Your shell, sshd, and networking stack have probably all been exploited many times.

Yes, I've exploited them myself with script-kiddy tools. Its not hard. Remember those your average libos application may not have any of those things (if not only an simple IP stack).

comment 7y ago · link · parent

You kind of forget the fact that the language has first class functions. That alone qualifies it as a functional programming language in every sense of the MF word. It also has interface and (like you mention CSP). Its more than a strictly procedural language. I'm afraid I am going to have to standby what I said.

comment 7y ago · link · parent

Apple was able to pull off a lot of its super human, ahem, super company feats based on the immense god-like celebrity aura of Steve Jobs. Superb, frankly ridiculous (for the other side), business deals would magically materialize at the man's feet. Authorities would look the other way on arguable topics in favor of Apple, engineers would put in uncounted extra hours for the greater "good", and massive manhunts would take place for a prototype phones at his bidding.

Now Apple has to do something it hasn't done in a while - and that is simply to deal with reality. Such is the case when a legend passes.

comment 7y ago · link · parent

I can't help but think the term "narcissism" is being used in the article as a provocative substitution for the work ego or egoism. The way the article uses the work its almost as if the work egoism would be more accurate.

comment 7y ago · link · parent

The author is my kind of dude. Despite all the hype he is trying to see what is out there through experience, self -study, and personal interest. The web is the best thing since the light bulb but it also encourages group think as surely as the bulb encouraged light pollution and energy waste. Bravo to the author for checking things out that aren't all the buzz.

comment 7y ago · link · parent

> In some sense, it is, it's just happening every slowly.

Yup, real world engineering doesn't heed purity of concept. What you get is a hodgepodge of best practices and ideas that work. Today we see JS, Golang, Ruby, modern C, C++, all of these things have ideas and features directly drawn from functional programming and likewise, many functional programming languages use ideas from other paradigms.

We likely won't see Lisp or Smalltalk become dominant anytime soon but there is no denying that many of their features have made it into many of the main stream languages that have become mainstream for reasons far detached from their programming paradigms (um maybe not Java, for better or worse, Java sold OOD and OOD sold Java).

comment 7y ago · link · parent

The kernel is small so security patches and such will be less frequent and there are minimal utilities like ssh, shell, what have you.

Also, the key is that there is very little to exploit so the likely hood of it being exploited is reduced.

comment 7y ago · link · parent

Its good to see the brand reemerge. For a while there I thought they were done.

comment 7y ago · link · parent

There are generally three kinds of these systems.

1) FWK (full weight kernel) a stripped-down version of a full featured kernel only having the things needed to run a particular application. Remember as the upstream kernel progresses you have to some how find a way to update your modified kernel to keep up with security fixes and all.

2) A LWK (light weight kernel) a small kernel built from scratch that is added as a library to an application (it will likely be incompatible with many existing applications built for other systems) - a pro is that system updates are practically non-existent. You don't have to rebuild your image with Debian patches or anything like that since the kernel is minimal and unique. And exploits have minimal impact in any case.

3) Then there is the hybrid approach where you have a LWK that runs along side a FWK with the light weight kernel handling most of the system calls while the full weight kernel (e.g Linux) handles system calls for compatibility. A multi-kernel approach.

I have no idea what route Nanos takes since I can't see the code and its not mentioned anywhere. Keep in mind a Unikernel is usually a single address space kind of thing, so you shouldn't be able to fork or exec. Since Ops permits arbitrary Go/C/C++/Ruby programs I wonder what happens if you try to exec something.

In any case these systems are more secure than containers because an exploit in the code running in the container can affect the host kernel (There is no real isolation). With Unikernels, in some cases, the system will actually unplug cores from the host kernel and boot the Unikernels on those cores utilizing available NUMA features of the CPU. This allows for more isolation and the kernel itself is minimal so it has small attack surface and, in some cases, added performance characteristics.

There are good debugging tools these days for libOS's (Unikernels) and they date back all the way to MIT's exokernel design and even further back. They have caught traction recently because:

1) They are easy to make (You are either stripping down a working kernel or building a very small one - think smaller than minix3).

2) Cloud computing (security) and HPC (performance on commodity) make them relevant again.

3) Not to mention they are fundamentally a better technology than containers, IMHO there is no debate, containers will be replaced by libos(s)/unikernels.

comment 7y ago · link · parent

I don't know. Procedural code in Golang is pretty trivial - you basic constructs are regular in the selection, iteration, and sequence sense with a sprinkle of interfaces and some CSP constructs for concurrent design. That covers like 99% of what you need to write good code. I'd say pattern matching is pretty helpful Ala ML, Haskell, Rust. Beyond that all the GOF and Solid and all that jazz seems to do way more harm than good IMHO.

> If you want to get very far with any of those, you will need to write "good code"

If you have ever looked at the code of the most successful programs the code is anything but "good". Have you glanced at the Linux Kernel code lately? But again, "good" is very subjective. The Linux Kernel works well enough to server the purpose of millions of users and enough people understand it. Its good code!

comment 7y ago · link · parent

Good developers develop. Good pipers pipe, good swans 'a swim, and a partridge in a pear tree.

comment 7y ago · link · parent

I would argue that what makes code "good" is completely subjective which is why I don't spend too much time thinking about it.

The only criteria I have for good code these days is "Does it work", "Can I understand it". Everything else is a good IDE's command away for being willed into reality. So I really don't spend too much time on the "good" code debate like I did as a teen reading "Clean Code" and GOF books. I actually wish I could have that time back, I would have read, in their place, books on type theory and OS design, Posix, in other words things that actually help me build stuff and get things done and that I subsequently had to read later. Undo the damage done by the "good code" people that have me thinking about stuff that nobody cares about. Take a month off, read a book on game design in opengl, and write a cool robot simulation or something and remember how much more gratifying that is than writing a small do-nothing program just to try out some useless design pattern that doesn't scale beyond micro-examples.

There is so much varying lit out there on how to write good code that I am surprised that I am surprised if even 2 programmers can truly agree on what good code is. So Again, I'll say that "good" when it comes to code should be equivalent to "easy to understand" and "does the flow of text match the flow of program execution" in other words "is it easy to understand given I am familiar with the problem domain".

comment 7y ago · link · parent

I wish everyone thought that way but they don't. In today's rapid paced world if you don't know Rails (not even Ruby) but Rails, for example, and we're using it - then you ain't in... and here write this 8 hour code test so we can subjectively judge it because grading code tests to see if you don't put logic in your controllers make our egos hum.

145.

If Go To statements are bad then why ...

2 points · by externalreality · 7y ago · 4 comments

comment 7y ago · link · parent

All the things most programmers do these days are pretty mundane and the only thing you need to ascertain is if they are familiar with the technologies that are being used. "Can you show you know sufficient SQL? Did you write applications before using Rails/Django what have you? Distributed this, Web that - OK, jobs is yours." After all that the productivity of the programmer is solely based on the work environment and how motivated you can keep a developer who is becoming depressingly convinced that his calling in life is to write web handlers and optimize queries to a bloated database schema and watch the guy whose been on the job too long walk around like he's some fusion of John Carmack and Elon Musk.

Why these interview processes act as if candidates are going to be designing graphics engines from scratch for graphics hardware extracted fr om a downed alien spacecraftis beyond me. We just really be testing their ability to sort through a bunch of legacy OOP designed by people who are so board with the project domain that made of bunch of bad abstractions and used every new OOD technique in the books when a handful few procedural functions would have sufficed.

comment 7y ago · link · parent

> A lot has been written about "hyperproductive teams". ... there’s one thing in common between all the stories I’ve heard and the successes experienced first hand: small teams

Funny because I don't think its small teams or a particular programming language that leads to great productivity. You don't have to look very far or far back to see teams, of various sizes, pulling off some amazing stuff with assembler and C. The key to productivity is a lot simpler, and independent of software development. Its a sense of responsibility, interest, and dedication.

In a small team that is using small talk the responsibility might come from being on a small team with a lot of lifting to do, the interest might come from having fun using a language that you like (regardless of the language), and the dedication might come from the promise of getting in early on a promising venture - hence the small team. All of these things add up to hyper-production.

If you can establish those three things, somehow, with a large team I don't see why hyper-production can't be achieved. Unfortunately modern project management for large teams seems to rely heavily on techniques that rob developers of all three qualities mentioned above in the name of so called "agile" and in pursuit of some fictitious software assembly line.

comment 7y ago · link · parent

I agree most of the time I am just fixing silly issues like this mock is now broken because I added a method or a field or the like - or some beefy test setup code is now broken because of some otherwise innocuous change. I do believe high-level functional/acceptance tests are important however, that is, tests that check whether the various programs that make up the system actually do what they are meant to do. For example a CLI test for a program that interfaces with the user from the CLI. If a program is writing to storage, check to see if it actually writing to the storage properly. All the little mocks and stubs and so forth seem to be to form a false sense of security.

Those who are in favor of unit tests have one big weapon on their side of the argument and that is simply the word "test" "how can a test be bad?, right?"

comment 7y ago · link · parent

I like this article. I think it has been stated many time before in many different articles and books and is mostly common knowledge now. So I think we need some meta principles:

1) Don't think you are the only one who understands these principles and realize people are going to have differing opinions on what is the simplest thing that can be done.

2) Just because you don't understand it doesn't make it complicated. If you don't understand something another is talking about try to reserve your judgement as to how simple (or not simple) it is until you actually understand what is being said.

3) Don't over do it with this advice. Sometimes you need to add a bit of complication to make the big picture easier. "A thing should be as simple or as complicated as it needs to be nothing more".

comment 7y ago · link · parent

Assuming you are familiar with all relevant languages/frameworks involved then reading other people's code is not hard at all if 1) you understand the purpose of the portion of the code base you are in 2) you understand design/architecture of that portion of the code base and 3) You ask for a quick overview from someone.

Yes, sometimes code is loaded with all kinds of indirection that usually comes from OO programmers outsmarting themselves with all kinds of implicit polymorphic dispatch and unnecessary design pattern legacy. This is why its important to ask someone familiar with the code to give you a rundown.

1
45678