forum

Programmers talks

posted
Total Posts
17
Topic Starter
-Makishima S-
Winform vs WPF (C#)

I hate WPF, pls someone give me a tutorial for this shit which makes pain less.
- Editing XAML is a fuckin joke... poor as fuck.
- Images are somehow blurry, like i didn't had any problems with making WinForm with bitmaps but this one is a joke... too...

My main issue is XAML which have shitty support if you don't have a good book for it. Place a textbox control -> place a button control and your textbox disappear... oh wait, it works other way.

IMO Fuck WPF, i am going back to WinForm... unless someone convince me to try WPF.

Regards,
Salty as fuck soft dev forever in love to WinForm/GTK-sharp3


And fuck Freelancer contracts for WPF apps... why people think it's better, for real, WinForm is so much more stable, really i take contract and guy tells me that he wants this in WPF because "it looks more futuristic and better". Holy...
IppE
bool isprime(int p) {
if (p == 2)
return true;
if (p<2)
return false;
if (p % 2 == 0)
return false;
for (int k = 3; k <= sqrt(p); k += 2) {
if (p%k == 0)
return false;
}
return true
}

Am I a programmer now?
Topic Starter
-Makishima S-
public bool IsPrime(int num)
{
bool Prime = true;

if (num % 2 == 0) return false;

for (int i = 3; i <= Convert.ToInt32(Math.Sqrt(num)); i = i + 2)
{
if (num % i == 0)
{
Prime = false;
break;
}
}

return Prime;

}

Somehow C++ code by IppE looks better for me >.>
IppE C++ coder confirmed

Back to topic - i am still searching someone who will convince me that WPF is better than WinForm and why i hear this from people... years of practice in winform cannot get wasted ;w;
deletemyaccount

[Taiga] wrote:

Winform vs WPF (C#)

I hate WPF, pls someone give me a tutorial for this shit which makes pain less.
- Editing XAML is a fuckin joke... poor as fuck.
- Images are somehow blurry, like i didn't had any problems with making WinForm with bitmaps but this one is a joke... too...

My main issue is XAML which have shitty support if you don't have a good book for it. Place a textbox control -> place a button control and your textbox disappear... oh wait, it works other way.

IMO Fuck WPF, i am going back to WinForm... unless someone convince me to try WPF.

Regards,
Salty as fuck soft dev forever in love to WinForm/GTK-sharp3


And fuck Freelancer contracts for WPF apps... why people think it's better, for real, WinForm is so much more stable, really i take contract and guy tells me that he wants this in WPF because "it looks more futuristic and better". Holy...
Which distro do you use?
Topic Starter
-Makishima S-
Which distro do you use?
Windows / VS Community 2015 IDE / C#
Kert
string IsThereAnyWayToImproveAtOsu(int for_user_id)
{
if(for_user_id != 124493)
return "playmore";
else
return "die";
}
Ephemeral
no ternary operator? for shame
SYAHME
Just noob programmer.
Topic Starter
-Makishima S-

Ephemeral wrote:

no ternary operator? for shame
string IsThereAnyWayToImproveAtOsu(int for_user_id)
{
string snx = (for_user_id != 124493) ? "play more" : "die";
return snx;
}

I don't use it too often so i am not sure if properly coded. Didn't looked for wiki, i promise.
Kert

Ephemeral wrote:

no ternary operator? for shame
Ternary is bad if you want to expand the code later
yeah right it's very needed here
Topic Starter
-Makishima S-
Kert is right.
Ternary is good for simple checking, like

string xyz = (foo == isFoo()) ? "Success" : "Error";

I hate reading code with ternary spam and tons of code inside it, it's a pain in the ass to fix / expand code there.
Old practice of spamming if - else works for me and let me make code more readable.

On Software engineering classes in university i remember that my teacher never forced anyone to using ternary, maybe that's why i often don't even realize it can be used.
Flanster
WPF sux and those who recommended it to me for better looks can eat a brick.
WinForms can do whatever the fuck you want aslong as you know how to

An example is my NotRainmeter program.
AshbeII
if(miss) {

this.invalidate();
MessageBox.Show("play more");
}

OT: idk i can only winform
Shohei Ohtani
public static void main(String[] args) {
System.out.println("I hate living I want to \ndie."
}
abraker
WARNING: Running this will simulate several years of your life in less than a second. It's best you don't know your future!

#define is ==
#define and &&
#define not !
#define quit false
#define osu is true
#define SS not quit
#define you SS and not quit osu
#define miss is true
#define retry not quit osu;
#define complain true
#define ask true is
#define get is you and complain
#define gud is SS;
#define pp is SS;
#define shitpost return(false);


int main()
{
while (not quit osu)
{
while (not SS)
{
if (you miss) retry
else if (not 300) retry
else retry

complain and ask 2 get gud
}

you get pp
shitpost
}

}
bigfeh

abraker wrote:

WARNING: Running this will simulate several years of your life in less than a second. It's best you don't know your future!

#define is ==
#define and &&
#define not !
#define quit false
#define osu is true
#define SS not quit
#define you SS and not quit osu
#define miss is true
#define retry not quit osu;
#define complain true
#define ask true is
#define get is you and complain
#define gud is SS;
#define pp is SS;
#define shitpost return(false);


int main()
{
while (not quit osu)
{
while (not SS)
{
if (you miss) retry
else if (not 300) retry
else retry

complain and ask 2 get gud
}

you get pp
shitpost
}

}
I've never seen a snippet of code that has more preprocessor statements than actual code

gore is a compliment, I'm out of words
Vuelo Eluko
holy shit its BigFeh
Please sign in to reply.

New reply