HNHacker News
TopNewBestAskShowJobs

drbojingle

287 karma · joined September 14, 2016

submissionscomments
drbojingle··on Using ‘switch’ to match arbitrary logic instead of string or number literals
IMO, I don't really like it as a switch or the if statements. My issue being the multiple booleans being passed to a single function. I could see it growing to 3, 4, or greater too if more social options were added. I prefer enums.

   SocialUrl = 'github' // or twitter or w/e

   return socialConfig[SocialUrl] || defaultSocialConfig
or how about:

   const getConfig = (key, default) => config[key] || default
Logic per key value isn't necessary.

edit: disregard. Misunderstood the code =)

drbojingle··on Proteins That May Restore Damaged Sound-Detecting Cells in the Ear
I'm interested to hear more.
drbojingle··on Teach Yourself Programming in Ten Years (1998)
Sounds like you need to Branch out more to me. There's more than one way to skin a cat, but have you tried cooking one?
drbojingle··on I'm writing a book about algorithms and Lisp
This is a psychological phenomenon called choice paralysis. My advice: get a mentor. Someone who knows the industry and can remove bad options. OR. Just pick one and forget about it.

Personally my favorite approach a Bring your own idea approach, where you come up with something you want to build and then figure out how to build it, rather than focusing on what's hot or best or correct. You can stripe down CS and focus only on the product development necessary to achieve a release. Gets you coding, which is a good first step in to CS and a better first step in to the industry (CS != business. Overlaps but ain't the same.)

I'm teaching my girlfriend to code and right now she's on the basics: html, and css. She had no idea what to build so I got her to start working on a dictionary of all the things she's learning (essentially she's taking her notes on html, in html). Very recursive and reinforces the knowledge, but (if they're curious) it would naturally segway into "how do I make it look pretty" (which it did) and we're continuing from there.

drbojingle··on The Library Card Project: The Ease of Forming Anonymous Companies in the U.S.
Yea that was my thought process as well. First idea was to use Stripe Atlas. https://stripe.com/en-ca/atlas. Costs more than your estimate but seems pretty turn key and it's a good segway in to building simple web applications and hosting them on product hunt.
drbojingle··on The Library Card Project: The Ease of Forming Anonymous Companies in the U.S.
Great, I'll get my kids corporations for their 7th birthday.
drbojingle··on What If Consciousness Comes First?
Why are we Conscious? I think the answer, at a very high level, must be that evolution followed the path of least resistance: consciousness has high value per amount of energy expended on it and is easy to achieve.
drbojingle··on Apple in Advanced Talks to Buy Intel’s Smartphone-Modem Chip Business
or you could buy a laptop with 4g :P
drbojingle··on I'm writing a book about algorithms and Lisp
Yes but they're not the goal.
drbojingle··on I'm writing a book about algorithms and Lisp
A CS degree is just a collection of topics that you study. Look up the topics, find books, articles, etc on the topics, find a mentor, study the topics, "get degree". The only thing missing are metrics but the metrics aren't the point.

My local university has a book store and the books per course are all there so if I wanted to I could pick up all the books for a CS degree and read um. I could find a list of profs too and I bet if I emailed some I could find one that might talk back.

There's all kinds of ways to go about this :)

drbojingle··on Apple in Advanced Talks to Buy Intel’s Smartphone-Modem Chip Business
Assumes you have wifi hotspots in range and an iphone that's configured correctly with adequate battery.
drbojingle··on Think in Math, Write in Code
What do you mean by math though? Are you focusing on numbers? Usually when I thing about math I'm thinking about boundaries and how inputs effect outputs. Those things do matter to programmers.
drbojingle··on Faster, cheaper, and better: A story of breaking a monolith
Cool, thanks for sharing. So is your micro-service architecture you described in your article for the 2 engineers or the 40? Asking because 40+ doubling to 80+ seems like a great fit for Micro-services, but 2 people, eh, not so much, IMO.
drbojingle··on Faster, cheaper, and better: A story of breaking a monolith
How many engineers do you have and what's your growth in manpower like?
drbojingle··on Absolute truths I unlearned as junior developer
What tool makes them, and what's the tool made out of? You go back far enough, someone had to write code for something. You're not wrong though but it sounds like a domain specific thing too. Vending Machine as a service essentially. Still, as long as people are writing code it'll be because there's no choice but to write it for their use case.
drbojingle··on Absolute truths I unlearned as junior developer
I agree with you but I can't bear to say code doesn't matter. Try not writing any and see how valuable software is without it. Better yet, delete it and see what happens :D. I expect Codeless will become a thing one day but, until that day comes you will write code, because the code is necessary and I have trouble saying that the code is needed but also doesn't matter. Least important necessity maybe?
drbojingle··on Absolute truths I unlearned as junior developer
There's truth to both sides. Depends on the comment really.

``` doesAThing() //does a thing ```

doesn't help anyone.

My rule: Code is for how, comment is for why.

drbojingle··on Show HN: This page is a truly naked, brutalist HTML quine
IMO, I think it would look better if the HTML was faded in to the background more, but it's interesting as it is. What does it mean?
drbojingle··on I Grew Up Gifted, but My Life Didn’t Turn Out the Way I Expected
I would disagree with the article. I think the 'laziness' comes from a more well tuned intuition for value. Smart people don't make money because they're smart. Sometimes all smart people want to do is indulge in things that don't necessarily bring value to anyone. However, if you have a knack for seeing the value in something (or a lack of value) I think you'll be more likely to succeed. If you think about it, since grades don't come from a linear expulsion of effort, aiming to get high grades when you don't know what you're ROI is going to be does sound dumb.
drbojingle··on Was MongoDB Ever the Right Choice?
The advantage of JSON is that it was there. Horrible but immediately available > Amazing but currently unavailable.
drbojingle··on U.S. workers hate ‘open’ office spaces
Canadian here: Also hate open offices. It's a classic case of straight line fallacy IMO, and just general ignorance of diminished returns. Yes being around people CAN lead to collaboration which can lead to creativity, better relationships, and greater success, but too much of a good thing IS a bad thing.
drbojingle··on Programming Language Rankings: January 2019
Go has to take that mind share from the Java of 2019, not the version of Java that gained that mind share
drbojingle··on React as a UI Runtime
I've been experimenting with this lately for chatbots and I feel like it could be a good approach.
drbojingle··on React as a UI Runtime
Hooks can be abused but they have their uses because some state is temporal. Forms before they're submitted and animations are two good examples. There's no need to store local animation state in a global state store every time you use a new component.
drbojingle··on Ask HN: What makes you not want to work with a developer?
This is common enough that everyone would know what you're doing and think you only said the nice things so you could say the negative :P
drbojingle··on Ask HN: What makes you not want to work with a developer?
I can't personally agree with that viewpoint. If I know you're going to introduce a problem, it's my responsibility to say so then and there. If they're professional they need to respect that. Especially if it's CR from a junior.
drbojingle··on Ask HN: What makes you not want to work with a developer?
Agree with most of your points. For 1 and 2 it depends on what constitutes silly and the situation. I've seen some terrible code go through CR in the name of speed. For loops in for loops in if statements in for loops with breaks and continues abound. It worked, but be damned if I wanted to see it again.
drbojingle··on Ask HN: How many developers should you have before you switch to micro services?
That's cool, I'm not interested in personal info. I am curious how many developers were working on your back-end at any given time and how many services you had at any given time.
drbojingle··on Ask HN: How many developers should you have before you switch to micro services?
Sounds like the actor model. Erlang? Elixir? Not really sure where you're going with this :P
drbojingle··on Ask HN: How many developers should you have before you switch to micro services?
Sounds pretty complex! What are you making if you don't mind me asking?
← PreviousPage 8 of 9Next →