"Code smells" are common patterns that can indicate that there is a problem in the code. A problem doesn't mean that the code doesn't work, it might be that it will be difficult to maintain it or that there are more elegant ways to implement the same thing. Remember that not everything is clear...
www.b4x.com
B4X:
'bad
Private Sub Button1_Click
xui.MsgboxAsync("สวัสดี B4X ชาวไทยทุกคน", "B4X")
End Sub
Private Sub Button2_Click
xui.MsgboxAsync("สวัสดี B4X ชาวไทยทุกคน", "B4X")
End Sub
'good
Private Sub ButtonX_Click
Dim btn As Button=Sender
If btn.Tag="Button1" Then
'Do something specific for Button1
Else If btn.Tag="Button2" Then
'Do something specific for Button2
End If
End Sub