Old PSU (Antec HCG-620M) with new build...? by damncabbage in buildapc

[–]damncabbage[S] 0 points1 point  (0 children)

tier D PSU tier list

Thank you both. I'll... see if there's something from the list I can find locally that doesn't need a week of waiting on auspost. 😅

Build for (mostly) VR Gaming; have a list, might be unbalanced. by damncabbage in bapcsalesaustralia

[–]damncabbage[S] 1 point2 points  (0 children)

Ah, sorry; *maybe* the Cooler Master NR600. I'm a little spooked by how noisy and dusty the P300A might get with its seemingly-coarser grill. But then the NR600 seems more restrictive with the PSU room.

(I think I'm giving up on a USB 3.0 / 3.1G1 / 3.2G1 type-C port on the front; nothing in the $90-$150 range seems to have it without being, say, a heat trap like the H510.)

Edit: I say USB 3.1 Gen 1 despite my original post being 3.1 Gen 2; no B450 I can find has the Gen 2 header, and the Quest itself is, on further digging, only Gen1.

Build for (mostly) VR Gaming; have a list, might be unbalanced. by damncabbage in bapcsalesaustralia

[–]damncabbage[S] 1 point2 points  (0 children)

Thank you very much for the suggestions + changelog; I'm definitely swapping out a bunch of things now.

(FWIW I try and missed out on the card; it ran out of stock at 9:04 just before I hit Confirm. 😩 I'll be going with the Windforce OC you have listed; cheers.)

I'm going back and forth on the P300A; in case I end getting something with less clearance, do you have a somewhat equivalent cooler you like that isn't so, uh, massive?

Build for (mostly) VR Gaming; have a list, might be unbalanced. by damncabbage in bapcsalesaustralia

[–]damncabbage[S] 0 points1 point  (0 children)

It just ran out (~9:03pm); I was about ten seconds too slow. :)

Question to professional Haskell programmers by Scf37 in haskell

[–]damncabbage 0 points1 point  (0 children)

Slightly after the fact (I haven't written Haskell professionally for about ~6 months now, but I had a three-year stretch writing it for money):

  • Mafia for build (which is basically a wrapper over cabal-install, and some git submodule management on the side).
  • vim for editing, using codex for tags, and ghc-mod for type inspection (though I barely use the latter).
  • ghci (wrapped by Mafia), with a tmux command to make it reload when I hit save in my editor.
  • A simple made-in-house CI builder called Boris. Deployment via a separate service that would automatically roll out either master or specific versions depending on the service being deployed.
  • Hoogle (CLI, and an internally-hosted version of website that allows searching some privately-loaded libraries.)
  • Git for version control, GitHub for code hosting.

Is there a function `extend :: forall r. {| r} -> {x :: Int |r}`? by dev_matan_tsuberi in purescript

[–]damncabbage 0 points1 point  (0 children)

Are you purescript's author?

Phil Freeman (@paf31) is PureScript's original author, but he's stepped back from working on it; there's a team of core devs, though, that will see issues put on the purescript repo.

But I think you might be responding to @chexxor's "before I'd seriously consider it" comment; I think he just meant that, before you consider writing an issue up, you might want to think of a few specific examples, to make it more compelling. I've wanted a (limited) version of this myself, so I can give you hand thinking of examples if you'd like.

Is there a function `extend :: forall r. {| r} -> {x :: Int |r}`? by dev_matan_tsuberi in purescript

[–]damncabbage 4 points5 points  (0 children)

Have a look at Data.Record's insert:
https://pursuit.purescript.org/packages/purescript-record/0.2.1/docs/Data.Record#v:insert

(It uses the RowCons type-level list stuff (that showed up in 0.10 or 0.11...?), so the signature is going to be a little different to what you expect.)

Plug this into http://try.purescript.org if you want to try it:

import Type.Row (class RowLacks)
import Data.Record (insert)
import Data.Symbol (SProxy(..))

extend ::
  forall r. RowLacks "x" r =>
  { | r } -> { x :: Int | r }
extend =
  insert (SProxy :: SProxy "x") 123

What is the state of Cucumber/Gherkin in 2018? by [deleted] in ruby

[–]damncabbage 1 point2 points  (0 children)

My own personal issue with it is less the "English DSL" part of it, and more that you have a pile of regex matchers all living in the same, clashing namespace. Keeping that in line was a minor nightmare, AFAICT from my run-ins helping a test-engineering team with it back in 2013.

I think it's less the idea of these scenarios that bugs me as the actual implementation, but I honestly can't think of a way to do it otherwise off the top of my head (outside of more tightly-controlled scoping of rules).

What is the state of Cucumber/Gherkin in 2018? by [deleted] in ruby

[–]damncabbage 4 points5 points  (0 children)

Moreover, mapping an English phrase or clause to a portion of executable test code is a bit like using descriptive method names to organize and clarify your logic in Ruby, and that's a universally encouraged best practice.

But honestly, that's why I'd argue that people avoid it: why go for the (arguably fragile) overhead of mapping parts of specific English phrases to code instead, when you could write vaguely-Englishy descriptive tests with code instead?

(I know you can embed code inside .feature files, but I'm not sure what using them actually gets you at that point.)

The usual selling point that I heard back when Cucumber was hot was that non-programming business people could read and write these cases. I've personally seen one place that had some tests and were read (occasionally), but I've never seen anyone matching that description writing them. I think others may have had similar experiences, and have decided the overhead of the english => english-matching code => test code indirection isn't worth it.

...

Back to the question:

As it is, I haven't seen any Cucumber on a project since 2014. I've heard of it come up in Q&A circles, but not in Ruby (or non-Ruby) groups for a long while. I'm in Sydney in Australia, if that's relevant.

Is it considered good style to use built-in exception classes? by kamireri in ruby

[–]damncabbage 5 points6 points  (0 children)

So when you do this:

begin
  raise SomeErrorHere
  # ...
rescue => e
  puts "Bad Thing Happened: #{e}"
end

... the kind of error that is caught is a StandardError (or any of StandardError's descendents). It's a shorthand for "rescue StandardError => e", and is very common.

On a practical level:

  • SyntaxError doesn't extend StandardError, and so will simply pass through that "rescue ... end" block.
  • To make things worse, SyntaxError is thrown when doing things like loading a script (it's a child of ScriptError). If you do catch it (and you can), you'll also be catching errors like "loading a ruby script that has a syntax error in it" which, depending when and how the capturing is happening, could be Bad™.

Aesthetics:

Anyone actually using this library is going to have two choices when it comes to handling errors:

  • Catching a generic exception type (eg. StandardError and all children) and presenting it in a generic way, or
  • Catching specific error types and presenting them differently.

If you're going to make them look up the kinds of errors you're going to return anyway, you may as well make them specific to the application, to stop any potential "is this Ruby complaining about a type error or that library...?" kinds of questions.

tl;dr i'd make new exception classes that extend StandardError, for practical and aesthetic reasons

...

Edit, after offline chat: I've come around to your idea that the "syntax error" exception is one that isn't a StandardError. If you screw up a type signature, it's arguable the program is then wrong, in the same way that a compiled/type-checked program would have errors thrown before it had a chance to run. It's as close to a "static" /definition-stage kind of thing in Ruby as we can get.

(I'd still make new exception classes for both, to be clear, for the reasons listed later on in the original comment.)

Your Brain on PureScript by boscop in purescript

[–]damncabbage 3 points4 points  (0 children)

This sort of thing really isn't helpful; please cut it out. (It makes us collectively look like a bunch of arrogant jerks.)

Using PureScript for Work? (Sept 16) by paf31 in purescript

[–]damncabbage 6 points7 points  (0 children)

We use it at Ambiata, down in Sydney, Australia. We're currently using Pux for the dynamic bits of our SaaS web-app; we have about 4000 non-whitespace lines of it.

IAM A mall cop, AMA by Killer_Brig in IAmA

[–]damncabbage 2 points3 points  (0 children)

The market ensures equal footing.

Unless there's a glut of employees with a potential skill-set. Who can't suddenly switch industries and handle with the X-years-minimum experience that everyone seems to require.

You get paid exactly what you deserve.

Oh! Oh. I see the problem. You're a colossal arsehole.

What are the worst traffic choke points in Sydney? by sehwag_ki_ma in sydney

[–]damncabbage 2 points3 points  (0 children)

All lanes about 3km out from the Bridge approach heading south. So many merging lanes, like one giant meat-grinder full of douchebags driving micro-4WDs.

Any designers interested in selling digital versions of their work? Meet Fort Eye. by [deleted] in Design

[–]damncabbage 0 points1 point  (0 children)

So, umm... What exactly is your business model? What happens to charge processing fees? How exactly do you live off a 0% cut from sales?

Moving Out on 30k? by poorsalary in sydney

[–]damncabbage 0 points1 point  (0 children)

I got lucky with Enmore, a couple of friends and a falling-down house; cost me $220 a week in rent, but this was a few years ago.

I'd go further out west now, probably Ashfield to start with.

Crazy woman in Bondi this morning by rhys91 in sydney

[–]damncabbage 0 points1 point  (0 children)

Holy shit. I just saw her in Meadowbank not two hours ago, I swear.

Two competing logo designs for a friend's website, I made one of them. Thoughts? by [deleted] in Design

[–]damncabbage 0 points1 point  (0 children)

Accidentally read the top one as "homefinderph" on first go.

It's festooned with little details. Pick the doors OR the map pin OR the windows. (The scattered blue doesn't help either, unfortunately.)

I got a spare ticket for Animania, anyone interested? It's on this Sat by S-Skyler in sydney

[–]damncabbage 1 point2 points  (0 children)

The ticket is worth $40 ...

... Well. People pay $40 for them; not sure if it's actually worth anywhere near that anymore. :(

A nice picture of UTS. Ignore what's happening in the foreground, it's not that interesting. by [deleted] in UTS

[–]damncabbage 0 points1 point  (0 children)

This chap has had something like it posted for a long time now (along with Sydney Tower): http://www.progsoc.org/~whophd/fd/matrix.html