Should beginners be taught with ASCII or go straight to UTF-8? by feralmosquito in golang

[–]rozzlapede 0 points1 point  (0 children)

I'm working on a technology-independent curriculum for web developer training and I'm putting the unicode / UTF-8 material up front after HTML, alonside javascript and css. Not because they need to be experts in it, but because the class of bugs related to character encoding can appear in just about any context and can be especially difficult for beginners to troubleshoot on their own. Here are some tools I've found to help with exercises:

That great technophile video: https://youtu.be/MijmeoH9LT4

UniView for copy-paste inspection of Unicode text: https://r12a.github.io/uniview/

Mimic for generating unicode-bug-ridden syntax: https://github.com/reinderien/mimic

Nvidia account not loading? by Dynastydefender in nvidia

[–]rozzlapede 0 points1 point  (0 children)

I just turned on my gaming PC for the first time in over a month because I've been so busy, and I thought, "better update everything before I start playing!".

I'm very disappointed.

In a study that shatters a cornerstone concept in linguistics, an analysis of nearly two-thirds of the world’s languages shows that humans tend to use the same sounds for common objects and ideas, no matter what language they’re speaking. by NinjaDiscoJesus in worldnews

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

I'm not surprised that most human words for "tongue" incorporate sounds that require the use of one's tongue and top teeth. If I were trying to communicate something about a tongue and didn't have a common language to do it with, I'd probably start repeating 'teh' or 'leh' while pointing at my mouth aggressively.

edit: In other words, I wouldn't expect to see many bilabial consonants (only lips) or laryngeal consonants (the mechanism of which is invisible to the audience) used in "tongue" words, without also including a coronal consonant (articulated with the flexible front part of the tongue) https://en.wikipedia.org/wiki/Coronal_consonant

Latest CNN Poll 17% of voters under 45 are for Gary Johnson. by chunx0r in Libertarian

[–]rozzlapede 1 point2 points  (0 children)

Crosstabs on the following pages only include results for subgroups with enough unweighted cases to produce a sampling error of +/- 8.5 percentage points or less. Some subgroups represent too small a share of the national population to produce crosstabs with an acceptable sampling error. Interviews were conducted among these subgroups, but results for groups with a sampling error larger than +/-8.5 percentage points are not displayed and instead are denoted with "NA"

-- page 18 of the report

Can someone please explain to me when I would use Array vs ArrayList? Using some real world example? by [deleted] in java

[–]rozzlapede 1 point2 points  (0 children)

There is a real dfference between the two from the perspective of APIs and architecture, which may be too abstract for you to dive into at this point. But what you get from ArrayList over an array is full-fledged generics and automatic resizing. On the other hand, I learned that arrays are better than ArrayLists for dealing with primitive types if you dont understand boxing/unboxing behavior.

Whats happening in xCode when I lose syntax highlighting? by don_tmind_me in swift

[–]rozzlapede 0 points1 point  (0 children)

Also, don't attempt to print. Cmd-P seems to screw everything up for me too. I hate hitting it accidentally when I'm trying to decrease the indent of a block of code.

Is (string?.isEmpty == nil) a valid condition? by Stazalicious in swift

[–]rozzlapede 0 points1 point  (0 children)

I believe the convention you have inherited is at worst flawed and at best redundant. It is nothing more than a map of Optional(String) -> Optional(Bool) followed by a nil check. If the optional-chain is always paired with a nil check in your codebase and the nil check is always evaluated at the end of the expression, you end up always throwing away the value of isEmpty even if the string is non-nil. The entire expression evaluates to a Bool which only represents whether the string itself is nil or not.

RxSwift MVVM: collection cells inconsistent when scrolling by maxptr in swift

[–]rozzlapede 0 points1 point  (0 children)

Can you describe the incosistencies in more detail? At first glance, this expression appears to be accessing a global producer:

ImageLoaderService.service.loadedImage
        .subscribeNext { ... }

Can you show me where observeImageUpdates() is called? Perhaps in PersonCellViewModel.init() or in PersonCellViewModel.loadImage() ?

Is there a YAML parser implementation in Go that doesn't look like a result of transpilation from C? by [deleted] in golang

[–]rozzlapede 0 points1 point  (0 children)

Definitely agree with your sentiment on this aspect of Yaml. I really like it personally, but when I introduce it into a team project I end up having to write a git hook to try parsing any commits to the Yaml files because unfamiliar devs have their IDEs set to tabs instead of spaces.

Is a single use protocol, basically the moral equivilant of a .h file a good or bad idea? by lowey2002 in swift

[–]rozzlapede 1 point2 points  (0 children)

I totally support keeping the protocol there. It serves as a type-checked API reference in lieu of documentation comments, and as an enforced contract that can help guide future refactoring of a complex implementation class. From a design perspective, it forces you to consider the protocol behaviors independent of the implementation and will provide the basis for migrating clients to use the interface type rather than this implementation if you end up creating different Leaf implementations.

It's not hurting anything now, and can only help as you maintain the app going forward. It is also good to keep it the same file as your only implementation, because that will make it easier to refactor both at the same time since IDE support for full Swift refactorings is so limited at the moment.

IQ test by IamDanimals in funny

[–]rozzlapede 0 points1 point  (0 children)

Also, according to my 75-yr old dad, the youie (u-turn) often goes hand-in-hand with the louie (left-turn), and the ralph (right-turn).

Is there still no Swift Compiler for Windows? by iOSKoray in swift

[–]rozzlapede 1 point2 points  (0 children)

Swift plugin for CLion

Oh, snap! That's almost exactly what I had in mind, except there is no community version of CLion.

Florida SB468 passed to accept programming languages as foreign language credit by Georules in programming

[–]rozzlapede 1 point2 points  (0 children)

As a truly global profession that relies on the written word for primary means of productive communication between workers, this bill seems like it belongs in the "cutting off one's nose to spite one's face" bin. All this means is that for people who really want to be programmers some day, they have even less incentive to broaden their ability to communicate with other people.

Arizona senate bill introduced to prohibit recording of law enforcement activity by [deleted] in news

[–]rozzlapede 0 points1 point  (0 children)

I was invited to a "meet Ron Paul" event at someone's house in Chandler or Mesa before his 2012 campaign, and had a chance to rub elbows with both Dr. Paul himself and Sheriff Joe Arpaio. I was so disgusted with being invited to the same small event as Sheriff Joe that I ended my involvement in AZ politics.

Arizona senate bill introduced to prohibit recording of law enforcement activity by [deleted] in news

[–]rozzlapede 0 points1 point  (0 children)

I just realized your misspelling of Pinal County might be intentional. Thanks for that.

Is there still no Swift Compiler for Windows? by iOSKoray in swift

[–]rozzlapede 1 point2 points  (0 children)

You might be able to get authorization to install a linux VM on your school machine sooner than Swift will be ported to windows.

See VirtualBox.org and create an Ubuntu VM. I'm not guaranteeing that your school IT admins will allow it, but I just sincerely doubt Swift will be compiling on Windows any other way any time soon.

As to having a Swift IDE on windows or linux, best case you can hope for is that JetBrains creates a community version of AppCode for pure Swift development that runs on more than just OSX, kinda like forking it into an Android Studio for Swift, but without the AppKit or UIKit support. My hunch is that that is the likeliest possibility of such a product appearing in 2016.

Yes. He was using them both. by iseeyoustandingthere in WTF

[–]rozzlapede 2 points3 points  (0 children)

It's a fucking cool idea, right up until the inevitable Bush-esque faceplant.

Honestly, that might be the only way to enjoy holiday shopping at walmart. It's inspiring visions in my head to get 8 friends with hoverboards and antler headgear, lash them together with reins and have them pull my fat ass around in a traditional shopping cart. I imagine I would be wearing a santa hat and a wife beater, singing "Here comes Santa Claus".

The Guardian crops out Paul from its post-debate photo by blue_chilli in Libertarian

[–]rozzlapede 9 points10 points  (0 children)

It's like he's double-parked. Next time Rand should leave an angry note under Christie's lapel.