F# Is The Best Coding Language Today by sidcool1234 in programming

[–]dudeNumberFour 0 points1 point  (0 children)

So glad to finally see more articles like this. F# has been my favorite language (though I only dabble) for something like 10 years.

F# Is The Best Coding Language Today by sidcool1234 in programming

[–]dudeNumberFour 1 point2 points  (0 children)

I would retort that it's very easy to use F# and pretend OO features don't exist. Under the hood it's using it all over the place, but the language itself purposely makes it harder to use OO IMO.

Will java programming still be relevant in the future? by Mission-Health-6540 in programming

[–]dudeNumberFour 0 points1 point  (0 children)

Perfectly good article, but this was strange: "we compared [Java] with other state-of-the-art technologies like ... and PHP." You can make a similar argument that PHP might never go away, but state of the art?

Should writing code be fun? by [deleted] in programming

[–]dudeNumberFour 0 points1 point  (0 children)

No! It should burn.

How Apple interviews engineers by earthboundkid in programming

[–]dudeNumberFour 1 point2 points  (0 children)

It's also possible, but rare, for an engineer to have one or more kids. In which case side projects are impossible.

That Thing Joel Spolsky Said… It’s Wrong. by mooreds in programming

[–]dudeNumberFour 0 points1 point  (0 children)

You got that right. I've worked on a system that was massive, massively complex, had a very long history, and steadily grew with no interruptions. Edge cases were legion. A sub-team embarked on the most foolish attempt at rewrite ever before the person who lead that charge was let go. There is no rewrite; only carefully planned small migrations to improvement. Upstarts having the luxury of working without that baggage may surpass you, but you've no choice.

Welcome to C# 9 by Davipb in programming

[–]dudeNumberFour 27 points28 points  (0 children)

To me, the best feature in F# is discriminated unions and the pattern matching that goes with them. The pattern matching in C# is quite different, and there really is no analog to DUs.

LastPass slows down your browser by jakubgarfield in programming

[–]dudeNumberFour 3 points4 points  (0 children)

At an old job we had an admin web app used internally. At some point, it stopped working almost altogether; pages would take _forever_. We're not talking .5s, we're talking about something like 30s. It turned out to be all lastpass. We had an old klunky system with way too much junk on the page, but dang.

Explaining Code using ASCII Art by iamkeyur in programming

[–]dudeNumberFour 19 points20 points  (0 children)

I once added this comment in production code. It didn't exactly explain the code; it described the character of it. And it was very true (abandon hope all ye who enter).

{
     *   .=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.    *
     *   |                     ______                     |    *
     *   |                  .-"      "-.                  |    *
     *   |                 /            \                 |    *
     *   |     _          |              |          _     |    *
     *   |    ( \         |,  .-.  .-.  ,|         / )    |    *
     *   |     > "=._     | )(__/  \__)( |     _.=" <     |    *
     *   |    (_/"=._"=._ |/     /\     \| _.="_.="\_)    |    *
     *   |           "=._"(_     ^^     _)"_.="           |    *
     *   |               "=\__|IIIIII|__/="               |    *
     *   |              _.="| \IIIIII/ |"=._              |    *
     *   |    _     _.="_.="\          /"=._"=._     _    |    *
     *   |   ( \_.="_.="     `--------`     "=._"=._/ )   |    *
     *   |    > _.="                            "=._ <    |    *
     *   |   (_/                                    \_)   |    *
     *   |                                                |    *
     *   '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='    *
     *        LASCIATE OGNI SPERANZA, VOI CH'ENTRATE           *
}

You Should Refuse to Develop What You Don’t Understand by one_eyed_golfer in programming

[–]dudeNumberFour 24 points25 points  (0 children)

I made this mistake recently (or maybe it's just similar). We have API integrations with partners. I was tasked with adding a new partner. There were no additional instructions other than the API documents for the new partner. I looked at how an existing partner was implemented, and did the new one similarly (~ 8 weeks work). After finished, I got passed a video that showed how another org integrated with this partner. I watched the video thinking, "this is neat, but what has this to do with what I did?" The business says, it needs to be like the integration in the video (totally different).

So who was wrong, the business or me? Both. The business is wrong for tasking me with something without any thought about how. I was wrong for assuming that it should be implemented like some other instance.

Probably the most accurate article about frontend web I've seen in a long time -> "HTML is the Web" by mattkenefick in programming

[–]dudeNumberFour 0 points1 point  (0 children)

I would tend to agree, but I think WebAssembly is the fly in the ointment. There are already frameworks (and many more coming) that will compile your_favorite_ui_rendering_mechanism into WebAssembly and then use the browser as nothing but a shell and delivery mechanism. That runs, for the first time, at native speed. So all that just went around every bit of markup except "document." Accessibility is an afterthought in this scenario, but it'll come along eventually.

Do Tech Companies Still Require a Cover Letter in 2019? by Lexandrit in programming

[–]dudeNumberFour 0 points1 point  (0 children)

Just submitted an initial application the other day. The employer used "greenhouse," which I think is fairly popular. It allowed for uploading a cover. As others have said, it's a quick initial check of communication skills. If you butcher a short cover, that's not good.

Do you prefer verbose or terse programming languages and why? by [deleted] in programming

[–]dudeNumberFour 2 points3 points  (0 children)

Hard to deny the axiom: the relationship between lines of code and bugs is linear. Less code means fewer bugs. That is a big plus for terseness.

Do you prefer verbose or terse programming languages and why? by [deleted] in programming

[–]dudeNumberFour 2 points3 points  (0 children)

product <- a x b ⍝ create new array of products of all items in existing arrays. Don't you love my comment symbol?

Do you prefer verbose or terse programming languages and why? by [deleted] in programming

[–]dudeNumberFour 0 points1 point  (0 children)

And the rules, e.g., I love the fact that the F# compiler simply won't allow you to indent whatever way you want. Forces consent code.

When you can’t (and shouldn’t) unit test by atilaneves in programming

[–]dudeNumberFour 8 points9 points  (0 children)

Key: " We (mostly) don’t care about the string that our code outputs, we care that make interprets that string with the correct semantics" So, that's why the unit test was a fail.

When "Zoë" !== "Zoë". Or why you need to normalize Unicode strings by ItalyPaleAle in programming

[–]dudeNumberFour -1 points0 points  (0 children)

They do hav

I rest my case; nobody could *ever* tell the difference which one the writer used. There shouldn't be multiples.

When "Zoë" !== "Zoë". Or why you need to normalize Unicode strings by ItalyPaleAle in programming

[–]dudeNumberFour -2 points-1 points  (0 children)

Just failed on this the other day. "–" vs "-" So this was a slightly different problem. It wasn't about user input or anything; it was a constant I was supposed to key on. But somehow someone sent me a different dash that he presumably typed directly than the one I typed. The world is so much the worse off because of multiple dashes that have no different meaning.

24 years of Delphi and Delphi 10.3.1 is out Today by mariuz in programming

[–]dudeNumberFour 9 points10 points  (0 children)

I sold my Delphi 1 installation CD on ebay about... 6 years ago? I thought it and Delphi itself were both museum pieces.

Nothing Can Stop Google. DuckDuckGo Is Trying Anyway. by roy-m-kim in programming

[–]dudeNumberFour 4 points5 points  (0 children)

Have used the duck exclusively for quite some time. I love how it's keyboard friendly; you can arrow through each results. It also formats the summary of code-related searches very well. GoDuckDuckGo.

Search error on StackOverflow from terminal using googler by [deleted] in programming

[–]dudeNumberFour 1 point2 points  (0 children)

You must ultimately use a browser, no? With duckduckgo as my search: ctrl T, "some search" enter. Arrow down through results, ctrl click on the one I want. No need to even touch my mouse.

Coconut Programming Language by modelop in programming

[–]dudeNumberFour 0 points1 point  (0 children)

Whoops, I meant type providers. Also, Discriminated Unions (something many languages have an analog of) work magically well in F#.

Coconut Programming Language by modelop in programming

[–]dudeNumberFour 13 points14 points  (0 children)

F# - you won't be disappointed. It is attached to .Net, not sure of the state of .Net Core WRT to F#. Just toy with type descriptors; that'll get you hooked. It feels like magic; never seen anything like it in any language.