HNHacker News
TopNewBestAskShowJobs

deckiedan

1,083 karma · joined August 12, 2012

submissionscomments
deckiedan··on A Review of Perl 6
Perl6 is fascnating! And there arent a lot of 'woah' new languages about (Rust, Go, elixir, D, elm, nim, clojure, typescript, are all 'old hat' now...) so for people wanting to learn & play, perl(6) offers a lot of fun.
deckiedan··on Small functions considered harmful
I wrote something myself trying to figure out my thoughts about this a few years ago (note: I was sleep deprived when writing it...):

https://madprof.net/nerdy/refactoring-really/

There certainly has been a over-emphasis in some quarters on 'each function should only do one thing' and even 'most of my functions are only one or two lines long'. Possibly because it makes it easier to write tests for, and be certain you've covered all of the possible options. You just then end up writing 4 million tests.

It's all about clarity, I think, but different people find different things clearer in different situations.

deckiedan··on JavaScript for People Who Hate JavaScript
> Writing the react-bindings took me an hour,...

Do you mean generic 'use react in kotlin' bindings? If so, have you published them or would you consider doing so?

deckiedan··on Government Report Finds Drastic Impact of Climate Change on U.S
Well, kinda. What is an evening or morning when there is no sun, night, day time? More likely it's just a poetic turn of phrase. What I find interesting is you can stick to "it's poetic, but modern scientific understanding can fit in happily" And aren't forced into saying, "science and Genesis are incompatible".
deckiedan··on Government Report Finds Drastic Impact of Climate Change on U.S
I absolutely agree.

As a side note: Its 6 days, not 7. Day 7 (the Sabbath) was for resting.

As a longer thought: God, as a omnipotent being, obviously doesn't need to rest, and given the idea that he (for lack of a better pronoun) is essentially keeping the universe running himself, the whole concept of 'God resting' is obviously (to me, and many others) poetic. Looking at the rest of the Genesis creation story through 'poetic narrative' lenses:

From the beginning of the universe until the start of human written history, we can divide it up into Eons (non-specific but LONG periods of time):

Eon 1: - The universe was 'formless' and chaotic. - Pure energy / light and darkness / vacuum / void become separate.

Eon 2: - The planets and other 'heavenly bodies' or galaxies start to spin together into units. - Planetary atmospheres form. (The separation between 'waters below' (the unknown depths of the sea) and 'waters above' (the vast 'ocean' of space') from a ).

Eon 3: - Focussing on Earth, the planet surface began to stabilise, continents appear. - Plants and other 'basic' forms of life begin to show up and spread all over the planet.

Eon 4: - The moon shows up, the atmosphere clears up a bit, stars are now visible, the earths spin is now stable re. Day and Night.

Eon 5: - Animals! Firstly water based, then birds. Maybe huge birds (dinosaurs?) No non-bird land-dwellers yet.

Eon 6: - Land based animals, 'finally' humans showing up.

Eon 7: - Now. Beginning of written histories.

The above pattern is a pretty strict interpretation of the first chapter of Genesis, with most of the poetic stuff stripped out. It's kind of interesting how much of it does kind of map to our current understanding of the beginning of the universe and our planet.

What do you think?

deckiedan··on Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster
It depends. I'm way more proficient in Python than anything else, but I'll still reach for PHP fur a single page template / dynamic report, or awk for some jobs, bash for others, Perl if there's exactly the right CPAN lib, ditto ruby or node, c for some jobs...

Some times a different language can so utterly change/simplify your approach to a problem it's 100% worth it.

deckiedan··on On Being a Science Writer and Managing a Mental Illness
"Most" musicians (at least, all the ones I know personally) spend most of their time freelance teaching, doing relatively dull studio/session/gig work freelance (with all the stress and uncertainty that entails), practicing several hours a day just so they don't degrade, gig work at clubs/pubs/etc. and only occasionally managing to find time to do anything truly creative and new-new.

Re-arranging crappy piano scores so they fit a scratch band they've been asked to work with, figuring out how to stretch the tiny school budget into buying a less awful keyboard...

If they do have time and energy to put into 'green field' music production, there may be some stress over whether or not it's liked, but realistically they're mostly doing it because the concept of the album inspires them so they can't sleep at night because the melody is stuck in their head.

deckiedan··on Show HN: Eul – a lightweight desktop client for Skype, Slack, Gmail, and more
#blender and related, the freenode community is still very active for real time support for many projects. I think IRC still could have a great place in the world - decentralised, open, etc. The ui is just very expectant that you already know and understand the ecosystem.

Needing to know user /auth stuff happens by sending private messages to bots, and other insane hacks.

deckiedan··on Show HN: Eul – a lightweight desktop client for Skype, Slack, Gmail, and more
Wow, awesome. Will you add IRC?
deckiedan··on Ask HN: What ways have worked for you to overcome 'imposter syndrome'?
Depends how caked on and congealed the former contents are, how well the new and old mix, and with how much force you're pouring...

Also, if the cup was filled with rat urine before, how much tea would be wasted before you considered it replaced enough to drink?

Analogies only go so far.

deckiedan··on Optimizations which made Python 3.6 faster than Python 3.5 [video]
That's kind of what I was hoping. I suspect a vast proportion of normal Python code doesn't use the meta programming and run on import and so on.
deckiedan··on Optimizations which made Python 3.6 faster than Python 3.5 [video]
Only on the first load ever. When modules are compiled to their byte code, they could get a "clean" flag if they don't execute code, which means they get loaded lazily next time.
deckiedan··on How to Make Homemade Bitters
Homebrewing beer is pretty easy to be cheaper than good craft beer, and better than cheap commercial beer. If you keep good sanitation, and are relatively careful, it's a lot of fun. The online homebrew community /r/homebrew for starters, are fantastic. A lot of great people and loads of info to get started.
deckiedan··on Disable Your Antivirus Software (Except Microsoft's)
Anyone know what the state of AV on android is? $employer requires ESET on all windows machines, and I'm trying out the android app now. It doesn't seem to make my phone any slower...
deckiedan··on PHP vs Node js... Let's be honest: Node.js couldn't kill PHP. Why?
Use two users, and wp-cli. I've been doing this for years now. Php runs as a less privileged user, without​ write permission. If they want to install plugins, they need to enter the FTP name and password of the site dir owner user. Since the FTP connection is localhost, no passwords go over the wire in plaintext. Next, you install wp-cli, and add a real system cron job to 'wp core update', and 'wp plugins update' every hour. You can also do things like transient cleaning once a month, or whatever else, and running the WordPress fake cron.

You can then disable wp cron, which saves network resources.

deckiedan··on Asynchronous Programming in Python: Asyncio
For an instant latency boost, you can also pop the sqlite db directory on to a memory tmpfs.
deckiedan··on Wacl: Tcl distro customized for WebAssembly
The default download didn't have GUI support on my Mac when I just tried it, and the documentation seems to indicate it's Windows only so far?
deckiedan··on Thunder Run to Seoul: Assessing North Korea’s War Plan
I spent some time in South Korea working with several churches there - they are in tears over the situation in the North every day praying for them. I'm sure if/when it happens there will be a staggeringly huge amount of money poured in from the churches, and other religious people around the world (on top of everything the governments put in...)
deckiedan··on Linked Lists Are Still Hard
How could a safe system actually do it? Without some kind of run time garbage collector? Doesn't this kind of problem really require run time (either manual or automatic) care of memory by definition?
deckiedan··on Linked Lists Are Still Hard
I thought the idea with rust was that it was low-level enough that such problems could be expressed with zero overhead in an unsafe block, and then given a safe interface for users further up the chain?

There's nothing wrong with scary-potentially-misused-unsafe stuff as long as you can isolate it and therefore less likely misuse it unsafely...

C effectively is unsafe everywhere, and other languages that are safe are non-zero-overhead, or so far up the stack that they cannot be used in kernel/system level stuff.

Is that right?

deckiedan··on Tales of SugarCRM Security Horrors
Android Firefox readermode is fantastic. I absolutely love it. I wish it was the default view for most pages with a toggle to see the original!
deckiedan··on Ubuntu on AWS Gets Serious Performance Boost with AWS-Tuned Kernel
Ansible has preliminary py3 support now. It works well enough for me on Ubuntu 16, only py3 installed.
deckiedan··on Proposal to start a new implementation of Thunderbird based on web technologies
Interesting that mithril.js gets a mention. I really like it.
deckiedan··on Why I hate the weekends
I hear you, mate.

I sometimes hear stories from older relatives about how life was for them 40+ years ago. They also were working some crazy hours and situations, my grandparents living apart for the first 3 years of their marriage. He was a hotel manager, so she'd come up to visit once a week or two for a night.

In some ways, I suspect we don't have that different a life in terms of hours worked than a while ago. I'd love to see data on it (hint, hint, history stats people?).

I think a lot of the additional stress and frustration of 2017 life comes comes from the internet, being always connected, seeing so much 'positive happenings' in other peoples lives on social media, and so much constant negative stuff from the main news.

I have a theory that we have a signal:noise ratio in terms of relationships and news, that we've got to keep balanced. Having 100 'friends' all at a mild level of depth is actually adding noise, compared to the 1 or 2 really close friendships. And the few close friendships actually lose a lot of their value when we're constantly bombarded with the news and minor 'noise' relationships.

So when we're on facebook/twitter/etc, we're constantly adding noise to our emotional inputs.

A couple things I'm trying to do, or at least find kind of interesting to ponder/think about, are taking some old old practices, and thinking about integrating them.

The Jewish 'Sabbath' idea, of one day completely off per week, is pretty awesome. One part that I missed for a long time was that sabbath starts at sunset on the day before, and ends at sunset of that day. So if you count Sunday as your Sabbath (typical Christo-Western) you don't have to worry about getting everything ready early Monday morning, you can get stuff sorted Sunday night. And Saturday evening, once you've had dinner, or even at the start of dinner, make a big deal of turning off phones, and leaving them off until the next evening.

I dunno. I'm also in a long... discussion... with depression about who gets to run my life. I've been off medication for a few months now, but it's still complicated. It's so much easier when low on energy to flop on social media, or netflix or whatever. But it doesn't seem to leave me feeling better the next day.

I hope you can get some rest. Deep rest, in your soul.

deckiedan··on Phishing attack uses Unicode characters in domains to clone known safe sites
That doesn't work for colour blindness, or languages that use extended Latin alphabet. Some letters of a word would be one colour and others another.
deckiedan··on Nginx 1.12.0 stable
Ansible is working great for me.
deckiedan··on Web Development in Go
I really like the flexibility of being able to swap around dbs during initial development. At some point along the way once almost the whole major systems are working, I'll need to decide if I need FTS, sharding, to work on a shared host that already has MySQL / interact with a wordpress site, etc.
deckiedan··on Atmospheric CO2 levels accelerate upwards
Please, please write to your local party reps in all those parties explaining your dilemma! This will probably have as much or more value in terms of policy change as a vote. Parties lump so many disparate issues together, they need to hear what individual issues are actually important to the rest of us.
deckiedan··on How to create content that works well with screen readers
Is <abbr> etc. Used by screen readers? I kind of thought that was the point...
deckiedan··on Android devices can be fatally hacked by malicious Wi-Fi networks
If I remember correctly, android inc / google set out (with Android) explicitly to create a rebrandable reasonably customisable OS base that all the phone manufacturers could use, modify, set up for their phones, etc.

It was intended, and certainly branded to device manufacturers as an OS they can use and 'get all the apps'.

The hard/firmware side is part of the OS. By allowing Android to be run on any device w/o decent security, the OS inherits that.

A better solution (to my mind) would have been to restrict manufacturers from using the Android brand unless they guarenteed a certain level of support and security updates, etc.

Also, having a central (google level) set of base packages which get constant updates and are pulled into all phones, regardless of brand.

But it's too late now.

← PreviousPage 4 of 14Next →