|
Now is time to write all for web-based applications? Write web applications is slower than winforms-based applications?
When to write web based and when to write desktop based?
Started by FerranB on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I tend to write....
On a more solution to all scenarios.
You should write all your applications with the logic in a separate layer so that you can easily write a web interface or a winforms interface depending on changing business decisions.
|
|
If I am counting on my write() system call to write say e.g., 100 bytes, I always put that write() call in a loop that checks to see if the length that gets returned is what I expected to send and, if not, it bumps the buffer pointer and decreases the...
Started by Chris Markle on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Possible reasons I could think of for a partial write is if you run out of disk space, you're writing past the end of a block likely, the write will....
Writes shouldn't have any reason to ever write a partial buffer afaik.
|
|
I need to write data into drive. I have two options:
write raw sectors.(_write(handle, pBuffer, size);) write into a file (fwrite(pBuffer, size, count, pFile);) Which way is faster? I expected the raw sector writing function, _write, to be more efficient...
Started by Macroideal on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To put it another way, in your first loop, you of the buffer, will only be flushed every... .
When you call fwrite , you are doing buffered system calls, as you only write to disk in larger chunks.
Probably because a direct write isn't buffered.
|
Ask your Facebook Friends
|
When using XCode for writing for the iphone SDK... like a simple function that accepts a text-string URL and visits the website, and returns the HTML... which is better?
Use Objective-C and write a "method" that accepts an NSString and returns an NSString...
Started by Donna on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If I recall correctly, even if you write all your code in C, you have away with using [NSString stringWithContentsOfURL....
Unless performance is a serious concern and need to make a change .
Typically you would write new iPhone code in Objective-C.
|
|
I have a requirement to write HTML to the file system and I was wondering if there is any speed boost in converting it to bytes and writing it using a FileStream rather than using the File.WriteAllText() (or a similar text method).
Started by Rob on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
File.WriteAllText uses.
Then in the future if you have this will be your disk write speed)
Don't optimise prematurely .
Write the code that is most readable and maintainable first.
|
|
I'm almost finished with writing assignment #2 for the radio position I'm interviewing for. One more to go after this!
Started by April_27 on
, 11 posts
by 10 people.
Answer Snippets (Read the full thread at theparentingpod):
Then I was trying to write things.
I had never heard the program before, so I had to do a little homework first .
I had to write banter for two hosts.
Them in!
The first assignment was by far the hardest.
|
|
Hello;
I am working on writing a network application in C++ on the Linux platform using the typical sockets API, and I am looking at 2 alternative ways of writing a byte array to a TCP stream: either by calling write(), or by calling send(). I know that...
Started by rmrobins on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
With zero flags parameter, send() is equivalent....
Quoting from man 2 send :
The only difference between send() and write() is the presence of flags.
There should be no difference.
To specify the flags, read and write are perfectly adequate.
|
|
There are so many possible errors in POSIX environement. Why some of them (write to unconnected socket in particular) get special treatment in form of signals?
Started by Łukasz Lew on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Consider the program less that, syscalls like write....
I guess the reason for having separate error-handling to write to a file that doesn't exist should always be treated as an error).
To write to a pipe (anonymous or named) as well.
|
|
I am trying to write data to serialport and then wait for the acknowledgement. After ack is received, I write the next set of data. Please suggest a way of doing this. I tried the below code but before receiving the ack, the writing fires and completes...
Started by subho100 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Like
while (Flag == false) ; //wait for flag to become true after previous write ...write...
|
|
Pre-dating the internet myself, I'm wondering how much of a reliance is placed on the Internet as a resource to find algorithms, code examples, ask questions, etc...
If the internet was not available, would you have the skills, knowledge and ability to...
Answer Snippets (Read the full thread at stackoverflow):
While the immediacy of the Internet is always useful, I still refer... .
But I guess it depends on the platform you're writing on too.
That's how I got interested in programming in the first place .
I still have my local library and IT bookstore.
|