[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/Sublime/

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 54
Thread images: 12

File: ss_001.png (53KB, 653x511px) Image search: [Google]
ss_001.png
53KB, 653x511px
Is there better text editor for web dev?

I tried
>vim
>atom
>vs code
and they all succ тbh
>>
you fucking newfag, learn to make /g/ood threads.
instead of
>Is there better text editor for web dev?
write this
>Is every text editor other than sublime text a meme?
and instead of
>they all succ
write this
>they are all memes

you ll thank me later kid
>>
>>59919141
thanks for the tips
>>
yes, webstorm
>>
>>59919141
you fucking sheep, learn to free yourself from social norms and shut the fuck up instead of ranting against everyone who doesn't obey this trash website's stupid implicit rules
>>
>>59919141
kek
>>59919075
I recently switched to Sublime, damn it opens even faster than notepad++, so I'm using it for an all-purpose editor. I think it's the best so I'd say just stick with it.
- Atom is slow as fuck
- vim is a fucking meme
- VSCode < Sublime
>>59919361
> expensive placebo-tier shit
>>
If you thought vim sucked, you didn't use it right. I do full stack development in vim. If you have to touch your mouse while coding, you've done something terribly wrong.
>>
>>59919428
I don't *have* to but it's really convenient if you have to jump to some random part of the code. No vim binding will ever let you jump directly to the one character you're looking at.
>>
proprietary software.
Kill yourself.
>>
>>59919075
>no integrated debugger
>no terminal only version for sudo access or ssh sessions
>no turing complete language for extending, scripting and configuring
>proprietary as fuck

If you have to use a text editor use GVim/Vim.
GVim/Vim has plugins for autocomplete using clang, java reflection python jedi and others that are more than enough for small to medium-large projects.
>>
File: 1485062306902.jpg (53KB, 998x894px) Image search: [Google]
1485062306902.jpg
53KB, 998x894px
>>59919421
This
>>59919463
Literally search license codes for sublime text and it's one of the first results.
>>59919468
Just KILL yourself
>>
>>59919075
>MySQLConnect.class.php
>GenerateThumbnailForVideo.class.php

Please tell me you got this screenshot from /r/karliekloss
>>
>>59919484
>License: Proprietary software, Nagware
>>
File: ss_002.png (78KB, 729x656px) Image search: [Google]
ss_002.png
78KB, 729x656px
>>59919499
rate my code my friend
>>
>>59919421
>expensive placebo-tier shit

>hi boss can I please have $100 so I can actually do my job?

Was that so hard?

You've either never worked on anything in production or are too stubborn to actually learn how to use some proper dev tools. What's it like ctrl-f'ing your entire project and reading line by line just to find where your files are being imported, or don't you modularize your code?
>>
>>59919462
>/{Partial text pattern}
>:{Line num} then ft{char}
TFW vim has code markers you can go between, any number of paste buffers, ability to jump between recent changes, ability to jump between recently changed files, seamless window splitting with two keystrokes, etc etc etc etc
>>
>>59919547
looks like shit
>>
I there any way to make sublime autocomplite methods/classes when they are called?
It is not autocompliting when i call them outside class file
>>
>>59919576
what would you change
>>
>>59919547
php out of Pajeet.
>>
File: ss_001.png (829KB, 1366x767px) Image search: [Google]
ss_001.png
829KB, 1366x767px
>>59919629
Apologize
>>
>>59919484
This guy >>59919468 raised valid and real concerns
>"Lol kill yourself faglord"
Web developers are truly nigger-tier
>>
>>59919708
>Web developers
>"I have but a child's understanding of how computers work, but look at this pretty box I drew on the screen!"
>>
File: screenshot[1].png (229KB, 928x779px) Image search: [Google]
screenshot[1].png
229KB, 928x779px
>>59919075
>Lime text
>http://limetext.org/
>Use one of three available frontends
>write your own frontend
>BSD 2-clause simplified
Why agree on "sub"lime when you can use superior software?
>>
>>59919727
Few months ago i wanted to test it but i couldn't install it on arch
>>
>>59919547
>php
kys
>>
>>59919727
limetext is dead, not even a finished product and hasn't had any updates in months..
>>
>>59920467
look >>59920382
>>
File: deer1-01.jpg (214KB, 562x385px) Image search: [Google]
deer1-01.jpg
214KB, 562x385px
>>59919462
> No vim binding will ever let you jump directly to the one character you're looking at.
https://github.com/easymotion/vim-easymotion
>>
>>59919075
Sublime is Atom for retards. JS > Python
>>
>>59920884
using browser for creating apps
using front-end language
>>
>>59919075
sublime has a so many packages that leak memory
so shit
>>
File: sublime_master_race.jpg (16KB, 416x254px) Image search: [Google]
sublime_master_race.jpg
16KB, 416x254px
>>59919075
>Is there better text editor for web dev?
nah

get the latest dev version if you haven't already, a lot of new features and a new icon

http://www.sublimetext.com/3dev
>>
ultraedit > all
>>
>>59919075
how about focusing on writing something actually worthwhile instead of focusing on the tools like an autistic retarded faggot?
>>
>>59919462
>his cursor movement isn't tracked through his eyes with his laptop's webcam and a neural network
>>
>>59919075
>for web
Surprised no one mentioned Brackets yet
>>
V I M
I
M A S T E R R A C E
>>
File: 1491931559425.jpg (2MB, 2848x4272px) Image search: [Google]
1491931559425.jpg
2MB, 2848x4272px
>>59919547
Don't listen to them. Looks almost like you did it properly.

for CheckSessions i would just get rid of the else if and else, they are redundant.

also you should use PDO for database, it is more secure and flexible if you needed to switch databases, like to NoSql or something.

in terms of naming practices, I would name this class "class_history.php" or "class.history.php", that is just me. that way if you were searching for just classes you will get all files starting with "class_" or "class.".

Also in your OP I notice that you are using a singleton design pattern for your connection. It is considered a bad practice: http://stackoverflow.com/questions/21832809/php-singleton-database-connection-pattern

there are many other examples of singleton being an ill-advised design pattern.
>>
>>59922625
this is type of reply i like
>for CheckSessions i would just get rid of the else if and else, they are redundant.

there is code missing, not everything is added
>in terms of naming practices, I would name this class "class_history.php" or "class.history.php
i use .class and class.


desu im not rly php dev, i spent lots of time with c++ and java so that is why i may do some things on strange way
and im not rly reading docs, i search for specific things i need
>>
File: 1378414212339.jpg (65KB, 425x419px) Image search: [Google]
1378414212339.jpg
65KB, 425x419px
What font is that?
>>
>>59922155
brackets.io
>>
>>59922746

>there is code missing, not everything is added
thought so, but i was not sure.

>desu im not rly php dev, i spent lots of time with c++ and java so that is why i may do some things on strange way
and im not rly reading docs, i search for specific things i need
I see, check this site out: http://www.phptherightway.com/

Other than that your code looks decent and well structured.
>>
>>59919075
>suffixing words that should end in "-ck" with "-cc"
kill yourself
>>
>>59922746
>>59922955
also if you are interested in basic security of your php alilcations check this out too: https://wwphp-fb.github.io/faq/security/php-security-issues/
>>
>>59919075
Vim, emacs or spacemacs
> sublime text
Proprietary shitware
>>
>>59923014
applications*
>>
File: 1376462300873.jpg (83KB, 273x308px) Image search: [Google]
1376462300873.jpg
83KB, 273x308px
>>59919547

Let's see here:
- doing is_null() on boolean statement doesn't work.
- doing isset() on $this->STATIC is misleading, since you always do set it in the constructor. You probably wanted is_null().
- no prepared sql statements or input escaping means you are vulnerable to sql injection
- header('Location index.php') is missing the colon, and it shouldn't be used inside the class at all. Leave that to code using your class.
- if statements without body, useless public functions. The code is clearly unfinished.
- functions and variables should be either camelCase or snake_case, unless you meant the ALLCASE member variables to be constant, in which case you shouldn't use public functions to do the checking or inserting lines.
>>
Brackets
>>
File: Screenshot 2017-04-16 11.53.42.png (589KB, 1440x900px) Image search: [Google]
Screenshot 2017-04-16 11.53.42.png
589KB, 1440x900px
>>59919075
vim + tmux
>>
>>59920884
They are both shit, but Python is less shit.
Although the fact that Sublime is nonfree makes it worse.
>>
>>59922625
>pic
Move the piercings from her nose to her nipples and she'd at least be dateable.
>>
File: 20170404_180752_HDR~2.jpg (3MB, 4160x3120px) Image search: [Google]
20170404_180752_HDR~2.jpg
3MB, 4160x3120px
>>59919075
Most everyone in my office uses Sublime but there are a few who really like Komodo.
>>
>>59923446
>- doing is_null() on boolean statement doesn't work.

is_null is used because, for example $STATIC may not exist, may not be passed to constructor. If it is not passed to constructor by default is set to null.
I dont really know how people do that in php when you need to have constructors with 2 or 3 parametars, you cant know how much will be. So im using null because of that, in other languages you would just create 2 constructors.

>isset() on $this->STATIC
same answer above

>- no prepared sql statements or input escaping means you are vulnerable to sql injection

all those values that go to database are generated by php, not inputed by user.
Thread posts: 54
Thread images: 12


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.