|
The idea that there are simpler and more elegant solution is a good and should be encouraged.
The counter-point is that to find a more elegant and good taste code, it can take up a lot of time, especially when tying to optimize without any real measurements.
I'd rather be phishing!
|
|
|
|
|
What's fascinating for me is, using a language like C#, where you can't really get the "address of" of property and re-assign it to another reference, I can't really figure out how to write this without an "if" statement that reassigns "head" if it's the element to be removed.
Anyone? If that's so, it actually is a good example of how a language can affect "good taste."
Marc
|
|
|
|
|
There are people out there who do not consider any language they do not use (know)...
But to put Linus aside (after all he lacks the tools to explain himself in any human form)...
The idea of good-taste-coding (which isn't originated from Linus) is about eliminating edge cases...
Writing code that hides them (while handle them perfectly), so you actually do not see any conditions...
Of course it automatically means that good-taste is not about IFs or addresses, but about using the language of your choose with high efficiency to produce clean code (and you probably saw the code samples in 'The Weird and The Wonderful' forum).
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Make code as ugly as you want to get it working...
...but do not forget to clean it up later...
...yes, I mean before selling it.
|
|
|
|
|
raddevus wrote: ...but do not forget to clean it up later...
So writing "TODO: Clean this up" in the code isn't sufficient?
|
|
|
|
|
Or just leave it for the next developer to fix...
|
|
|
|
|
Kaladin wrote: Or just leave it for the next developer to fix...
Doh! You're not allowed to say that out loud!
|
|
|
|
|
The report from cloud specialist BetterCloud shows that non-executive IT staff, when compared to IT executives, are 29 percent more likely to say their team lacks complete control over their SaaS applications and 56 percent more likely to feel like their IT team lacks complete visibility into them. I know this is shocking news. Sorry if I shattered any illusions.
|
|
|
|
|
Originally titled "Skype Teams", it appears the service, which is yet to be unveiled officially, will launch under the name "Microsoft Teams" instead, a much better name in our opinion. Because actually talking with people at work is for suckers?
Yes, that comment shows I'm old. Now get off my lawn! Dang punks with your pull requests n' iMessage stickers.
|
|
|
|
|
Talking?
With people??
What do you mean???
... such stuff as dreams are made on
|
|
|
|
|
Wait wait.! So, whats going to happen for Yammer? Yammer is the Microsoft's product for Slack, I thought.
|
|
|
|
|
So it turns out that images of Apple's new MacBook Pro, set to be unveiled on Thursday, are actually hiding inside the latest macOS Sierra update Because there is no escape from Apple?
I guess they don't have any vim users at Apple?
|
|
|
|
|
Y'all use escape on a mac?
|
|
|
|
|
Not for much longer, it seems. Jony Ive won't be satisfied until all surfaces are featureless glass sheets.
TTFN - Kent
|
|
|
|
|
So in a few years we can expect a new version of windows or a major overhaul of windows 10 that will try to go even further at reducing the keyboard size. Microsoft can't be outdone. Capslock will be permanently on and space and enter will both be removed.
|
|
|
|
|
I thought the post was about Apple
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Yeah but Microsoft is always hungry to try to cash in on most things. They are probably in a meeting discussing how popular this is going to be and how they can bring it to their platforms.
|
|
|
|
|
In fairness, there's lot's of keys that are worthless, like capslock and "the Windows key". They only serve to waste your time when you hit them by accident.
|
|
|
|
|
In which world exactly? I use them all, including "Ins". Th only one I use very seldomly is Scroll Lock but only because software are dumb and does not support it.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Seriously? I just wonder under what situations you continously need to type everything all in captials, because that happens to me like once every 5 years.
|
|
|
|
|
Are you a developer or not? Constant and macro names are usually in all capital; in my code even structures and enums. Using meaningful names means having streaks of 10-20 characters to write in capitals, much better having a caps lock.
Also in assembler code (I write it) all capitals are used in different shapes - those who write everything in caps, those who write only registers or memory areas, those who write only the opcodes...
And, without programming, videogames. Usually the "Toggle always run" is on caps lock, as a logical consequence of having the run/walk on Shift.
Ins I use a lot while correcting typos in code, whileo n videogames I use it for special actions like grenade launching or target homing; Esc is probably one of my most pressed keys as I use the keyboard as much as possible for input, so the "Cancel" button for me does not exist I escape from windows I don't click buttons. On videogames usually Esc goes straight to the system menu. And on serious browsers it stops the loading of the page.
Each key is useful both in working and in gaming... probably only those who use the pc only for facebook can't see why and those people are switching to tablets anyway.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
constants don't have to be all capitals, neither does assembler... and for me they aren't. What can I say the few times I ever need captials I just hold down the shift key
|
|
|
|
|
C preprocessor macros and constants are usually all caps in my work environment.
Ciao,
luker
|
|
|
|
|
You know that the only useful Micorsoft keyboard has only three keys: Ctrl, Alt and Del.
EDIT: photographic proof[^]
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
feh.
Microsoft beat them to it.
There's already no escape key on their OSK.
... Nor Alt.
... Nor PgUp
... Nor PgDn
... Nor up arrow
... Nor down arrow
... Nor F keys
... Nor Home key
... Nor End key
... Nor Delete key
... Nor -- Really hard to believe, this one -- A Windows Key!
But it does give you 900 (900! no kidding!) emojis, so if your communication skills are at the level of a 5-year-old, you're set.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|