Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Kenneth Kasajian

@Kenneth Kasajian
About
Posts
103
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • what is your most favorite feature you like for Visual Studio 2013 Ultimate?
    K Kenneth Kasajian

    The fact that I can install ReSharper on top of it.

    ken@kasajian.com / www.kasajian.com

    The Lounge question csharp visual-studio performance

  • I had to use an Apple machine in earnest for the first time in years
    K Kenneth Kasajian

    And while they're at it, let's see if someone can come up with some consistent mapping of the Home/End/PgUp/PgDn keys between Parallels, VMWare and Remote Desktop. It's a mess, especially when inconsistencies exist within the OSX ecosystem itself.

    ken@kasajian.com / www.kasajian.com

    The Lounge linux collaboration question code-review

  • I had to use an Apple machine in earnest for the first time in years
    K Kenneth Kasajian

    I agree that OSX should have these things and make this easier, but you should also be aware of the following: It was the Mac that first had the Cmd+X, Cmd+C and Cmd+V for cut/copy/paste, before anyone else. They're the ones that came up with those keystrokes. When Windows copied the Mac, they duplicated those, but the IBM keyboard didn't have a Cmd key, nor did it have a Windows key at the time, so Microsoft chose to standardize on the Ctrl key. The Ctrl key on the Mac was hardly used. Ctrl is key that's holdover from terminal days. When the Mac and PC, hardware and software started to become more integrated, using common keyboards and mice, VNC, RDP sessions, etc., someone chose to map the now-common win key to Mac's Cmd key. Every other key was already mapped. Only Windows keyboards had the Win key, and only Mac keyboards had the Cmd key, so it made sense to map the two. At the same time they mapped the PC's Alt key to the Mac's Option key. In my opinion, this was a mistake because of the placement of the keys on the keyboard. It's bad enough that you have to remember to use Win+C to copy on a Mac using a Windows keyboard, now you have to use the Cmd key when using a Mac keyboard with a PC when you want to hit the Win key. The Alt/Win key are swapped, which makes it difficult to use Windows on a Mac if you use both a Windows keyboard and a Mac keyboard. Someone should fix all this. I say Apple buy Microsoft.

    ken@kasajian.com / www.kasajian.com

    The Lounge linux collaboration question code-review

  • C is a better language than any language you care to name.
    K Kenneth Kasajian

    Okay, although it's true that one can implement Pascal differently, you're right that it's limited to 64K (or 32K) in length for strings. But I really don't think that's a good example of Pascal's inferiority over C. There's advantages to counted-strings, and I've worked in environments where actually simulated Pascal strings in C for efficiency (i.e. you can easily get to the length). COM BSTRs use a similar structure, but store 32-bit lengths. And the reason I don't think it's a limitation is because if you needed a string that long, C's null-terminated string is hardly preferable. You likely need a different data-structure (rope, array of strings) to do whatever you're doing anyway. Or, more likely, it's that big, it's probably a memory buffer that you'd manage using address and count. As a reminder, my initial post was not stating Pascal is better than C. It was to point out that many of today's languages are written in C.

    ken@kasajian.com / www.kasajian.com

    The Lounge csharp html

  • C is a better language than any language you care to name.
    K Kenneth Kasajian

    No, you have completely missed the point of my message. Go back and re-read it. What I am saying is that, a lot of people bash C but those same people don't realize that whatever language they prefer is probably written in C. So I challenged the readers to name a language that was not written in C.. because it's hard to do. Most new languages, VB, JavaScript, Python, Ruby all written in C. However, there are languages not originally written in C, although they are old. Pascal is one, which is the one I mentioned to get the ball rolling. You're being unnecessarily antagonistic without understanding, or taking the time to read, what I'm saying. I suggest you drop it.

    ken@kasajian.com / www.kasajian.com

    The Lounge csharp html

  • C is a better language than any language you care to name.
    K Kenneth Kasajian

    Also to answer the more specific question, I don't think the language has anything to do with 64K limits, for strings, or otherwise. Those are all implementation details of specific compilers.

    ken@kasajian.com / www.kasajian.com

    The Lounge csharp html

  • C is a better language than any language you care to name.
    K Kenneth Kasajian

    I think I may not have been clear in my point because I don't understand what you're asking me. I'm not saying Pascal is better than C or the other way around. I'm saying Pascal is a language that was not originally written in C. It was written in Fortran, after which it was bootstrapped to be written in itself.

    ken@kasajian.com / www.kasajian.com

    The Lounge csharp html

  • Why Python?
    K Kenneth Kasajian

    I think you're overthinking this. What he needs to do first is to learn how to be a good programmer -- the language doesn't matter. If he's an awesome Python programmer, how long will it really take him to pick up C#? Good programmers can learn new languages fairly quickly, especially if they are to use on the job with others who know the language. Also, it not be a bad idea for you to learn Python. For your next personal project, try using Python -- real Python, not Iron Python, and see what you think. In the end, it will make you a better C# programmer. Give yourself one afternoon and watch these two videos: http://youtu.be/tKTZoB2Vjuk[^] and code along with it. You'll know enough to write Python code after that.

    ken@kasajian.com / www.kasajian.com

    The Lounge question learning csharp python php

  • C is a better language than any language you care to name.
    K Kenneth Kasajian

    Let's start with this. Name any other language other than C. But there's a catch: the language's primary implementation must not currently be in C. So Java, JavaScript, Python don't qualify since they're canonical implementation is written in C. Also, self-hosting doesn't count; in that case, it must not have been bootstrapped with C. I'll start -- Pascal -- first version of Pascal was written in Fortran. Next...

    ken@kasajian.com / www.kasajian.com

    The Lounge csharp html

  • What does it mean to be a member of Mensa?
    K Kenneth Kasajian

    I know way too many highly intelligent people who are under-achievers, and quite a few people with relatively average intelligence who've accomplished a lot. It's more about curiosity and desire. Einstein has been quoted as saying, "It's not that I'm so smart, it's just that I stay with problems longer."

    ken@kasajian.com / www.kasajian.com

    The Lounge question

  • Windows 8: Pushing hated UI elements
    K Kenneth Kasajian

    The thing I like about the Ribbon are they way it leads you through learning keyboard short-cut keys when you press Alt. What I don't like is the room it takes and how it repositions buttons when there's less room.

    ken@kasajian.com / www.kasajian.com

    The Lounge com design question

  • Is this a coding horror?
    K Kenneth Kasajian

    So why do you think some people think it's okay? I've heard programmers tell me that swapping the value of x and y without using a temporary intermediate is somehow better, coding ending up looking something like this: *x^=*y^=*x^=*y eeek

    ken@kasajian.com / www.kasajian.com

    The Weird and The Wonderful tutorial question learning

  • Is this a coding horror?
    K Kenneth Kasajian

    First, the advantage of terse code is that you can more of the code on the screen at a time. If that advantage outweighs others, such as possibly the next guy getting confused, maybe it's worth it. Maybe you're writing code on a 40 column x 20 row terminal like an Atari 800. This likely may not be the case. The next issue is optimization. Does this code optimize better than the equivalent:

    if ((user.Roles & userRole) != 0)
        inRoles.Add(roleName);
    else
        outRoles.Add(roleName);
    

    I bet the rewritten version isn't any less optimized. Third, which one is easier to single-step through? Some debuggers only let you step through lines, not statements. And finally, if you're doing this so that people will go, "wow, you can do that? that works? wow", then you're likely to be breaking the Principle of least astonishment.

    ken@kasajian.com / www.kasajian.com

    The Weird and The Wonderful tutorial question learning

  • How do I generate a number divisable by 5, and check it?
    K Kenneth Kasajian

    Interesting. So you're responding to say that you're not going to respond. Just don't bother dude. LOL

    ken@kasajian.com / www.kasajian.com

    C# question lounge

  • How do I generate a number divisable by 5, and check it?
    K Kenneth Kasajian

    Let me be clear. I don't have any problem with people asking very basic programming questions. In fact, I encourage it. I don't expect people to know everything about programming. I was commenting on this discussions of what numbers are divisible by 5, as in: "However, I was under the impression I could generate numbers that would be divisible by 5, but not end in 5? Is this wrong?" You're kidding me right? You don't know that the numbers 10 and 20 are divisible by 5? Clearly they don't end in 5. My comment was no to the programming question.

    ken@kasajian.com / www.kasajian.com

    C# question lounge

  • How do I generate a number divisable by 5, and check it?
    K Kenneth Kasajian

    Is this discussion really taking place? What is this, 3rd grade?

    ken@kasajian.com / www.kasajian.com

    C# question lounge

  • Visual Studio 64 bit
    K Kenneth Kasajian

    They're using the 32-bit Visual Studio compile and debug 64-bit code.

    ken@kasajian.com / www.kasajian.com

    The Lounge visual-studio csharp com tools performance

  • 30 years of PC
    K Kenneth Kasajian

    I'm just saying, MS-DOS is not what was used on the IBM PC. PC-DOS was used. MS-DOS was used on the clones. It wasn't until years later that people started using MS-DOS on IBM PCs as well.. But most of the time, IBM PCs/XTs/ATs ran PC-DOS, which came with BASICA, not MS-DOS, which came with GWBASIC. You couldn't run BASICA on a clone because it required the ROM that was on the PC that wasn't available on clones.

    ken@kasajian.com / www.kasajian.com

    The Lounge

  • 30 years of PC
    K Kenneth Kasajian

    If you were using IBM PCs, then you were using PC-DOS, which came with BASICA not GWBASIC.

    ken@kasajian.com / www.kasajian.com

    The Lounge

  • Netscape Navigator?
    K Kenneth Kasajian

    64-bit Windows won't run the original Windows programs before NT and Windows 95. That's why they give you a free version of XP Mode.

    ken@kasajian.com / www.kasajian.com

    The Lounge c++ architecture question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups