Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
devfest
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Anna Bulenkova
October 19, 2013
320
1
Share
devfest
Anna Bulenkova
October 19, 2013
More Decks by Anna Bulenkova
See All by Anna Bulenkova
Performance question: functional vs imperative in Ruby @muc_rubyshift
boogiecat
1
270
How to look like a model? MongoDB for Rails apps
boogiecat
0
75
ULCAMP. RubyMine promo. Hade made, grandma recipe.
boogiecat
0
75
Featured
See All Featured
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
140
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
130
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Un-Boring Meetings
codingconduct
0
270
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.6k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
150
Ruling the World: When Life Gets Gamed
codingconduct
0
210
Typedesign – Prime Four
hannesfritz
42
3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Transcript
Hi
Anna Bulenkova Software Developer JetBrains @povergo
RubyMine project
Surviving Environment Disasters Or how we’re suffering making Ruby support
Ruby & Java
IntelliJ platform
Ruby 1995 vs RubyMine 2009
How to make an IDE?
In fact, forget the editor... •Debugging •VCS •Visualisation •SDK &
Libraries management •Frameworks •Something cute and sweet
We still need an editor •Find errors •Autocompletion •Resolve •Find
usages •Rename
Good editor
Roots of evil?
Open Source
Dynamic typing
Errors •Syntax •Everything else
Errors •Syntax - lexer & parser •Lexer - JFlex •Parser
- yourself or GrammarKit •Everything else - need to know what it is
Syntax tree AST + PSI
Syntax tree
Errors •Syntax - lexer & parser •Everything else - need
to know what it is
42
42
Indexing: file- & stub- based •External libraries •Internal content
References •Regular •Multi-resolve
It’s easy. Sometimes
Where to go?
FQN? Haven’t heard of it.
It’s more or less fine if we know the class
Even this is ok
Reassignments
Join types
class_eval
Class eval
Class eval
Class eval
instance_eval
Instance eval
Instance eval
Instance eval: go to declaration
method_missing and friends
Not even an option
Have we met before?
But how?
undef_method and friends
DSLs They are full of evil
DSLs They are full of eval
DSLs They are full of evil
We hardcode
With our own DSL
Hiding-places •Docs •Annotations •Naming conventions •Runtime
Runtime
SLOW
Choose the lesser of two evals
Choose the lesser of two evils
With or without IDE?
@povergo
[email protected]
speakerdeck.com/boogiecat/devfest