473,503 Members | 338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Things I hate about a language

13,262 MVP
Everyone hates something about some language.
Let's hear it.
Mar 12 '07 #1
52 4040
Banfa
9,065 Recognized Expert Moderator Expert
English is does so full of pointless exceptions, it really ticks me off sometimes.
Mar 12 '07 #2
r035198x
13,262 MVP
PHP : I hate the $ and the loose typing
Java : Strong typing can be a pain too
C++ : Destructors, pointers

Still thinking of others
Mar 12 '07 #3
Banfa
9,065 Recognized Expert Moderator Expert
What I hate about C++ is the way it automagically writes code for you in the back ground when you use templates. It does always seem to get it right but it's not always obvious what needs correcting and I just can bring myself to completely trust that it has managed to do the right thing.
Mar 12 '07 #4
markmcgookin
648 Recognized Expert Contributor
VB.Net Compact framework doesn't support the simplest of functions that are really useful! i.e. Autoscroll on forms
Mar 12 '07 #5
Ganon11
3,652 Recognized Expert Specialist
C++: Having to actually use pointers. Ahh, for the days of Java...
Java: Pre-Java5, input was difficult. Now we have all these Scanners and whatnot.
VB: Felt like I couldn't do anything very 'fancy'.
HTML: Boring - all it was for me was formatting.
BASIC: SO tired of top-down programming.
Mar 12 '07 #6
stroken
24 New Member
C++: Having to actually use pointers. Ahh, for the days of Java...
Java: Pre-Java5, input was difficult. Now we have all these Scanners and whatnot.
VB: Felt like I couldn't do anything very 'fancy'.
HTML: Boring - all it was for me was formatting.
BASIC: SO tired of top-down programming.
Actually, in Java you only uses pointers.
Mar 12 '07 #7
Ganon11
3,652 Recognized Expert Specialist
I know, but Java does the work of dereferencing and whatnot for you, so it's like you don't have to touch the pointers at all.
Mar 12 '07 #8
markmcgookin
648 Recognized Expert Contributor
VB: Felt like I couldn't do anything very 'fancy'.
Whatever....

Expand|Select|Wrap|Line Numbers
  1.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         MsgBox("Hello World")
  3.     End Sub
  4.  
*Waits for applause from astounded crowd*
Mar 12 '07 #9
Ganon11
3,652 Recognized Expert Specialist
You get no applause!

:P
Mar 12 '07 #10
sicarie
4,677 Recognized Expert Moderator Specialist
Everyone hates something about some language.
Let's hear it.
Java:
System.out.println(" ");
GregorianCalendar Objects, Dates are now just an interface.
Mar 12 '07 #11
markmcgookin
648 Recognized Expert Contributor
Java:
System.out.println(" ");
GregorianCalendar Objects, Dates are now just an interface.
whats wrong with system.out? Useful wee debugging tool that
Mar 12 '07 #12
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)
Mar 12 '07 #13
r035198x
13,262 MVP
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
Mar 12 '07 #14
markmcgookin
648 Recognized Expert Contributor
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?
Mar 12 '07 #15
r035198x
13,262 MVP
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
Mar 12 '07 #16
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.
Mar 12 '07 #17
r035198x
13,262 MVP
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.
Expand|Select|Wrap|Line Numbers
  1.  #include <cstdio> 
  2. int main() {
  3.  printf("works");
  4.  return 0;
  5. }
  6.  
Mar 13 '07 #18
blackjack2150
79 New Member
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader(new InputStreamReader(System.in));
Mar 13 '07 #19
r035198x
13,262 MVP
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader(new InputStreamReader(System.in));
Can now use Scanner for user input. Cleaner but still just as cumbersome.
Mar 13 '07 #20
Banfa
9,065 Recognized Expert Moderator Expert
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.
That would be <cstdio> and I wouldn't bother with scanf, it is a poor function with serious security issues and should be avoid at all costs. I would recommend fgets followed by parsing the received string yourself, there are some useful helper functions for this like strtol etc.

printf is easy it is just a format string with place holders ("%d" for int, "%s" for string) in it to output variable values, the variables follow the string in the parameter list. The place holders can be qualified for field size, precision, variable size and presentation and need to be looked up.
Mar 13 '07 #21
blackjack2150
79 New Member
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader(new InputStreamReader(System.in));
I forgot to mention that you must add "throws IOException" to the header of the methods which deal with user input.
Mar 13 '07 #22
r035198x
13,262 MVP
I forgot to mention that you must add "throws IOException" to the header of the methods which deal with user input.
That's what the Scanner now eliminates.
Mar 13 '07 #23
gowda gopala
5 New Member
C: pointerns
C++:linked list
Mar 13 '07 #24
markmcgookin
648 Recognized Expert Contributor
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader(new InputStreamReader(System.in));
what do you mean? like instead of txtBox1.text you need to do temp = getText(txtBox1) etc?

And yeah, buffered readers and action listeners etc are a pain, vive la VB Event driven programming!
Mar 13 '07 #25
Atli
5,058 Recognized Expert Expert
C++:
Pointers are annoying but yet they give you so much control.
I for one would be very sad if we lost them.

C# :
There is no way to know the current index in a foreach loop.

PHP:
$.. its everywhere!
Mar 14 '07 #26
AricC
1,892 Recognized Expert Top Contributor
Whatever....

Expand|Select|Wrap|Line Numbers
  1.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         MsgBox("Hello World")
  3.     End Sub
  4.  
*Waits for applause from astounded crowd*
Wooohoooo Mark I love the Val function
Mar 14 '07 #27
nemisis
64 New Member
and i dont like the language of love(the way girls think, no offense)



If there is something more difficult to understand, than one woman, its two women at the same time!!!!
May 31 '07 #28
LacrosseB0ss
113 New Member
VB: Error messages suck. Example: "Error in Row". Thanks for the debug help there! Oh, and If ... THEN. Coming back to VB after working in Java and C for a few years is driving me nuts!

C/++/#, Java, etc: semi-colon after every line. The endless nights of debugging code. Reading it and re-reading it to find the 1 compile error only to have a prof discover there was (a) a semi colon missing (b) a semi-colon in the wrong spot or (c) I hit shift and there was a colon somewhere. Gosh!

- LB
May 31 '07 #29
Banfa
9,065 Recognized Expert Moderator Expert
C/++/#, Java, etc: semi-colon after every line. The endless nights of debugging code. Reading it and re-reading it to find the 1 compile error only to have a prof discover there was (a) a semi colon missing (b) a semi-colon in the wrong spot or (c) I hit shift and there was a colon somewhere. Gosh!
You should have to examine the code to find these errors (in C/C++ and Java certainly) the output from the compiler should point you fairly straight at them.
May 31 '07 #30
blackjack2150
79 New Member
VB: Error messages suck. Example: "Error in Row". Thanks for the debug help there! Oh, and If ... THEN. Coming back to VB after working in Java and C for a few years is driving me nuts!

C/++/#, Java, etc: semi-colon after every line. The endless nights of debugging code. Reading it and re-reading it to find the 1 compile error only to have a prof discover there was (a) a semi colon missing (b) a semi-colon in the wrong spot or (c) I hit shift and there was a colon somewhere. Gosh!

- LB
Have you ever written a program in C#? If you forget a semicolon in C#, the compiler says: "; expected" pointing you the location of the error also!
Jun 1 '07 #31
LacrosseB0ss
113 New Member
yes it does. And when I posted this I was referring to all languages with semicolons with those as examples. They all just piss me off. The problem I had when I took C++ in school was that we were given a compiler that ran in Linux but my Linux partition on my school issued laptop wasn't working. So I tried work arounds but free internet stuff sucked and I resorted to coding apps in Notepad and having friends test them.

This is where the problem came from. I will say when you have a compiler to direct you to an error, it's much easier. They say you learn from your mistakes, well I definately did that time!
Jun 1 '07 #32
pbmods
5,821 Recognized Expert Expert
javascript: Internet Explorer

Sorry, that doesn't really count, does it?

PHP: Built-ins aren't object-oriented (yet).
javascript: (kind of along the lines of the first line in my post) having to do things differently in every browser.
Jun 4 '07 #33
TRScheel
638 Recognized Expert Contributor
C++:
Pointers are annoying but yet they give you so much control.
I for one would be very sad if we lost them.

C# :
There is no way to know the current index in a foreach loop.

PHP:
$.. its everywhere!
To your C# point, foreach is also harder on the system to do for some odd reason, and you can't change the item you are on.

My two cents though:

c++:
The amount of code you have to write to get something simple going... and the amount you have to write to get something complicated going as well.

vb .Net:
How annoyed I get when I have to write
Expand|Select|Wrap|Line Numbers
  1. dim test as integer
After getting used to just writing
Expand|Select|Wrap|Line Numbers
  1. int test; 
In c#. I could use a longer example, but I think that shows it just fine. Also, how everything is seperated with indentation instead of something like... brackets.

php / ASP:
How it mixes design and implementation. The code is in the page!

html:
Well this is in compliance, and it looks funny in mozilla. Well now its fixed for mozilla, but in safari and ie this picture is off on the moon. Well lets fix that. Oh now mozilla has the damn text way over there... continue until someone gets shot. Oh, and the multitude of items out there that you shouldn't use anymore... but still exist. Example: <blink></blink>. I think there's a KKK for the blink tag, on that note.
Jun 12 '07 #34
ilikepython
844 Recognized Expert Contributor
C++: taking 5 minutes to compile, save, and run a program just to test something, when in python I just open the interpreter. (nitpick)
Jun 15 '07 #35
drhowarddrfine
7,435 Recognized Expert Expert
html:
Well this is in compliance, and it looks funny in mozilla. Well now its fixed for mozilla, but in safari and ie this picture is off on the moon. Well lets fix that. Oh now mozilla has the damn text way over there... continue until someone gets shot. Oh, and the multitude of items out there that you shouldn't use anymore... but still exist. Example: <blink></blink>. I think there's a KKK for the blink tag, on that note.
Those of us who know html don't have any such problems.
Jun 15 '07 #36
TRScheel
638 Recognized Expert Contributor
Those of us who know html don't have any such problems.
Please describe your first few weeks of working with HTML... it probably sounded exactly like that. While granted, it isnt that bad, there are times when I hit an issue and its a pull your hair out moment until you realize its just some browser taking its own liberties with the language (<cough> ie </cough>).

I sware to God, that language is just a pain. Sadly, its not the language's fault either!
Jun 15 '07 #37
drhowarddrfine
7,435 Recognized Expert Expert
Ah! You do understand! That's why you never use IE for initial testing.
Jun 15 '07 #38
markmcgookin
648 Recognized Expert Contributor
I forgot to mention that you must add "throws IOException" to the header of the methods which deal with user input.

Yeah I'll give you that one, that can be a pain. It's nice when ann app can just let you miss exceptions unless you want them caught individually.
Jun 25 '07 #39
gits
5,390 Recognized Expert Moderator Expert
javascript: Internet Explorer

Sorry, that doesn't really count, does it?

PHP: Built-ins aren't object-oriented (yet).
javascript: (kind of along the lines of the first line in my post) having to do things differently in every browser.
of course this counts ;) but since it is not really a javascript-problem, that browser-things ARE annoying ...
Jun 26 '07 #40
pbmods
5,821 Recognized Expert Expert
Oh, and...

PHP: references !== pointers
Jun 26 '07 #41
drhowarddrfine
7,435 Recognized Expert Expert
of course this counts ;) but since it is not really a javascript-problem, that browser-things ARE annoying ...
I believe it's the difference between Microsoft's JScript and standard javascript. We should all be using DOM methods now anyway which is where a lot of people get into problems with incompatabilities. (That is, by NOT using the DOM).
Jun 27 '07 #42
gits
5,390 Recognized Expert Moderator Expert
I believe it's the difference between Microsoft's JScript and standard javascript. We should all be using DOM methods now anyway which is where a lot of people get into problems with incompatabilities. (That is, by NOT using the DOM).
i fully agree with you ... its a problem that a lot of people are starting to develop with IE and thus simply IE-specific ways to do things, using jscript and don't understand that that is not javascript at all ... so a lot of questions and posts come from that ... its difficult to say that i hate this, but its a way that is due to the widespread IE ... and people learn it when it comes to serious development ...
Jun 27 '07 #43
DeMan
1,806 Top Contributor
languages that use "dim" (eg v.basic) always used to amuse me,.....it served as a reminder that the computer was not so bright without good instruction......
Jun 28 '07 #44
TRScheel
638 Recognized Expert Contributor
languages that use "dim" (eg v.basic) always used to amuse me,.....it served as a reminder that the computer was not so bright without good instruction......
I just got the mental image of a person giggling everytime they type dim into their code.
Jun 28 '07 #45
vinci
62 New Member
i hate languages that i really dont know about...

but am proud of knowing VB, C#, Java,, but just basic
Jun 29 '07 #46
JKing
1,206 Recognized Expert Top Contributor
In c#. I could use a longer example, but I think that shows it just fine. Also, how everything is seperated with indentation instead of something like... brackets.
Not sure what you mean by things not being seperated by brackets. Blocks of code are all grouped by { } in C#
Example:
Expand|Select|Wrap|Line Numbers
  1. if true
  2. {
  3. }
  4. else
  5. {
  6. }
  7.  
Though you can also do the following without errors and I'm assuming this is what you're refering to.
Expand|Select|Wrap|Line Numbers
  1. if true
  2.       //code here using no brackets and just indent
  3.  
I always use the brackets though as I find it's easier to read.
Jul 9 '07 #47
TRScheel
638 Recognized Expert Contributor
Not sure what you mean by things not being seperated by brackets. Blocks of code are all grouped by { } in C#
Example:
Expand|Select|Wrap|Line Numbers
  1. if true
  2. {
  3. }
  4. else
  5. {
  6. }
  7.  
Though you can also do the following without errors and I'm assuming this is what you're refering to.
Expand|Select|Wrap|Line Numbers
  1. if true
  2.       //code here using no brackets and just indent
  3.  
I always use the brackets though as I find it's easier to read.

Sorry, I meant that for VB. NET. I get annoyed with indentation, and prefer the {}

I get ahead of myself typing sometimes... its gonna catch up to me sometime

EDIT:

Going back to my post, I realized what you were originally pointing out.

vb .Net:
How annoyed I get when I have to write

Expand|Select|Wrap|Line Numbers
  1. dim test as integer
  2.  
After getting used to just writing

Expand|Select|Wrap|Line Numbers
  1. int test;
  2.  
In c#. I could use a longer example, but I think that shows it just fine. Also, how everything is seperated with indentation instead of something like... brackets.

That is all together... ramblings about VB .NET.
Jul 9 '07 #48
JKing
1,206 Recognized Expert Top Contributor
Oh, misunderstanding on my part. I totally agree with you about the lack of brackets in VB as well as the declaration of variables. My personal annoyance in VB is declaring for loops. I prefer the method of:
Expand|Select|Wrap|Line Numbers
  1. for(int i = 0; i < 5; i++)
  2.  
compared to:
Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim i As Integer
  3. For i = 0 to 5
  4.  
Another thing is the lack of the ++, +=, --, -= operators

I'm probably just biased though because I learned C# before VB. I still try to put C# code in my VB code once in a while and just laugh when the error appears.
Jul 9 '07 #49
TRScheel
638 Recognized Expert Contributor
Oh, misunderstanding on my part. I totally agree with you about the lack of brackets in VB as well as the declaration of variables. My personal annoyance in VB is declaring for loops. I prefer the method of:
Expand|Select|Wrap|Line Numbers
  1. for(int i = 0; i < 5; i++)
  2.  
compared to:
Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim i As Integer
  3. For i = 0 to 5
  4.  
Another thing is the lack of the ++, +=, --, -= operators

I'm probably just biased though because I learned C# before VB. I still try to put C# code in my VB code once in a while and just laugh when the error appears.

You can do

Expand|Select|Wrap|Line Numbers
  1. For Dim i as Integer = 0 to 10 step 1
  2.  

Edit:

I know what you mean about the C# into VB code... I always end up with a chunk of code having at least one semicolon at the end of a line somewhere.
Jul 9 '07 #50

Sign in to post your reply or Sign up for a free account.

Similar topics

111
6294
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)...
21
1420
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...
19
2090
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...
92
7551
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...
32
14761
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...
62
3829
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...
40
3080
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
15
4794
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...
0
7087
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...
0
7281
Oralloy
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,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
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...
0
5579
agi2029
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,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.