Everyone hates something about some language.
Let's hear it.
Mar 12 '07
52 4077 sicarie 4,677
Recognized Expert Moderator Specialist
Everyone hates something about some language.
Let's hear it.
Java:
System.out.prin tln(" ");
GregorianCalend ar Objects, Dates are now just an interface.
Java:
System.out.prin tln(" ");
GregorianCalend ar Objects, Dates are now just an interface.
whats wrong with system.out? Useful wee debugging tool that
sicarie 4,677
Recognized Expert Moderator Specialist
whats wrong with system.out? Useful wee debugging tool that
C++:
cout << "";
Java is slightly more verbose than necessary... (Though it definitely is useful in debugging)
C++:
cout << "";
Java is slightly more verbose than necessary... (Though it definitely is useful in debugging)
I agree. The static import makes it possible to just say
out.println();
but I would have prefered something as short as printf
I agree. The static import makes it possible to just say
out.println();
but I would have prefered something as short as printf
Is printf like PASCAL... what was it's println command?
Is printf like PASCAL... what was it's println command?
printf is C to go to next line you just add \n at the end of your string
Ganon11 3,652
Recognized Expert Specialist
I believe you can still use printf and scanf in C++ by including the <cstdio> header file...or was it <cstdlib>? Either way, out of curiosity I'd like to look at the syntax of these sometime.
I believe you can still use printf and scanf in C++ by including the <cstdio> header file...or was it <cstdlib>? Either way, out of curiosity I'd like to look at the syntax of these sometime.
- #include <cstdio>
-
int main() {
-
printf("works");
-
return 0;
-
}
-
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader( new InputStreamRead er(System.in));
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader( new InputStreamRead er(System.in));
Can now use Scanner for user input. Cleaner but still just as cumbersome.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: JKop |
last post by:
Okay here we go, I feel it's about time people conversed about the bullshit
aspects of C++ (including the bullshit stuff brought forward from C). I'll
begin with a few of my own grievances:
1) The whole "function declaration Vs object definition" fiasco, which
results in the following (temporary creating) syntax:
Blah poo = Blah();
|
by: J. Smith |
last post by:
I know about RAII and BS's response to previous requests, but I'd really
love to see 'finally' available in C++ exception handling. Yes, we can
live without 'finally' but it means a bit more typing (more classes) for
simple scenarios (like calling LeaveCriticalSection() before a function
returns). It would also make porting other languages to C++ a bit more
simple.
Another thing I'd like to see is a 'reentrant' keyword that can be...
|
by: Fabian |
last post by:
Well, what can I say...I really hate Javascript.
I am not programming as profession but I sometimes work with PHP with
MySQL, ASP with Ms Access/SQL Server. I have done something in VB and
when I was jounger I worked with C.
But what happens with Javascript, it happens with no other language.
I work with WinXP SP2 & IIS5, now. But also with Win2k and win98, as
fas as I remember, it was the same. I always keep my PC updated with
|
by: Jeffrey P via AccessMonster.com |
last post by:
Our IT guys are on a vendetta against MS Access (and Lotus Notes but they've
won that fight). What I can't understand is, what's the problem? Why does
IT hate MS Access so much.
I have tried to find out who it is that actually wants to get rid of it, but
I can't find anyone who will admit to trying to get rid of it. Nevertheless,
I'm always hearing about how their "phasing it out" or "getting rid of it".
Because no-one owns up I can't...
|
by: tshad |
last post by:
Can you do a search for more that one string in another string?
Something like:
someString.IndexOf("something1","something2","something3",0)
or would you have to do something like:
if ((someString.IndexOf("something1",0) >= 0) ||
((someString.IndexOf("something2",0) >= 0) ||
| |
by: Xah Lee |
last post by:
Criticism versus Constructive Criticism
Xah Lee, 2003-01
A lot intelligent people are rather confused about criticism,
especially in our “free-speech” free-for-all internet age. When
they say “constructive criticisms are welcome” they mostly mean
“bitching and complaints not welcome”. Rarely do people actually
mean that “criticism without suggestion of possible solutions are not
welcome” or “impolite criticism not...
|
by: PJ6 |
last post by:
I want to rant, but I'm too busy at the moment.
Who else hates working in C#? What's your biggest pet peeve?
Paul
|
by: Jon Davis |
last post by:
Bill Wagner posted something here ..
http://msdn2.microsoft.com/en-us/vcsharp/default.aspx
"Local Type Inference, Anonymous Types, and var"
"Of all the features in C# 3.0, local type inference is generating the most
questions and misunderstanding. You know, 'var'. The fact is local type
inference is not as scary as it seems. In fact, you're not losing strong
typing. It's a simple time saver that is actually necessary to support...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |