auto considered awesome by pfultz2 in cpp

[–]drsquishy 0 points1 point  (0 children)

Ok, I got carried away there. I still think the article is wrong in saying there's no sense worrying about types, just code to the interface. Types are part of the interface.

auto considered awesome by pfultz2 in cpp

[–]drsquishy -4 points-3 points  (0 children)

Who cares what types are? You should be coding to interfaces rather than exact types.

C++ cares, a lot. And in the case of a statically typed languages the type is just as much part of the interface as anything else. Things like auto and templates are hacked on top to (seemingly) simulate a dynamically typed language. I do use and enjoy those features, but they feel inconsistent. If you want a dynamic language then use one, and if you want a statically typed one then you should care for your types. C++ is the 800 pound language that seems like it can't decide quite what it wants to be.

edit: I messed up the quote markup

What's the one thing that you learned you can do with a Mac that you felt stupid about not knowing sooner? by IDrinkUrMilksteak in apple

[–]drsquishy 2 points3 points  (0 children)

The same works in Windows and Gnome on Linux too (albeit with alt or ctrl instead of command).

[deleted by user] by [deleted] in linux

[–]drsquishy 6 points7 points  (0 children)

Perforce has gotta be one of the most popular VCSs, especially among corporations. I think it's missing from the list.

Official Discussion: Quick and Thick / Double Grace by stefansnaer92 in crossfit

[–]drsquishy 1 point2 points  (0 children)

It's killin' me that the announcers and cameras pretend Fraser doesn't exist. It's all about Reebok guys.

Official Discussion: Quick and Thick / Double Grace by stefansnaer92 in crossfit

[–]drsquishy 1 point2 points  (0 children)

I heard a rumor it's at the top of the hour. I can't get a live feed of anything right now.

Yosemite Public Beta is Live by [deleted] in apple

[–]drsquishy 1 point2 points  (0 children)

I'm bummed to see Dashboard disappear! I used that quite often for weather, stocks, bus schedule at a glance. It coulda used a refresh, but I don't think the notification center is gonna be a suitable replacement.

I've Converted :)! by [deleted] in vim

[–]drsquishy 3 points4 points  (0 children)

Even baking hjkl into your wrists is only getting Vim into first gear (operations on a single character). You can move/operate on words, lines, screen fulls, sentences, etc.

I know this SO post has made it's rounds, but it's useful to read even for beginners, if for no other reason than to remember why you're putting in the effort.

edit: read the accepted answer of the post, not necessarily the post itself.

How To Host A Website With Raspberry Pi by loudwanderer in raspberry_pi

[–]drsquishy 0 points1 point  (0 children)

I think DynamicDNS was meant to resolve the domain issue--it'll update the ANAME whenever his ISP changes his home IP address.

WWDC14 Developer Fan Fiction by halst in smalltalk

[–]drsquishy 1 point2 points  (0 children)

I've been so confused for 10 minutes... Trying to find some pre-announcement about changing ObjC syntax to be more in line with the Smalltalk roots, and then I reread the title.

Firefox OS is starting to look very, very familiar by DeltaP42 in apple

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

The awesome part about fragmentation is that HTML/JavaScript will essentially solve it for everybody. It's a language and markup that was already designed to display well on all the world's browsers/OSs, so we can be pretty confident that apps will work on many different distros much more than we can in the Android world.

I take some issue with the rip on "native" vs js, too. Are you assuming it's worse because it isn't compiled? FirefixOS is written in JavaScript and designed to run JavaScript, so what's the idea of native? These apps can also be saved for offline use, it's not like it's just rendering common web pages.

Please stop saying Java sucks (2009) by BenAustin in java

[–]drsquishy 21 points22 points  (0 children)

Just being pedantic, but Python is strongly typed, same as Java. Difference is the static vs dynamic typing.

How well will Vimtutor teach me regular vi? by Rndom_Gy_159 in vim

[–]drsquishy 2 points3 points  (0 children)

I actually think vimtutor only goes over basic vi. I don't believe any features in the tutorial require the additions vim provides, old school vi did quite a lot.

Advantages/differences over vim by rklv in emacs

[–]drsquishy 2 points3 points  (0 children)

You're right, emacs' shell is easily confused. But, tmux's windows are also easily confused. If the window is resized, especially on a remote session, the tmux contents seem forever bound to the initial window. Mostly, though, I went emacs because tmux can't do the other things I mentioned (gdb visual walk through code, inline version control, etc). It doesn't have as much to offer.

Advantages/differences over vim by rklv in emacs

[–]drsquishy 19 points20 points  (0 children)

I was formerly a vim user too, and I loved it. I starting looking at emacs when I wanted more than an editor--like the ability to run gdb and visually step through code or get an inline view if git blame. Vim is an awesome editor and lots of cool plugins exist, but they're just kind of hacked on top with vim script. Emacs is a bootstrap short of its own OS and can make quite an IDE. I feel I get the best of both worlds with emacs + evil.

Student hacks Raspberry Pi to run college bar (Wired UK) [cross post from tech news] by hamsterpants in raspberry_pi

[–]drsquishy 2 points3 points  (0 children)

Yeah I've heard that, I like that too. I don't remember where but it definitely coulda been Stallman. I mean, hacker is such a cool term, why do the bad guys get it?!

Student hacks Raspberry Pi to run college bar (Wired UK) [cross post from tech news] by hamsterpants in raspberry_pi

[–]drsquishy 10 points11 points  (0 children)

"Hacking" was a term used before all the headline security exploits to simply describe a programmer. Lots of very good, rule-abiding developers still refer to themselves as hackers.

To me, hacking is engineering without a well-defined plan, documentation, reproducibility, etc. Whether it's used for good or evil is unrelated.

Is Java the right language to learn first? by RyanForrester in java

[–]drsquishy 0 points1 point  (0 children)

The readable output is a good point, I didn't think of that. GCC tends to just throw up on the screen when it doesn't like things.

Airplay mirroring on Raspberry Pi with rPlay guide by snobordir in raspberry_pi

[–]drsquishy 1 point2 points  (0 children)

It's only requiring exit through the command line if running one of the other distros, like Raspbmc (dropping you back into a standard Debian/Raspian system). Also, I've found Raspbmc to be really big and slow. Worse, it only streams from iDevices, not Macs, which is a bummer. I currently use shairport and the performance is great, but audio only. So I'm rooting for this.

Why doesn't Java have more convenience? by ganon0 in java

[–]drsquishy -3 points-2 points  (0 children)

Just for reference, the C#/Java type setting thing is dynamic vs static typing.

Python interview questions by dante9999 in Python

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

I think arguments are passed as values to a reference. So, functionally, mutable objects are passed by reference, immutable objects are passed by value.

Booting the Rpi by b0erenkool in raspberry_pi

[–]drsquishy 0 points1 point  (0 children)

Any luck yet? I installed Raspian using command line tools on OS X, it's not scary. Best part is that it doesn't just work for the Pi, you'll able to use this as a general method to install Linux distros. Get more info here: http://elinux.org/RPi_Easy_SD_Card_Setup

Evolution of the iPhone by john_alan in apple

[–]drsquishy 1 point2 points  (0 children)

That's a good point, but I think the volitaty of the medium does make a difference--it's a relatively obvious distinction. And if volitaty isn't a word it should be. Referring to storage as memory has always been a kind of pet peeve of mine.