Open Side Menu Go to the Top

06-04-2016 , 02:50 AM
Quote:
Originally Posted by suzzer99
I'm just at the part where Dinesh improves the video chat and the girl is disappointed when she sees him. So heartbreaking. Between that and the tabs vs. spaces break up, I have a sad.
Dont worry Jared is doing just fine!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
06-04-2016 , 03:33 AM
Quote:
Originally Posted by Craggoo
2 pace 'tabs' and i can hardly tell wtf is tabbed. 4 minimum imo.
Ever consider getting better eyesight?


In all seriousness though, emacs automatically converts tabs to spaces, unless you override it. It's also smart enough to backspace 4 spaces. Why wouldn't vim do this, and why wouldn't you set vim to do this if it is capable?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 04:14 AM
Quote:
Originally Posted by daveT
In all seriousness though, emacs automatically converts tabs to spaces, unless you override it. It's also smart enough to backspace 4 spaces. Why wouldn't vim do this, and why wouldn't you set vim to do this if it is capable?
Ever consider learning how to type?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 08:14 AM
Quote:
Originally Posted by daveT
Ever consider getting better eyesight?


In all seriousness though, emacs automatically converts tabs to spaces, unless you override it. It's also smart enough to backspace 4 spaces. Why wouldn't vim do this, and why wouldn't you set vim to do this if it is capable?
Quote:
Originally Posted by Wolfram
Ever consider learning how to type?
Visual Studio untabbify feature ftw
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 08:18 AM
Quote:
Originally Posted by suzzer99
Always present the elegant and more complex solution. They wanna be impressed by "your chops".

One job interview they had some group of objects they wanted to put in random order. I just put them in a map and did myObject.keySet() to get a quasi-random order list of the group of objects. They wanted to hire me on the spot and made a really strong play. The boss guy was so excited by my novel solution.

Nevermind that this will give the same result every time so it's not really that random. I did mention that after I'd done it and thought about it a bit. They didn't care.
The Knuth book for Semi Numerical Algorithms has a good write up on how this kind of approach generates anything but randomness.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 08:55 AM
Are there a lot of things in that context that aren't randomness?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 09:55 AM
Quote:
Originally Posted by suzzer99
Just watching the latest episode of Silicon Valley - the lead basically dumps a new girl because she uses tabs over spaces and VIM over EMACS. So well done - they have some serious techies writing for the show.

Also apparently he indents 8 spaces with his tabs - which I just can't even imagine. My new job has 4-space indents and I want to stab myself in the eye. 2 spaces 4 life!
She uses spaces not tabs.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 11:45 AM
Quote:
Originally Posted by Wolfram
Ever consider learning how to type?
Not really. I just use chords and macros.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 02:10 PM
Quote:
Originally Posted by Craggoo
2 pace 'tabs' and i can hardly tell wtf is tabbed. 4 minimum imo.
I'd seriously consider 1 space tabs if I didn't have to work with others. 4-space tabs looks like **** is just flowing out in space to me.



8 space tabs just blows my mind.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 02:11 PM
Quote:
Originally Posted by Mihkel05
She uses spaces not tabs.
Right.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 10:37 PM
Quote:
Originally Posted by suzzer99
Other fun things:

My Dad said Ctrl-A didn't do anything. I just immediately knew that he was hitting Ctrl then A, not both at the same time. I am getting good at this. A few months ago I walked him through changing his home page on Chrome. Don't try this at home kids.

I've taught him not to be terrified that Ctrl-A turns everything blue. He only thinks about the print version and he was afraid it would all be blue.

I just taught him how to close windows. He calls it "X them out". Not sure how he was ever closing anything before. I think he just keeps opening things then shuts down his computer when he's done.

Sometimes you forget just how foreign computers are to some people (old usually). The scary thing is my Dad knows infinitely more than Trump - who's never touched a computer in his life.
This is amazing.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 10:38 PM
Quote:
Originally Posted by suzzer99
Just watching the latest episode of Silicon Valley - the lead basically dumps a new girl because she uses tabs over spaces and VIM over EMACS. So well done - they have some serious techies writing for the show.

Also apparently he indents 8 spaces with his tabs - which I just can't even imagine. My new job has 4-space indents and I want to stab myself in the eye. 2 spaces 4 life!
Java folks use 4 spaces. Which makes 0 sense since the language is so verbose to begin with.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-04-2016 , 10:45 PM
Once I went to 2 spaces I want to stab myself with anything else. I'm all about maximizing the amount of code I can see at any time - horizontally and vertically.

The thing is the guys who use 4 spaces also use Eclipse. So their code is in this tiny window that doesn't even extend across the window horizontally. So after a couple of indents you have like 10 spaces left for code in the window - and they're constantly scrolling right to left. It feels like looking at code through a periscope.

I know I know - good coders never have more than one indent ever and their lines of code should never be more than 10 characters long. So what do you do break up your ternary operators? That looks terrible.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 05:42 AM
Quote:
Originally Posted by suzzer99

I know I know - good coders never have more than one indent ever and their lines of code should never be more than 10 characters long
i see my work here is done...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 07:23 AM
2 spaces for me as well. I believe that's from the Google Python CC or something. I picked it up I dunno how long ago and like it. More spaces seem wasteful but the contrarian in me wants to go with 3 spaces since noone seems to use an odd number of spaces. Whatever number of spaces you chose it has to be a prime number so that eliminates a few options.

In other news since I finally have a working pitop (pi3) with wifi I played around with ARM assembly a bit. I've decided the most interesting approach is writing a bunch of C-Code and seeing what GCC spits out (unoptimized).
I've also played around with radare2 which seems pretty amazing, why haven't I heard of it before. It lacks a fancy GUI but the text-based GUI is actually pretty useful.

[if anyone happens to know an good intro resource for ARM assembly that would be cool but the official docs and some random googling for short blog posts was already decent]
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 12:14 PM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 01:07 PM
Is that like that recently pulled chrome add on that puts triple brackets around Jewish-sounding names or whatever?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 01:11 PM
No that's angular if it fails to initialize.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 01:41 PM
ooo kinda surprised cvs uses angular
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 01:44 PM
I guess it could also be Ember, Polymer or Vue (?). http://jeffcarp.github.io/frontend-hyperpolyglot/

Most likely angular though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 04:09 PM
Quote:
Originally Posted by clowntable
...
[if anyone happens to know an good intro resource for ARM assembly that would be cool but the official docs and some random googling for short blog posts was already decent]
Yes the ARM technical reference manuals are good.

This book is decent and you can find a PDF version for free pretty easily:

ARM System Developers Guide

Also surprisingly perhaps, this book his helpful:

Mastering Embedded Linux Programming

This gets into creating a C runtime environment from the reset vector through the to passing control to the boot loader.


Also read up on implementing a mutex for multicore ARM MCUs.

The ARM programming model is straight forward in reality. Lots of different flavors of ARM based MCUs. Mostly ARM assembly language programming skill is useful in implementing code to process the reset vector and setting up a C runtime environment. Compilers have really come a long way FWIW.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 04:28 PM
Quote:
Originally Posted by RogerKwok
ooo kinda surprised cvs uses angular
I'm more surprised anyone has an online CVS account. I could just see the marketing team trying to figure out how to respond to this one. "Is this Photoshop?"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 05:05 PM
Im on a windows machine and I want to start using github and bitbucket (both of them). do I need any special software or what is the "industry standard" for someone to use these kinds of programs on a windows machine? any good tutorials on the topic you guys can recommend?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 05:11 PM
Do you know git? Download git for windows and it has a git bash built into it that works fine and does most normal bash commands minus apt-get. Make it work on right click context menus.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-05-2016 , 05:54 PM
I like SourceTree - mainly for the discard file feature which rolls back any unstaged changes. Also it works on windows or Mac, which helps because we have devs on both.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m